mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-26 23:24:09 +02:00
Merge pull request #6570 from Icinga/bugfix/tls-anonymous-clients-limit
Increase limit for simultaneously connected anonymous TLS clients
This commit is contained in:
commit
7a22113f86
@ -1384,7 +1384,7 @@ double ApiListener::CalculateZoneLag(const Endpoint::Ptr& endpoint)
|
|||||||
bool ApiListener::AddAnonymousClient(const JsonRpcConnection::Ptr& aclient)
|
bool ApiListener::AddAnonymousClient(const JsonRpcConnection::Ptr& aclient)
|
||||||
{
|
{
|
||||||
boost::mutex::scoped_lock lock(m_AnonymousClientsLock);
|
boost::mutex::scoped_lock lock(m_AnonymousClientsLock);
|
||||||
if (m_AnonymousClients.size() > 25)
|
if (m_AnonymousClients.size() > 100)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
m_AnonymousClients.insert(aclient);
|
m_AnonymousClients.insert(aclient);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user