This commit is contained in:
zzz
2016-10-21 15:20:35 +00:00
parent 9b27251473
commit cee3ebbb23
22 changed files with 48 additions and 48 deletions

View File

@@ -1136,7 +1136,7 @@ class Connection {
if (_log.shouldLog(Log.DEBUG)) _log.debug("Inactivity timeout reached, but there are unacked packets");
return;
}
// wtf, this shouldn't have been scheduled
// this shouldn't have been scheduled
if (_options.getInactivityTimeout() <= 0) {
if (_log.shouldLog(Log.DEBUG)) _log.debug("Inactivity timeout reached, but there is no timer...");
return;

View File

@@ -140,9 +140,9 @@ class ConnectionDataReceiver implements MessageOutputStream.DataReceiver {
//long sent = System.currentTimeMillis();
//if ( (built-before > 5*1000) && (_log.shouldLog(Log.WARN)) )
// _log.warn("wtf, took " + (built-before) + "ms to build a packet: " + packet);
// _log.warn(took " + (built-before) + "ms to build a packet: " + packet);
//if ( (sent-built> 5*1000) && (_log.shouldLog(Log.WARN)) )
// _log.warn("wtf, took " + (sent-built) + "ms to send a packet: " + packet);
// _log.warn(took " + (sent-built) + "ms to send a packet: " + packet);
return packet;
}

View File

@@ -542,7 +542,7 @@ class ConnectionPacketHandler {
}
} else {
if (_log.shouldLog(Log.WARN))
_log.warn("Received a packet for the wrong connection? wtf: "
_log.warn("Received a packet for the wrong connection? "
+ con + " / " + packet);
return;
}

View File

@@ -177,7 +177,7 @@ class MessageOutputStream extends OutputStream {
}
long elapsed = _context.clock().now() - begin;
if ( (elapsed > 10*1000) && (_log.shouldLog(Log.INFO)) )
_log.info("wtf, took " + elapsed + "ms to write to the stream?", new Exception("foo"));
_log.info("took " + elapsed + "ms to write to the stream?", new Exception("foo"));
throwAnyError();
//updateBps(len);
}
@@ -374,7 +374,7 @@ class MessageOutputStream extends OutputStream {
long elapsed = _context.clock().now() - begin;
if ( (elapsed > 10*1000) && (_log.shouldLog(Log.DEBUG)) )
_log.debug("wtf, took " + elapsed + "ms to flush the stream?\n" + ws, new Exception("bar"));
_log.debug("took " + elapsed + "ms to flush the stream?\n" + ws, new Exception("bar"));
throwAnyError();
}