From dd168c56c95a870de3d178edda48507ca47168fe Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 30 Oct 2006 18:22:36 +0000 Subject: 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 --- 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 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) -- cgit v1.3.1-10-gc9f91