Here is my server
\"\"\"Server using epoll method\"\"\" import os import select import socket import time from oodict import OODict addr = (\
I have another approach..
try: data = s.recv(4096) except socket.error: if e[0] in (errno.EWOULDBLOCK, errno.EAGAIN): # since this is a non-blocking socket.. return # no error else: # error socket.close() if not data: #closed either socket.close()