Author: toad
Date: 2008-01-29 16:14:39 +0000 (Tue, 29 Jan 2008)
New Revision: 17388

Modified:
   trunk/freenet/src/freenet/node/PeerNode.java
Log:
Reduce ping time and pRejected half-lives from 10 to 4 minutes. This is still 
significantly higher than the timeout for a typical request so should be fine.
Should give faster recovery from spikes.

Modified: trunk/freenet/src/freenet/node/PeerNode.java
===================================================================
--- trunk/freenet/src/freenet/node/PeerNode.java        2008-01-29 16:01:21 UTC 
(rev 17387)
+++ trunk/freenet/src/freenet/node/PeerNode.java        2008-01-29 16:14:39 UTC 
(rev 17388)
@@ -547,11 +547,11 @@
                // A SimpleRunningAverage would be a bad choice because it 
would cause oscillations.
                // So go for a filter.
                pingAverage =
-                       new TimeDecayingRunningAverage(1, 600 * 1000 /* should 
be significantly longer than a typical transfer */, 0, 
NodePinger.CRAZY_MAX_PING_TIME, node);
+                       new TimeDecayingRunningAverage(1, 240 * 1000 /* should 
be significantly longer than a typical transfer */, 0, 
NodePinger.CRAZY_MAX_PING_TIME, node);

                // TDRA for probability of rejection
                pRejected =
-                       new TimeDecayingRunningAverage(0, 600 * 1000, 0.0, 1.0, 
node);
+                       new TimeDecayingRunningAverage(0, 240 * 1000, 0.0, 1.0, 
node);

                // ARK stuff.



Reply via email to