Skip to content

Commit

Permalink
configuring retry behavior to ignore "retry-after" headers (#13050)
Browse files Browse the repository at this point in the history
* configuring retry behavior to ignore "retry-after" headers

* adding news file

* Update news/13050-ignore-retry-after-header

Co-authored-by: Bianca Henderson <beeankha@gmail.com>

---------

Co-authored-by: Bianca Henderson <beeankha@gmail.com>
  • Loading branch information
travishathaway and beeankha committed Aug 31, 2023
1 parent 74f5e63 commit adcf8ef
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions conda/gateways/connection/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ def __init__(self, auth: AuthBase | tuple[str, str] | None = None):
backoff_factor=context.remote_backoff_factor,
status_forcelist=[413, 429, 500, 503],
raise_on_status=False,
respect_retry_after_header=False,
)
http_adapter = HTTPAdapter(max_retries=retry)
self.mount("http://", http_adapter)
Expand Down
19 changes: 19 additions & 0 deletions news/13050-ignore-retry-after-header
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
### Enhancements

* <news item>

### Bug fixes

* Configure conda to ignore "Retry-After" header to avoid the scenarios when this value is very large and causes conda to hang indefinitely. (#13050)

### Deprecations

* <news item>

### Docs

* <news item>

### Other

* <news item>

0 comments on commit adcf8ef

Please sign in to comment.