Here is my server
\"\"\"Server using epoll method\"\"\" import os import select import socket import time from oodict import OODict addr = (\
Don't you just need to combine the masks together to make use of EPOLLHUP and EPOLLIN at the same time:
epoll.register(sk.fileno(), select.EPOLLIN | select.EPOLLHUP)
Though to be honest I'm not really familiar with the epoll library, so it's just a suggestion really...