Visitar URL original
stream: don't emit finish after close by ronag · Pull Request #32933 · nodejs/node · GitHub
The Wayback Machine - https://web.archive.org/web/20220322210012/https://github.com/nodejs/node/pull/32933
Skip to content
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: don't emit finish after close #32933

Closed
wants to merge 6 commits into from

Conversation

ronag
Copy link
Member

@ronag ronag commented Apr 19, 2020

Writable stream could emit 'finish' after 'close'.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

@ronag ronag added the stream label Apr 19, 2020
@ronag ronag force-pushed the stream-finish-after-close branch 3 times, most recently from 8bf2442 to ec3e537 Compare Apr 19, 2020
@ronag
Copy link
Member Author

@ronag ronag commented Apr 22, 2020

lpinca
lpinca approved these changes Apr 22, 2020
Copy link
Member

@mcollina mcollina left a comment

Given that the PR mention 'close', it would be good to add a few mustCall()/mustNotCall() for that as well.

test/parallel/test-stream-writable-finish-destroyed.js Outdated Show resolved Hide resolved
test/parallel/test-stream-writable-finish-destroyed.js Outdated Show resolved Hide resolved
@ronag ronag force-pushed the stream-finish-after-close branch from f9154ec to 604191b Compare Apr 25, 2020
@ronag
Copy link
Member Author

@ronag ronag commented Apr 25, 2020

added some missing mustCalls

@ronag ronag force-pushed the stream-finish-after-close branch from 604191b to 7da4656 Compare Apr 25, 2020
@nodejs-github-bot
Copy link
Contributor

@nodejs-github-bot nodejs-github-bot commented Apr 25, 2020

@nodejs-github-bot
Copy link
Contributor

@nodejs-github-bot nodejs-github-bot commented Apr 25, 2020

lib/_stream_readable.js Outdated Show resolved Hide resolved
@ronag ronag force-pushed the stream-finish-after-close branch from 065eb38 to 706e189 Compare Apr 26, 2020
@ronag ronag requested a review from mcollina Apr 26, 2020
Copy link
Member

@mcollina mcollina left a comment

LGTM

@nodejs-github-bot
Copy link
Contributor

@nodejs-github-bot nodejs-github-bot commented Apr 27, 2020

ronag added a commit that referenced this issue Apr 27, 2020
Writable stream could emit 'finish' after 'close'.

PR-URL: #32933
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
@ronag
Copy link
Member Author

@ronag ronag commented Apr 27, 2020

Landed in f5c11a1

@ronag ronag closed this Apr 27, 2020
BethGriggs pushed a commit that referenced this issue Apr 27, 2020
Writable stream could emit 'finish' after 'close'.

PR-URL: #32933
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
@BethGriggs BethGriggs mentioned this pull request Apr 27, 2020
BethGriggs pushed a commit that referenced this issue Apr 28, 2020
Writable stream could emit 'finish' after 'close'.

PR-URL: #32933
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
@ronag ronag added the backport-blocked-v14.x label Apr 28, 2020
@ronag
Copy link
Member Author

@ronag ronag commented Apr 28, 2020

@targos targos added backport-requested-v14.x and removed backport-blocked-v14.x labels May 16, 2021
@targos
Copy link
Member

@targos targos commented May 16, 2021

It seems #34887 should unblock this backport. @ronag would you still like it to happen?

@ronag
Copy link
Member Author

@ronag ronag commented May 16, 2021

Yes. I'm a little overloaded at the moment though. If you need help ping me again in a. week :).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-requested-v14.x stream
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

6 participants