RFR: 8368695: Support 101 switching protocol in jdk.httpserver [v5]

Josiah Noel duke at openjdk.org
Wed Feb 11 20:20:24 UTC 2026


On Wed, 11 Feb 2026 20:08:23 GMT, Daniel Fuchs <dfuchs at openjdk.org> 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


More information about the net-dev mailing list