forked from I2P_Developers/i2p.i2p
* Streaming: Change some log errors to warnings (tickets 76, 341 and others)
This commit is contained in:
@@ -36,8 +36,8 @@ class ConnectionPacketHandler {
|
|||||||
boolean ok = verifyPacket(packet, con);
|
boolean ok = verifyPacket(packet, con);
|
||||||
if (!ok) {
|
if (!ok) {
|
||||||
boolean isTooFast = con.getSendStreamId() <= 0;
|
boolean isTooFast = con.getSendStreamId() <= 0;
|
||||||
if ( (!packet.isFlagSet(Packet.FLAG_RESET)) && (!isTooFast) && (_log.shouldLog(Log.ERROR)) )
|
if ( (!packet.isFlagSet(Packet.FLAG_RESET)) && (!isTooFast) && (_log.shouldLog(Log.WARN)) )
|
||||||
_log.error("Packet does NOT verify: " + packet + " on " + con);
|
_log.warn("Packet does NOT verify: " + packet + " on " + con);
|
||||||
packet.releasePayload();
|
packet.releasePayload();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -450,8 +450,8 @@ class ConnectionPacketHandler {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (con.getSendStreamId() != packet.getReceiveStreamId()) {
|
if (con.getSendStreamId() != packet.getReceiveStreamId()) {
|
||||||
if (_log.shouldLog(Log.ERROR))
|
if (_log.shouldLog(Log.WARN))
|
||||||
_log.error("Packet received with the wrong reply stream id: "
|
_log.warn("Packet received with the wrong reply stream id: "
|
||||||
+ con + " / " + packet);
|
+ con + " / " + packet);
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
|
@@ -177,8 +177,8 @@ class PacketHandler {
|
|||||||
} else if (oldId == packet.getReceiveStreamId()) {
|
} else if (oldId == packet.getReceiveStreamId()) {
|
||||||
// ok, as expected...
|
// ok, as expected...
|
||||||
} else {
|
} else {
|
||||||
if (_log.shouldLog(Log.ERROR))
|
if (_log.shouldLog(Log.WARN))
|
||||||
_log.error("Received a syn with the wrong IDs, con=" + con + " packet=" + packet);
|
_log.warn("Received a syn with the wrong IDs, con=" + con + " packet=" + packet);
|
||||||
sendReset(packet);
|
sendReset(packet);
|
||||||
packet.releasePayload();
|
packet.releasePayload();
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user