From: Eric Wong Date: Fri, 27 May 2016 08:03:31 +0000 (+0000) Subject: unsubscribe.milter: use default postfork dispatcher X-Git-Tag: v1.0.0~461^2 X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=commitdiff_plain;h=852df982d88dcfaa49a1398cd6ef30973bcaaa09 unsubscribe.milter: use default postfork dispatcher Let postfix (or sendmail :P) control the concurrency limit instead of doing it ourselves. This is necessary because SMTP connections are completely synchronous at this point and a slow/idle SMTP connection will monopolize the worker process. --- diff --git a/examples/unsubscribe.milter b/examples/unsubscribe.milter index e1936386..eb1717ba 100644 --- a/examples/unsubscribe.milter +++ b/examples/unsubscribe.milter @@ -134,6 +134,4 @@ if ($fds && (($ENV{LISTEN_PID} || 0) == $$)) { } $milter->register('unsubscribe', \%cbs, SMFI_CURR_ACTS); -my $dispatcher = Sendmail::PMilter::prefork_dispatcher(max_children => 2); -$milter->set_dispatcher($dispatcher); $milter->main();