]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Don't reset the download failure status of any object marked as impossible
authorNick Mathewson <nickm@torproject.org>
Tue, 7 Oct 2014 13:34:28 +0000 (09:34 -0400)
committerNick Mathewson <nickm@torproject.org>
Mon, 13 Oct 2014 18:30:02 +0000 (14:30 -0400)
src/or/directory.c

index 1aaa75ccee98d63b50d6d804d301b6370d4ff891..8e75bfdeeb0647681af15b4bec408758a413e515 100644 (file)
@@ -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);