Integrated: 8373807: test/jdk/java/net/httpclient/websocket/DummyWebSocketServer.java getURI() uses "localhost"

Daniel Fuchs dfuchs at openjdk.org
Wed Dec 17 18:47:27 UTC 2025


On Wed, 17 Dec 2025 10:32:56 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:

> The WebSockteTest was observed failing in timeout once, waiting for the completable future returned by `WebSocketBuilder::build` to complete. The suspicion is that it may have been caused by the request being misdirected due to the use of "localhost" in the URI. 
> 
> This trivial fix ensures that the DumyWebSocketServer::getURI returns a URI with a literal IP address instead of relying on "localhost".

This pull request has now been integrated.

Changeset: f3a48560
Author:    Daniel Fuchs <dfuchs at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/f3a48560b5e3a280f6f76031eb3d475ff9ee49f4
Stats:     8 lines in 1 file changed: 7 ins; 0 del; 1 mod

8373807: test/jdk/java/net/httpclient/websocket/DummyWebSocketServer.java getURI() uses "localhost"

Reviewed-by: jpai

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

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


More information about the net-dev mailing list