-
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: prevent 'end' to be emitted after 'error' #20571
Conversation
This reverts commit 8f6ab9f. This PR adds _readableState.errorEmitted and add the tracking of it. Fixes: nodejs#6083 See: nodejs#20334 See: nodejs#20449
I still believe we should not just remove this outright but instead replace it with another event. One possible event I previously suggested was |
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.
-1 on this as-is
@mcollina I'm not sure what you mean. The issue you linked to more or less seems to include what I was pretty much saying, however there does not seem to be any PR associated with the issue. |
This will be included in #20096, which @mafintosh and myself are going to talk about at the summit. Also, everybody is welcomed to participate. |
@mcollina ... what's the status on this? |
This can be closed for the moment, it will be fixed with the destroy work @mafintosh has been preparing for some time. |
This PR adds _readableState.errorEmitted and add the tracking of it.
Fixes: #6083
See: #20334
See: #20449
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes