diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-10-31 20:43:47 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-10-31 20:43:47 +0000 |
commit | dc5d99a9543f5027cc5d4f4ffc5716eaf7e933ec (patch) | |
tree | 03065bb40ae22b6935a0694af67b69fd2cb5619e /src/socketengine_epoll.cpp | |
parent | 84fe55db1605dbb5907c1a5cb149302f17717a10 (diff) |
Error set handlin g for select socketengine, tidyup epoll
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5609 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/socketengine_epoll.cpp')
-rw-r--r-- | src/socketengine_epoll.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/socketengine_epoll.cpp b/src/socketengine_epoll.cpp index 618f30592..c1aab07d8 100644 --- a/src/socketengine_epoll.cpp +++ b/src/socketengine_epoll.cpp @@ -138,6 +138,7 @@ int EPollEngine::DispatchEvents() ServerInstance->Log(DEBUG,"Handle %s event on fd %d",events[j].events & EPOLLOUT ? "write" : "read", events[j].data.fd); if (events[j].events & EPOLLHUP) { + ServerInstance->Log(DEBUG,"Handle error event on fd %d", events[j].data.fd); ref[events[j].data.fd]->HandleEvent(EVENT_ERROR, 0); continue; } @@ -146,6 +147,7 @@ int EPollEngine::DispatchEvents() /* Get error number */ if (getsockopt(events[j].data.fd, SOL_SOCKET, SO_ERROR, &errcode, &codesize) < 0) errcode = errno; + ServerInstance->Log(DEBUG,"Handle error event on fd %d: %s", events[j].data.fd, strerror(errcode)); ref[events[j].data.fd]->HandleEvent(EVENT_ERROR, errcode); continue; } |