summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/smtpd.c
diff options
context:
space:
mode:
authorEric Faurot <eric@cvs.openbsd.org>2014-07-10 14:45:03 +0000
committerEric Faurot <eric@cvs.openbsd.org>2014-07-10 14:45:03 +0000
commit7fe09af8ed39a0b92b125886a9ff828900114a09 (patch)
treef3acaa3e7e26b72c74ad671b2f4e36778d825771 /usr.sbin/smtpd/smtpd.c
parent4e85abcf469bf47550023272e2657d9a29b65bae (diff)
Improve the scheduler, better and simpler.
- Get rid of the scheduler_batch structure. The scheduler can now return envelopes of different types in a single run, interlacing them to avoid batch effects. - Ask for an acknowledgement from the queue when removing or expiring an envelope to benefit from the inflight envelope limitation mechanism. This ensures that the scheduler always keeps sending envelopes at a rate that the queue can sustain in all cases. - Limit the number of envelopes in a holdq. When a holdq is full, new envelopes are put back in the pending queue instead, with a shorter retry time. - Plumbing for proc-ified schedulers. imsg version bump. smtpctl stop before updating. ok gilles@
Diffstat (limited to 'usr.sbin/smtpd/smtpd.c')
-rw-r--r--usr.sbin/smtpd/smtpd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/smtpd/smtpd.c b/usr.sbin/smtpd/smtpd.c
index 3a11a2a49eb..09ada703b7d 100644
--- a/usr.sbin/smtpd/smtpd.c
+++ b/usr.sbin/smtpd/smtpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: smtpd.c,v 1.232 2014/07/09 09:53:37 eric Exp $ */
+/* $OpenBSD: smtpd.c,v 1.233 2014/07/10 14:45:02 eric Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@poolp.org>
@@ -1435,6 +1435,7 @@ imsg_to_str(int type)
CASE(IMSG_QUEUE_DELIVERY_TEMPFAIL);
CASE(IMSG_QUEUE_DELIVERY_PERMFAIL);
CASE(IMSG_QUEUE_DELIVERY_LOOP);
+ CASE(IMSG_QUEUE_ENVELOPE_ACK);
CASE(IMSG_QUEUE_ENVELOPE_COMMIT);
CASE(IMSG_QUEUE_ENVELOPE_REMOVE);
CASE(IMSG_QUEUE_ENVELOPE_SCHEDULE);