Author: toad
Date: 2007-03-21 18:14:28 +0000 (Wed, 21 Mar 2007)
New Revision: 12250

Modified:
   trunk/freenet/src/freenet/node/RequestSender.java
Log:
Increase fetch timeout to 2 minutes. Justification: 
- Typical node has a 12kB/sec limit.
- Transfer latency is (# packets + # hops) * bwlimitDelayTime.
- We also have fetch latency, and we want to leave some space for it.
- From time to time a specific bunch of requests will exceed the usual 7% 
success rate.
- In order to avoid timeouts (with a limit of 60 seconds), we would therefore 
have to have very few requests allowed simultaneously - on the order of 0.5 per 
kB/sec.
- So lets increase the timeout.

Modified: trunk/freenet/src/freenet/node/RequestSender.java
===================================================================
--- trunk/freenet/src/freenet/node/RequestSender.java   2007-03-21 09:54:38 UTC 
(rev 12249)
+++ trunk/freenet/src/freenet/node/RequestSender.java   2007-03-21 18:14:28 UTC 
(rev 12250)
@@ -41,7 +41,7 @@

     // Constants
     static final int ACCEPTED_TIMEOUT = 5000;
-    static final int FETCH_TIMEOUT = 60000;
+    static final int FETCH_TIMEOUT = 120000;
     /** One in this many successful requests is randomly reinserted.
      * This is probably a good idea anyway but with the split store it's 
essential. */
     static final int RANDOM_REINSERT_INTERVAL = 200;


Reply via email to