Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign uptorrent: cancelBlocks on wire 'close' #253
Conversation
This comment has been minimized.
This comment has been minimized.
|
@astro When a wire emits This will be handled in Unless I'm mistaken, this PR shouldn't be necessary! Do you agree? |
This comment has been minimized.
This comment has been minimized.
Timeouts are already handled by |
This comment has been minimized.
This comment has been minimized.
|
There's even a test verifying that timeouts work as expected here: https://github.com/feross/bittorrent-protocol/blob/master/test/timeout.js |
This comment has been minimized.
This comment has been minimized.
|
you're right. |
astro commentedJan 22, 2015
We may need to add even more logic: malicious peers may hold back responses indefinitely. What do you think about request timeouts?
(Albeit not for malicious reasons, I once got no response from certain peers when choosing a wrong request size (> 16 KB)).