From 207435650d809b46f4f786181eb874debeb25011 Mon Sep 17 00:00:00 2001 From: John Date: Tue, 30 May 2023 11:00:08 +0200 Subject: [PATCH] workaround for potentially faced libssl bug 11574 --- src/lib/utils/httpclient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/utils/httpclient.cpp b/src/lib/utils/httpclient.cpp index 5a71c681..2c4b2e02 100755 --- a/src/lib/utils/httpclient.cpp +++ b/src/lib/utils/httpclient.cpp @@ -209,7 +209,7 @@ SSLSocket* SSLSocket::connect(const string& host, const uint16_t& port, bool htt } long res = BIO_do_connect(bio); time_t now = 0; - while (res <= 0 && BIO_should_retry(bio)) { + while (res <= 0 && (BIO_should_retry(bio) || now == 0)) { // always repeat on first failure if ((now=time(nullptr)) > until) { break; }