[Bittorent] [magnet_link] [Receive extension handshake #jk6] Getting timeout when receive message length

I passed Send extension handshake #xi4.
But with #jk6 stage, when trying to receive message length recv(sock, buffer, 4, 0) I’m getting timeout sometimes then failed a test case, sometimes it just works and I can receive both bitfield_message and extension_handshake_message successfully.

Do I need to do something in between, e.g sent interested message?

I made the same mistake as this guy, mine was over bytes read in peer handshake response.

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.