diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-01-31 15:08:46 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-01-31 15:08:46 -0500 |
commit | c0024edd2651761a2740d422a9dceca65c3721cf (patch) | |
tree | dbb8b0c34f5571dffa42b9631219c1436715d77d /src/or/directory.c | |
parent | b8ff7407a71fc51193dedb8cf952805c0fb3e774 (diff) | |
download | tor-c0024edd2651761a2740d422a9dceca65c3721cf.tar.gz tor-c0024edd2651761a2740d422a9dceca65c3721cf.zip |
Remove two vestigial MaxDownloadTries checks from directory.c
These are no longer meaningful, since there's no longer an upper
limit to how many times (in the exponential-backoff world) one can
retry a download. download_status_is_ready() didn't check these any
more, and neither do we.
Diffstat (limited to 'src/or/directory.c')
-rw-r--r-- | src/or/directory.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/or/directory.c b/src/or/directory.c index 3dbed28e77..34a34d9ba7 100644 --- a/src/or/directory.c +++ b/src/or/directory.c @@ -5730,8 +5730,7 @@ dir_routerdesc_download_failed(smartlist_t *failed, int status_code, } else { dls = router_get_dl_status_by_descriptor_digest(digest); } - if (!dls || dls->n_download_failures >= - get_options()->TestingDescriptorMaxDownloadTries) + if (!dls) continue; download_status_increment_failure(dls, status_code, cp, server, now); } SMARTLIST_FOREACH_END(cp); @@ -5768,10 +5767,6 @@ dir_microdesc_download_failed(smartlist_t *failed, if (!rs) continue; dls = &rs->dl_status; - if (dls->n_download_failures >= - get_options()->TestingMicrodescMaxDownloadTries) { - continue; - } { /* Increment the failure count for this md fetch */ char buf[BASE64_DIGEST256_LEN+1]; |