RFR: 8368528: HttpClient.Builder.connectTimeout should accept arbitrarily large values

Volkan Yazici vyazici at openjdk.org
Fri Oct 24 12:21:25 UTC 2025


Introduce necessary fixes to address exceptions thrown when excessive `Duration`s are provided to `Duration`-accepting `HttpClient` public APIs.

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

Commit messages:
 - Add `DeadlineOverflowTest`
 - Fix duration overflows
 - Add `DurationOverflowTest`

Changes: https://git.openjdk.org/jdk/pull/27973/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=27973&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8368528
  Stats: 651 lines in 5 files changed: 593 ins; 34 del; 24 mod
  Patch: https://git.openjdk.org/jdk/pull/27973.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/27973/head:pull/27973

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


More information about the net-dev mailing list