mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-24 04:55:52 +00:00
For now, don't enforce ping timeouts. Just sending the pings is sufficient
to cause dead connections to break.
This commit is contained in:
@@ -142,16 +142,18 @@ public:
|
||||
return jvResult;
|
||||
}
|
||||
|
||||
bool onPingTimer()
|
||||
bool onPingTimer(std::string&)
|
||||
{
|
||||
#ifdef DISCONNECT_ON_WEBSOCKET_PING_TIMEOUTS
|
||||
if (mPinged)
|
||||
return true; // causes connection to close
|
||||
#endif
|
||||
mPinged = true;
|
||||
setPingTimer();
|
||||
return false; // causes ping to be sent
|
||||
}
|
||||
|
||||
void onPong()
|
||||
void onPong(const std::string&)
|
||||
{
|
||||
mPinged = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user