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 upA new peer takes too long to connect to other peers. #612
Comments
This comment has been minimized.
This comment has been minimized.
|
@parth1729 What exactly are you trying to do? It seems like you're sending back the created You might consider waiting until the client has completed fully seeding the file (creating the Try this: var file = fs.createWriteStream('C:/' + filename)
console.log(filename)
var request = needle.get(UrlPath).pipe(file)
var client = new WebTorrent()
file.on('finish', function () {
file.close(function () {
client.seed('C:/' + filename, function (torrent) {
fs.writeFile(config.torrentFilePath, torrent.torrentFile)
res.send(torrent.torrentFile)
})
})
})I eliminated the unnecessary call to |
This comment has been minimized.
This comment has been minimized.
|
@feross Tried the approach you mentioned, but still no luck. It functions same as before. |
This comment has been minimized.
This comment has been minimized.
|
Ditto for this problem. I find that downloading clients can't connect to any seeds/peers for 10~20 minutes, generally after the second or third announce. It behaves the same way with subsequent downloads from additional clients - always after a few announces regardless of how long the client has been seeding. Any ideas about what's going on here? |
This comment has been minimized.
This comment has been minimized.
|
This thread has been automatically locked because it has not had recent activity. To discuss futher, please open a new issue. |
Hi, I am using the bittorrent tracker and Webtorrent both in my application. I am using Webtorrent just to seed a file using "seed" method. Here is the code snippet:
A new peer connects to the other peers after around 10-15 minutes, maybe in the second announce interval. Earlier I was using just the bittorrent tracker and I was seeding the file manually using a torrent client. This approach did not take much time to discover a newly added peer.But, after seeding the file using Webtorrent's "seed" method, I observed this behaviour. I don't know if it has something to do with the client(Utorrent) that I am using to download the file. Could somebody please help me out with this?