dovecot: If connection closed because of EPIPE, log it as "Conne...

dovecot at dovecot.org dovecot at dovecot.org
Sat Sep 15 15:29:23 EEST 2007


details:   http://hg.dovecot.org/dovecot/rev/c5cff3c6828a
changeset: 6391:c5cff3c6828a
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 ff48b008150f -r c5cff3c6828a src/imap/client.c
--- 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 @@ 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