[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tordnsel/master] change timeouts from 48 to 24 hours so exit relays aren't listed for 2



commit 203590063b3877c73e876a94aa93c847976d2116
Author: Andrew Lewman <andrew@xxxxxxxxxxxxxx>
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)



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits