From: Timo Sirainen Date: Mon, 2 Jul 2012 07:09:15 +0000 (+0300) Subject: lmtp: Don't idle-timeout LMTP client while proxying waits for DATA replies. X-Git-Tag: 2.1.8~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb340f9dfd8ca3a66ef6830c047333a220e8f9b3;p=thirdparty%2Fdovecot%2Fcore.git lmtp: Don't idle-timeout LMTP client while proxying waits for DATA replies. --- diff --git a/src/lmtp/commands.c b/src/lmtp/commands.c index e7dacfbcb8..009a4461b0 100644 --- a/src/lmtp/commands.c +++ b/src/lmtp/commands.c @@ -771,6 +771,9 @@ static bool client_input_data_write(struct client *client) struct istream *input; bool ret = TRUE; + /* stop handling client input until saving/proxying is finished */ + if (client->to_idle != NULL) + timeout_remove(&client->to_idle); io_remove(&client->io); i_stream_destroy(&client->dot_input);