[or-cvs] r17835: {tor} Increment n_download_failures up to IMPOSSIBLE_TO_DOWNLOAD-1 (in tor/trunk: . src/or)
nickm at seul.org
nickm at seul.org
Wed Dec 31 17:22:18 UTC 2008
Author: nickm
Date: 2008-12-31 12:22:18 -0500 (Wed, 31 Dec 2008)
New Revision: 17835
Modified:
tor/trunk/ChangeLog
tor/trunk/src/or/directory.c
Log:
Increment n_download_failures up to IMPOSSIBLE_TO_DOWNLOAD-1, not up to IMPOSSIBLE_TO_DOWNLOAD.
Modified: tor/trunk/ChangeLog
===================================================================
--- tor/trunk/ChangeLog 2008-12-31 14:19:57 UTC (rev 17834)
+++ tor/trunk/ChangeLog 2008-12-31 17:22:18 UTC (rev 17835)
@@ -26,6 +26,9 @@
- 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
Modified: tor/trunk/src/or/directory.c
===================================================================
--- tor/trunk/src/or/directory.c 2008-12-31 14:19:57 UTC (rev 17834)
+++ tor/trunk/src/or/directory.c 2008-12-31 17:22:18 UTC (rev 17835)
@@ -3341,7 +3341,7 @@
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;
}
More information about the tor-commits
mailing list