[Dovecot] [PATCH] [RFC] epoll based ioloop handler

Miquel van Smoorenburg miquels at cistron.net
Mon Sep 6 14:00:04 EEST 2004


On 2004.09.06 00:22, Timo Sirainen wrote:
> On 30.8.2004, at 16:07, Andrey Panin wrote:
> 
> > this patch adds ioloop handler using Linux 2.6 epoll API.
> > I'm not sure is it ready for inclusion right now, but it
> > works for me and survives deadconn test with 1024 simultaneous
> > connections.
> 
> 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.

Mike.



More information about the dovecot mailing list