diff options
author | Nick Mathewson <nickm@torproject.org> | 2006-10-19 23:28:38 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2006-10-19 23:28:38 +0000 |
commit | 7f8d9e8af2ccc9ad18b113618bbe7e055814c76f (patch) | |
tree | d42473ab8789399a4e5a3a14e3f04692e803ace4 /src/or/directory.c | |
parent | 974bdee183ee3fbd1349f98e17c98854d52747de (diff) | |
download | tor-7f8d9e8af2ccc9ad18b113618bbe7e055814c76f.tar.gz tor-7f8d9e8af2ccc9ad18b113618bbe7e055814c76f.zip |
r9287@Kushana: nickm | 2006-10-19 19:28:31 -0400
Weasel points out that a routerdesc requested by digest can never change. Weasel is right.
svn:r8766
Diffstat (limited to 'src/or/directory.c')
-rw-r--r-- | src/or/directory.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/directory.c b/src/or/directory.c index 51e6f8ebff..37afd4b09d 100644 --- a/src/or/directory.c +++ b/src/or/directory.c @@ -66,6 +66,7 @@ static void note_request(const char *key, size_t bytes); #define RUNNINGROUTERS_CACHE_LIFETIME (20*60) #define NETWORKSTATUS_CACHE_LIFETIME (5*60) #define ROUTERDESC_CACHE_LIFETIME (30*60) +#define ROUTERDESC_BY_DIGEST_CACHE_LIFETIME (48*60*60) #define ROBOTS_CACHE_LIFETIME (24*60*60) /********* END VARIABLES ************/ @@ -1617,7 +1618,7 @@ directory_handle_command_get(dir_connection_t *conn, char *headers, } else if (!strcmpstart(url, "/tor/server/d/")) { request_type = deflated?"/tor/server/d.z":"/tor/server/d"; if (smartlist_len(conn->fingerprint_stack) == 1) - cache_lifetime = ROUTERDESC_CACHE_LIFETIME; + cache_lifetime = ROUTERDESC_BY_DIGEST_CACHE_LIFETIME; } else { request_type = "/tor/server/?"; } |