On Wed, 11 Feb 2026 20:08:23 GMT, Daniel Fuchs <[email protected]> wrote:

> Typically the WriteFinished event will cause the connection to be returned to 
> the pool. Hence my question.

We set the exchange to a closed state when closing the streams so it will hit 
the [following lines 
](https://github.com/openjdk/jdk/blob/39a1d1c801a9cbf8d21051a9af7f6279873ae260/src/jdk.httpserver/share/classes/sun/net/httpserver/ServerImpl.java#L455-L457)to
 close and remove the connection  

> There are timeouts that can be configured and that will cause the connection 
> to be closed if the exchange takes too long:

Then yes, these are affected

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

PR Review Comment: https://git.openjdk.org/jdk/pull/27989#discussion_r2795308857

Reply via email to