-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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: move free socket error handling to agent #32003
Conversation
99d8e3e
to
1f13aa4
Compare
lib/_http_client.js
Outdated
@@ -746,6 +740,7 @@ function listenSocketTimeout(req) { | |||
} | |||
|
|||
ClientRequest.prototype.onSocket = function onSocket(socket) { | |||
// TODO(ronag): Should install error handler immediately. |
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.
This should be handled at some point in a separate PR. If an error is scheduled in the nextTick then it would become unhandled.
It's always been a problem as far as I can see.
@ronag This needs a rebase :) |
Damn! I keep causing conflicts :D. |
bbe1217
to
2a2c211
Compare
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.
This needs a CITGM run.
Is this going to affect https://www.npmjs.com/package/http-proxy-agent?
CITGM looks good |
@mcollina: As far as I can see, no. It just calls |
@nodejs/http |
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
@ronag Looks like this needs to be rebased again. |
The http client should not know anything about free sockets. Let the agent handle its pool of sockets.
b51610b
to
1772f20
Compare
rebased |
Landed in 2bf0228 |
The http client should not know anything about free sockets. Let the agent handle its pool of sockets. PR-URL: #32003 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Matteo Collina <[email protected]>
The http client should not know anything about free sockets. Let the agent handle its pool of sockets. PR-URL: #32003 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Matteo Collina <[email protected]>
The http client should not know anything about free sockets. Let the agent handle its pool of sockets. PR-URL: #32003 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Matteo Collina <[email protected]>
The http client should not know anything about free sockets. Let
the agent handle its pool of sockets.
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes