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

Use core http(s) Agent instead of agentkeepalive module #28

Merged
merged 1 commit into from
May 2, 2016

Conversation

jhildreth
Copy link
Contributor

We're using this module to send requests against a pretty slow interface. We were seeing sockets closed for no apparent reason at the 1 minute mark, resulting in ECONNRESET errors. I eventually traced the problem to the agentkeepalive module. Using the core http Agent instead resolved the issue for me.

I realize there may be reasons beyond what I've noticed that agentkeepalive is used here, but for my use case the core module makes more sense, so I thought I would propose this. We are running iojs 2.x.x, but I believe these changes should be acceptable for Node as well.

@SamDecrock SamDecrock merged commit 925b7e3 into SamDecrock:master May 2, 2016
@SamDecrock
Copy link
Owner

The reason was that there was no keep alive agent for https when I first wrote this module.

Thanks for the PR!

@jhildreth
Copy link
Contributor Author

Makes sense. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants