[dovecot-cvs] dovecot/src/imap imap-fetch-body.c,1.9,1.10

cras at dovecot.org cras at dovecot.org
Fri Sep 17 20:38:25 EEST 2004


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

Modified Files:
	imap-fetch-body.c 
Log Message:
Allow buffering of output stream when sending message body, to avoid tons of
write() calls if CRs have to be inserted.



Index: imap-fetch-body.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/imap/imap-fetch-body.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- imap-fetch-body.c	16 Sep 2004 15:03:21 -0000	1.9
+++ imap-fetch-body.c	17 Sep 2004 17:38:22 -0000	1.10
@@ -210,7 +210,7 @@
 {
 	off_t ret;
 
-	o_stream_set_max_buffer_size(ctx->client->output, 0);
+	o_stream_set_max_buffer_size(ctx->client->output, 4096);
 	ret = imap_fetch_send(ctx->client->output, ctx->cur_input,
 			      ctx->skip_cr, ctx->cur_size - ctx->cur_offset,
 			      ctx->cur_append_eoh, &ctx->skip_cr);



More information about the dovecot-cvs mailing list