[dovecot-cvs] dovecot: Use more corking

dovecot at dovecot.org dovecot at dovecot.org
Wed May 30 16:59:45 EEST 2007


details:   http://hg.dovecot.org/dovecot/rev/c53d0698d56f
changeset: 5669:c53d0698d56f
user:      Timo Sirainen <tss at iki.fi>
date:      Wed May 30 16:59:41 2007 +0300
description:
Use more corking

diffstat:

1 file changed, 3 insertions(+)
src/imap/cmd-append.c |    3 +++

diffs (21 lines):

diff -r c981e66cc78e -r c53d0698d56f src/imap/cmd-append.c
--- a/src/imap/cmd-append.c	Wed May 30 15:19:20 2007 +0300
+++ b/src/imap/cmd-append.c	Wed May 30 16:59:41 2007 +0300
@@ -72,7 +72,9 @@ static void client_input(struct client_c
 		return;
 	}
 
+	o_stream_cork(client->output);
 	if (cmd->func(cmd)) {
+		o_stream_uncork(client->output);
 		client_command_free(cmd);
 		client_continue_pending_input(client);
 	}
@@ -342,6 +344,7 @@ static bool cmd_append_continue_parsing(
 		o_stream_send(client->output, "+ OK\r\n", 6);
 		o_stream_flush(client->output);
 		o_stream_uncork(client->output);
+		o_stream_cork(client->output);
 	}
 
 	ctx->count++;


More information about the dovecot-cvs mailing list