]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Mail cache file: Changed lock timeout to just 2 seconds.
authorTimo Sirainen <tss@iki.fi>
Tue, 9 Sep 2008 15:34:29 +0000 (18:34 +0300)
committerTimo Sirainen <tss@iki.fi>
Tue, 9 Sep 2008 15:34:29 +0000 (18:34 +0300)
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.

--HG--
branch : HEAD

src/lib-index/mail-cache-private.h

index 85abfca6061b7c4d7915f88e092679ce3f8a7cd4..4825e8f1f36286438b8d4f4734b70eb735d0a78a 100644 (file)
@@ -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 *) \