On Thu, 19 Nov 2026 19:36:51 GMT, Ashay Rane <[email protected]> wrote:

> `InetAddress.getLocalHost()` may select a non-loopback address, whose
> traffic may be subject to filtering rules.  This can cause the test to
> time out (since the receiver doesn't get the packets), causing the test
> to fail.
> 
> Since all communication in these tests is local, this patch makes use of
> `InetAddress.getLoopbackAddress()` instead.
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

This pull request has now been integrated.

Changeset: 08dc919f
Author:    Ashay Rane <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/08dc919f2d59542747c94e010254a58f8f0e6f44
Stats:     6 lines in 2 files changed: 0 ins; 0 del; 6 mod

8397853: Make local datagram tests use loopback address

Reviewed-by: djelinski

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

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

Reply via email to