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

Josiah Noel duke at openjdk.org
Wed Oct 15 15:36:05 UTC 2025


On Wed, 15 Oct 2025 14:17:20 GMT, Michael McMahon <michaelm at openjdk.org> wrote:

> Sending a 101 response to a request from the client to upgrade to some other protocol has the effect of detaching
 the underlying connection from the HTTP stack.

Isn't the behavior the same as with regular chunked encoding? Do we need a note for that as well? In both cases we aren't exactly passing a reference to the raw streams.

> Closing the exchange after {@code 
 sendResponseHeaders(101, -1)} has been called has no effect on these streams.

Doesn't closing the exchange call close on both the input/output stream?

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

PR Comment: https://git.openjdk.org/jdk/pull/27751#issuecomment-3407059247


More information about the net-dev mailing list