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

missing torrent.pause api #543

Closed
thelordofthetimes opened this issue Dec 28, 2015 · 5 comments
Closed

missing torrent.pause api #543

thelordofthetimes opened this issue Dec 28, 2015 · 5 comments

Comments

@thelordofthetimes
Copy link

@thelordofthetimes thelordofthetimes commented Dec 28, 2015

torrent api missing torrent.pause to pause torrent download/upload progress. now, torrent.destroy() remove torrent from client, remove all torrent downloaded file, it so bad to resume download

feross added a commit that referenced this issue Dec 28, 2015
Fix #543
@feross

This comment has been minimized.

Copy link
Member

@feross feross commented Dec 28, 2015

We don't support pausing yet, but this should be easier to support once we have throttling upload/download speed implemented (#163).

Until then, we expose the underlying swarm.pause() and swarm.resume() functionality as:

torrent.pause()
torrent.resume()

This will temporarily stop connecting to new peers. Note that this does not pause new incoming connections, nor does it pause the streams of existing connections or their wires.

@feross feross closed this in #547 Dec 29, 2015
@thelordofthetimes

This comment has been minimized.

Copy link
Author

@thelordofthetimes thelordofthetimes commented Dec 30, 2015

sorry for slow response, I think that we wait until throttling is completed to avoid wasted time. I will find other solution for my issues, thank you

@feross

This comment has been minimized.

Copy link
Member

@feross feross commented Jan 1, 2016

torrent.pause() and torrent.resume() are already implemented. You're free to use them.

@thelordofthetimes

This comment has been minimized.

Copy link
Author

@thelordofthetimes thelordofthetimes commented Jan 2, 2016

yes, I know, I watched #547

@lock

This comment has been minimized.

Copy link

@lock lock bot commented May 5, 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 5, 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.