Setting connection timeout to 3 sec