diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-12-11 19:12:45 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-12-11 19:12:45 +0000 |
commit | 29f5a65a166cd06879ef55b7b5a38ae88c40482f (patch) | |
tree | 6ce6bde4a2ca017cb3fa8af85cf6752062694a16 /src/or/routerlist.c | |
parent | 4e69284e8926554acd01c3beab72e26609c89926 (diff) | |
download | tor-29f5a65a166cd06879ef55b7b5a38ae88c40482f.tar.gz tor-29f5a65a166cd06879ef55b7b5a38ae88c40482f.zip |
Change directory_get_from_dirserver to take a set of flags to be passed to pick_(trusted_)dirserver. This lets us make its interface smarter, and makes code that calls it a little more readable.
svn:r17592
Diffstat (limited to 'src/or/routerlist.c')
-rw-r--r-- | src/or/routerlist.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c index 5ed8813f9a..032790cc6d 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -516,7 +516,7 @@ authority_certs_fetch_missing(networkstatus_t *status, time_t now) smartlist_free(fps); } directory_get_from_dirserver(DIR_PURPOSE_FETCH_CERTIFICATE, 0, - resource, 1); + resource, PDS_RETRY_IF_NO_SERVERS); done: tor_free(resource); @@ -3807,7 +3807,8 @@ initiate_descriptor_downloads(routerstatus_t *source, 0, /* not private */ resource, NULL, 0, 0); } else { - directory_get_from_dirserver(purpose, ROUTER_PURPOSE_GENERAL, resource, 1); + directory_get_from_dirserver(purpose, ROUTER_PURPOSE_GENERAL, resource, + PDS_RETRY_IF_NO_SERVERS); } tor_free(resource); } @@ -4193,7 +4194,8 @@ update_router_descriptor_downloads(time_t now) last_dummy_download + DUMMY_DOWNLOAD_INTERVAL < now) { last_dummy_download = now; directory_get_from_dirserver(DIR_PURPOSE_FETCH_SERVERDESC, - ROUTER_PURPOSE_GENERAL, "authority.z", 1); + ROUTER_PURPOSE_GENERAL, "authority.z", + PDS_RETRY_IF_NO_SERVERS); } } |