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

Webtorrent how download file from multiple peers simultaneously #182

Closed
liujingchao opened this issue Nov 13, 2014 · 4 comments
Closed

Webtorrent how download file from multiple peers simultaneously #182

liujingchao opened this issue Nov 13, 2014 · 4 comments

Comments

@liujingchao
Copy link

@liujingchao liujingchao commented Nov 13, 2014

@feross Thank you awesome project. I am using it. I have a question about how can I download file from multiple peers simultaneously use Webtorrent. In my testing it seem one peer always get data just from only one another peer even thought there are many peers are seeding same file. For example peer A is seeding a file peer B already downloaded it from peer A and keep opening the webpage. Now there come a peer C also want download this file . In my understanding peer C could get different part's data of this file from peer A and peer B simultaneously. But in my testing it always get data only from one peer.It seem the latest one announce to tracker server(in this example it is peer B). Hope you can understand what I mean since I am bad at English.

@chrisaljoudi

This comment has been minimized.

Copy link
Contributor

@chrisaljoudi chrisaljoudi commented Nov 17, 2014

In my testing it seem one peer always get data just from only one another peer even thought there are many peers are seeding same file.

That should not be the case. I've been unable to reproduce this in testing.

If you can help us reproduce the issue, that'd be great. Otherwise, it seems like it's probably more of an issue with you network.

@liujingchao

This comment has been minimized.

Copy link
Author

@liujingchao liujingchao commented Nov 18, 2014

Thank you reply. I will do more research on this. So far I found the peer C just receive the handshake message from B. But both peer A and B had send it to C(All the webrtc offer and answer message is correct i think the data channel is create correctly between A,B and C). I am not find the reason yet . Maybe it is the network issue.

@liujingchao

This comment has been minimized.

Copy link
Author

@liujingchao liujingchao commented Nov 18, 2014

I had find the problem I'm almost certain that there is a bug in the module webtorrent-tracker can cause this issue. I had fix it and made a pull request. I'm not sure the changes are appropriate. We can discuss it in here https://github.com/feross/webtorrent-tracker/pull/2

@feross feross closed this Nov 27, 2014
@feross

This comment has been minimized.

Copy link
Member

@feross feross commented Nov 27, 2014

You're right – this was a bug in webtorrent-tracker. I fixed it there and published webtorrent-tracker@0.5.0. If you update webtorrent you should get the fix.

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