diff options
author | Roger Dingledine <arma@torproject.org> | 2009-01-05 16:56:11 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2009-01-05 16:56:11 +0000 |
commit | 9e75c06197e449457ec83f98c6eb537716f352a9 (patch) | |
tree | 8af964a35ea278a968b0e17bd0d34fd4290f3519 /src/or/or.h | |
parent | cec0a57dc80faa8f8c8ef38fcfb08602638ca81c (diff) | |
download | tor-9e75c06197e449457ec83f98c6eb537716f352a9.tar.gz tor-9e75c06197e449457ec83f98c6eb537716f352a9.zip |
If the cached networkstatus consensus is more than five days old,
discard it rather than trying to use it. In theory it could
be useful because it lists alternate directory mirrors, but in
practice it just means we spend many minutes trying directory
mirrors that are long gone from the network. Helps bug 887 a bit;
bugfix on 0.2.0.x.
svn:r17917
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/or.h b/src/or/or.h index 2d6fb3e0ef..765669aa2e 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -3758,6 +3758,7 @@ networkstatus_t *networkstatus_get_reasonably_live_consensus(time_t now); #define NSSET_FROM_CACHE 1 #define NSSET_WAS_WAITING_FOR_CERTS 2 #define NSSET_DONT_DOWNLOAD_CERTS 4 +#define NSSET_ACCEPT_OBSOLETE 8 int networkstatus_set_current_consensus(const char *consensus, unsigned flags); void networkstatus_note_certs_arrived(void); void routers_update_all_from_networkstatus(time_t now, int dir_version); |