From e92c1a66536dc9f812c3818acaf5605fe028fa9d Mon Sep 17 00:00:00 2001 From: w00t Date: Thu, 11 Sep 2008 00:15:34 +0000 Subject: 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 --- src/inspsocket.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src/inspsocket.cpp') 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) { -- cgit v1.2.3