On Tue, Jul 08, 2003 at 03:16:19PM +0000, Mark wrote:
> Does that mean "sa-learn" locks too? In that case, doing "sa-learn" would be
> safe (if boths spamd and sa-learn observe the lock). But I take it, that
> also means spamd will "hang" during sa-learn, waiting to acquire the lock?

Yes, sa-learn and spamd use the same code for accessing the DB, so they
both lock and unlock in the same way.

spamd can "hang" a little bit.  Newer (2.52 or 2.53 and beyond, I think)
versions of SA have multiple timeouts for the lock.  sa-learn will sit
and wait a long time.  spamd will wait a short time (autolearning is
opportunistic, not guaranteed...)

The defaults are 10 seconds for auto-learn, 300 seconds for sa-learn.

-- 
Randomly Generated Tagline:
"We all know Linux is great...it does infinite loops in 5 seconds."
 (Linus Torvalds about the superiority of Linux on the Amterdam
 Linux Symposium)

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to