From 2496449155c339c9d6675de643bce04a7fbd304c Mon Sep 17 00:00:00 2001 From: w00t Date: Thu, 11 Sep 2008 00:46:32 +0000 Subject: These socket engines may now recieve write and read events in the same cycle, same as select and poll. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10514 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/socketengines/socketengine_epoll.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/socketengines/socketengine_epoll.cpp') diff --git a/src/socketengines/socketengine_epoll.cpp b/src/socketengines/socketengine_epoll.cpp index 657505d2d..0ce664937 100644 --- a/src/socketengines/socketengine_epoll.cpp +++ b/src/socketengines/socketengine_epoll.cpp @@ -91,7 +91,7 @@ void EPollEngine::WantWrite(EventHandler* eh) */ struct epoll_event ev; memset(&ev,0,sizeof(ev)); - ev.events = EPOLLOUT; + ev.events = EPOLLIN | EPOLLOUT; ev.data.fd = eh->GetFd(); epoll_ctl(EngineHandle, EPOLL_CTL_MOD, eh->GetFd(), &ev); } -- cgit v1.2.3