I’m stuck on Stage #ND2.
This is a problem with my connection being reset by peer and then timing out as the tester tries to download a second piece. A number of other posts have discussed this problem, but it appears to have been two primary problems — one with tester, which has been corrected, and one with the GET request URL in which the peer_id part of the URL is static.
I have addressed this static peer_id problem by randomising the peer_id. But I seem always to get stuck with a connection reset when the tester tries to download a second piece.
In my code, I printed out the download piece hash and the known piece hash, showing that the first piece download is successful.
Here are my logs:
Would truly appreciate ideas as to what can be going wrong. I am not even sure which part of the code I ought to share! (Though I should also mention the multiple peer upload/download mechanism is built with epoll.) Thank you.