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

Volkan Yazici vyazici at openjdk.org
Mon Nov 3 14:10:47 UTC 2025


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

Volkan Yazici has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains seven additional commits since the last revision:

 - Merge remote-tracking branch 'upstream/master' into bigDuration
 - Merge remote-tracking branch 'upstream/master' into bigDuration
 - Simplify exception handling in `Deadline::between`
   
   Co-authored-by: Daniel Fuchs <67001856+dfuch at users.noreply.github.com>
 - Move `delta == 0` in `until()` to the catch block
 - Add `DeadlineOverflowTest`
 - Fix duration overflows
 - Add `DurationOverflowTest`

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/27973/files
  - new: https://git.openjdk.org/jdk/pull/27973/files/970754a7..351de8c2

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=27973&range=04
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=27973&range=03-04

  Stats: 300 lines in 9 files changed: 282 ins; 5 del; 13 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