summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2009-01-02 20:46:32 +0000
committerRoger Dingledine <arma@torproject.org>2009-01-02 20:46:32 +0000
commit89d268848f769f761f9cd128aa401c38ab470c74 (patch)
tree72d056f23e8f8d6ef1d52ed847872382c3bfe4ae
parent48f2ce298b617f00775fb07af7936a09b5d675c6 (diff)
downloadtor-89d268848f769f761f9cd128aa401c38ab470c74.tar.gz
tor-89d268848f769f761f9cd128aa401c38ab470c74.zip
take out my IMPOSSIBLE_TO_DOWNLOAD+1 hack
svn:r17850
-rw-r--r--src/or/circuitbuild.c2
-rw-r--r--src/or/directory.c3
2 files changed, 2 insertions, 3 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c
index 8c64f68f7b..e9b89f0863 100644
--- a/src/or/circuitbuild.c
+++ b/src/or/circuitbuild.c
@@ -3050,7 +3050,7 @@ fetch_bridge_descriptors(time_t now)
SMARTLIST_FOREACH_BEGIN(bridge_list, bridge_info_t *, bridge)
{
if (!download_status_is_ready(&bridge->fetch_status, now,
- IMPOSSIBLE_TO_DOWNLOAD+1))
+ IMPOSSIBLE_TO_DOWNLOAD))
continue; /* don't bother, no need to retry yet */
/* schedule another fetch as if this one will fail, in case it does */
diff --git a/src/or/directory.c b/src/or/directory.c
index ed2e859dc8..786b9be7c1 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -3349,8 +3349,7 @@ download_status_increment_failure(download_status_t *dls, int status_code,
if (dls->n_download_failures < schedule_len)
increment = schedule[dls->n_download_failures];
- else if (dls->n_download_failures == IMPOSSIBLE_TO_DOWNLOAD &&
- dls->schedule != DL_SCHED_BRIDGE)
+ else if (dls->n_download_failures == IMPOSSIBLE_TO_DOWNLOAD)
increment = INT_MAX;
else
increment = schedule[schedule_len-1];