Skip to content

馃悰 fix(standalone): retry index fetch, resume dropped downloads - #2001

Merged
gaborbernat merged 1 commit into
pypa:mainfrom
gaborbernat:download-retries
Aug 12, 2026
Merged

gaborbernat merged 1 commit into
pypa:mainfrom
gaborbernat:download-retries

Conversation

@gaborbernat

@gaborbernat gaborbernat commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

Transient GitHub errors abort standalone-Python fetches: the release-index urlopen has no retry, and the archive retry covers only opening the connection, so RemoteDisconnected/IncompleteRead mid-body escapes it (run 31618954128). Both fetches now retry with exponential backoff on connection errors and 429/5xx; 4xx raises immediately. A dropped archive download resumes from the bytes already on disk with a Range request, falling back to a clean restart when the server ignores it.

@gaborbernat gaborbernat added the bug Something isn't working label Aug 12, 2026
@gaborbernat gaborbernat changed the title 馃悰 fix(standalone): retry index fetch and mid-download drops 馃悰 fix(standalone): retry index fetch, resume dropped downloads Aug 12, 2026
@gaborbernat
gaborbernat merged commit 442568f into pypa:main Aug 12, 2026
17 checks passed
@gaborbernat
gaborbernat deleted the download-retries branch October 3, 2026 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant