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

Http agent for keepAlive parameter #12

Open
lteacher opened this issue Aug 22, 2017 · 0 comments
Open

Http agent for keepAlive parameter #12

lteacher opened this issue Aug 22, 2017 · 0 comments

Comments

@lteacher
Copy link
Owner

The 'best practices' guide mentions that keepAlive can be used but this actually is a special option for axios so to include this we need to pass through the new http.Agent.

The axios reference is here in the readme

// httpAgent and httpsAgent define a custom agent to be used when performing http
// and https requests, respectively, in node.js. This allows options to be added like
// keepAlive that are not enabled by default.
httpAgent: new http.Agent({ keepAlive: true }),
httpsAgent: new https.Agent({ keepAlive: true }),

@lteacher lteacher changed the title User agent for keepAlive Http agent for keepAlive parameter Aug 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant