RFR: 8368695: Support 101 switching protocol in jdk.httpserver [v11]
Josiah Noel
duke at openjdk.org
Thu Oct 16 14:02:08 UTC 2025
> - adds a flag to ExchangeImpl to signal whether the current request is an Upgrade request
> - Adds a new `UpgradeInputStream` to ensure that the server keeps track of when the upgraded request is closed
> - on 101 response codes, `sendResponseHeaders` will not immediately close the output stream
> - on 101 response codes, `sendResponseHeaders` will use an `UndefLengthOutputStream`
Josiah Noel has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains 15 additional commits since the last revision:
- Merge remote-tracking branch 'upstream/master' into JDK-8368695
- Update SwitchingProtocolTest.java
- Update SwitchingProtocolTest.java
- Update SwitchingProtocolTest.java
- add exception test
- Create UpgradeOutputStream.java
- close raw streams
- tab
- fix compatibility
- Update UpgradeInputStream.java
- ... and 5 more: https://git.openjdk.org/jdk/compare/33e49634...a3250508
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/27751/files
- new: https://git.openjdk.org/jdk/pull/27751/files/fb551787..a3250508
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=27751&range=10
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=27751&range=09-10
Stats: 14699 lines in 301 files changed: 8907 ins; 5136 del; 656 mod
Patch: https://git.openjdk.org/jdk/pull/27751.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/27751/head:pull/27751
PR: https://git.openjdk.org/jdk/pull/27751
More information about the net-dev
mailing list