From: Timo Sirainen Date: Wed, 6 Nov 2019 12:32:57 +0000 (+0200) Subject: lib-smtp: Uncork connection after QUIT, not before X-Git-Tag: 2.3.10~310 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f6232017cbdb1f34dfd9f2ef722022f978b34f25;p=thirdparty%2Fdovecot%2Fcore.git lib-smtp: Uncork connection after QUIT, not before This makes it more likely to work and without an extra TCP packet. --- diff --git a/src/lib-smtp/smtp-client-connection.c b/src/lib-smtp/smtp-client-connection.c index 610cca0ef5..730fae504c 100644 --- a/src/lib-smtp/smtp-client-connection.c +++ b/src/lib-smtp/smtp-client-connection.c @@ -1693,8 +1693,8 @@ void smtp_client_connection_disconnect(struct smtp_client_connection *conn) if (conn->conn.output != NULL && !conn->sent_quit && !conn->sending_command) { /* Close the connection gracefully if possible */ - o_stream_uncork(conn->conn.output); o_stream_nsend_str(conn->conn.output, "QUIT\r\n"); + o_stream_uncork(conn->conn.output); } if (conn->dns_lookup != NULL)