RFR: 8349670: HttpServer: sending interim responses fails after JDK-7026262 [v2]

Josiah Noel duke at openjdk.org
Tue Sep 23 13:59:38 UTC 2025


> Following the guideline of the last comment on [JDK-8349670](https://bugs.openjdk.org/browse/JDK-8349670?focusedId=14794649&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14794649), resolves the issue where sending a 1xx status code would close the input stream, preventing the server from reading the body. 
> 
> - Adds a new flag checking if the incoming request is an upgrade request.
> - When receiving an upgrade request, directly return the input/output stream
> - When a 1xx status code is sent by `sendResponseHeaders`, the input/output streams will not be closed prematurely.
> - sentHeaders will not be set to true when sending 1xx status codes

Josiah Noel has updated the pull request incrementally with one additional commit since the last revision:

  address pr comments

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/27069/files
  - new: https://git.openjdk.org/jdk/pull/27069/files/bbc2a975..d76ff991

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

  Stats: 12 lines in 2 files changed: 5 ins; 4 del; 3 mod
  Patch: https://git.openjdk.org/jdk/pull/27069.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/27069/head:pull/27069

PR: https://git.openjdk.org/jdk/pull/27069


More information about the net-dev mailing list