Mercurial > dovecot > core-2.2
changeset 2638:f7bad0650b25 HEAD
Allow buffering of output stream when sending message body, to avoid tons of
write() calls if CRs have to be inserted.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 17 Sep 2004 20:38:22 +0300 |
parents | 417f835dfcab |
children | a307ddd22a3a |
files | src/imap/imap-fetch-body.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/imap/imap-fetch-body.c Fri Sep 17 18:54:25 2004 +0300 +++ b/src/imap/imap-fetch-body.c Fri Sep 17 20:38:22 2004 +0300 @@ -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);