When I wrote a server (not based on AWS), I was also ensuring that sockets for which we got a notification in epoll() were removed from the FD_Set until we had actually read or written everything to/from it. Otherwise, that socket keeps popping up in epoll which is inefficient. Is something like this necessary here (perhaps a new Issue, though)
Originally posted by @briot in #209 (comment)