Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How keep seeding after torrent downloaded #1424

Closed
MaximNordWhale opened this issue Jun 25, 2018 · 3 comments
Closed

How keep seeding after torrent downloaded #1424

MaximNordWhale opened this issue Jun 25, 2018 · 3 comments
Labels

Comments

@MaximNordWhale
Copy link

@MaximNordWhale MaximNordWhale commented Jun 25, 2018

What version of WebTorrent?
webtorrent@0.98.21
What operating system and Node.js version?
Mac Os, Windows 10, Ubuntu 16
Node v8.9.4
What browser and version? (if using WebTorrent in the browser)
electron@1.8.6
What did you expect to happen?
Situation - I can't seed files from not torrent owner, for example I run my app on 3 computers
PC 1 - owner,
PC 2 - downloader
PC 3 - downloader

I run client.seed method on PC1

I added torrent to download list on PC2 (by run client.add(torrent, {path: torrentsList[i].path}, (torrent) => {
// ////console.log("I'm here", torrent);
callback("addTorrentToTorrentList", {}, torrent, i)
eventsTorrent(torrent, callback, i);
});

I started download files - all ok, all downloaded on PC2.

Then I run download on another computer PC3 - I got information what I downloaded from 2 seeders - from torrent owner and from PC2
But when I turn off PC1 - torrent will download from PC2 (not all but some data are downloaded)
It works if PC2 doesn't download all data.

What actually happened?
When PC2 downloaded all data - I can't seed from PC2 to PC3, so if pc1 will be turn off I can't download content

How I can keep seeding after all data downloaded?

@SilentBot1

This comment has been minimized.

Copy link
Member

@SilentBot1 SilentBot1 commented Jul 17, 2018

Hey @MaximNordWhale,

By default all WebTorrent clients keep seeding unless explicitly removed, so I don't understand why you are facing this issue. Without further information regarding your setup, specifically a more in depth code example, it would be hard to help you.

When PC2 downloaded all data - I can't seed from PC2 to PC3.

In this scenario, are you closing all clients between the tests or does PC 2 stay on through PC 1 disconnecting from the swarm and PC 3 joining?

I Hope I can help you with this issue.

@DiegoRBaquero

This comment has been minimized.

Copy link
Member

@DiegoRBaquero DiegoRBaquero commented Aug 24, 2018

It should work, are you on same network (i.e. TCP or WebRTC) ?

Are the network conditions the same or there's a firewall?

@stale

This comment has been minimized.

Copy link

@stale stale bot commented Nov 22, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the stale label Nov 22, 2018
@stale stale bot closed this Nov 29, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Feb 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.