[Mimedefang] Open filedescriptors waring on a busy server

Martin Blapp mb at imp.ch
Wed Apr 13 15:38:58 EDT 2005


Hi David,

I'm a but clueless, but the more load I see on our server, the following
well known warning is ussued:

WARNING: Something in your Perl filter appears to have opened a file descriptor 
outside of any function.  With embedded Perl, you should move any code that 
opens a file descriptor into filter_initialize.  On some systems, the
C library may open a descriptor, but you should verify your filter just in case

If I start mimedefang before sendmail everthing goes ok, and I don't see
the warning. But if sendmail is already running at this time, mimedefang 
immediatly logs this error after startup.

Of course we use filter_cleanup and filter_initialize for database connections
in  mimedefang-filter so I'm a bit clueless. Could it be that some of the
main code is executed too slowly because the filter is spending to much
time acception already arriving connections ?

Martin

Martin Blapp, <mb at imp.ch> <mbr at FreeBSD.org>
------------------------------------------------------------------
ImproWare AG, UNIXSP & ISP, Zurlindenstrasse 29, 4133 Pratteln, CH
Phone: +41 61 826 93 00 Fax: +41 61 826 93 01
PGP: <finger -l mbr at freebsd.org>
PGP Fingerprint: B434 53FC C87C FE7B 0A18 B84C 8686 EF22 D300 551E
------------------------------------------------------------------



More information about the MIMEDefang mailing list