Skip to content

Add support for retrying connection failures #3514

@yeswalrus

Description

@yeswalrus

Tested with uv 0.1.41

While looking for workarounds to #3512, I experimented with using --no-cache.
In our case, this actually increased the failure rate, as we use a local artifactory based pypi mirror which appears rate limited.
Using the same bash script as in the linked issue but with --no-cache added, and with significantly more packages, we began observing instances where the artifactory server would be overwhelmed and UV would fail with connection reset by peer.

Under pip, this was also reproducible though it required a larger number of simultaneous processes (~80), but rather that failing outright PIP would retry connection failures. Please add (ideally configurable) support for retrying connection failures when downloading or querying indexes

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinghelp wantedContribution especially encouragednetworkNetwork connectivity e.g. proxies, DNS, and SSL

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions