diff options
author | Nick Mathewson <nickm@torproject.org> | 2015-12-15 14:04:00 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-12-15 14:04:00 -0500 |
commit | 6ba8afe5f87a1edd16f4c61cbb59a29f9126c6c6 (patch) | |
tree | b8d2a7644c9c0e5599e982fcc38769038defe943 /src/or/routerlist.c | |
parent | a56fb58d6e1e93b95e2a060b61f3d00eab95a298 (diff) | |
parent | 4c1c2a313dcd3638eededd4a1a83ed5f0b8b9fed (diff) | |
download | tor-6ba8afe5f87a1edd16f4c61cbb59a29f9126c6c6.tar.gz tor-6ba8afe5f87a1edd16f4c61cbb59a29f9126c6c6.zip |
Merge remote-tracking branch 'teor/feature15775-fallback-v9-squashed'
Diffstat (limited to 'src/or/routerlist.c')
-rw-r--r-- | src/or/routerlist.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c index 28b5eb1184..051bac5de5 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -1299,8 +1299,8 @@ router_get_fallback_dir_servers(void) /** Try to find a running dirserver that supports operations of <b>type</b>. * * If there are no running dirservers in our routerlist and the - * <b>PDS_RETRY_IF_NO_SERVERS</b> flag is set, set all the authoritative ones - * as running again, and pick one. + * <b>PDS_RETRY_IF_NO_SERVERS</b> flag is set, set all the fallback ones + * (including authorities) as running again, and pick one. * * If the <b>PDS_IGNORE_FASCISTFIREWALL</b> flag is set, then include * dirservers that we can't reach. @@ -1308,8 +1308,9 @@ router_get_fallback_dir_servers(void) * If the <b>PDS_ALLOW_SELF</b> flag is not set, then don't include ourself * (if we're a dirserver). * - * Don't pick an authority if any non-authority is viable; try to avoid using - * servers that have returned 503 recently. + * Don't pick a fallback directory mirror if any non-fallback is viable; + * (the fallback directory mirrors include the authorities) + * try to avoid using servers that have returned 503 recently. */ const routerstatus_t * router_pick_directory_server(dirinfo_type_t type, int flags) @@ -1336,7 +1337,7 @@ router_pick_directory_server(dirinfo_type_t type, int flags) log_info(LD_DIR, "No reachable router entries for dirservers. " "Trying them all again."); - /* mark all authdirservers as up again */ + /* mark all fallback directory mirrors as up again */ mark_all_dirservers_up(fallback_dir_servers); /* try again */ choice = router_pick_directory_server_impl(type, flags, NULL); |