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

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

Commit messages:
 - Fix comment
 - Use timeout factor for threshold and reduce default to 2 secs

Changes: https://git.openjdk.org/jdk/pull/33000/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=33000&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8392827
  Stats: 8 lines in 1 file changed: 4 ins; 0 del; 4 mod
  Patch: https://git.openjdk.org/jdk/pull/33000.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/33000/head:pull/33000

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

Reply via email to