Distinguish between excess server load and excessive connection work.

This commit is contained in:
JoelKatz
2013-03-08 13:45:43 -08:00
parent b71f16b8b8
commit b10a2c7a18
3 changed files with 3 additions and 1 deletions

View File

@@ -93,7 +93,7 @@ public:
connection_ptr ptr = mConnection.lock();
if (ptr)
ptr->close(websocketpp::close::status::PROTOCOL_ERROR, "overload");
return rpcError(rpcTOO_BUSY);
return rpcError(rpcSLOW_DOWN);
}
if (!jvRequest.isMember("command"))