RFR: 8368695: Support 101 switching protocol in jdk.httpserver [v5]
Josiah Noel
duke at openjdk.org
Wed Oct 15 15:53:24 UTC 2025
On Wed, 15 Oct 2025 15:42:44 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:
> Well - no. The connection will be reused for the next request when the chunked streams are closed.
I see, we should probably close the actual streams when calling close on the upgrade stream.
> The notion of "HTTP exchange" doesn't really make sense after the protocol is upgraded. That is - the HTTP/1.1 exchange should be considered closed as soon as the upgrade is effective.
I suppose you're right, but it would be nice if calling close on HttpExchange would also close the upgraded streams.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/27751#issuecomment-3407141947
More information about the net-dev
mailing list