Look for ETIMEDOUT from connect(), in addition to ECONNREFUSED.
Not perfect, as it takes about 30 seconds to timeout. Need to add a timer to it.
Please register or sign in to comment
Not perfect, as it takes about 30 seconds to timeout. Need to add a timer to it.