RFR: 8340182: Java HttpClient does not follow default retry limit of 3 retries [v4]

p-nima duke at openjdk.org
Tue Jun 10 13:39:19 UTC 2025


> The AuthenticationFilter did not respect the default retry limit of 3 retries in case of invalid credentials supplied.
> 
> This PR helps to resolve the bug and tests it with default and updated retry limit set via `jdk.httpclient.auth.retrylimit=1`.
> 
> The test is green with tiers 1, 2, 3 and the test is stable.

p-nima has updated the pull request incrementally with one additional commit since the last revision:

  apply review feedback and improve readability

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/25490/files
  - new: https://git.openjdk.org/jdk/pull/25490/files/24cc8944..7a9eb0b2

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

  Stats: 6 lines in 1 file changed: 4 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/25490.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/25490/head:pull/25490

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


More information about the net-dev mailing list