enable retry mode for older ssl libs

This commit is contained in:
John
2022-12-17 16:46:23 +01:00
parent 8eca44bdee
commit 4bbcc7918f
+1
View File
@@ -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;