Mercurial > dovecot > original-hg > dovecot-1.2
changeset 6391:c5cff3c6828a HEAD
If connection closed because of EPIPE, log it as "Connection closed" instead
of including "Broken pipe", which gets people worried.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sat, 15 Sep 2007 15:29:16 +0300 |
parents | ff48b008150f |
children | 799b6c593cad |
files | src/imap/client.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/imap/client.c Sat Sep 15 15:18:45 2007 +0300 +++ b/src/imap/client.c Sat Sep 15 15:29:16 2007 +0300 @@ -96,7 +96,7 @@ 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"); }