Author: toad
Date: 2008-04-08 15:38:11 +0000 (Tue, 08 Apr 2008)
New Revision: 19080

Modified:
   trunk/freenet/src/freenet/node/OpennetManager.java
Log:
Increase DROP_DISCONNECT_DELAY to 10 minutes to give a bit more time for 
rebooting.
We don't want nodes to have to reseed every time they reboot!

Modified: trunk/freenet/src/freenet/node/OpennetManager.java
===================================================================
--- trunk/freenet/src/freenet/node/OpennetManager.java  2008-04-08 15:36:09 UTC 
(rev 19079)
+++ trunk/freenet/src/freenet/node/OpennetManager.java  2008-04-08 15:38:11 UTC 
(rev 19080)
@@ -74,8 +74,10 @@
        static final int DROP_MIN_AGE = 300*1000;
        /** Don't drop a node until this long after startup */
        static final int DROP_STARTUP_DELAY = 120*1000;
-       /** Don't drop a node until this long after losing connection to it */
-       static final int DROP_DISCONNECT_DELAY = 5*60*1000;
+       /** Don't drop a node until this long after losing connection to it.
+        * This should be long enough to cover a typical reboot, but not so 
long as to result in a lot
+        * of disconnected nodes in the Strangers list. */
+       static final int DROP_DISCONNECT_DELAY = 10*60*1000;
        /** But if it has disconnected more than once in this period, allow it 
to be dropped anyway */
        static final int DROP_DISCONNECT_DELAY_COOLDOWN = 60*60*1000;
        /** Every DROP_CONNECTED_TIME, we may drop a peer even though it is 
connected */


Reply via email to