mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-24 21:15:58 +00:00
Log when we would disconnected, but don't actually disconnect for now.
This commit is contained in:
@@ -90,10 +90,12 @@ public:
|
||||
{
|
||||
if (theApp->getLoadManager().shouldCutoff(mLoadSource))
|
||||
{
|
||||
#if SHOULD_DISCONNECT
|
||||
connection_ptr ptr = mConnection.lock();
|
||||
if (ptr)
|
||||
ptr->close(websocketpp::close::status::PROTOCOL_ERROR, "overload");
|
||||
return rpcError(rpcSLOW_DOWN);
|
||||
#endif
|
||||
}
|
||||
|
||||
if (!jvRequest.isMember("command"))
|
||||
|
||||
Reference in New Issue
Block a user