-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Add support for retrying connection failures #3514
Description
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