[or-cvs] lower the reachability timeout, so we"re more likely to act

arma at seul.org arma at seul.org
Sun Mar 12 21:24:06 UTC 2006


Update of /home2/or/cvsroot/tor/src/or
In directory moria:/home/arma/work/onion/cvs/tor/src/or

Modified Files:
	dirserv.c 
Log Message:
lower the reachability timeout, so we're more likely to act
quickly if a server stops being reachable.


Index: dirserv.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/dirserv.c,v
retrieving revision 1.302
retrieving revision 1.303
diff -u -p -d -r1.302 -r1.303
--- dirserv.c	12 Mar 2006 20:57:52 -0000	1.302
+++ dirserv.c	12 Mar 2006 21:24:03 -0000	1.303
@@ -689,8 +689,10 @@ list_single_server_status(routerinfo_t *
   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.



More information about the tor-commits mailing list