From: Timo Sirainen Date: Tue, 6 Oct 2015 15:17:45 +0000 (+0300) Subject: lib-http: Minor improvement to "disconnected during payload read" error message. X-Git-Tag: 2.2.20.rc1~166 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc61333d29f122122e27c11f20d7efd5fe8a97cc;p=thirdparty%2Fdovecot%2Fcore.git lib-http: Minor improvement to "disconnected during payload read" error message. The same error is also used for http-server for parsing client input, so the message shouldn't say anything about reading the input from server. --- diff --git a/src/lib-http/http-message-parser.c b/src/lib-http/http-message-parser.c index 6b92992e68..c36518e243 100644 --- a/src/lib-http/http-message-parser.c +++ b/src/lib-http/http-message-parser.c @@ -392,7 +392,7 @@ http_istream_error_callback(const struct istream_sized_error_data *data, i_assert(data->eof); i_assert(data->v_offset + data->new_bytes < data->wanted_size); - return t_strdup_printf("Disconnected from server at offset %"PRIuUOFF_T + return t_strdup_printf("Disconnected while reading response payload at offset %"PRIuUOFF_T " (wanted %"PRIuUOFF_T"): %s", data->v_offset + data->new_bytes, data->wanted_size, io_stream_get_disconnect_reason(input, NULL)); }