-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
[14.x] stream: fix regression on duplex end #36229
Conversation
Backport Decide the return status of writeOrBuffer before calling stream.write which can reset state.length Refs: nodejs#35941 Fixes: nodejs#35926
Review requested:
|
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
cc @nodejs/releasers this is a backport. |
NB: This fixes a fairly major regression that broke the fairly-popular ssh2 library. |
This comment has been minimized.
This comment has been minimized.
@BethGriggs what's the timeline for the next 14 release? |
@mcollina no concrete dates yet, but I am hoping we can get a patch release out before the holidays. My (probably ambitious) plan is to get the proposal ready by tomorrow/Weds and aim for Tues 15th release date. That reduces our typical proposal baking time to ~1 week but that seems preferable to releasing on 22nd Dec or not getting one out at all. |
I would just land #36375 and skip this. |
@BethGriggs these are two 100% identical PRs |
Closing as #36375 has landed. |
Thank you! @mmomtchev we're affected by this and I thought to expedite by resolving the conflict. Did not mean to steal anybody's work and apologies if it did look that way. Thank you all for your hard work ❤️ |
Backport
Decide the return status of writeOrBuffer before
calling stream.write which can reset state.length
Refs: #35941
Fixes: #35926
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes