summaryrefslogtreecommitdiff
path: root/src/or/circuitbuild.c
diff options
context:
space:
mode:
authorMike Perry <mikeperry-git@fscked.org>2010-02-14 14:45:45 -0800
committerMike Perry <mikeperry-git@fscked.org>2010-02-22 16:52:11 -0800
commit245be159afa206676b05b9b5d5a11aa1f6b25bd7 (patch)
tree13bb46fe9314bbf39ff7f4e66e0dc47f3a8b66c8 /src/or/circuitbuild.c
parent5d4f5ef07d8e28018e1520d0cc413a75092a9304 (diff)
downloadtor-245be159afa206676b05b9b5d5a11aa1f6b25bd7.tar.gz
tor-245be159afa206676b05b9b5d5a11aa1f6b25bd7.zip
Always weight routers by bandwidth.
Also always predict that we need a high capacity circuit or internal circuit.
Diffstat (limited to 'src/or/circuitbuild.c')
-rw-r--r--src/or/circuitbuild.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c
index 08ee58416b..eef610d2b6 100644
--- a/src/or/circuitbuild.c
+++ b/src/or/circuitbuild.c
@@ -2133,6 +2133,8 @@ circuit_all_predicted_ports_handled(time_t now, int *need_uptime,
smartlist_t *LongLivedServices = get_options()->LongLivedPorts;
tor_assert(need_uptime);
tor_assert(need_capacity);
+ // Always predict need_capacity
+ *need_capacity = 1;
enough = (smartlist_len(sl) == 0);
for (i = 0; i < smartlist_len(sl); ++i) {
port = smartlist_get(sl, i);