Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Endgame mode #148

Open
arcusfelis opened this issue Aug 4, 2013 · 1 comment
Open

Endgame mode #148

arcusfelis opened this issue Aug 4, 2013 · 1 comment
Labels

Comments

@arcusfelis
Copy link
Contributor

There is a bug with it. The torrent stays at 98.0%-99%. Restart helps, but before the next endgame (i.e. if first stop was on 98%, next will be somewhere near 99%).

It is very hard to test due to the short period of the endgame. Common tests do not help (maybe because one remote peer is not enough for this bug to occur).
Maybe it caused by a race condition. The data is not not written (i.e. different hashes of the pieces on the disk and in the torrent-file) and the endgame assignor do not assign new chunks (returns all assigned), when it is requested for peer_control.

Also, eunit tests in the module etorrent_endgame do not fails.
I added few functions for logging and for live debugging into etorrent_endgame and into etorrent_progress files (the code is already merged).

@jlouis
Copy link
Owner

jlouis commented Aug 9, 2013

I'll try to read the code and figure out what is happening in it later today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants