Skip to content
Snippets Groups Projects
Commit c1055908 authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

debug by CI

parent 13b7e176
No related branches found
No related tags found
No related merge requests found
......@@ -91,6 +91,7 @@ class EpollListener(object):
# Errors
try:
if event & (select.EPOLLERR | select.EPOLLHUP):
logger.debug('Socket %s has failed', fd)
raise SocketFailed()
if event & select.EPOLLIN:
......@@ -105,6 +106,7 @@ class EpollListener(object):
self.epoll.modify(sock.fileno(), RO)
except SocketFailed:
logger.debug('Socket %s has raised SocketFailed', fd)
self.epoll.unregister(fd)
del self.fd_to_sock[fd]
sock.on_fail()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment