From 9e75c06197e449457ec83f98c6eb537716f352a9 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Mon, 5 Jan 2009 16:56:11 +0000 Subject: 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 --- src/or/or.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/or/or.h') 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); -- cgit v1.2.3-54-g00ecf