Log resource limit disconnections.

This commit is contained in:
Mark Travis
2021-11-17 09:07:06 -08:00
committed by manojsdoshi
parent 72752b1ee0
commit db720a59e4
7 changed files with 18 additions and 12 deletions

View File

@@ -384,7 +384,7 @@ ServerHandlerImp::processSession(
Json::Value const& jv)
{
auto is = std::static_pointer_cast<WSInfoSub>(session->appDefined);
if (is->getConsumer().disconnect())
if (is->getConsumer().disconnect(m_journal))
{
session->close(
{boost::beast::websocket::policy_error, "threshold exceeded"});
@@ -687,7 +687,7 @@ ServerHandlerImp::processRequest(
{
usage = m_resourceManager.newInboundEndpoint(
remoteIPAddress, role == Role::PROXY, forwardedFor);
if (usage.disconnect())
if (usage.disconnect(m_journal))
{
if (!batch)
{