Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign updownloader fails to find seeder #194
Comments
This comment has been minimized.
This comment has been minimized.
|
some more info, in case it helps changed the debug line 526 in bittorrent-swarm to print the error:
seems they find each other but can't connect (see log below, that's my current public IP). I turned off my firewall, but got the same results. Will play around a bit more and report if I find the issue. Can't wait to see if it's something hilarious. bittorrent-swarm failed to connect 71.251.213.2:58262 +2ms { [Error: connect ECONNREFUSED] |
This comment has been minimized.
This comment has been minimized.
|
I guess it comes down to #195 |
This comment has been minimized.
This comment has been minimized.
|
Hey @mvayngrib, sorry for not replying sooner. This is a really simple issue. This line is the culprit: client2.download(torrent1.infoHash, function(torrent2) {In general, you don't want to download with just an infoHash because then you have to rely only on the DHT, which is slower than using trackers. Also, announcing to the DHT takes some time, and you're trying to search it before the message has even gotten out. You could make your example work by switching to using Or, instead you can wait for the |
This comment has been minimized.
This comment has been minimized.
|
ah, i see, thanks |
This comment has been minimized.
This comment has been minimized.
|
@feross Did you test your solution? It does not work for me. |
Hi Feross,
I'm new at WebTorrent, so this may be a stupid question. I wrote this simple test to see if a seeder and a downloader connect. They don't, which leads me to think I'm using the library incorrectly. Can you give me a hint?