Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upAvoiding that the complete file gets downloaded after call of file.createReadstream([opts]) #803
Comments
This comment has been minimized.
This comment has been minimized.
|
Right now, there's no way to do this. Eventually, we're going to make the client switch to a rarest-first strategy (#375) once there's sufficient data buffered to satisfy all But in the meantime, you can accomplish what you want by calling createReadStream with You can pass opts to stream only a slice of a file.
Both |
This comment has been minimized.
This comment has been minimized.
|
This thread has been automatically locked because it has not had recent activity. To discuss futher, please open a new issue. |
How can I avoid that the WebTorrent client downloads the entire file as fast as possible after I have called file.createReadstream([opts])? I want to configure the maximum amount of data that createReadstream buffers before I read the next chunk of data.