diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-02-15 23:39:04 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-02-15 23:39:04 +0000 |
commit | 418c2e1b6b7900a1b0b7974738b66f84485b4c36 (patch) | |
tree | 486fa6acbfd718f4d17f3ff5a5741df77e2f944a /src/or/routerlist.c | |
parent | 861c79dc5db84ac2ed571673a8d78dfe9ee3785d (diff) | |
download | tor-418c2e1b6b7900a1b0b7974738b66f84485b4c36.tar tor-418c2e1b6b7900a1b0b7974738b66f84485b4c36.tar.gz |
r14181@tombo: nickm | 2008-02-15 16:48:17 -0500
Fix all but 2 DOCDOC items; defer many XXX020s (particularly those where fixing them would fix no bugs at the risk of introducing some bugs).
svn:r13529
Diffstat (limited to 'src/or/routerlist.c')
-rw-r--r-- | src/or/routerlist.c | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c index 1f0e603d6..2cf91d327 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -1388,16 +1388,14 @@ get_max_believable_bandwidth(void) * If <b>statuses</b> is zero, then <b>sl</b> is a list of * routerinfo_t's. Otherwise it's a list of routerstatus_t's. * - * If <b>for_exit</b>, we're picking an exit node: consider all nodes' - * bandwidth equally regardless of their Exit status, since there may be - * some in the list because they exit to obscure ports. If not <b>for_exit</b>, - * we're picking a non-exit node: weight exit-node's bandwidth less - * depending on the smallness of the fraction of Exit-to-total bandwidth. - * - * 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 + * If <b>rule</b>==WEIGHT_FOR_EXIT. we're picking an exit node: consider all + * nodes' bandwidth equally regardless of their Exit status, since there may + * be some in the list because they exit to obscure ports. If + * <b>rule</b>==NO_WEIGHTING, we're picking a non-exit node: weight + * exit-node's bandwidth less depending on the smallness of the fraction of + * Exit-to-total bandwidth. If <b>rule</b>==WEIGHT_FOR_GUARD, we're picking a + * guard node: consider all guard's bandwidth equally. Otherwise, weight + * guards proportionally less. */ static void * smartlist_choose_by_bandwidth(smartlist_t *sl, bandwidth_weight_rule_t rule, @@ -3666,7 +3664,7 @@ launch_router_descriptor_downloads(smartlist_t *downloadable, time_t now) } } } - /* XXX020 should we consider having even the dir mirrors delay + /* XXX should we consider having even the dir mirrors delay * a little bit, so we don't load the authorities as much? -RD * I don't think so. If we do, clients that want those descriptors may * not actually find them if the caches haven't got them yet. -NM |