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.2.rc1~18 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bf307d4c28638ef77a73ad8ebe35a3bbed8bd9e9;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);