[Dovecot] File descriptor leak in 1.0rc2[45]?

Victor Duchovni Victor.Duchovni at MorganStanley.com
Tue Mar 6 15:49:41 EET 2007


On Tue, Mar 06, 2007 at 03:20:26PM +0200, Timo Sirainen wrote:

> On Mon, 2007-03-05 at 15:51 -0500, Victor Duchovni wrote:
> > 
> > I upgraded (NetBSD 2.99 i386) from 1.0rc7 to 1.0rc24 and then tried
> > rc25,
> > and in both cases need to restart Dovecot every day or so (low volume
> > server).
> > It seems to run out of file descriptors. I have now raised the file
> > descriptor
> > limit to 1024, but that is not a long-term solution... 
> 
> I guess you built with kqueue code?

I used the pkgsrc defaults. It looks like this uses kqueue. I am puzzled
why kqueue introduces descriptor leaks.

> It seems to be buggy with older NetBSDs.

Is "it" the kqueue code in the kernel (how does this lead to descriptor
leaks) or the kqueue-using event code in Dovecot (how does this lead
to descriptor leaks).

What can I do to work around the issue?

-- 
	Viktor.


More information about the dovecot mailing list