[tor-commits] [tordnsel/master] change timeouts from 48 to 24 hours so exit relays aren't listed for 2
andrew at torproject.org
andrew at torproject.org
Tue Jun 28 13:32:06 UTC 2011
commit 203590063b3877c73e876a94aa93c847976d2116
Author: Andrew Lewman <andrew at torproject.org>
Date: Sat Jun 18 23:09:15 2011 -0400
change timeouts from 48 to 24 hours so exit relays aren't listed for 2
days beyond their disappearing from consensus.
---
src/TorDNSEL/NetworkState/Internals.hs | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/TorDNSEL/NetworkState/Internals.hs b/src/TorDNSEL/NetworkState/Internals.hs
index 484537e..933b7eb 100644
--- a/src/TorDNSEL/NetworkState/Internals.hs
+++ b/src/TorDNSEL/NetworkState/Internals.hs
@@ -668,8 +668,8 @@ expireOldInfo now s = s { nsAddrs = addrs'', nsRouters = routers'' }
deleteExitAddresses rid test addrs =
foldl' (\as addr -> deleteAddress addr rid as) addrs
(M.keys $ tstAddresses test)
- maxRouterAge = 48 * 60 * 60
- maxExitTestAge = 48 * 60 * 60
+ maxRouterAge = 24 * 60 * 60
+ maxExitTestAge = 24 * 60 * 60
-- | Add a new router associated with an address to the address map.
insertAddress :: HostAddress -> RouterID -> Map HostAddress (Set RouterID)
More information about the tor-commits
mailing list