xcapdevila opened a new pull request, #3326:
URL: https://github.com/apache/httpcomponents-client/pull/3326

   Backport of #830 (`f069c136445103bb0691b205199bdfa703e6160b`, 
[HTTPCLIENT-2421](https://issues.apache.org/jira/browse/HTTPCLIENT-2421)) to 
`5.6.x`.  
   Fixes #3325 on `5.6.x`.
   
   ### Why backport to `5.6.x`
   - Checking the effective `Retry-After` interval against 
`RequestConfig#responseTimeout` was the existing `5.1.0`–`5.5.0` behavior 
introduced in [HTTPCLIENT-2141 / 
#3019](https://github.com/apache/httpcomponents-client/issues/3019).
   - During the refactoring in #672 (`aab688bb4a` / `e02c106d54`), 
`nextInterval.compareTo(responseTimeout)` in `HttpRequestRetryExec` was 
inadvertently replaced with `defaultRetryInterval.compareTo(responseTimeout)` 
in `DefaultHttpRequestRetryStrategy`, causing large `Retry-After` headers 
(e.g., `Retry-After: 60` on `HTTP 429` from CDNs/WAFs) to sleep calling threads 
well past the configured `responseTimeout`.
   - Clean `git cherry-pick -x f069c136445103bb0691b205199bdfa703e6160b` with 
unit test `testRetryRequestWithResponseTimeoutAndRetryAfterHeader` passing on 
`5.6.x`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to