mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Log resource limit disconnections.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user