You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, I saw you switched peer-discovery.js with this module in torrent-stream.
I had a fork of torrent-stream that used a method for a not-so-common occurrence in which a poorly seeded torrent gets all the seeds blacklisted by peer-wire-swarm for various reasons until none are left.
The only solution I found for this was to create a method that forces reconnecting to all known peers and also restarts the peer discovery in peer-discovery.js. Restarting peer discovery was important too as from various tests it proved that peer-discovery.js stopped searching for new peers for some reason, and in poorly seeded torrents and new torrents (in which seeds may be few but their numbers increase fast), rediscovery of peers is a must.
I'm curious if restarting peer discovery would still be needed with torrent-discovery or not.
The text was updated successfully, but these errors were encountered:
If it was required before, I would guess that it's still required now. The code in torrent-discovery is largely the same as what was in peer-discovery.js.
This sounds like functionality that should be integrated into torrent-stream and webtorrent directly. If there are not enough peers, try contacting the tracker and DHT once more. Can you open a new issue on the respective issue trackers?
I can't be sure if webtorrenthas the same issues as I haven't used it yet and proving this requires finding the right torrent and a lot of testing. But for torrent-stream there are PRs gathering dust for this for a long time already:
Hey, I saw you switched
peer-discovery.js
with this module intorrent-stream
.I had a fork of
torrent-stream
that used a method for a not-so-common occurrence in which a poorly seeded torrent gets all the seeds blacklisted bypeer-wire-swarm
for various reasons until none are left.The only solution I found for this was to create a method that forces reconnecting to all known peers and also restarts the peer discovery in
peer-discovery.js
. Restarting peer discovery was important too as from various tests it proved thatpeer-discovery.js
stopped searching for new peers for some reason, and in poorly seeded torrents and new torrents (in which seeds may be few but their numbers increase fast), rediscovery of peers is a must.I'm curious if restarting peer discovery would still be needed with
torrent-discovery
or not.The text was updated successfully, but these errors were encountered: