-
-
Notifications
You must be signed in to change notification settings - Fork 999
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
Relax metadata size check for magnet links & I2PSnark peers #36
Comments
hm.. using the metadata-extension with such peer seems suspicious. How would libtorrent know how many metadata blocks to request if it doesn't know the size of the metadata? which scenarios work exactly when you remove that check? |
It seems redundant to send overall metadata size along with a piece. We do know the total metadata size from extension handshake. |
Reply by zzz (I2PSnark maintainer) from our corresponding ticket:
(Awaiting confirmation that Vuze agrees I2PSnark is broken, and that Vuze can handle it if I2PSnark's behavior is changed.)
|
There are still clients out there with such behavior and probably they'll stay around for a long while. I'm not sure what are the odds of waiting for a natural migration. It is not that many i2p peers anyway. There is a very good chance that those in a particular swarm would use an outdated version. I'd still remove that return statement while adding a todo entry like "reintroduce me in mid. 2016" :-) |
is there any way to identify the version(s) of snark that has this behavior and just disable the check for those clients perhaps? There are a few other examples of hard coded behavior to deal with BitComet for instance. if I2PSnark sends a client name and version for instance, that could be used. Or if it sets the peer_id prefix. |
qutoing i2p's lead developer:
|
Maybe we should close the ticket because I guess we don't want to put to much effort into the support of over 1 year old clients. |
disallow mixing v1 and v2 torrents when building a file_storage
It seems that I2PSnark is broken ❔ as it sends total_size equal to size and not to overall metadata size declared in extended handshake.
Ditching corresponding check makes everything work.
I don't know if there are other clients with this behavior.
The text was updated successfully, but these errors were encountered: