Skip to content

Optimize P2P connection slot usage during prefetching#519

Open
mrlika wants to merge 1 commit intomainfrom
optimize-p2p-prefetch
Open

Optimize P2P connection slot usage during prefetching#519
mrlika wants to merge 1 commit intomainfrom
optimize-p2p-prefetch

Conversation

@mrlika
Copy link
Copy Markdown
Member

@mrlika mrlika commented Apr 12, 2026

Removed the abort logic from prefetch branch.

Now, when a segment simply falls under isP2PDownloadable (prefetch), it will aggressively load via P2P only if there are open connection slots. If we are at the concurrency limit, it will just leave active, healthy downloads alone to maximize bandwidth and wait until they gracefully complete and free up the slots organically.

This should remove the artificial churn in connection slots and improve pure throughput during prefetching.

@mrlika mrlika requested a review from DimaDemchenko April 12, 2026 08:34
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