aboutsummaryrefslogtreecommitdiff
path: root/src/or/main.c
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@ev0ke.net>2015-08-05 14:06:09 -0400
committerNick Mathewson <nickm@torproject.org>2015-08-11 09:34:41 -0400
commit7dce409802193eed9f8378e11b1c38eeb1127929 (patch)
tree50a375299fd16cd22488bce6e256c4c1edcee2e4 /src/or/main.c
parent6e967235240dede017bbf0a696de62443fd2a7c3 (diff)
downloadtor-7dce409802193eed9f8378e11b1c38eeb1127929.tar.gz
tor-7dce409802193eed9f8378e11b1c38eeb1127929.zip
Expire after 5 minutes rend cache failure entries
Signed-off-by: David Goulet <dgoulet@ev0ke.net>
Diffstat (limited to 'src/or/main.c')
-rw-r--r--src/or/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/main.c b/src/or/main.c
index 5bff82b3cf..e564e6c132 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -1488,6 +1488,10 @@ run_scheduled_events(time_t now)
#define CLEAN_CACHES_INTERVAL (30*60)
time_to.clean_caches = now + CLEAN_CACHES_INTERVAL;
}
+ /* We don't keep entries that are more than five minutes old so we try to
+ * clean it as soon as we can since we want to make sure the client waits
+ * as little as possible for reachability reasons. */
+ rend_cache_failure_clean(now);
#define RETRY_DNS_INTERVAL (10*60)
/* If we're a server and initializing dns failed, retry periodically. */