6 Sep
2004
6 Sep
'04
2:08 p.m.
On 6.9.2004, at 14:00, Miquel van Smoorenburg wrote:
Hmm. epoll requires that everything is read from the fd or it doesn't send another notification. I'm not sure if everything in Dovecot works this way. All the I/O handlers should be checked and fixed..
The mailinglist archive doesn't seem to have archived the patch, so I can't check, but what you write above is only true when using EPOLLET (edge triggered). When using epoll as a drop-in replacement for poll() or select() you probably simply shouldn't use EPOLLET.
Ok, I should have read epoll man pages too. I just happened to read "the c10k problem" web page where it said epoll being only edge-triggered.