stream: fix finished w/ 'close' before 'finish'#31534
stream: fix finished w/ 'close' before 'finish'#31534ronag wants to merge 2 commits intonodejs:masterfrom
Conversation
46fab48 to
20c9ac6
Compare
|
I'm hoping this does not cause problems such as #29699. Which was on the |
jasnell
left a comment
There was a problem hiding this comment.
LGTM but if there is a risk this could break things, we should do some additional verification before landing and/or possibly consider semver-major
|
Defensive CITGM CITGM: https://ci.nodejs.org/view/Node.js-citgm/job/citgm-smoker/2246/ (queued) |
|
@jasnell's comment raised my concern as well, I've made this check a little less strict. PTAL |
f916506 to
b517e78
Compare
This comment has been minimized.
This comment has been minimized.
b517e78 to
7a59f50
Compare
7a59f50 to
7a68bbd
Compare
Emitting 'close' before 'finish' on a Writable should result in a premature close error.
|
rebased to fix conflict |
7a68bbd to
1e9ab30
Compare
|
@Trott: That rebase failure is new to me: |
|
I would recommend this is semver-major as well to ensure no breakage in ecosystem. These kind of changes seem to be a bit sensitive. |
01fc4c6 to
6282580
Compare
For the record this was fixed in nodejs/build#2153. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
CI passes |
Emitting 'close' before 'finish' on a Writable should result in a premature close error. PR-URL: #31534 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
|
Landed in 234de6f |
Emitting 'close' before 'finish' on a Writable should result in a premature close error. PR-URL: #31534 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
|
@ronag should we land this on 12.x? It lands cleanly, just want to make sure if we need to backport a bunch of streams stuff it isn't partially done |
My recommendation is not to land this on 12.x. It's not semver major but it slightly changes the behavior. |
Emitting 'close' before 'finish' on a Writable should result in a premature close error.
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes