[tpop3d-discuss]Re: bad file descriptor from select in tpop3d

Martin Blapp mb at imp.ch
Thu, 1 Jun 2006 09:46:39 +0200 (CEST)


Hi,

> Would replacing select code in tpop3d with libevent [1] usage be acceptable?
>
> libevent can use select, poll, epoll and kqueue (on bsd) depending on which is
> available.

+1. We suffer on the same problem, and using libevent would definitly fix
this issue.

> Maybe but until that happens I get tons of ,, Bad file descriptor'' errors in
> logs + the problem is that when customers get errors from pop3 server they
> retry and increase load even more :)

I've worked around this issue and call exit if it happens and respawn the tpop3d
deamon immediatly.

Martin