Changeset 71e1152


Ignore:
Timestamp:
Nov 17, 2004 12:57:33 AM (16 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
3629d7a
Parents:
d01ab7fd
git-author:
jrandom <jrandom> (11/17/04 00:57:33)
git-committer:
zzz <zzz@…> (11/17/04 00:57:33)
Message:

if we've already sent our close packet but we still want to send something, send an ack packet

File:
1 edited

Legend:

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

    rd01ab7fd r71e1152  
    4646            con.setNextSendTime(_context.clock().now() + con.getOptions().getSendAckDelay());
    4747        long remaining = con.getNextSendTime() - _context.clock().now();
     48        if (_log.shouldLog(Log.DEBUG))
     49            _log.debug("Event occurred w/ remaining: " + remaining + " on " + con);
    4850        if (remaining <= 0) {
    4951            if (con.getCloseSentOn() <= 0) {
    5052                con.sendAvailable();
    5153                con.setNextSendTime(_context.clock().now() + con.getOptions().getSendAckDelay());
     54            } else {
     55                con.ackImmediately();
    5256            }
    5357        } else {
Note: See TracChangeset for help on using the changeset viewer.