Uh oh!
There was an error while loading. Please reload this page.
http: fix event listener leak - #29245
Conversation
398333c to
40ff776Compareaddaleax
commented
Aug 21, 2019
Do you think you could add a regression test? |
ronag
commented
Aug 21, 2019
@addaleax: absolutely, I’ll try to solve that tonight |
ronag
commented
Aug 21, 2019
@addaleax: added test |
b2d9a28 to
06cceacCompare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Uh oh!
There was an error while loading. Please reload this page.
Co-Authored-By: Rich Trott <rtrott@gmail.com>
nodejs-github-bot
commented
Aug 21, 2019
nodejs-github-bot
commented
Aug 22, 2019
Trott
commented
Aug 23, 2019
Note for whoever lands this: Add |
silverwind
commented
Aug 23, 2019
IIRC, it's just a |
Trott
commented
Aug 23, 2019
I used this: ./node `which npm` install -g node-core-utilsThis seems to fix the problem. Without this patch, I get the warnings. With it, I do not. |
Fixes: nodejs#29239 PR-URL: nodejs#29245 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Trott
commented
Aug 23, 2019
Landed in f39ad8a |
Trott
commented
Aug 23, 2019
Marked this as notable because we should get this out in a 12.9.1 release and highlight that it fixes the bug in #29239. |
Notable changes: This release fixes two regressions in the http module: * Fixes an event listener leak in the HTTP client. This resulted in lots of warnings during npm/yarn installs. #29245 * Fixes a regression preventing the `'end'` event from being emitted for keepalive requests in case the full body was not parsed. #29263 PR-URL: #29321
Notable changes: This release fixes two regressions in the http module: * Fixes an event listener leak in the HTTP client. This resulted in lots of warnings during npm/yarn installs. #29245 * Fixes a regression preventing the `'end'` event from being emitted for keepalive requests in case the full body was not parsed. #29263 PR-URL: #29321
Notable changes: This release fixes two regressions in the http module: * Fixes an event listener leak in the HTTP client. This resulted in lots of warnings during npm/yarn installs. #29245 * Fixes a regression preventing the `'end'` event from being emitted for keepalive requests in case the full body was not parsed. #29263 PR-URL: #29321
Alternative to #29244
'drain'needs to always to be removed together with'data'and'end'when detaching the socket.Haven't had time to do a unit test yet.Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes