8387273: Enhance httpserver logging to log when maxConnections is reached

Reviewed-by: jpai, dfuchs, vyazici
This commit is contained in:
Kieran Farrell 2026-06-29 15:28:18 +00:00 committed by Daniel Fuchs
parent e28a58b486
commit 0a5b9d7fd4

View File

@ -538,6 +538,8 @@ class ServerImpl {
if (MAX_CONNECTIONS > 0 && allConnections.size() >= MAX_CONNECTIONS) {
// we've hit max limit of current open connections, so we go
// ahead and close this connection without processing it
logger.log(Level.DEBUG, "connection limit reached, " +
"closing accepted connection " + chan);
try {
chan.close();
} catch (IOException ignore) {