-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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: readable error emitted #29009
Conversation
Still need to consider what/how to test here. |
f86dba6
to
43093f5
Compare
lib/_stream_writable.js
Outdated
@@ -428,13 +428,11 @@ function onwriteError(stream, state, sync, er, cb) { | |||
// This can emit finish, and it will always happen | |||
// after error | |||
process.nextTick(finishMaybe, stream, state); | |||
stream._writableState.errorEmitted = true; |
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.
As said in one of other PRs, these should be kept.
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.
This change should not be here at all. Error from my side.
Can you please avoid piling up commits from other PRs? Either open a "big" PR with multiple commits, or wait before the previous has landed. Also, this needs a unit test. |
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.
This should not land until the previous one has landed.
43093f5
to
bb2a821
Compare
replaced by #29058 |
Track whether error has been emitted on readable as well. This will allow some minor refactoring and optimisations on stream helpers.
Depends/Based on: #28709.
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes