]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lmtp: Don't idle-timeout LMTP client while proxying waits for DATA replies.
authorTimo Sirainen <tss@iki.fi>
Mon, 2 Jul 2012 07:09:15 +0000 (10:09 +0300)
committerTimo Sirainen <tss@iki.fi>
Mon, 2 Jul 2012 07:09:15 +0000 (10:09 +0300)
src/lmtp/commands.c

index e7dacfbcb88ba4e7b7e26cf78deb562c4a2f9a01..009a4461b00907feae4474bd743b48af3321afda 100644 (file)
@@ -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);