From a46cb4d8e6e7b3dfacead145ee8970522f43f9f9 Mon Sep 17 00:00:00 2001 From: Daniel De Graaf Date: Sat, 27 Mar 2010 10:31:08 -0500 Subject: Block writes to pending-connect socket --- src/inspsocket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/inspsocket.cpp b/src/inspsocket.cpp index c20b76dd7..92625ac29 100644 --- a/src/inspsocket.cpp +++ b/src/inspsocket.cpp @@ -104,7 +104,7 @@ BufferedSocketError BufferedSocket::BeginConnect(const irc::sockets::sockaddrs& this->state = I_CONNECTING; - if (!ServerInstance->SE->AddFd(this, FD_WANT_NO_READ | FD_WANT_SINGLE_WRITE)) + if (!ServerInstance->SE->AddFd(this, FD_WANT_NO_READ | FD_WANT_SINGLE_WRITE | FD_WRITE_WILL_BLOCK)) return I_ERR_NOMOREFDS; this->Timeout = new SocketTimeout(this->GetFd(), this, timeout, ServerInstance->Time()); -- cgit v1.2.3