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 upSeed and download file on the local machine sometimes successfully #946
Labels
Comments
This comment has been minimized.
This comment has been minimized.
|
It looks like you are creating a separate webtorrent client instance for each torrent. That will probably overwhelm your network with DHT traffic. Try using a single webtorrent client across your whole webtorrent process. |
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi, I am using the Webtorrent API to seed and download files locally. When there are many files being seeded locally and each file is being seeded by one seed(that's why only 0 in torrentSeeds[0] below), some downloaders could block at 'torrent.on('done', callback). In other words, after those downloader calls addPeer(), torrent will not be done forever and there is not any error message. I am really confused why some wait forever, while some can download successfully. Here is the code:
Seeder:
Downloader:
Thanks.