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

Josiah Noel duke at openjdk.org
Fri Oct 10 21:22:49 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 incrementally with one additional commit since the last revision:

  Update UpgradeInputStream.java

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/27751/files
  - new: https://git.openjdk.org/jdk/pull/27751/files/d3835941..ee8b2bcd

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=27751&range=02
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=27751&range=01-02

  Stats: 1 line in 1 file changed: 0 ins; 1 del; 0 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