summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-12-23 16:14:38 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-12-23 16:14:38 +0000
commit1c07cf9aaaeadffb09c6632b3ff76bb19f5eb6b1 (patch)
treeaa49ad1752ec402e56ea252ea9dbf9ab4eef5a5b /src
parent013bcae0cf1aeac4d8059287ebe72f716a4e8f8b (diff)
Backport from socket branch: allow read and write events to be triggered on one kqueue iteration
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10906 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/socketengines/socketengine_kqueue.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/socketengines/socketengine_kqueue.cpp b/src/socketengines/socketengine_kqueue.cpp
index d5592bfd2..1513745a6 100644
--- a/src/socketengines/socketengine_kqueue.cpp
+++ b/src/socketengines/socketengine_kqueue.cpp
@@ -181,7 +181,8 @@ int KQueueEngine::DispatchEvents()
if (ref[ke_list[j].ident])
ref[ke_list[j].ident]->HandleEvent(EVENT_WRITE);
}
- else
+
+ if (ke_list[j].flags & EVFILT_READ)
{
ReadEvents++;
if (ref[ke_list[j].ident])