Skip to content

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

Merged
bors merged 1 commit into
rust-lang:rust-1.31.0from
alexcrichton:beta-net
Nov 10, 2018
Merged

[beta] Timeout batch downloads, not each download#6297
bors merged 1 commit into
rust-lang:rust-1.31.0from
alexcrichton:beta-net

Conversation

@alexcrichton

Copy link
Copy Markdown
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
Copy Markdown
Member Author

@bors: r+

@bors

bors commented Nov 9, 2018

Copy link
Copy Markdown
Contributor

📌 Commit 9d41017 has been approved by alexcrichton

@bors

bors commented Nov 9, 2018

Copy link
Copy Markdown
Contributor

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

@bors

bors commented Nov 9, 2018

Copy link
Copy Markdown
Contributor

💥 Test timed out

@alexcrichton

Copy link
Copy Markdown
Member Author

@bors: retry

@bors

bors commented Nov 10, 2018

Copy link
Copy Markdown
Contributor

⌛ 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

bors commented Nov 10, 2018

Copy link
Copy Markdown
Contributor

☀️ 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