set connect timeout to 5 seconds