From d39c7515d13cc7e2383008cf7eb004f645bdf84a Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Fri, 24 Aug 2007 06:30:34 +0000 Subject: patch from mike perry to a) stop overloading guards as much, and b) raise the max-believable-bandwidth to 10MB/s. svn:r11258 --- src/or/circuitbuild.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/or/circuitbuild.c') diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c index a8cc40861..a36520fb1 100644 --- a/src/or/circuitbuild.c +++ b/src/or/circuitbuild.c @@ -1264,7 +1264,7 @@ choose_good_exit_server_general(routerlist_t *dir, int need_uptime, smartlist_subtract(sl,excludedexits); if (options->StrictExitNodes || smartlist_overlap(sl,preferredexits)) smartlist_intersect(sl,preferredexits); - router = routerlist_sl_choose_by_bandwidth(sl, 1); + router = routerlist_sl_choose_by_bandwidth(sl, 1, 0); } else { /* Either there are no pending connections, or no routers even seem to * possibly support any of them. Choose a router at random that satisfies @@ -1308,7 +1308,7 @@ choose_good_exit_server_general(routerlist_t *dir, int need_uptime, smartlist_intersect(sl,preferredexits); /* XXX sometimes the above results in null, when the requested * exit node is down. we should pick it anyway. */ - router = routerlist_sl_choose_by_bandwidth(sl, 1); + router = routerlist_sl_choose_by_bandwidth(sl, 1, 0); if (router) break; } -- cgit v1.2.3