[14.x] stream: fix regression on duplex end#36229
[14.x] stream: fix regression on duplex end#36229mmomtchev wants to merge 1 commit intonodejs:v14.x-stagingfrom
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:
|
|
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