RFR: 8368695: Support 101 switching protocol in jdk.httpserver [v5]
Christoph Läubrich
duke at openjdk.org
Wed Feb 11 11:28:51 UTC 2026
On Wed, 11 Feb 2026 11:22:25 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:
> I know it's been deprecated, but consider the upgrade to HTTP/2 for instance. If the peer doesn't support HTTP/2 it can just ignore the upgrade headers and continue with HTTP/1.1.
As Upgrade is not and never was supported here, a ~client~ handler can't upgrade anyways and therefore can't send `101 Switching Protocols` (or at least if trying will fail as connection is closed for them).
So if you think there is a problem it would be bet to show a minimal reproducer that can then be added as a test-case to proof it is still working.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/27989#discussion_r2792752156
More information about the net-dev
mailing list