Fixed connect time out return value when there is successful connection