asamy/ctorrent

Never attempts outgoing connections to peers

Closed this issue · 3 comments

Although implemented in the library, the binary does not seem to ever try to connect to peers and relies on other peers connecting to it. This presumably means ctorrent won't work in network environments that would block these incoming connections.

Verified by attempting a download using ctorrent from a Vuze seeder with disabled peer sourcing from tracker (but allowed incoming connections) with both the peers on a LAN.

Noticed because I'm having trouble doing this myself with current BitTorrent clients and I was hoping this project would help since most torrent clients are quite a mess to read :)

asamy commented

Ah, my initial conclusion is indeed wrong. From the log file:

connectToPeers(): non-compat Vector-type, exception: boost::bad_any_cast: failed conversion using boost::any_cast

I see where this would connect to peers as expected, if there was no error here.

This is from a torrent using the Vuze internal tracker, which could be my problem.

asamy commented