From: w00t Date: Thu, 11 Sep 2008 00:15:34 +0000 (+0000) Subject: Windows doesn't need blocking connect, IOCP was the cause of that. X-Git-Tag: v2.0.23~2571 X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;ds=sidebyside;h=e92c1a66536dc9f812c3818acaf5605fe028fa9d;p=user%2Fhenk%2Fcode%2Finspircd.git Windows doesn't need blocking connect, IOCP was the cause of that. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10510 e03df62e-2008-0410-955e-edbf42e46eb7 --- diff --git a/src/inspsocket.cpp b/src/inspsocket.cpp index ea0534f24..1a88afaca 100644 --- a/src/inspsocket.cpp +++ b/src/inspsocket.cpp @@ -262,11 +262,6 @@ bool BufferedSocket::DoConnect() 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) @@ -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); } -#ifdef WIN32 - /* CRAQ SMOKING STUFF TO BE FIXED */ - Instance->SE->NonBlocking(this->fd); -#endif + this->state = I_CONNECTING; if (this->fd > -1) {