On Tue, 22 Sep 2026 09:20:57 GMT, Arno Zeller <[email protected]> wrote:

> Adjust the THRESHOLD constant to use _adjustTimeout_() so it scales 
> appropriately with the test environment's timeout factor, consistent with 
> other tests such as TcpTimeout.java. Reduced the default value from 3000 ms 
> to 2000 ms.
> 
> The value is additionally capped at 9 seconds to ensure it stays well below 
> the full exponential backoff retry cycle (1 + 2 + 4 + 8 = 15 s), preserving 
> the test's intent of verifying that an ICMP Port Unreachable response causes 
> a quick failure rather than waiting through all retries.
> 
> ---------
> - [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: 8a8893e0
Author:    Arno Zeller <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/8a8893e0e22fd3b4507b910eb720a6d659b3fbda
Stats:     9 lines in 1 file changed: 3 ins; 0 del; 6 mod

8392827: com/sun/jndi/dns/ConfigTests/PortUnreachable test threshold should 
scale with timeout factor

Reviewed-by: clanger, jiefu

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

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

Reply via email to