Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

methodtSmtpSpool.Stop

procedure Stop;
Stops accepting new work and winds the threads down. The queue on disk is untouched: whatever has not been delivered is picked up by the next Start.

IT WAITS FOR A DELIVERY IN PROGRESS, and DrainTimeout is how long it waits QUIETLY. A delivery holds the spool's own lock and event, and the destructor frees both the moment Stop returns - so returning early and leaving a worker running would free the ground under it. The timeout is therefore a DIAGNOSTIC bound, not a deadline: when it expires the reason is logged, naming the timeout, and the wait continues. Silence for ever was the thing worth fixing.