Author: toad
Date: 2008-03-15 22:58:05 +0000 (Sat, 15 Mar 2008)
New Revision: 18544

Modified:
   trunk/freenet/src/freenet/io/xfer/PacketThrottle.java
Log:
Doh, >=

Modified: trunk/freenet/src/freenet/io/xfer/PacketThrottle.java
===================================================================
--- trunk/freenet/src/freenet/io/xfer/PacketThrottle.java       2008-03-15 
18:02:02 UTC (rev 18543)
+++ trunk/freenet/src/freenet/io/xfer/PacketThrottle.java       2008-03-15 
22:58:05 UTC (rev 18544)
@@ -154,7 +154,7 @@
                                int windowSize = (int) getWindowSize();
                                // If we have different timeouts, and we have 
packets 1 and 2 timeout and 3 and 4 not timeout,
                                // we could end up not sending 3 and 4 at all 
if we use == here.
-                               boolean 
wereNext=(_packetSeq<=(thisTicket-_abandonedTickets));
+                               boolean 
wereNext=(_packetSeq>=(thisTicket-_abandonedTickets));
                                //If there is room for it in the window, break 
and send it immeadiately
                                if(_packetsInFlight < windowSize && wereNext) {
                                        _packetsInFlight++;


Reply via email to