Epoll in EPOLLET mode returning 2 EPOLLIN before reading from the socket
- by Arkaitz Jimenez
The epoll manpage says that a fd registered with EPOLLET(edge triggered) shouldn't notify twice EPOLLIN if no read has been done.
So after an EPOLLIN you need to empty the buffer before epoll_wait being able to return a new EPOLLIN on new data.
However I'm experiencing problems with this approach as I'm seeing duplicated EPOLLIN events for…