Log when we would disconnected, but don't actually disconnect for now.

This commit is contained in:
JoelKatz
2013-03-10 19:15:28 -07:00
parent 4b449b5c99
commit 92318a47bd
3 changed files with 16 additions and 2 deletions

View File

@@ -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"))