I could not replicate the issue after more than 64000 runs. However, I have done the following to increase stability and added logs in case this happens again.
Changes: * Specifically binding the client to the loopback address * Added additional debug logging ------------- Commit messages: - JDK-8277424: javax/net/ssl/TLSCommon/TLSTest.java fails with connection refused Changes: https://git.openjdk.org/jdk/pull/24823/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=24823&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8277424 Stats: 58 lines in 1 file changed: 0 ins; 0 del; 58 mod Patch: https://git.openjdk.org/jdk/pull/24823.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/24823/head:pull/24823 PR: https://git.openjdk.org/jdk/pull/24823