deal with connect timeout