32 ms·
> "They’ll send us an unchoke message to let us know that we can begin asking them for data." What is the purpose of that choke part when connecting to remote
by merpkz 4y ago
> "They’ll send us an unchoke message to let us know that we can begin asking them for data."
What is the purpose of that choke part when connecting to remote peers? Is that some kind of flood protection?
- nprateem 4y agoYou can normally control the number of peers you share with, so I guess if 50 peers are connected but you only want to share with 10, then when one completes you'd send an unchoke message to another peer to tell it you'll share with them. Meanwhile the other 39 will stay choked. I assume that's what's going on here.
- merpkz 4y agoThat makes sense, thanks. It just occurred to me how interesting of a challenge it is to write a bittorrent client. There are so much issues to work on, like how to effectively retrieve chunks of files and in meantime balance upload speed equally to remote clients of file parts you actually have already.