RFR: 8371557: java/net/httpclient/http3/H3RequestRejectedTest.java: javax.net.ssl.SSLHandshakeException: local endpoint (wildcard) and remote endpoint (loopback) ports conflict

Jaikiran Pai jpai at openjdk.org
Thu Nov 20 10:18:01 UTC 2025


On Fri, 14 Nov 2025 17:03:06 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:

> 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.

This looks good to me.

-------------

Marked as reviewed by jpai (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/28326#pullrequestreview-3486861695


More information about the net-dev mailing list