0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-02 18:18:56 +02:00

ircd::client: dwarning if client request pool exhausted.

This commit is contained in:
Jason Volk 2018-04-19 16:25:39 -07:00
parent f66acf6f8e
commit d2536c83a2

View file

@ -320,6 +320,13 @@ ircd::handle_client_ready(std::shared_ptr<client> client,
std::bind(ircd::handle_client_request, std::move(client))
};
if(unlikely(client::context.avail() == 0))
log::dwarning
{
"Client context pool exhausted. %zu requests queued.",
client::context.queued()
};
client::context(std::move(handler));
}