[tor-commits] [tor/master] Don't reset the download failure status of any object marked as impossible

nickm at torproject.org nickm at torproject.org
Mon Oct 13 18:33:49 UTC 2014


commit b8e2be5557287a00905aa30f78eff42519b164d5
Author: Nick Mathewson <nickm at torproject.org>
Date:   Tue Oct 7 09:34:28 2014 -0400

    Don't reset the download failure status of any object marked as impossible
---
 src/or/directory.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/or/directory.c b/src/or/directory.c
index 1aaa75c..8e75bfd 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -3442,6 +3442,9 @@ download_status_increment_failure(download_status_t *dls, int status_code,
 void
 download_status_reset(download_status_t *dls)
 {
+  if (dls->n_download_failures == IMPOSSIBLE_TO_DOWNLOAD)
+    return; /* Don't reset this. */
+
   const smartlist_t *schedule = find_dl_schedule_and_len(
                           dls, get_options()->DirPort_set);
 





More information about the tor-commits mailing list