[dovecot-cvs] dovecot/src/lib-storage mail-storage.h, 1.107.2.5, 1.107.2.6

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


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

Modified Files:
      Tag: branch_1_0
	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.107.2.5
retrieving revision 1.107.2.6
diff -u -d -r1.107.2.5 -r1.107.2.6
--- mail-storage.h	28 Dec 2006 16:27:42 -0000	1.107.2.5
+++ mail-storage.h	21 Mar 2007 19:19:49 -0000	1.107.2.6
@@ -5,6 +5,9 @@
 
 #include "mail-types.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