]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lmtp client: Do corking when sending message data.
authorTimo Sirainen <tss@iki.fi>
Thu, 30 Jun 2011 05:34:28 +0000 (08:34 +0300)
committerTimo Sirainen <tss@iki.fi>
Thu, 30 Jun 2011 05:34:28 +0000 (08:34 +0300)
src/lib-lda/lmtp-client.c

index db928100a6c7cfde5e7e083fae1a5e41cf18298a..5cc77a6010642cb30f23776b539669e6ad1ca4a5 100644 (file)
@@ -592,8 +592,11 @@ void lmtp_client_send(struct lmtp_client *client, struct istream *data_input)
 
 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,