forked from I2P_Developers/i2p.i2p
less wtf
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user