Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix retrying crate downloads for network errors #3348

Merged
merged 1 commit into from
Dec 2, 2016

Conversation

alexcrichton
Copy link
Member

Previously the with_retry loop was a little too tight where stale state about
the sha256 and data was kept out of the loop. Instead we need to reinitialize
these on each iteration of the loop to ensure that we correctly retry by
forgetting the data we previously downloaded for an aborted download attempt.

@rust-highfive
Copy link

r? @brson

(rust_highfive has picked a reviewer for you, use r? to override)

Previously the `with_retry` loop was a little too tight where stale state about
the sha256 and data was kept out of the loop. Instead we need to reinitialize
these on each iteration of the loop to ensure that we correctly retry by
forgetting the data we previously downloaded for an aborted download attempt.
@brson
Copy link
Contributor

brson commented Dec 1, 2016

@bors r+

@bors
Copy link
Contributor

bors commented Dec 1, 2016

📌 Commit df30da0 has been approved by brson

@bors
Copy link
Contributor

bors commented Dec 2, 2016

⌛ Testing commit df30da0 with merge 71a6cc9...

bors added a commit that referenced this pull request Dec 2, 2016
Fix retrying crate downloads for network errors

Previously the `with_retry` loop was a little too tight where stale state about
the sha256 and data was kept out of the loop. Instead we need to reinitialize
these on each iteration of the loop to ensure that we correctly retry by
forgetting the data we previously downloaded for an aborted download attempt.
@bors
Copy link
Contributor

bors commented Dec 2, 2016

☀️ Test successful - status-appveyor, status-travis
Approved by: brson
Pushing 71a6cc9 to master...

@bors bors merged commit df30da0 into rust-lang:master Dec 2, 2016
@alexcrichton alexcrichton deleted the fix-checksums branch December 2, 2016 17:42
@ehuss ehuss added this to the 1.15.0 milestone Feb 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants