Attempting to create a connection to an unreachable host takes longer than 'connect timeout' to fail #501

wants to merge 1 commit into


None yet

1 participant

privman commented Nov 30, 2012

I expect that when setting the 'connect timeout' option, an attempt to set up a with an unreachable host (e.g. host is powered down) to fail within that time. If I misunderstood please reject this request with an explanation.
I added a timeout to Socket.prototype.handshake to make sure xhr is not attempted beyond the allowed time.
Sorry for not including a failing test, I haven't been able to get the makefile to run on my (Windows) machine. It's really simple though, just set options['connect timeout'] to 10 seconds and try to connect to a non-running server. The connection fails after 20 seconds.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment