Remove connection throttling from all TCP servers

This commit is contained in:
Audric committed 2026-03-22 15:33:08 +01:00
1 parent 3a9b147b92
commit b958a53ab3
1 file changed
-3
-3
View File
@@ -314,7 +314,6 @@ bool Reflector::initialize(Async::Config &cfg)
std::string listen_port("5300"); std::string listen_port("5300");
cfg.getValue("GLOBAL", "LISTEN_PORT", listen_port); cfg.getValue("GLOBAL", "LISTEN_PORT", listen_port);
m_srv = new TcpServer<FramedTcpConnection>(listen_port); m_srv = new TcpServer<FramedTcpConnection>(listen_port);
m_srv->setConnectionThrottling(100, 10.0, 1000);
m_srv->clientConnected.connect( m_srv->clientConnected.connect(
mem_fun(*this, &Reflector::clientConnected)); mem_fun(*this, &Reflector::clientConnected));
m_srv->clientDisconnected.connect( m_srv->clientDisconnected.connect(
@@ -374,7 +373,6 @@ 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(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(
@@ -2062,7 +2060,6 @@ void Reflector::initSatelliteServer(void)
m_satellite_secret = sat_secret; m_satellite_secret = sat_secret;
m_sat_srv = new TcpServer<FramedTcpConnection>(sat_port); m_sat_srv = new TcpServer<FramedTcpConnection>(sat_port);
m_sat_srv->setConnectionThrottling(100, 10.0, 1000);
m_sat_srv->clientConnected.connect( m_sat_srv->clientConnected.connect(
sigc::mem_fun(*this, &Reflector::satelliteConnected)); sigc::mem_fun(*this, &Reflector::satelliteConnected));
m_sat_srv->clientDisconnected.connect( m_sat_srv->clientDisconnected.connect(