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

Python bindings: we should remove mappings for http_seeds #6136

Closed
AllSeeingEyeTolledEweSew opened this issue Apr 12, 2021 · 7 comments
Closed

Comments

@AllSeeingEyeTolledEweSew
Copy link
Contributor

atp = lt.add_torrent_params()
atp.ti = ...
atp.http_seeds = ["http://httpseed.com"]
atp.url_seeds = ["http://urlseed.com"]
handle = session.add_torrent(atp)
handle.http_seeds()  # []
handle.url_seeds()  # ["http://urlseed.com"]

Also write_resume_data() doesn't seem to write http_seeds and read_resume_data() doesn't read it.

This doesn't appear to be a python bindings issue, the C++ code just drops the value. I know http_seeds is deprecated, but is it intended to be dropped?

@arvidn
Copy link
Owner

arvidn commented Apr 23, 2021

yes, support for http_seeds (BEP 17) have been removed from master. As far as I know, nobody uses them. support for url seeds is still there (BEP 19).

@arvidn
Copy link
Owner

arvidn commented Apr 23, 2021

mailing list announcement here.

@AllSeeingEyeTolledEweSew
Copy link
Contributor Author

Ahhh, I see

IMO, once a feature is "vestigial" (function exists but has no effect), it can be removed from python bindings altogether. It shouldn't break any python clients until they go to call the function. At that point they'd break anyway if they depend on the effect

@AllSeeingEyeTolledEweSew AllSeeingEyeTolledEweSew changed the title What's up with http_seeds in master? Python bindings: we should remove mappings for http_seeds Apr 25, 2021
@AllSeeingEyeTolledEweSew
Copy link
Contributor Author

(I'm assuming you only kept http_seeds in the C++ code to avoid link errors, which doesn't apply to python)

@stale
Copy link

stale bot commented Jul 24, 2021

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

@stale stale bot added the stale label Jul 24, 2021
@AllSeeingEyeTolledEweSew
Copy link
Contributor Author

unstale

@stale stale bot removed the stale label Jul 24, 2021
@AllSeeingEyeTolledEweSew
Copy link
Contributor Author

Actually, never mind. As I look through it, I can think of a lot of ways an app might touch http_seeds for passthrough purposes, and we'd break them needlessly if we removed it.

We should still deprecate http_seeds though, but that's #5967.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants