From f2846b1586cfe38a65d2e097b149f43483aaa34b Mon Sep 17 00:00:00 2001 From: XinyuHou Date: Thu, 1 Sep 2016 14:50:44 +0100 Subject: [PATCH] Remove disconnect on retry exceed --- src/lib/plugin/ns/SecureSocket.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/lib/plugin/ns/SecureSocket.cpp b/src/lib/plugin/ns/SecureSocket.cpp index 43f29023..483c07fb 100644 --- a/src/lib/plugin/ns/SecureSocket.cpp +++ b/src/lib/plugin/ns/SecureSocket.cpp @@ -605,12 +605,6 @@ SecureSocket::checkResult(int status, int& retry) break; } - // If the retry max would exceed the allowed, treat it as a fatal error - if (retry > s_maxRetry) { - LOG((CLOG_DEBUG "retry exceeded %f sec", s_maxRetry * s_retryDelay)); - isFatal(true); - } - if (isFatal()) { retry = 0; showError();