Set connection timeout to 3 seconds.