rakshasa / libtorrent

libTorrent BitTorrent library
http://rtorrent.net/downloads/
GNU General Public License v2.0
883 stars 210 forks source link

Getting lots of "message:7 network error" on handshake_manager however network is fine #226

Open seansasha opened 2 years ago

seansasha commented 2 years ago

Running libtorrent 0.13.8 with rtorrent 0.9.8 - noticed that rTorrent on server was unable to connect to a torrent client running on my local computer and decided to investigate the logs.

More strangely, while some of incoming connection attempts end up with network error, some others connect successfully "Handshake success". No pattern could be spotted between successful and failing ones.

Collected a pcap of both sides (my local machine and server) but could not spot anything unusual. After the Handshake, which is received without issues, server sends a FIN packet in order to close the connection.

Changing the network connection (used tethered 4G) made it to work - but again, connection between the two machines is solid.

Any guidance on how to proceed? Any way of increasing logging for handshake_manager beyond just a "network error"?

Thanks!