Set socket timeout to 1000 ms