dovecot-2.1: imapc: If remote server disconnects, log the reason.
dovecot at dovecot.org
dovecot at dovecot.org
Thu Dec 1 09:25:18 EET 2011
details: http://hg.dovecot.org/dovecot-2.1/rev/8e5c9f3ca158
changeset: 13789:8e5c9f3ca158
user: Timo Sirainen <tss at iki.fi>
date: Thu Dec 01 09:24:58 2011 +0200
description:
imapc: If remote server disconnects, log the reason.
diffstat:
src/lib-imap-client/imapc-connection.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (17 lines):
diff -r e99c65be76f7 -r 8e5c9f3ca158 src/lib-imap-client/imapc-connection.c
--- a/src/lib-imap-client/imapc-connection.c Thu Dec 01 09:15:53 2011 +0200
+++ b/src/lib-imap-client/imapc-connection.c Thu Dec 01 09:24:58 2011 +0200
@@ -1108,8 +1108,12 @@
conn->name);
} else if (!conn->handshake_failed) {
errstr = ssl_iostream_get_last_error(conn->ssl_iostream);
+ if (errstr == NULL) {
+ errstr = conn->input->stream_errno == 0 ? "EOF" :
+ strerror(conn->input->stream_errno);
+ }
i_error("imapc(%s): Server disconnected: %s",
- conn->name, errstr != NULL ? errstr : "");
+ conn->name, errstr);
}
imapc_connection_reconnect(conn);
}
More information about the dovecot-cvs
mailing list