refs #2345 fix the connection timeout setting to be done before socket connect