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

Ask how to achieve concurrent download #1283

Closed
kslr opened this issue Feb 2, 2018 · 3 comments
Closed

Ask how to achieve concurrent download #1283

kslr opened this issue Feb 2, 2018 · 3 comments

Comments

@kslr
Copy link

@kslr kslr commented Feb 2, 2018

What version of WebTorrent?
0.98.21
What operating system and Node.js version?
v6.12.3
What browser and version? (if using WebTorrent in the browser)
nodejs
What did you expect to happen?
Multiple seeds are downloaded at the same time
What actually happened?

const client = new WebTorrent();
client.add(magnet);

client.on('torrent', (torrent) => {
  console.log('Client is downloading:', torrent.infoHash);
});
12|app     | Client is downloading: 27e93d46e7cd92a943d9b51960fe54ee9a78f537
12|app     | Client is downloading: 8af9179a315187cddafb661d82906093b111e529
12|app     | Client is downloading: accf88cd77f07618d5d96942def538107947e72d
12|app     | Client is downloading: b708c536584b1b33e8751f8124e20ed12164c2e8
12|app     | Client is downloading: 38f43e4967281db50083760adb034224a78a4538
12|app     | Client is downloading: 613b92b3db4d0dc8e422416bd26b8d0269cb59d1

I added 2000 seed tests.
But orderly download, Can not reflect async.

@kslr

This comment has been minimized.

Copy link
Author

@kslr kslr commented Feb 2, 2018

After many tests, it is not sequential download.
Is there any way to improve concurrency? Such as configuration.

1g port / 16g ram / ssd

@DiegoRBaquero

This comment has been minimized.

Copy link
Member

@DiegoRBaquero DiegoRBaquero commented Feb 2, 2018

Use disk store. By default all torrents live in memory. And use Node.js v8

@kslr

This comment has been minimized.

Copy link
Author

@kslr kslr commented Feb 3, 2018

Upgraded to v8, but there are always only a few tasks to download

@lock lock bot locked as resolved and limited conversation to collaborators May 25, 2018
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
2 participants
You can’t perform that action at this time.