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

Prevent downloading to disk #1562

Closed
waseemshahwan opened this issue Dec 30, 2018 · 2 comments
Closed

Prevent downloading to disk #1562

waseemshahwan opened this issue Dec 30, 2018 · 2 comments
Labels

Comments

@waseemshahwan
Copy link

@waseemshahwan waseemshahwan commented Dec 30, 2018

Is there any possibility to retrieve torrent data strictly through .createReadStream({ start, end }); ? This way it is high bandwidth and low disk usage? I cannot find functionality to suppress the library from writing to /tmp (or any other path I specify). I was thinking of mounting a path to memory (linux only) but that would be far fetched.

Any ideas?

@KayleePop

This comment has been minimized.

Copy link
Contributor

@KayleePop KayleePop commented Jan 2, 2019

client.add(torrentId, { store: require('memory-chunk-store') }, (torrent) => {
  torrent.files[0].createReadStream({start, end})
})
@stale

This comment has been minimized.

Copy link

@stale stale bot commented Apr 2, 2019

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

@stale stale bot added the stale label Apr 2, 2019
@stale stale bot closed this Apr 9, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jul 9, 2019
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
3 participants
You can’t perform that action at this time.