-
Notifications
You must be signed in to change notification settings - Fork 285
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
About the default HTTP client and socket hang up error #227
Comments
Sorry, what are you reading, and where? |
I am asking about this part from Readme.md on Knox, agent |
Ah yes! That'd be these lines: https://github.com/LearnBoost/knox/blob/master/lib/client.js#L256-L260 |
Is there something special for Node.js 0.12 that all these issues around request and http seem to be pointing to? I was looking at pooling http requests and there were some issues around the max listener error and socket hang up, and discussions all led to something like "this should not be an issue in node 0.12" |
That's a good question. I know @isaacs was working on fixing them before heading over to work on npm full-time, although I never saw anything in the commit logs that conclusively said to me "this was the fix, it's all better now." Hard to be sure. |
I was doing a simple util to expand short urls two weeks ago, https://github.com/ttback/node-expand-url and was baffled by |
Well, maybe. maxSockets: Infinity might work too? I know agent: false works well for us so far, but maxSockets: Infinity might be better in some way that hasn't showed up yet. |
I just read what you mentioned about overriding the default HTTP client 'cause it always brings up { [Error: socket hang up] code: 'ECONNRESET' } Error. How did you guys do it? I am doing something that requires me to go through a lot JSON docs in a queue with the request module and it is giving me a lot of { [Error: socket hang up] code: 'ECONNRESET' }
The text was updated successfully, but these errors were encountered: