diff options
author | David Goulet <dgoulet@ev0ke.net> | 2015-08-05 14:06:09 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-08-11 09:34:41 -0400 |
commit | 7dce409802193eed9f8378e11b1c38eeb1127929 (patch) | |
tree | 50a375299fd16cd22488bce6e256c4c1edcee2e4 /src/or/rendcache.h | |
parent | 6e967235240dede017bbf0a696de62443fd2a7c3 (diff) | |
download | tor-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/rendcache.h')
-rw-r--r-- | src/or/rendcache.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/rendcache.h b/src/or/rendcache.h index 98c0f95264..0512058054 100644 --- a/src/or/rendcache.h +++ b/src/or/rendcache.h @@ -18,6 +18,8 @@ /** How wrong do we assume our clock may be when checking whether hidden * services are too old or too new? */ #define REND_CACHE_MAX_SKEW (24*60*60) +/** How old do we keep an intro point failure entry in the failure cache? */ +#define REND_CACHE_FAILURE_MAX_AGE (5*60) /* Do not allow more than this many introduction points in a hidden service * descriptor */ @@ -48,6 +50,7 @@ typedef struct rend_cache_failure_t { void rend_cache_init(void); void rend_cache_clean(time_t now); +void rend_cache_failure_clean(time_t now); void rend_cache_clean_v2_descs_as_dir(time_t now, size_t min_to_remove); void rend_cache_purge(void); void rend_cache_free_all(void); |