aboutsummaryrefslogtreecommitdiff
path: root/src/inspsocket.cpp
diff options
context:
space:
mode:
authorGravatar brain2006-10-30 18:22:36 +0000
committerGravatar brain2006-10-30 18:22:36 +0000
commitdd168c56c95a870de3d178edda48507ca47168fe (patch)
treeccb5fecc49eb49286600edc250ff414fbb6d2931 /src/inspsocket.cpp
parentTest commit (diff)
WARNING: This commit breaks kqueue and select -- work in progress!
epoll now allows both a write and a read event on a socket at the same time. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5580 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspsocket.cpp')
-rw-r--r--src/inspsocket.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/inspsocket.cpp b/src/inspsocket.cpp
index c7e68df6c..b185ccb35 100644
--- a/src/inspsocket.cpp
+++ b/src/inspsocket.cpp
@@ -129,15 +129,7 @@ void InspSocket::WantWrite()
*
* This behaviour may be fixed in a later version.
*/
- this->Instance->SE->DelFd(this);
- this->WaitingForWriteEvent = true;
- if (!this->Instance->SE->AddFd(this))
- {
- this->Close();
- this->fd = -1;
- this->state = I_ERROR;
- this->OnError(I_ERR_NOMOREFDS);
- }
+ this->Instance->SE->WantWrite(this);
}
void InspSocket::SetQueues(int nfd)