-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Unknown system errno 110 on afterConnect #2236
Comments
Thanks for the report. Question: did you install Node from source or a PPA? If it's from source, can you do a |
It was from source. I will do a distclean and rebuild, however it may take some time before this issue reappears. |
Just ran into it again. Seems distclean/rebuild had no effect. |
Do you have a test case I can try? (I realize that may be difficult for 'once in a million' type of errors.) |
I was able to reproduce this using:
It seems that server is having some connection issues, but I don't know how long it's going to last (they will probably fix the server at some point, after which I doubt this specific case will trigger it anymore). In any case, it seems like if the connection is disconnected before it's opened fully, the error is thrown, because I didn't get the "connected" message when it was failing. |
This is easy to reproduce: This doesn't seem to be a bug though. The system is throwing the error 110 on timeout. The same thing happens when the keep-alive probes cause the system to determine that the socket is dead. Maybe we should detect this better and possibly emit 'timeout', but I'm against doing that as this is an error in terms of node. If you run watch on netstat with --timers, then you see that it sends a SYN_SENT but never gets a reply and the system has a timeout that kills it. |
The issue is that the error handler is not invoked for this, making it impossible to catch the error except by using a uncaughtException handler. That is at least what is happening on my end. edit: I ran the code in your gist, and the error handler catches it, but when it happens in my app, it just skips the handler. I wish I knew why... |
If you look at my gist, the error handler is being called for me with v0.6.4 and its dumping: |
Confirmed, I can reproduce it with @fastest963's test case. Will fix. |
Fixed in joyent/libuv@248ca5d and a0fdd5f. |
Can reproduce this issue in 0.6.5, so it will be included in next release? |
Yes. |
On node v0.6.3, I'm encountering the following:
As far as I can tell, the issue happens somewhat randomly when some servers my application is connecting to are not responding for some reason or another.
This issue was supposedly fixed, see bnoordhuis' comment here:
#2121
Ubuntu 10.04 LTE, node 0.6.3
The text was updated successfully, but these errors were encountered: