Author: toad
Date: 2008-02-28 17:58:36 +0000 (Thu, 28 Feb 2008)
New Revision: 18210

Modified:
   trunk/freenet/src/freenet/io/xfer/PacketThrottle.java
Log:
Logging

Modified: trunk/freenet/src/freenet/io/xfer/PacketThrottle.java
===================================================================
--- trunk/freenet/src/freenet/io/xfer/PacketThrottle.java       2008-02-28 
17:08:22 UTC (rev 18209)
+++ trunk/freenet/src/freenet/io/xfer/PacketThrottle.java       2008-02-28 
17:58:36 UTC (rev 18210)
@@ -105,6 +105,7 @@
                        // We haven't used the full window once since we last 
checked.
                        _packetSeqWindowFull *= 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;
                }
                _packetSeqWindowFullChecked += windowSize;
@@ -166,6 +167,7 @@
                                        _packetSeq++;
                                        if(windowSize == _packetsInFlight) {
                                                _packetSeqWindowFull = 
_packetSeq;
+                                               if(logMINOR) Logger.minor(this, 
"Window full at "+_packetSeq);
                                        }
                                        if(logMINOR) Logger.minor(this, 
"Sending, window size now "+windowSize+" packets in flight "+_packetsInFlight);
                                        break;


Reply via email to