added read timeout for tls handshake