[dovecot-cvs] dovecot/src/lib-storage mail-storage.h,1.125,1.126

tss at dovecot.org tss at dovecot.org
Wed Mar 21 21:19:58 EET 2007


Update of /var/lib/cvs/dovecot/src/lib-storage
In directory talvi:/tmp/cvs-serv16994/lib-storage

Modified Files:
	mail-storage.h 
Log Message:
When copying/syncing a lot of mails, send "* OK Hang in there" replies to
client every 15 seconds so it doesn't just timeout the connection.



Index: mail-storage.h
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/mail-storage.h,v
retrieving revision 1.125
retrieving revision 1.126
diff -u -d -r1.125 -r1.126
--- mail-storage.h	18 Jan 2007 16:57:43 -0000	1.125
+++ mail-storage.h	21 Mar 2007 19:19:55 -0000	1.126
@@ -6,6 +6,9 @@
 #include "mail-types.h"
 #include "mailbox-list.h"
 
+/* If some operation is taking long, call notify_ok every n seconds. */
+#define MAIL_STORAGE_STAYALIVE_SECS 15
+
 enum mail_storage_flags {
 	/* Print debugging information while initializing the storage */
 	MAIL_STORAGE_FLAG_DEBUG			= 0x01,



More information about the dovecot-cvs mailing list