-
Notifications
You must be signed in to change notification settings - Fork 29.9k
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: always defer readable in EOF when sync #18615
Conversation
lib/_stream_readable.js
Outdated
@@ -488,7 +488,7 @@ function onEofChunk(stream, state) { | |||
} | |||
state.ended = true; | |||
|
|||
if (state.sync && state.length) { | |||
if (state.sync) { | |||
// if we are sync and have data in the buffer, wait until next tick |
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.
prob wanna remove the "and have data in the buffer" part of the comment now
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.
done
👍 |
This can land, I propose to fast-track it to fix the CITGM failures. |
CITGM: https://ci.nodejs.org/view/Node.js-citgm/job/citgm-smoker/1264/ |
Landing now |
Landed as 87b9bce |
Fix a regression introduced by #18515 that broke the dicer module tests. See: #18515 PR-URL: #18615 Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]>
Should this be backported to |
This should not be backported. |
Fix a regression introduced by nodejs#18515 that broke the dicer module tests. See: nodejs#18515 PR-URL: nodejs#18615 Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]>
Alternative to #18612
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)
stream