Uh oh!
There was an error while loading. Please reload this page.
http: fix res emit close before user finish - #20941
Conversation
ronag
commented
May 24, 2018
ronag
commented
May 24, 2018
Another possible solution is to use |
mafintosh
commented
May 24, 2018
@ronag Thanks for the quick fix :) |
mafintosh
commented
May 24, 2018
This is def urgent for a 10.2.1 - without this fix end-of-stream, pump and most userland stream stuff using those are broken when using http streams |
There was a problem hiding this comment.
You could also do process.nextTick(emitCloseNT, res) to avoid the bind and accept res as an arg in your emitCloseNT function
jasnell
commented
May 24, 2018
/cc @MylesBorins |
mafintosh
commented
May 24, 2018
mcollina
commented
May 24, 2018
+1 to fast tracking. |
There was a problem hiding this comment.
you have an unneeded paran around the arrow fn here which the linter complains about
There was a problem hiding this comment.
if everything else is green I'll go ahead and fix that while landing
0119e3a to
a07ea85Compareronag
commented
May 24, 2018
Fixed comments. |
jasnell
commented
May 24, 2018
The other fix for 10.2.1 has been landed. As soon as this one lands we should be ready to go for 10.2.1 |
MylesBorins
commented
May 24, 2018
Kicked off another CI based on new changes |
BridgeAR
left a comment
There was a problem hiding this comment.
LGTM but the comment should be addressed (it could also be removed while landing).
| }))); | ||
| res.on('close', common.mustCall(() => { | ||
| resClosed = true; | ||
| // assert.strictEqual(res._writableState.ended, true); |
MylesBorins
commented
May 24, 2018
The failures on arm will all infra related. I've fixed the linting error and removed comment when landing. landed in 8ce20af |
PR-URL: #20941 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
PR-URL: #20941 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
mafintosh
commented
May 24, 2018
Thanks everyone |
Changes introduced in: nodejs/node#20941nodejs/node#20611
Fixes a regression caused by #20611 which breaks
eos,pumpandpumpify.Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes