Skip to content

fix(createReadStream): implement backpressure#76

Open
vdiez wants to merge 2 commits into
Node-SMB:masterfrom
vdiez:master
Open

fix(createReadStream): implement backpressure#76
vdiez wants to merge 2 commits into
Node-SMB:masterfrom
vdiez:master

Conversation

@vdiez

@vdiez vdiez commented Mar 2, 2021

Copy link
Copy Markdown

continue reading until stream.push returns false, as specified by streams API

I was running into race conditions where streams were being closed twice on end (instead of just once). Implementing the backpressure from Node solved the issue.

@julien-f julien-f changed the title implement stream backpressure fix(createReadStream): implement backpressure Apr 11, 2021
@vdiez

vdiez commented Apr 22, 2021

Copy link
Copy Markdown
Author

Hi @julien-f . Any option to have this merged? Thanks!

@ekoeryanto

Copy link
Copy Markdown

same with createWriteStream

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.

2 participants