[Dovecot] Too many open files
Timo Sirainen
tss at iki.fi
Tue Jun 14 12:17:30 EEST 2005
On Fri, 2005-06-10 at 12:57 +0100, Andrew Hutchings wrote:
> Just got this on one of my test72 dovecot servers:
>
> -
> Jun 10 12:40:28 svr21 dovecot: auth(default):
> net_connect_unix(/var/run/dovecot/auth-worker.18818) failed: Too many
> open files
..
> Is dovecot leaving files open? Or is it a large mailbox?
Here's a fix:
Index: auth-worker-server.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/auth-worker-server.c,v
retrieving revision 1.2
diff -u -r1.2 auth-worker-server.c
--- auth-worker-server.c 28 May 2005 15:14:12 -0000 1.2
+++ auth-worker-server.c 14 Jun 2005 09:16:54 -0000
@@ -110,6 +110,9 @@
}
}
+ if (close(conn->fd) < 0)
+ i_error("close(auth worker) failed: %m");
+
buffer_free(conn->requests);
io_remove(conn->io);
i_stream_unref(conn->input);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://dovecot.org/pipermail/dovecot/attachments/20050614/1a209ed6/attachment-0001.bin>
More information about the dovecot
mailing list