Skip to content
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

Re-use open sockets #2

Open
gajus opened this issue Apr 26, 2019 · 0 comments
Open

Re-use open sockets #2

gajus opened this issue Apr 26, 2019 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@gajus
Copy link
Owner

gajus commented Apr 26, 2019

Currently global-agent creates a new socket for each request.

Node.js core shows how to keep track of used/ free sockets and allocate them for new requests to the same host: port.

https://github.com/nodejs/node/blob/e029b927c2a291b78bb27202a14bff09628b75a6/lib/_http_agent.js#L76

@gajus gajus added the enhancement New feature or request label Apr 26, 2019
@gajus gajus added the help wanted Extra attention is needed label Jun 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant