diff options
author | Roger Dingledine <arma@torproject.org> | 2008-02-12 22:02:47 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2008-02-12 22:02:47 +0000 |
commit | 3abafccd0eadb267401f20ef8c816c6e7f1c693e (patch) | |
tree | 7d0a5e4c28f40d1d4aaa410a401b61f4c83d7424 /src/or/routerlist.c | |
parent | d3331b3c125697bc9f1bbd8ca1917a0702770acc (diff) | |
download | tor-3abafccd0eadb267401f20ef8c816c6e7f1c693e.tar.gz tor-3abafccd0eadb267401f20ef8c816c6e7f1c693e.zip |
Start choosing which bridge to use proportional to its advertised
bandwidth, rather than uniformly at random. This should speed up Tor
for bridge users. Also do this for people who set StrictEntryNodes.
svn:r13486
Diffstat (limited to 'src/or/routerlist.c')
-rw-r--r-- | src/or/routerlist.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c index 46a372c1e7..d1b0e820ed 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -1393,6 +1393,7 @@ get_max_believable_bandwidth(void) * If <b>for_guard</b>, we're picking a guard node: consider all guard's * bandwidth equally. Otherwise, weight guards proportionally less. * + * XXX DOCDOC the above args aren't args anymore */ static void * smartlist_choose_by_bandwidth(smartlist_t *sl, bandwidth_weight_rule_t rule, |