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

[beta] Timeout batch downloads, not each download #6297

Merged
merged 1 commit into from
Nov 10, 2018

Conversation

alexcrichton
Copy link
Member

This is a beta backport of #6285

This commit switches the timeout logic implemented in rust-lang#6130 to timeout
an entire batch of downloads instead of each download individually.
Previously if *any* pending download didn't receive data in 30s we would
time out, or if *any* pending download didn't receive 10 bytes in 30s we
would time out. On very slow network connections this is highly likely
to happen as a trickle of incoming bytes may not be spread equally
amongst all connections, and not all connections may actually be active
at any one point in time.

The fix is to instead apply timeout logic for an entire batch of
downloads. Only if zero total data isn't received in the timeout window
do we time out. Or in other words, if any data for any download is
receive we consider it as not being timed out. Similarly any progress on
any download counts as progress towards our speed limit.

Closes rust-lang#6284
@alexcrichton
Copy link
Member Author

@bors: r+

@bors
Copy link
Contributor

bors commented Nov 9, 2018

📌 Commit 9d41017 has been approved by alexcrichton

@bors
Copy link
Contributor

bors commented Nov 9, 2018

⌛ Testing commit 9d41017 with merge 448b3d872d47a22fd0d0bf9035ea6e3b35a34ebc...

@bors
Copy link
Contributor

bors commented Nov 9, 2018

💥 Test timed out

@alexcrichton
Copy link
Member Author

@bors: retry

@bors
Copy link
Contributor

bors commented Nov 10, 2018

⌛ Testing commit 9d41017 with merge 5d96734...

bors added a commit that referenced this pull request Nov 10, 2018
[beta] Timeout batch downloads, not each download

This is a beta backport of #6285
@bors
Copy link
Contributor

bors commented Nov 10, 2018

☀️ Test successful - status-appveyor, status-travis
Approved by: alexcrichton
Pushing 5d96734 to rust-1.31.0...

@bors bors merged commit 9d41017 into rust-lang:rust-1.31.0 Nov 10, 2018
@ehuss ehuss added this to the 1.31.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.

3 participants