Comment 1 for bug 185749

Revision history for this message
Benji York (benji) wrote : Re: [Bug 185749] [NEW] zope.sendmail - stale lock links in queue prevent timely delivery after recovery from crash

Matthew Grant wrote:
> Solution is to implement a queue cleaning routine that deletes all the
> '.sending-*' lock links on thread startup, that is optionally turned on
> by a flag in the zope.sendmail configuration zcml.

The problem with that approach is that if there are multiple
threads/processes sharing a queue, some non-stale locks will be cleared
unnecessarily.

There is already code for dealing with stale locks in zope.sendmail. It
may be flawed, but that's the first place to go for solving this.