set socket timeout to 1000ms