-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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
http: fix event listener leak #29245
Conversation
398333c
to
40ff776
Compare
Do you think you could add a regression test? |
@addaleax: absolutely, I’ll try to solve that tonight |
@addaleax: added test |
b2d9a28
to
06cceac
Compare
06cceac
to
e8c77b1
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Co-Authored-By: Rich Trott <rtrott@gmail.com>
Note for whoever lands this: Add |
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
IIRC, it's just a |
I used this: ./node `which npm` install -g node-core-utils This 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>
Landed in f39ad8a |
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