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

Daniel Fuchs dfuchs at openjdk.org
Thu Jun 12 17:30:29 UTC 2025


On Thu, 12 Jun 2025 15:33:50 GMT, p-nima <duke at openjdk.org> wrote:

>> 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 update java docs to clarify authentication retry behaviour

Changes requested by dfuchs (Reviewer).

src/java.net.http/share/classes/jdk/internal/net/http/AuthenticationFilter.java line 2:

> 1: /*
> 2:  * Copyright (c) 2015, 2025, Oracle and/or its affiliates. All rights reserved.

This change should be reverted too now since we dind't change anything in this file...

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

PR Review: https://git.openjdk.org/jdk/pull/25490#pullrequestreview-2922054640
PR Review Comment: https://git.openjdk.org/jdk/pull/25490#discussion_r2143276204


More information about the net-dev mailing list