diff options
author | Roger Dingledine <arma@torproject.org> | 2007-01-27 09:24:23 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2007-01-27 09:24:23 +0000 |
commit | c6fd3c7158ac56e358adb73bfc794370eb282918 (patch) | |
tree | ffb57d16f0b060107ba6a34c13eddf3e594404ed | |
parent | 9057af692a9d3fa1802035e1cbdb9c098481b62e (diff) | |
download | tor-c6fd3c7158ac56e358adb73bfc794370eb282918.tar.gz tor-c6fd3c7158ac56e358adb73bfc794370eb282918.zip |
the other half of my patch. more coming later.
svn:r9434
-rw-r--r-- | doc/TODO | 2 | ||||
-rw-r--r-- | src/or/or.h | 1 |
2 files changed, 2 insertions, 1 deletions
@@ -30,7 +30,7 @@ N - Test guard unreachable logic; make sure that we actually attempt to Make sure that we don't freak out when the network is down. Items for 0.1.2.x: -R - weight dir requests by advertised bandwidth? with maybe a lower cutoff + o weight dir requests by advertised bandwidth? with maybe a lower cutoff than for tor traffic. perhaps also weighted by the expected size of the response. diff --git a/src/or/or.h b/src/or/or.h index 04f24a4c98..44542048d2 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -2836,6 +2836,7 @@ int router_is_unreliable(routerinfo_t *router, int need_uptime, int need_capacity, int need_guard); uint32_t router_get_advertised_bandwidth(routerinfo_t *router); routerinfo_t *routerlist_sl_choose_by_bandwidth(smartlist_t *sl, int for_exit); +routerstatus_t *routerstatus_sl_choose_by_bandwidth(smartlist_t *sl); routerinfo_t *router_choose_random_node(const char *preferred, const char *excluded, |