[dovecot-cvs] dovecot/src/imap cmd-append.c,1.80.2.3,1.80.2.4

tss at dovecot.org tss at dovecot.org
Fri Feb 16 14:03:09 UTC 2007


Update of /var/lib/cvs/dovecot/src/imap
In directory talvi:/tmp/cvs-serv7225

Modified Files:
      Tag: branch_1_0
	cmd-append.c 
Log Message:
APPEND ate all CPU if client didn't send the message fast enough (since
rc22).



Index: cmd-append.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/imap/cmd-append.c,v
retrieving revision 1.80.2.3
retrieving revision 1.80.2.4
diff -u -d -r1.80.2.3 -r1.80.2.4
--- cmd-append.c	15 Feb 2007 11:38:45 -0000	1.80.2.3
+++ cmd-append.c	16 Feb 2007 14:03:07 -0000	1.80.2.4
@@ -320,7 +320,7 @@
 				   from client */
 				mailbox_save_cancel(&ctx->save_ctx);
 			}
-			if (ret == -1)
+			if (ret == -1 || ret == 0)
 				break;
 		}
 	}



More information about the dovecot-cvs mailing list