From: Timo Sirainen Date: Thu, 7 Jun 2018 11:20:33 +0000 (+0300) Subject: imap: Finish client ostream at disconnect X-Git-Tag: 2.3.3.rc1~278 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3468508c88d967f139b3b52a3f134602ec815d96;p=thirdparty%2Fdovecot%2Fcore.git imap: Finish client ostream at disconnect With IMAP COMPRESS this sends the EOF marker, indicating cleanly closed connection. --- diff --git a/src/imap/imap-client.c b/src/imap/imap-client.c index 37c77a9fa8..baa468374d 100644 --- a/src/imap/imap-client.c +++ b/src/imap/imap-client.c @@ -525,6 +525,8 @@ void client_disconnect(struct client *client, const char *reason) client->disconnected = TRUE; client->disconnect_reason = p_strdup(client->pool, reason); + /* Finish the ostream. With IMAP COMPRESS this sends the EOF marker. */ + (void)o_stream_finish(client->output); o_stream_uncork(client->output); i_stream_close(client->input);