socket timeout and connect timeout set to 5 seconds