mirror of
https://github.com/openjdk/jdk.git
synced 2026-07-02 07:10:23 +00:00
8387273: Enhance httpserver logging to log when maxConnections is reached
Reviewed-by: jpai, dfuchs, vyazici
This commit is contained in:
parent
e28a58b486
commit
0a5b9d7fd4
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user