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

Add a torrent from-link subcommand #511

Merged
merged 1 commit into from
Aug 2, 2023

Conversation

atomgardner
Copy link
Collaborator

@atomgardner atomgardner commented Dec 2, 2022

This is a first cut of the peer protocol and from-link subcommand.

Would love if you could give it a quick review. It obviously needs more tests.

This has tests now. I have local patch that adds a --thread-per-peer flag, and it speeds things up like 100 fold, but it is extremely hacky.

The command now uses rayon, and is acceptably quick. It'd be quicker if it pipelined peers from the tracker.

src/error.rs Outdated Show resolved Hide resolved
src/peer/client.rs Outdated Show resolved Hide resolved
src/error.rs Outdated Show resolved Hide resolved
@atomgardner atomgardner force-pushed the peer-protocol branch 3 times, most recently from ee0192a to b73f9a6 Compare August 1, 2023 01:14
@atomgardner
Copy link
Collaborator Author

atomgardner commented Aug 1, 2023

One more thing to do before merging:

  • tidy up the peer module tree

It is now possible to create a torrent file from a magnet link. The
search is performed with minimal concurrency, and so may take a while to
complete.

type: added
fixes: casey#255
@atomgardner atomgardner merged commit e8469f8 into casey:master Aug 2, 2023
3 checks passed
@atomgardner atomgardner deleted the peer-protocol branch August 2, 2023 07:15
casey pushed a commit that referenced this pull request Aug 20, 2023
It is now possible to create a torrent file from a magnet link. The
search is performed with minimal concurrency, and so may take a while to
complete.

type: added
- #255
casey pushed a commit that referenced this pull request Aug 20, 2023
It is now possible to create a torrent file from a magnet link. The
search is performed with minimal concurrency, and so may take a while to
complete.

type: added
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

Successfully merging this pull request may close these issues.

1 participant