diff options
author | Roger Dingledine <arma@torproject.org> | 2006-04-10 05:44:54 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2006-04-10 05:44:54 +0000 |
commit | ac2070b35b7b7e69dd5d82256b965fb32fa0b59b (patch) | |
tree | 284e421ca846230a4be577cac7f4b99194233dd2 | |
parent | e258276c2bc0d334c2133e78acab33341c87e59b (diff) | |
download | tor-ac2070b35b7b7e69dd5d82256b965fb32fa0b59b.tar tor-ac2070b35b7b7e69dd5d82256b965fb32fa0b59b.tar.gz |
stop being so picky about when we can start building circuits.
now clients are more likely to have circuits up soon after their
tor starts.
svn:r6346
-rw-r--r-- | src/or/routerlist.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c index 09408a8f5..ba960c7f6 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -3574,7 +3574,6 @@ router_have_minimum_dir_info(void) { int tot = 0, num_running = 0; int n_ns, n_tried, n_authorities, res, avg; - static int have_ever_tried_all = 0; static int have_enough = 0; if (!networkstatus_list || !routerlist) { res = 0; @@ -3589,18 +3588,6 @@ router_have_minimum_dir_info(void) res = 0; goto done; } - if (!have_ever_tried_all) { - n_tried=n_ns; - SMARTLIST_FOREACH(trusted_dir_servers, trusted_dir_server_t *, ds, - if (ds->n_networkstatus_failures) ++n_tried); - if (n_tried < n_authorities) { - log_info(LD_DIR, - "We have only tried downloading %d/%d network statuses.", - n_tried, n_authorities); - } else { - have_ever_tried_all = 1; - } - } SMARTLIST_FOREACH(networkstatus_list, networkstatus_t *, ns, tot += routerstatus_count_usable_entries(ns->entries)); avg = tot / n_ns; |