On Wed, 11 Nov 2026 17:41:53 GMT, Daniel Fuchs <[email protected]> wrote:
> Could we exclude the timer-sensitive tests from running in exotic > configuration (debug, -Xint, -Xcomp) using `@requires`? Would something like > `@requires !vm.debug && vm.compMode == "Xmixed"` work, for instance? @dfuch, good idea. Implemented in 380ad075353. > 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 connection with idle life > time > 3s and close the connection. > > Maybe this test should be skipped for the 5s config... Right. As a matter of fact, it can even fail for 3s configuration. In c6590b3ed71, which contains an elaborate explanation, I've effectively disabled idle connection eviction by configuring `clockTick` to an excessive value. ------------- PR Comment: https://git.openjdk.org/jdk/pull/31974#issuecomment-6825520859 PR Review Comment: https://git.openjdk.org/jdk/pull/31974#discussion_r4551356203
