more info than just nuh uh

This commit is contained in:
zzz
2009-05-23 14:37:25 +00:00
parent 695752629d
commit 7feb97e415

View File

@ -1027,7 +1027,7 @@ public class NTCPConnection implements FIFOBandwidthLimiter.CompleteListener {
_curReadState.receiveBlock(_decryptBlockBuf);
if (_curReadState.getSize() > 16*1024) {
if (_log.shouldLog(Log.ERROR))
_log.error("i2np message more than 16KB? nuh uh: " + _curReadState.getSize());
_log.error("I2NP message too big - size: " + _curReadState.getSize() + " Dropping " + toString());
_context.statManager().addRateData("ntcp.corruptTooLargeI2NP", _curReadState.getSize(), getUptime());
close();
return false;