]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Windows doesn't need blocking connect, IOCP was the cause of that.
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>
Thu, 11 Sep 2008 00:15:34 +0000 (00:15 +0000)
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>
Thu, 11 Sep 2008 00:15:34 +0000 (00:15 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10510 e03df62e-2008-0410-955e-edbf42e46eb7

src/inspsocket.cpp

index ea0534f24b704a575f5ba2316ac8efb408596e23..1a88afaca5309887c2c21e0b9b7e2c53a8b2363c 100644 (file)
@@ -262,11 +262,6 @@ bool BufferedSocket::DoConnect()
 
        Instance->SE->NonBlocking(this->fd);
 
 
        Instance->SE->NonBlocking(this->fd);
 
-#ifdef WIN32
-       /* UGH for the LOVE OF ZOMBIE JESUS SOMEONE FIX THIS!!!!!!!!!!! */
-       Instance->SE->Blocking(this->fd);
-#endif
-
        if (Instance->SE->Connect(this, (sockaddr*)addr, size) == -1)
        {
                if (errno != EINPROGRESS)
        if (Instance->SE->Connect(this, (sockaddr*)addr, size) == -1)
        {
                if (errno != EINPROGRESS)
@@ -280,10 +275,7 @@ bool BufferedSocket::DoConnect()
                this->Timeout = new SocketTimeout(this->GetFd(), this->Instance, this, timeout_val, this->Instance->Time());
                this->Instance->Timers->AddTimer(this->Timeout);
        }
                this->Timeout = new SocketTimeout(this->GetFd(), this->Instance, this, timeout_val, this->Instance->Time());
                this->Instance->Timers->AddTimer(this->Timeout);
        }
-#ifdef WIN32
-       /* CRAQ SMOKING STUFF TO BE FIXED */
-       Instance->SE->NonBlocking(this->fd);
-#endif
+
        this->state = I_CONNECTING;
        if (this->fd > -1)
        {
        this->state = I_CONNECTING;
        if (this->fd > -1)
        {