-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
stream: fix Transform with hwm 0 regression #43648
Conversation
Review requested:
|
Fixes: nodejs#40935 Refs: nodejs#40947 Refs: nodejs#42457
6c98049
to
b8a1698
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Looking at this now. I agree the hwm === 0 check is incorrect. Not sure about the fix though. Digging into it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@kanongil Could you rename this PR or create a new one for lazy reading? |
Removing |
This issue/PR was marked as stalled, it will be automatically closed in 30 days. If it should remain open, please leave a comment explaining why it should remain open. |
Closing this because it has stalled. Feel free to reopen if this issue/PR is still relevant, or to ping the collaborator who labelled it stalled if you have any questions. |
This undoes a patch from #40947, and reworks it to continue handling backpressure when
highWaterMark: 0
, as described in #42457 (comment).The new test fails on node releases with the patch from #40947, like v16.4, and passes on node v14 and node v16.3 from before it was introduced. It is also designed, so that it will fail if
highWaterMark: 1
is set instead.