On Thu, 9 Oct 2025 17:38:57 GMT, Josiah Noel <[email protected]> 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 >> - 100-continue will be sent automatically when trying to read the >> inputstream if `Expect: 100-continue` header is present > > Josiah Noel has updated the pull request incrementally with two additional > commits since the last revision: > > - Update Send1xxResponsesTest.java > - Update Send1xxResponsesTest.java test/jdk/com/sun/net/httpserver/Send1xxResponsesTest.java line 223: > 221: if (statusCodes.size() != expectedStatusCodes.length) { > 222: System.out.println("Expected status codes: " + > Arrays.toString(expectedStatusCodes)); > 223: System.out.println("Received status codes: " + > statusCodes); Sorry, I was not clear. I meant include the lists in the exception message - not print them in stdout ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/27069#discussion_r2417483737
