Changeset aab4a3a


Ignore:
Timestamp:
Jul 7, 2013 8:13:11 PM (7 years ago)
Author:
zab2 <zab2@…>
Branches:
master
Children:
b486ae5
Parents:
e9e550fb
Message:

Change criteria for resending on NACK to match comment

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/streaming/java/src/net/i2p/client/streaming/PacketLocal.java

    re9e550fb raab4a3a  
    158158        SimpleTimer2.TimedEvent evt = _resendEvent;
    159159        if (cnt >= Connection.FAST_RETRANSMIT_THRESHOLD && evt != null && (!_retransmitted) &&
    160             (_numSends == 1 || _lastSend < _context.clock().now() + 4*1000)) {  // Don't fast retx if we recently resent it
     160            (_numSends == 1 || _lastSend < _context.clock().now() - 4*1000)) {  // Don't fast retx if we recently resent it
    161161            _retransmitted = true;
    162162            evt.reschedule(0);
    163             // shouldn't ^^^ be clock.now() - 4000 ??? --zab
     163            // the predicate used to be '+', changing to '-' --zab
    164164           
    165165            if (_log.shouldLog(Log.DEBUG)) {
Note: See TracChangeset for help on using the changeset viewer.