set deadline on sockets