-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
doc: http.Agent, reuse single socket vs new socket for each request #36463
Comments
@ha-douken In both cases - wheter |
The question is not about keepAlive and connection pools. I am not putting connection pools and keepAlive into the picture because it will not help the question. |
Oh, darn. Does "[...] reusing a single socket connection for each [...]" mean that there is a connection per request? I read it as "the same connection is reused for each request" but maybe that is just me lacking proper english? |
PR-URL: #36941 Fixes: #36463 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
PR-URL: #36941 Fixes: #36463 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
PR-URL: #36941 Fixes: #36463 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
📗 http.Agent, reuse single socket vs new socket for each request
http.Agent documentation says
[…] It maintains a queue of pending requests for a given host and port, reusing a single socket connection for each until the queue is empty […]
Which is in contrast to the description of the maxSockets option
[…] Each request will use a new socket until the maximum is reached. []
So will it reuse a single socket connection or use a new socket for each request?
The text was updated successfully, but these errors were encountered: