]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Increment n_download_failures up to IMPOSSIBLE_TO_DOWNLOAD-1, not up to IMPOSSIBLE_TO...
authorNick Mathewson <nickm@torproject.org>
Wed, 31 Dec 2008 17:22:18 +0000 (17:22 +0000)
committerNick Mathewson <nickm@torproject.org>
Wed, 31 Dec 2008 17:22:18 +0000 (17:22 +0000)
svn:r17835

ChangeLog
src/or/directory.c

index 76c0ae26dc07036bd344146909beafb7261d81b9..284e49e09447728cc5fd92fc0b22ce26befedda4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -26,6 +26,9 @@ Changes in version 0.2.1.10-alpha - 2009-01-??
     - Authorities now list vote for the Stable flag for any router whose
       weighted MTBF is at least 5 days, regardless of the mean MTBF.
     - Stop logging nameserver addresses in reverse order.
+    - If we are retrying something slowly over and over, do not
+      automatically give up after the 254th failure.  Bugfix on
+      0.2.1.9-alpha.
 
   o Code simplifications and refactoring:
     - Change our header file guard macros to be less likely to conflict
index 68f438106b3beb7abe4806b1e4dcdf0808b87cc4..ed2e859dc8bdcd5d09adfdae12839aa91ded5f31 100644 (file)
@@ -3341,7 +3341,7 @@ download_status_increment_failure(download_status_t *dls, int status_code,
   int increment;
   tor_assert(dls);
   if (status_code != 503 || server) {
-    if (dls->n_download_failures < IMPOSSIBLE_TO_DOWNLOAD)
+    if (dls->n_download_failures < IMPOSSIBLE_TO_DOWNLOAD-1)
       ++dls->n_download_failures;
   }