dovecot-1.1: dict-proxy: Fix error message if remote disconnects.

dovecot at dovecot.org dovecot at dovecot.org
Wed Jul 9 17:43:18 EEST 2008


details:   http://hg.dovecot.org/dovecot-1.1/rev/7439ce93a5a9
changeset: 7738:7439ce93a5a9
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Jul 09 20:13:10 2008 +0530
description:
dict-proxy: Fix error message if remote disconnects.

diffstat:

1 file changed, 2 insertions(+)
src/lib-dict/dict-client.c |    2 ++

diffs (12 lines):

diff -r a075b7adb659 -r 7439ce93a5a9 src/lib-dict/dict-client.c
--- a/src/lib-dict/dict-client.c	Wed Jul 09 19:35:41 2008 +0530
+++ b/src/lib-dict/dict-client.c	Wed Jul 09 20:13:10 2008 +0530
@@ -231,6 +231,8 @@ static char *client_dict_read_line(struc
 
 	if (ret == -2)
 		i_error("read(%s) returned too much data", dict->path);
+	else if (dict->input->stream_errno == 0)
+		i_error("read(%s) failed: Remote disconnected", dict->path);
 	else
 		i_error("read(%s) failed: %m", dict->path);
 	return NULL;


More information about the dovecot-cvs mailing list