From 4cfe4cbc62dfca59dba74f0e6811fd09e31609df Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 11 Nov 2007 20:15:21 +0000 Subject: Hmm git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8579 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/socketengines/socketengine_epoll.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/socketengines') diff --git a/src/socketengines/socketengine_epoll.cpp b/src/socketengines/socketengine_epoll.cpp index 9da569b8f..89b1ea1ef 100644 --- a/src/socketengines/socketengine_epoll.cpp +++ b/src/socketengines/socketengine_epoll.cpp @@ -38,6 +38,7 @@ EPollEngine::~EPollEngine() bool EPollEngine::AddFd(EventHandler* eh) { + ServerInstance->Log(DEBUG,"Add new fd: %d", eh->GetFd()); int fd = eh->GetFd(); if ((fd < 0) || (fd > MAX_DESCRIPTORS)) { @@ -120,6 +121,9 @@ int EPollEngine::DispatchEvents() socklen_t codesize; int errcode; int i = epoll_wait(EngineHandle, events, MAX_DESCRIPTORS, 1000); + + ServerInstance->Log(DEBUG,"DispatchEvents num events = %d of %d", i, CurrentSetSize); + for (int j = 0; j < i; j++) { if (events[j].events & EPOLLHUP) -- cgit v1.2.3