Nothing looks wrong with the test or the code. The failure happens rarely - probably when the machine is under load: this test tries to saturate the socket buffers and is resource consuming.
The proposed fix is just to double the jtreg timeout for this test from 120 to 240. ------------- Commit messages: - 8371366: java/net/httpclient/whitebox/RawChannelTestDriver.java fails intermittently in jtreg timeout Changes: https://git.openjdk.org/jdk/pull/28178/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=28178&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8371366 Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/28178.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/28178/head:pull/28178 PR: https://git.openjdk.org/jdk/pull/28178
