set timeout for tls's socket.