Log packet size parse failures in NetworkTCPSocketHandler
This commit is contained in:
@@ -184,6 +184,7 @@ std::unique_ptr<Packet> NetworkTCPSocketHandler::ReceivePacket()
|
|||||||
|
|
||||||
/* Parse the size in the received packet and if not valid, close the connection. */
|
/* Parse the size in the received packet and if not valid, close the connection. */
|
||||||
if (!p->ParsePacketSize()) {
|
if (!p->ParsePacketSize()) {
|
||||||
|
DEBUG(net, 0, "ParsePacketSize failed, possible packet stream corruption");
|
||||||
this->CloseConnection();
|
this->CloseConnection();
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user