From 4bbcc7918f4be61d2bad48fc7ef785cb87a7dd44 Mon Sep 17 00:00:00 2001 From: John Date: Sat, 17 Dec 2022 16:46:23 +0100 Subject: [PATCH] enable retry mode for older ssl libs --- src/lib/utils/httpclient.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/utils/httpclient.cpp b/src/lib/utils/httpclient.cpp index 67b54129..10b918ce 100755 --- a/src/lib/utils/httpclient.cpp +++ b/src/lib/utils/httpclient.cpp @@ -202,6 +202,7 @@ SSLSocket* SSLSocket::connect(const string& host, const uint16_t& port, bool htt if (isError("get_ssl", ssl)) { break; } + SSL_set_mode(ssl, SSL_MODE_AUTO_RETRY); const char *hostname = host.c_str(); if (isError("tls_host", SSL_set_tlsext_host_name(ssl, hostname), 1)) { break;