[master] f84f6a8 Report the zlib message if we have gunzip trouble

Poul-Henning Kamp phk at project.varnish-software.com
Sat Jan 22 10:33:57 CET 2011


commit f84f6a80979392deaea0a3b7d2327fff8945c4a7
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Sat Jan 22 09:32:56 2011 +0000

    Report the zlib message if we have gunzip trouble

diff --git a/bin/varnishtest/vtc_http.c b/bin/varnishtest/vtc_http.c
index c4c4ca9..cf34a4e 100644
--- a/bin/varnishtest/vtc_http.c
+++ b/bin/varnishtest/vtc_http.c
@@ -546,7 +546,7 @@ cmd_http_gunzip_body(CMD_ARGS)
 	assert(Z_OK == inflateInit2(&vz, 31));
 	i = inflate(&vz, Z_FINISH);
 	if (i != Z_STREAM_END)
-		vtc_log(hp->vl, 0, "Gunzip error = %d", i);
+		vtc_log(hp->vl, 0, "Gunzip error = %d (%s)", i, vz.msg);
 	hp->bodyl = vz.total_out;
 	memcpy(hp->body, p, hp->bodyl);
 	free(p);



More information about the varnish-commit mailing list