java/net/httpclient/http3/H3RequestRejectedTest.java fails intermittently (rarely) on macOS with javax.net.ssl.SSLHandshakeException: local endpoint (wildcard) and remote endpoint (loopback) ports conflict.
This is a well known issue on macOS, which can be avoided by having the client bind specifically to the loopback instead of the wildcard. A couple of methods have been added to HttpServerAdapters (newClientBuilderForH3() / createClientBuilderForH3()) to obtain a client builder pre-configured to bind to the loopback. Most HTTP/3 test call those methods, but java/net/httpclient/http3/H3RequestRejectedTest.java doesn't, hence the intermittent failure. ------------- Commit messages: - 8371557: java/net/httpclient/http3/H3RequestRejectedTest.java: javax.net.ssl.SSLHandshakeException: local endpoint (wildcard) and remote endpoint (loopback) ports conflict Changes: https://git.openjdk.org/jdk/pull/28326/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=28326&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8371557 Stats: 3 lines in 1 file changed: 1 ins; 0 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/28326.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/28326/head:pull/28326 PR: https://git.openjdk.org/jdk/pull/28326
