]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-http: Minor improvement to "disconnected during payload read" error message.
authorTimo Sirainen <tss@iki.fi>
Tue, 6 Oct 2015 15:17:45 +0000 (18:17 +0300)
committerTimo Sirainen <tss@iki.fi>
Tue, 6 Oct 2015 15:17:45 +0000 (18:17 +0300)
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.

src/lib-http/http-message-parser.c

index 6b92992e68dbd1354c5ed683521b82f862c7151f..c36518e243fe67eb9fd36afa1572940fb164130f 100644 (file)
@@ -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));
 }