dovecot-2.0: lmtp client: Do corking when sending message data.
dovecot at dovecot.org
dovecot at dovecot.org
Thu Jun 30 08:34:35 EEST 2011
details: http://hg.dovecot.org/dovecot-2.0/rev/36e7ded2ef0b
changeset: 12865:36e7ded2ef0b
user: Timo Sirainen <tss at iki.fi>
date: Thu Jun 30 08:34:28 2011 +0300
description:
lmtp client: Do corking when sending message data.
diffstat:
src/lib-lda/lmtp-client.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (16 lines):
diff -r 1b1fc681a277 -r 36e7ded2ef0b src/lib-lda/lmtp-client.c
--- a/src/lib-lda/lmtp-client.c Thu Jun 30 08:27:32 2011 +0300
+++ b/src/lib-lda/lmtp-client.c Thu Jun 30 08:34:28 2011 +0300
@@ -592,8 +592,11 @@
void lmtp_client_send_more(struct lmtp_client *client)
{
- if (client->input_state == LMTP_INPUT_STATE_DATA)
+ if (client->input_state == LMTP_INPUT_STATE_DATA) {
+ o_stream_cork(client->output);
lmtp_client_send_data(client);
+ o_stream_uncork(client->output);
+ }
}
void lmtp_client_set_data_output_callback(struct lmtp_client *client,
More information about the dovecot-cvs
mailing list