From: Victor Duchovni (no email)
Date: Wed Dec 01 2004 - 00:55:55 EST
On Tue, Nov 30, 2004 at 09:35:20PM -0800, Jon Forrest wrote:
> Instead of blindly scanning the deferred queue
> every queue_run_delay seconds, why not use the
> smallest timestamp value of any message in the
> deferred queue as the time to do the next scan?
> This way you'd know that there is at least
> one message that's ready for a delivery attempt.
> There would never be any needless scans.
>
This is a non-problem. When the deferred queue is nearly empty, the
"needless" scans are very fast. When the queue is big, each scan finds
mail which has reached its retry time. The queue manager is not the only
process that puts mail in the deffered queue (postsuper -H does it also,
as does my not adopted DELAY action feature patch), so the queue manager
cannot a-priori know the retry time of all mail in the deferred queue.
-- Viktor. Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the "Reply-To" header. To unsubscribe from the postfix-users list, visit http://www.postfix.org/lists.html or click the link below: <mailto:?body=unsubscribe%20postfix-users>
|
|
|