From 2328c3e7ec718071a8cafcc396d072f90fb4dbc2 Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 24 Jul 2010 13:45:54 -0400 Subject: Always use non-blocking sockets --- modules/extra/m_ssl.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modules/extra') 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() -- cgit