1
0
mirror of https://github.com/anope/anope.git synced 2026-07-02 15:33:13 +02:00

Always use non-blocking sockets

This commit is contained in:
Adam
2010-07-24 13:45:54 -04:00
parent b218d52a31
commit 2328c3e7ec
3 changed files with 46 additions and 0 deletions
+4
View File
@@ -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()