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

Daniel Fuchs dfuchs at openjdk.org
Tue Sep 23 17:05:24 UTC 2025


On Tue, 23 Sep 2025 16:49:31 GMT, Josiah Noel <duke at openjdk.org> wrote:

>> 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. 
>> 
>> - 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:
> 
>   Update ExchangeImpl.java

test/jdk/com/sun/net/httpserver/InputRead100Test.java line 28:

> 26:  * @bug 8349670
> 27:  * @summary Test 1xx response handling
> 28:  * @run testng/othervm InputRead1xxTest

Did you forget to rename the test class and test file? The class is still called InputRead100Test.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/27069#discussion_r2372941800


More information about the net-dev mailing list