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 upHow long does it take to retry when there is no seeders found? #1394
Comments
This comment has been minimized.
This comment has been minimized.
WebTorrent treats the web seed as just another peer, so it should start to make HTTP requests to the webseed URL at the same time as connecting to other peers.
It sounds like you're making the server become an actual torrent peer, not a webseed peer. A webseed peer means you're just making the files available over HTTP, like hosting any other files on a website. If you're only making your server become a seeding peer once the client asks you to, it might take a minute before the client retries since the client only searches for peers on a defined interval. It queries the DHT and trackers every so often (don't remember how much off the top of my head). However, if you know when the server has completed seeding, then you can tell the client (maybe using a WebSocket) and the client can call The correct way to do this, IMO, is webseeds. Host your files over HTTP and make sure to include both an Example of a proper magnet link: |
We set up a designated server to seed our files (more than 10000). This server app is designed to seeding files according to HTTP request.
For example, when a user want certain file, the web app send a http request to the server and then start the download process. On the server side, when it gets seed request, it will find the right file and start to seed it.
The problem is, it always takes 40~60 seconds before the downloading starts. We have tried solutions such as "set up our own tracker server" and "using webseed". The problem still exists.
So, we wondered: How long does it take to retry when there is no seeders found?
Since when the user side starts to try downloading the first time, the file hasn't been really seeded on the server side. It takes 5~10 seconds for server to really start seeding the file. So we thought this might be the problem, if the retry interval is big.
Please help, are we right? If this is the case, how can we make it small?
Thanks.