]> Sergey Matveev's repositories - public-inbox.git/commitdiff
unsubscribe.milter: use default postfork dispatcher
authorEric Wong <e@80x24.org>
Fri, 27 May 2016 08:03:31 +0000 (08:03 +0000)
committerEric Wong <e@80x24.org>
Fri, 27 May 2016 08:07:20 +0000 (08:07 +0000)
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.

examples/unsubscribe.milter

index e19363862b8eaa82d55a6ce573449e8fd25b995c..eb1717baead92bf852c1f2cba46ebc6bd3a11af4 100644 (file)
@@ -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();