diff options
author | Daniel De Graaf <danieldg@inspircd.org> | 2010-03-27 10:31:08 -0500 |
---|---|---|
committer | Daniel De Graaf <danieldg@inspircd.org> | 2010-03-27 10:31:08 -0500 |
commit | a46cb4d8e6e7b3dfacead145ee8970522f43f9f9 (patch) | |
tree | 30e30fdb36a78c6f032f6ddb7ce96c84a7bed8c5 | |
parent | 44ad8a5e3359950f0fb98c6c8d6f407baffaf694 (diff) |
Block writes to pending-connect socket
-rw-r--r-- | src/inspsocket.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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()); |