mirror of
https://github.com/matrix-construct/construct
synced 2025-02-20 02:30:07 +01:00
ircd::client: dwarning if client request pool exhausted.
This commit is contained in:
parent
f66acf6f8e
commit
d2536c83a2
1 changed files with 7 additions and 0 deletions
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue