make connection reject msg a debug message, avoiding spam on ddos

This commit is contained in:
Lion Kortlepel committed 2026-04-19 18:17:53 +00:00
1 parent 1f55c35f2b
commit be0d8d5334
1 file changed
+1 -1
+1 -1
View File
@@ -292,7 +292,7 @@ void TNetwork::TCPServerMain() {
std::string ClientIP = ClientEp.address().to_string(); std::string ClientIP = ClientEp.address().to_string();
auto MaybeGuard = mConnectionLimiter.TryAcquire(ClientIP); auto MaybeGuard = mConnectionLimiter.TryAcquire(ClientIP);
if (!MaybeGuard.has_value()) { if (!MaybeGuard.has_value()) {
beammp_errorf("Connection rejected for {} due to the global or concurrent connection limit", ClientIP); beammp_debugf("Connection rejected for {} due to the global or concurrent connection limit", ClientIP);
continue; continue;
} }
// move-swap to avoid copy ctor (deleted) // move-swap to avoid copy ctor (deleted)