On Wed, 11 Nov 2026 14:57:47 GMT, Volkan Yazici <[email protected]> wrote:
>> Add unit tests for the `jdk.httpserver` system properties. >> >> --------- >> - [X] I confirm that I make this contribution in accordance with the >> [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). > > Volkan Yazici has updated the pull request with a new target base due to a > merge or a rebase. The pull request now contains 17 commits: > > - Merge remote-tracking branch 'upstream/master' into hsProp > - Revert 34156fd7d88 and switch back from `assertEquals(-1, read())` to > throw-on-EOF > - Merge remote-tracking branch 'upstream/master' into hsProp > - Use `assertEquals` to verify EOF > - Split `IdleIntervalPropertyTest` into multiple files > - Add reflection-based check to `MaxIdleConnectionsPropertyTest` > - Removed `MaxReqHeaderSizePropertyTest` > - Fix flushing in `MaxRspTimePropertyTest` > - Merge remote-tracking branch 'upstream/master' into hsProp > - Add `Host` headers > - ... and 7 more: https://git.openjdk.org/jdk/compare/bf138795...26e4081c test/jdk/com/sun/net/httpserver/property/MaxReqTimePropertyTest.java line 141: > 139: p + "GET / HTTP/1.1\r\n" + > 140: "Host: localhost\r\n" + > 141: "\r\n" Since no byte will have been sent at this time, whether the 5s pause will succeed or fails may depend on when the idle connection timeout starts. So the connection may legitimately get closed by the server before the first byte is sent. Whether it will succeed or fail with the 5s pause may therefore vary, depending on when the next scans (that runs every 10s) happens. If it happens during that 5s pause the server may see a request with idle life time > 3s and close the connection. Maybe this test should be skipped for the 5s config... ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/31974#discussion_r4541701357
