Relax HTTP server connection throttling for monitoring
Increase bucket_max from 10 to 100 and bucket_inc from 0.1 to 10.0 to allow more frequent polling of the /status endpoint.
This commit is contained in:
1 parent
64697e61d7
commit
ddbf8fd228
1 file changed
+1
-1
@@ -374,7 +374,7 @@ bool Reflector::initialize(Async::Config &cfg)
|
|||||||
if (m_cfg->getValue("GLOBAL", "HTTP_SRV_PORT", http_srv_port))
|
if (m_cfg->getValue("GLOBAL", "HTTP_SRV_PORT", http_srv_port))
|
||||||
{
|
{
|
||||||
m_http_server = new Async::TcpServer<Async::HttpServerConnection>(http_srv_port);
|
m_http_server = new Async::TcpServer<Async::HttpServerConnection>(http_srv_port);
|
||||||
m_http_server->setConnectionThrottling(10, 0.1, 1000);
|
m_http_server->setConnectionThrottling(100, 10.0, 1000);
|
||||||
m_http_server->clientConnected.connect(
|
m_http_server->clientConnected.connect(
|
||||||
sigc::mem_fun(*this, &Reflector::httpClientConnected));
|
sigc::mem_fun(*this, &Reflector::httpClientConnected));
|
||||||
m_http_server->clientDisconnected.connect(
|
m_http_server->clientDisconnected.connect(
|
||||||
|
|||||||
Reference in new issue
Block a user