anacrolix / torrent

Full-featured BitTorrent client package and utilities
Mozilla Public License 2.0
5.39k stars 615 forks source link

Peer Selection Algorithm #873

Closed whr819987540 closed 9 months ago

whr819987540 commented 9 months ago

Let's assume such a scenario: Peer A could get piece P from multiple peers. Which peer would A select at last? And what strategy is this selection based on? Does this project provide any detailed algorithm? If it doesn't and I would like to provide such peer selection algorithms, where should I put my code in this project?