Author: toad
Date: 2008-02-07 23:32:33 +0000 (Thu, 07 Feb 2008)
New Revision: 17687

Modified:
   trunk/freenet/src/freenet/io/xfer/BlockReceiver.java
Log:
Keep the new longer timeout by increasing the 
MAX_CONSECUTIVE_MISSING_PACKET_REPORTS.
So we now will hang on for 4 minutes (this is over the request timeout but 
that's okay as we may be able to propagate it after we get it), as we did in 
the previous stable build, but will send missingPacketNotification every 30 
seconds as we used to so won't timeout because of us not sending packets to the 
transmitter either.

Modified: trunk/freenet/src/freenet/io/xfer/BlockReceiver.java
===================================================================
--- trunk/freenet/src/freenet/io/xfer/BlockReceiver.java        2008-02-07 
23:21:38 UTC (rev 17686)
+++ trunk/freenet/src/freenet/io/xfer/BlockReceiver.java        2008-02-07 
23:32:33 UTC (rev 17687)
@@ -43,7 +43,7 @@
        public static final int RECEIPT_TIMEOUT = 30000;
        // TODO: This should be proportional to the calculated round-trip-time, 
not a constant
        public static final int MAX_ROUND_TRIP_TIME = RECEIPT_TIMEOUT;
-       public static final int MAX_CONSECUTIVE_MISSING_PACKET_REPORTS = 4;
+       public static final int MAX_CONSECUTIVE_MISSING_PACKET_REPORTS = 8;
        public static final int MAX_SEND_INTERVAL = 500;
        public static final int CLEANUP_TIMEOUT = 5000;
        PartiallyReceivedBlock _prb;


Reply via email to