diff options
-rw-r--r-- | src/socketengines/socketengine_epoll.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/socketengines/socketengine_epoll.cpp b/src/socketengines/socketengine_epoll.cpp index 96c3922f9..934106e54 100644 --- a/src/socketengines/socketengine_epoll.cpp +++ b/src/socketengines/socketengine_epoll.cpp @@ -195,7 +195,11 @@ int EPollEngine::DispatchEvents() { EventHandler* eh = ref[events[j].data.fd]; if (!eh) + { + ServerInstance->Logs->Log("SOCKET",DEBUG,"Got event on unknown fd: %d", events[j].data.fd); + epoll_ctl(EngineHandle, EPOLL_CTL_DEL, events[j].data.fd, &events[j]); continue; + } if (events[j].events & EPOLLHUP) { ErrorEvents++; |