diff options
| author | 2010-03-27 10:31:08 -0500 | |
|---|---|---|
| committer | 2010-03-27 10:31:08 -0500 | |
| commit | a46cb4d8e6e7b3dfacead145ee8970522f43f9f9 (patch) | |
| tree | 30e30fdb36a78c6f032f6ddb7ce96c84a7bed8c5 /src/inspsocket.cpp | |
| parent | Add debouncing to m_cloaking, and fix cloak of hosts without dots (diff) | |
Block writes to pending-connect socket
Diffstat (limited to 'src/inspsocket.cpp')
| -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()); |
