On Fri, 14 Nov 2025 17:03:06 GMT, Daniel Fuchs <[email protected]> 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 pull request has now been integrated.

Changeset: ad38a125
Author:    Daniel Fuchs <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/ad38a1253ae3ff92f7e0cf0fbc4d4726957b1443
Stats:     3 lines in 1 file changed: 1 ins; 0 del; 2 mod

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

Reviewed-by: jpai

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

PR: https://git.openjdk.org/jdk/pull/28326

Reply via email to