Skip to content

download: re-land never abandon the last progressing peer on min_speed - #13

Merged
mindrunner merged 1 commit into
mainfrom
cm-restore-min-speed-last-peer
Nov 14, 2026
Merged

mindrunner merged 1 commit into
mainfrom
cm-restore-min-speed-last-peer

Conversation

@mindrunner

@mindrunner mindrunner commented Nov 14, 2026 •

Copy link
Copy Markdown
Owner

Re-lands #12. That PR was merged into the cm-fetch-exit-nonzero-when-behind branch after #11 had already gone into main, so its commit never reached main.

Same change as #12, cherry-picked onto current main with no conflicts:

  • A transfer below min_speed for 60s is aborted and that peer's other plans are skipped for the cycle.
  • The floor only applies while a plan from another usable peer remains, so the last candidate is never abandoned while it still makes progress.
  • A transfer that moves no bytes for 60s is always aborted, even with min_speed = 0.

Tests: cargo test passes (119 unit, 8 download, 2 peer, 8 server), clippy and fmt clean.

Copy link
Copy Markdown
Owner Author

@mindrunner mindrunner changed the title download: never abandon the last progressing peer on min_speed download: re-land never abandon the last progressing peer on min_speed Nov 14, 2026
@mindrunner
mindrunner merged commit d3b4127 into main Nov 14, 2026
5 checks passed
@mindrunner
mindrunner deleted the cm-restore-min-speed-last-peer branch November 19, 2026 10:52
@mindrunner mindrunner mentioned this pull request Nov 19, 2026
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.

1 participant