From 1c07cf9aaaeadffb09c6632b3ff76bb19f5eb6b1 Mon Sep 17 00:00:00 2001 From: w00t Date: Tue, 23 Dec 2008 16:14:38 +0000 Subject: 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 --- src/socketengines/socketengine_kqueue.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/socketengines') 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]) -- cgit v1.2.3