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). ------------- Commit messages: - 8308183: Add regression test for duplicate terminal chunk after empty buffer Changes: https://git.openjdk.org/jdk/pull/32209/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=32209&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8308183 Stats: 148 lines in 1 file changed: 148 ins; 0 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/32209.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/32209/head:pull/32209 PR: https://git.openjdk.org/jdk/pull/32209
