From 146c16d89609c3b09a23d1402c57a4c6f05fe106 Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Fri, 3 Jan 2014 22:52:08 +0100 Subject: [PATCH] Do not wait for server response to QUIT command. --- src/vmime/net/smtp/SMTPConnection.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/vmime/net/smtp/SMTPConnection.cpp b/src/vmime/net/smtp/SMTPConnection.cpp index 26be25db..e0b5bc68 100644 --- a/src/vmime/net/smtp/SMTPConnection.cpp +++ b/src/vmime/net/smtp/SMTPConnection.cpp @@ -525,7 +525,9 @@ void SMTPConnection::internalDisconnect() try { sendRequest(SMTPCommand::QUIT()); - readResponse(); + + // Do not wait for server response. This is contrary to the RFC, but + // some servers never send a response to a QUIT command. } catch (exception&) {