Author: toad
Date: 2008-02-28 17:59:31 +0000 (Thu, 28 Feb 2008)
New Revision: 18211
Modified:
trunk/freenet/src/freenet/io/xfer/PacketThrottle.java
Log:
Doh ... shrink _simulatedWindowSize, not _packetSeqWindowFull
Modified: trunk/freenet/src/freenet/io/xfer/PacketThrottle.java
===================================================================
--- trunk/freenet/src/freenet/io/xfer/PacketThrottle.java 2008-02-28
17:58:36 UTC (rev 18210)
+++ trunk/freenet/src/freenet/io/xfer/PacketThrottle.java 2008-02-28
17:59:31 UTC (rev 18211)
@@ -103,7 +103,7 @@
if(_packetSeqWindowFullChecked + windowSize < _packetSeq) {
if(_packetSeqWindowFull < _packetSeqWindowFullChecked) {
// We haven't used the full window once since we last
checked.
- _packetSeqWindowFull *= PACKET_DROP_DECREASE_MULTIPLE;
+ _simulatedWindowSize *= PACKET_DROP_DECREASE_MULTIPLE;
_packetSeqWindowFullChecked += windowSize;
if(logMINOR) Logger.minor(this, "Window not used since we last
checked: full="+_packetSeqWindowFull+" last
checked="+_packetSeqWindowFullChecked+" window = "+_simulatedWindowSize);
return;