Mercurial > dovecot > original-hg > dovecot-1.2
changeset 4010:6519f3c7bd63 HEAD
Updated mbox_dotlock_change_timeout default value to 120. Also the mbox
default timeout values were wrong when not starting Dovecot via master
process.
author | Timo Sirainen <timo.sirainen@movial.fi> |
---|---|
date | Tue, 14 Feb 2006 15:06:58 +0200 |
parents | fbff841d532a |
children | 323c09be5f00 |
files | dovecot-example.conf src/lib-storage/index/mbox/mbox-lock.c src/master/master-settings.c |
diffstat | 3 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/dovecot-example.conf Tue Feb 14 15:04:17 2006 +0200 +++ b/dovecot-example.conf Tue Feb 14 15:06:58 2006 +0200 @@ -359,7 +359,7 @@ # If dotlock exists but the mailbox isn't modified in any way, override the # lock file after this many seconds. -#mbox_dotlock_change_timeout = 30 +#mbox_dotlock_change_timeout = 120 # When mbox changes unexpectedly we have to fully read it to find out what # changed. If the mbox is large this can take a long time. Since the change
--- a/src/lib-storage/index/mbox/mbox-lock.c Tue Feb 14 15:04:17 2006 +0200 +++ b/src/lib-storage/index/mbox/mbox-lock.c Tue Feb 14 15:06:58 2006 +0200 @@ -23,9 +23,9 @@ #define DEFAULT_READ_LOCK_METHODS "fcntl" #define DEFAULT_WRITE_LOCK_METHODS "dotlock fcntl" /* lock timeout */ -#define DEFAULT_LOCK_TIMEOUT (10*60) +#define DEFAULT_LOCK_TIMEOUT (5*60) /* assume stale dotlock if mbox file hasn't changed for n seconds */ -#define DEFAULT_DOTLOCK_CHANGE_TIMEOUT (10) +#define DEFAULT_DOTLOCK_CHANGE_TIMEOUT (120) enum mbox_lock_type { MBOX_LOCK_DOTLOCK,
--- a/src/master/master-settings.c Tue Feb 14 15:04:17 2006 +0200 +++ b/src/master/master-settings.c Tue Feb 14 15:06:58 2006 +0200 @@ -322,7 +322,7 @@ MEMBER(mbox_read_locks) "fcntl", MEMBER(mbox_write_locks) "dotlock fcntl", MEMBER(mbox_lock_timeout) 300, - MEMBER(mbox_dotlock_change_timeout) 30, + MEMBER(mbox_dotlock_change_timeout) 120, MEMBER(mbox_min_index_size) 0, MEMBER(mbox_dirty_syncs) TRUE, MEMBER(mbox_very_dirty_syncs) FALSE,