a chunk of streaming lib updates (cwin calc & timed win, pings influencing rtt, etc)

This commit is contained in:
jrandom
2004-10-30 23:46:01 +00:00
committed by zzz
parent 58fcbad20a
commit b37313d3f9
11 changed files with 129 additions and 38 deletions

View File

@@ -44,7 +44,11 @@ class PacketQueue {
tagsSent = new HashSet();
try {
// cache this from before sendMessage
String conStr = packet.getConnection() + "";
String conStr = (packet.getConnection() != null ? packet.getConnection().toString() : "");
if (packet.getAckTime() > 0) {
_log.debug("Not resending " + packet);
return;
}
// this should not block!
long begin = _context.clock().now();
boolean sent = _session.sendMessage(packet.getTo(), _buf, 0, size, keyUsed, tagsSent);