Repository navigation
download: never abandon the last progressing peer on min_speed - #12
Merged
mindrunner merged 1 commit intoNov 5, 2026
Merged
Conversation
Owner
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

On wt-2 every peer delivered 70 to 120 MB/s against a 250 MB/s floor (238.4 MiB/s). Every plan was aborted after 60s, so nothing ever landed. richat-sao-rpc-0 hit the same floor at 75 MiB/s (rpc-infrastructure #1048).
policy::plan_attempt, pure and unit tested). The last candidate runs unenforced, so a slow but progressing download is never abandoned.min_speed = 0. Chunk reads now poll the abort flag every second, so a stalled connection is actually dropped. Before, the flag was only checked when a chunk arrived.SlowTransfererror. aria2c exit code 5 (too slow) maps to it too.Docs: README, CONTEXT.md, examples/config.toml.
Tests: three
plan_attemptunit tests and a stalled-stream abort test. fmt, clippy and test pass locally.