summaryrefslogtreecommitdiff
path: root/modules/extra/m_ssl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/extra/m_ssl.cpp')
-rw-r--r--modules/extra/m_ssl.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/extra/m_ssl.cpp b/modules/extra/m_ssl.cpp
index 0771e6d4c..599e76e8f 100644
--- a/modules/extra/m_ssl.cpp
+++ b/modules/extra/m_ssl.cpp
@@ -31,6 +31,8 @@ class SSLSocket : public ClientSocket
public:
SSLSocket(const std::string &nTargetHost, int nPort, const std::string &nBindHost = "", bool nIPv6 = false) : ClientSocket(nTargetHost, nPort, nBindHost, nIPv6)
{
+ this->SetBlocking();
+
sslsock = SSL_new(ctx);
if (!sslsock)
@@ -41,6 +43,8 @@ class SSLSocket : public ClientSocket
SSL_connect(sslsock);
UplinkSock = this;
+
+ this->SetNonBlocking();
}
~SSLSocket()