Author: toad
Date: 2008-02-07 12:11:11 +0000 (Thu, 07 Feb 2008)
New Revision: 17648
Modified:
trunk/freenet/src/freenet/io/xfer/BlockReceiver.java
Log:
Reduce RECEIPT_TIMEOUT back to 30 seconds.
We only send a missingPacketNotification when we get a RECEIPT_TIMEOUT, and the
sender will timeout if we don't send anything for 60 seconds.
Modified: trunk/freenet/src/freenet/io/xfer/BlockReceiver.java
===================================================================
--- trunk/freenet/src/freenet/io/xfer/BlockReceiver.java 2008-02-07
11:43:52 UTC (rev 17647)
+++ trunk/freenet/src/freenet/io/xfer/BlockReceiver.java 2008-02-07
12:11:11 UTC (rev 17648)
@@ -40,7 +40,7 @@
*/
public class BlockReceiver implements AsyncMessageFilterCallback {
- public static final int RECEIPT_TIMEOUT = 60000;
+ 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;