The following issue has been CONFIRMED. ====================================================================== http://www.dbmail.org/mantis/view.php?id=957 ====================================================================== Reported By: gcth Assigned To: paul ====================================================================== Project: DBMail Issue ID: 957 Category: IMAP daemon Reproducibility: always Severity: major Priority: normal Status: confirmed target: ====================================================================== Date Submitted: 27-Jan-12 11:07 CET Last Modified: 27-Jan-12 16:35 CET ====================================================================== Summary: imapd leaks sockets Description: I'm currently using latest git dbmail with imap only, and I've noticed that it refuses connections after few hours of working. lsof shows lots of open sockets:
dbmail-im 24466 dbmail 1352u sock 0,6 0t0 1917799 can't identify protocol dbmail-im 24466 dbmail 1353u sock 0,6 0t0 1917800 can't identify protocol dbmail-im 24466 dbmail 1354u sock 0,6 0t0 1917801 can't identify protocol dbmail-im 24466 dbmail 1355u sock 0,6 0t0 1917802 can't identify protocol dbmail-im 24466 dbmail 1356u sock 0,6 0t0 1917803 can't identify protocol dbmail-im 24466 dbmail 1357u sock 0,6 0t0 1917804 can't identify protocol dbmail-im 24466 dbmail 1358u sock 0,6 0t0 1917805 can't identify protocol they are increasing in time leading to saturation of nofiles ulimit. This problem applies to imapd, I could not reproduce this problem with pop3. Typical clients connects with latest thundderbird, mostly from local LAN. Increasing ulimit -n to 8192 allows enough leaks to last for whole day, so now as a workaround I restart dbmail every night. I'm attaching munin graph for: lsof -ln -u dbmail | grep ^dbmail-im | fgrep sock\ -c during normal work hours. ====================================================================== ---------------------------------------------------------------------- (0003392) paul (administrator) - 27-Jan-12 16:35 http://www.dbmail.org/mantis/view.php?id=957#c3392 ---------------------------------------------------------------------- I can confirm this. Looks like there is a thread-race in the imap code. Issue History Date Modified Username Field Change ====================================================================== 27-Jan-12 11:07 gcth New Issue 27-Jan-12 11:07 gcth File Added: sockets.png 27-Jan-12 16:35 paul Note Added: 0003392 27-Jan-12 16:35 paul Assigned To => paul 27-Jan-12 16:35 paul Status new => confirmed ====================================================================== _______________________________________________ Dbmail-dev mailing list Dbmail-dev@dbmail.org http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail-dev