mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-26 14:05:51 +00:00
Respond to server pings with pongs. (Pings are currently not sent.)
This commit is contained in:
@@ -1157,6 +1157,11 @@ void Peer::recvGetObjectByHash(ripple::TMGetObjectByHash& packet)
|
||||
|
||||
void Peer::recvPing(ripple::TMPing& packet)
|
||||
{
|
||||
if (packet.type() == ripple::TMPing::PING)
|
||||
{
|
||||
packet.set_type(ripple::TMPing::PONG);
|
||||
sendPacket(boost::make_shared<PackedMessage>(packet, ripple::mtPING));
|
||||
}
|
||||
}
|
||||
|
||||
void Peer::recvErrorMessage(ripple::TMErrorMsg& packet)
|
||||
|
||||
Reference in New Issue
Block a user