On Thu, 25 Jun 2026 06:41:19 GMT, Kieran Farrell <[email protected]> wrote:

> Adding a simple debug log to the `httpserver` to log when the 
> `jdk.httpserver.maxConnections` count is exceeded before an accepted socket 
> is closed. 
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

src/jdk.httpserver/share/classes/sun/net/httpserver/ServerImpl.java line 542:

> 540:                                     // ahead and close this connection 
> without processing it
> 541:                                     logger.log(Level.DEBUG, "connection 
> limit reached, " +
> 542:                                             "closing accepted 
> connection");

Does the logging by code in the httpserver include something to identity the 
instance? I'm wondering how the log messages look when there is more than one 
instance in the VM.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/31670#discussion_r3472575888

Reply via email to