dovecot-2.2-pigeonhole: managesieve: If client gets disconnected...
pigeonhole at rename-it.nl
pigeonhole at rename-it.nl
Sun Oct 19 20:50:40 UTC 2014
details: http://hg.rename-it.nl/dovecot-2.2-pigeonhole/rev/819b8fb22034
changeset: 1935:819b8fb22034
user: Stephan Bosch <stephan at rename-it.nl>
date: Sun Oct 19 22:50:23 2014 +0200
description:
managesieve: If client gets disconnected due to iostream error, log the full error.
diffstat:
src/managesieve/managesieve-client.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r aad132a56c88 -r 819b8fb22034 src/managesieve/managesieve-client.c
--- a/src/managesieve/managesieve-client.c Sun Oct 19 18:14:20 2014 +0200
+++ b/src/managesieve/managesieve-client.c Sun Oct 19 22:50:23 2014 +0200
@@ -200,8 +200,12 @@
errno = client->input->stream_errno != 0 ?
client->input->stream_errno :
client->output->stream_errno;
- return errno == 0 || errno == EPIPE ? "Connection closed" :
- t_strdup_printf("Connection closed: %m");
+ if (errno == 0 || errno == EPIPE)
+ return "Connection closed";
+ return t_strdup_printf("Connection closed: %s",
+ client->input->stream_errno != 0 ?
+ i_stream_get_error(client->input) :
+ o_stream_get_error(client->output));
}
void client_destroy(struct client *client, const char *reason)
More information about the dovecot-cvs
mailing list