dovecot-1.2: Mail cache file: Changed lock timeout to just 2 sec...

dovecot at dovecot.org dovecot at dovecot.org
Tue Sep 9 18:34:54 EEST 2008


details:   http://hg.dovecot.org/dovecot-1.2/rev/4bfe2c1c375f
changeset: 8182:4bfe2c1c375f
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Sep 09 18:34:29 2008 +0300
description:
Mail cache file: Changed lock timeout to just 2 seconds.
It's better to not update cache than waste a lot of time waiting for a lock.
Also increased staleness timeout to 5 minutes - it's safer that way and with
the reduced lock timeout doesn't matter as much.

diffstat:

1 file changed, 2 insertions(+), 2 deletions(-)
src/lib-index/mail-cache-private.h |    4 ++--

diffs (14 lines):

diff -r 5c0c674eae1a -r 4bfe2c1c375f src/lib-index/mail-cache-private.h
--- a/src/lib-index/mail-cache-private.h	Tue Sep 09 18:30:23 2008 +0300
+++ b/src/lib-index/mail-cache-private.h	Tue Sep 09 18:34:29 2008 +0300
@@ -36,8 +36,8 @@
 /* When allocating space for transactions, don't use blocks larger than this. */
 #define MAIL_CACHE_MAX_RESERVED_BLOCK_SIZE (1024*512)
 
-#define MAIL_CACHE_LOCK_TIMEOUT 120
-#define MAIL_CACHE_LOCK_CHANGE_TIMEOUT 60
+#define MAIL_CACHE_LOCK_TIMEOUT 2
+#define MAIL_CACHE_LOCK_CHANGE_TIMEOUT 300
 
 #define CACHE_RECORD(cache, offset) \
 	((const struct mail_cache_record *) \


More information about the dovecot-cvs mailing list