[Mimedefang] Multiplexor and reentrancy

David F. Skoll dfs at roaringpenguin.com
Sat Feb 16 09:49:50 EST 2002


On Fri, 15 Feb 2002, Michael D. Sofka wrote:

> Hum.  Well, here is what happened.  With the multiplexor and local_tests_only
> set to 0 the first message checked by each multiplexed mimedefang.pl worked.
> Each subsequent message timed out. This would continue until the maxRequests
> was reached, at which point one more message would be processed.

That's not a reentrancy problem; it's an initialization/cleanup problem.
When you use the multiplexor, you must do all of your initialization in
filter_begin, and all of your cleanup in filter_end.  Those functions get
executed once per e-mail.

If you have initialization outside filter_begin or cleanup outside filter_end,
that code gets executed only once per Perl process.  This is appropriate
for some things (use foo::module, for example), but not for others.

Regards,

David.




More information about the MIMEDefang mailing list