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 up[CLOSED] Retry logic for missing requested pieces #101
Comments
This comment has been minimized.
This comment has been minimized.
|
Yeah, I think we just need to add a handler on the 'timeout' wire event and/or come up with a more aggressive strategy for requesting pieces. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Yep; this should be fixed now. |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Friday May 09, 2014 at 22:54 GMT
Originally opened as https://github.com/feross/bittorrent-client/issues/5
Messing around with small torrents, about 90% of the time the torrents download successfully and the client cleanly exits, but the rest of the time a piece or a few pieces are missing that were requested but never resolved (maybe because of the external server; maybe because of something we're doing that's only affecting a small percent of BT clients). When in this stalled state, the client keeps connecting to new peers, but no progress is ever made on finishing the torrent.
Here's an example log showing the bug in action. Pieces 3 and 5 are both requested but never responded to. Methinks the client/swarm needs better retry logic for missing pieces.