diff options
author | Roger Dingledine <arma@torproject.org> | 2006-03-12 21:24:03 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2006-03-12 21:24:03 +0000 |
commit | b67a5ba49801a0a4e190036a30cd0b3d622de9ef (patch) | |
tree | c3a126d83e475a67718bb03be6dc50ba015fbfa1 /src/or/dirserv.c | |
parent | 1fc5eb329bc6618af6bcafa313cfad8798c409c5 (diff) | |
download | tor-b67a5ba49801a0a4e190036a30cd0b3d622de9ef.tar.gz tor-b67a5ba49801a0a4e190036a30cd0b3d622de9ef.zip |
lower the reachability timeout, so we're more likely to act
quickly if a server stops being reachable.
svn:r6141
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r-- | src/or/dirserv.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c index 93318fb012..35156aa755 100644 --- a/src/or/dirserv.c +++ b/src/or/dirserv.c @@ -689,8 +689,10 @@ list_single_server_status(routerinfo_t *desc, int is_live) return tor_strdup(buf); } -#define REACHABLE_TIMEOUT (90*60) /* ninety minutes */ -/* Make sure this is at least 3 times the value of get_dir_fetch_period() */ +/** Each server needs to have passed a reachability test no more + * than this number of seconds ago, or he is listed as down in + * the directory. */ +#define REACHABLE_TIMEOUT (30*60) /** Treat a router as alive if * - It's me, and I'm not hibernating. |