On Wed, 12 Aug 2026 02:02:06 GMT, Lee Jiwon <[email protected]> wrote:
>> This adds a ServerSocket-based regression test for the case where an >> unknown-length body publisher emits a single empty buffer. >> The test verifies that the server observes exactly one HTTP/1.1 terminal >> chunk. >> No production code or HTTP/2/HTTP/3 behavior is changed. >> >> --------- >> - [x] I confirm that I make this contribution in accordance with the >> [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). > > Lee Jiwon has updated the pull request incrementally with one additional > commit since the last revision: > > 8308183: Use try-with-resources for HttpClient test/jdk/java/net/httpclient/Http1RequestEmptyBufferTest.java line 95: > 93: throw new IOException("Unexpected EOF while reading terminal > chunk"); > 94: } catch (SocketTimeoutException e) { > 95: return terminalChunkCount; The caveat is that this test will always have to wait for Utils.adjustTimeout(1000) before the full response is received. Well, I guess that can't be helped. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/32209#discussion_r3767276179
