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

Josiah Noel duke at openjdk.org
Wed Feb 18 14:47:28 UTC 2026


On Wed, 18 Feb 2026 13:14:39 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:

>> Josiah Noel has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Update UpgradeOutputStream.java
>
> src/jdk.httpserver/share/classes/sun/net/httpserver/UpgradeInputStream.java line 46:
> 
>> 44:         if (!t.upgraded) {
>> 45:             return -1;
>> 46:         }
> 
> This will prevent draining the input stream properly if the request is not upgraded.

the recent commit prevents an UpgradeInputStream from being given if the GET request has a body, so there is nothing to drain.

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

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


More information about the net-dev mailing list