dovecot-1.0: If connection closed because of EPIPE, log it as "C...
dovecot at dovecot.org
dovecot at dovecot.org
Sat Sep 15 15:29:20 EEST 2007
details: http://hg.dovecot.org/dovecot-1.0/rev/817aab069d6a
changeset: 5403:817aab069d6a
user: Timo Sirainen <tss at iki.fi>
date: Sat Sep 15 15:29:16 2007 +0300
description:
If connection closed because of EPIPE, log it as "Connection closed" instead
of including "Broken pipe", which gets people worried.
diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
src/imap/client.c | 2 +-
diffs (12 lines):
diff -r 18f69979e596 -r 817aab069d6a src/imap/client.c
--- a/src/imap/client.c Tue Sep 11 04:49:33 2007 +0300
+++ b/src/imap/client.c Sat Sep 15 15:29:16 2007 +0300
@@ -65,7 +65,7 @@ static const char *client_get_disconnect
errno = client->input->stream_errno != 0 ?
client->input->stream_errno :
client->output->stream_errno;
- return errno == 0 ? "Connection closed" :
+ return errno == 0 || errno == EPIPE ? "Connection closed" :
t_strdup_printf("Connection closed: %m");
}
More information about the dovecot-cvs
mailing list