https://issues.apache.org/SpamAssassin/show_bug.cgi?id=7034
Bug ID: 7034 Summary: Redis.pm leaks file descriptors when preforking Product: Spamassassin Version: 3.4.0 Hardware: PC OS: Linux Status: NEW Severity: major Priority: P2 Component: Libraries Assignee: dev@spamassassin.apache.org Reporter: g...@grin.hu --- Redis.pm.orig 2014-04-16 11:29:16.445359781 +0200 +++ Redis.pm.new 2014-04-16 14:14:18.944725739 +0200 @@ -462,12 +462,18 @@ =cut sub untie_db { my $self = shift; $self->{is_officially_open} = $self->{is_writable} = 0; + + # It seems to be a good idea to keep the data connection, but it really isn't + # when prefork reinits and reconnects on every new checks and keeps old open + # connection till the redis server reaches max connections and chokes. + $self->disconnect; + return; } =head2 sync_due public instance (Boolean) sync_due () -- You are receiving this mail because: You are the assignee for the bug.