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

Torrent from magnet not adding webseeds #563

Closed
DiegoRBaquero opened this issue Jan 8, 2016 · 13 comments
Closed

Torrent from magnet not adding webseeds #563

DiegoRBaquero opened this issue Jan 8, 2016 · 13 comments

Comments

@DiegoRBaquero
Copy link
Member

@DiegoRBaquero DiegoRBaquero commented Jan 8, 2016

Tested to see if it would work with magnet:?xt=urn:btih:4d1729d2cde07ff84d4d50f121f005deedc8db74&dn=gimp-2.8.16-x86_64.dmg&tr=udp%3A%2F%2Fexodus.desync.com%3A6969&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969&tr=udp%3A%2F%2Ftracker.internetwarriors.net%3A1337&tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80&tr=wss%3A%2F%2Ftracker.btorrent.xyz&tr=wss%3A%2F%2Ftracker.btorrent.xyz&tr=wss%3A%2F%2Ftracker.webtorrent.io&tr=wss%3A%2F%2Ftracker.webtorrent.io&tr=wss%3A%2F%2Ftracker.webtorrent.io&tr=wss%3A%2F%2Ftracker.webtorrent.io&ws=https%3A%2F%2Fwebseed.btorrent.xyz%2Fgimp-2.8.16-x86_64.dmg

Webseed doesn't get added.

Also, generated magnet URI repeats wss trackers.

Will investigate and PR later.

@feross

This comment has been minimized.

Copy link
Member

@feross feross commented Jan 9, 2016

Is this a new issue? Or has this never worked for you before?

@feross

This comment has been minimized.

Copy link
Member

@feross feross commented Jan 9, 2016

If there are no peers, this is actually expected behavior, I believe. With no peers, there's no way for WebTorrent to get the torrent metadata. Without the torrent metadata, it can't verify that the right file data is being downloaded.

You can test this out in Transmission or another torrent client and see that the download never starts there either.

If there's a chance of no seeders, I think going with a .torrent file is the safest bet.

@feross feross closed this Jan 9, 2016
@feross

This comment has been minimized.

Copy link
Member

@feross feross commented Jan 9, 2016

Can you open a new issue for the repeated trackers issue and share some code that reproduces it? Or just send a PR? 😉 👍

@DiegoRBaquero

This comment has been minimized.

Copy link
Member Author

@DiegoRBaquero DiegoRBaquero commented Jan 9, 2016

I feel so stupid. I forgot about that, and the worst Is that I knew that.

On Jan 8, 2016, at 9:26 PM, Feross Aboukhadijeh notifications@github.com wrote:

If there are no peers, this is actually expected behavior, I believe. With no peers, there's no way for WebTorrent to get the torrent metadata. Without the torrent metadata, it can't verify that the right file data is being downloaded.

You can test this out in Transmission or another torrent client and see that the download never starts there either.

If there's a chance of no seeders, I think going with a .torrent file is the safest bet.


Reply to this email directly or view it on GitHub.

@feross

This comment has been minimized.

Copy link
Member

@feross feross commented Jan 9, 2016

Haha, it's fine 👍

@feross

This comment has been minimized.

Copy link
Member

@feross feross commented Jan 9, 2016

I can't reproduce this issue. I even added a test: d573c1f

Can you send a PR and add a failing test to that file?

@DiegoRBaquero

This comment has been minimized.

Copy link
Member Author

@DiegoRBaquero DiegoRBaquero commented Jan 10, 2016

To exactly reproduce this:

Go to https://btorrent.xyz/
Add https://webseed.btorrent.xyz/gimp-2.8.16-x86_64.dmg.torrent to the hash/magnet and click download button. (It will download the .torrent)

The magnet uri in share will be:

´´´´
magnet:?xt=urn:btih:4d1729d2cde07ff84d4d50f121f005deedc8db74&dn=gimp-2.8.16-x86_64.dmg&tr=udp%3A%2F%2Fexodus.desync.com%3A6969&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969&tr=udp%3A%2F%2Ftracker.internetwarriors.net%3A1337&tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80&tr=wss%3A%2F%2Ftracker.btorrent.xyz&tr=wss%3A%2F%2Ftracker.btorrent.xyz&tr=wss%3A%2F%2Ftracker.webtorrent.io&tr=wss%3A%2F%2Ftracker.webtorrent.io&tr=wss%3A%2F%2Ftracker.webtorrent.io&tr=wss%3A%2F%2Ftracker.webtorrent.io&ws=https%3A%2F%2Fwebseed.btorrent.xyz%2Fgimp-2.8.16-x86_64.dmg
´´´´

2 times BTorrent's tracker and 3 times WebTorrent's

@feross

This comment has been minimized.

Copy link
Member

@feross feross commented Jan 12, 2016

@DiegoRBaquero This doesn't happen on https://instant.io. I think you must be doing something different on your site. Lmk if you can pinpoint what you're doing differently.

@DiegoRBaquero

This comment has been minimized.

Copy link
Member Author

@DiegoRBaquero DiegoRBaquero commented Jan 12, 2016

@feross Are you talking about the repeated trackers or the webseed adding? (Taking that the metadata is available from webrtc peers)

@feross

This comment has been minimized.

Copy link
Member

@feross feross commented Jan 13, 2016

@DiegoRBaquero I'm talking about the repeated trackers issue. Doesn't happen on instant.io.

@DiegoRBaquero

This comment has been minimized.

Copy link
Member Author

@DiegoRBaquero DiegoRBaquero commented Jan 13, 2016

@feross Yes, for the opts I add manually both wss trackers in the client.add

So the problem is that, when specifying trackers manually for a http(s) torrent file, repeated trackers will be allowed.

See torrent.js#L238

This isn't working then: torrent.js#L258 because when encoded to a magnet uri, they should be unique, see torrent.js#L263

@feross

This comment has been minimized.

Copy link
Member

@feross feross commented Jan 13, 2016

Moving to issue: #571

@lock

This comment has been minimized.

Copy link

@lock lock bot commented May 4, 2018

This thread has been automatically locked because it has not had recent activity. To discuss futher, please open a new issue.

@lock lock bot locked as resolved and limited conversation to collaborators May 4, 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.