about summary refs log tree commit homepage
path: root/examples/unsubscribe.milter
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-05-27 08:03:31 +0000
committerEric Wong <e@80x24.org>2016-05-27 08:07:20 +0000
commit852df982d88dcfaa49a1398cd6ef30973bcaaa09 (patch)
treed8b015b05251394d977026b7514962cfc4d2c4fe /examples/unsubscribe.milter
parent751d334bd1d17031aa642e6c5cd53ff70eb28866 (diff)
downloadpublic-inbox-852df982d88dcfaa49a1398cd6ef30973bcaaa09.tar.gz
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.
Diffstat (limited to 'examples/unsubscribe.milter')
-rw-r--r--examples/unsubscribe.milter2
1 files changed, 0 insertions, 2 deletions
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();