-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
Revert "stream: prevent 'end' to be emitted after 'error'" #20449
Conversation
This reverts commit 0857790.
FWIW I'm targeting master here because I think we need a better plan on how to more easily transition existing code (e.g. replacing existing uses of 'end' with some other event that acts as a "error or not" end event, such as 'close' or similar as I suggested in the referenced issue). |
/cc @nodejs/streams |
I’m -1 to land this on master. I’m +1 to land this on node 10.0.0. |
/cc @nodejs/collaborators |
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, I'll redo the PR.
Ref: #20503.
@mcollina I’d really really like to not get in a habit of reverting commits only on release branches – if there is breakage that is significant enough to revert something, then we should try to keep Edit: Removing the |
@mcollina I'm confused a bit with your explicit approval. Does that mean you are no longer -1 on landing this on master? |
Yes exactly. I’ll resend the PR as soon as this land, but we need to revert it in 10 (it seems this causes some other issues). I agree this was rushed in. |
Landed in 8f6ab9f |
@addaleax re-open open v11? |
This reverts commit 8f6ab9f. This PR adds _readableState.errorEmitted and add the tracking of it. Fixes: nodejs#6083 See: nodejs#20334 See: nodejs#20449
Done in #20571. |
Fixes: #20334
CI: https://ci.nodejs.org/job/node-test-pull-request/14609/
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes