[master] 5385a47 Report where in the gzip stream we found trouble
Poul-Henning Kamp
phk at varnish-cache.org
Thu Jan 27 19:19:30 CET 2011
commit 5385a47c1620f98e9a2972f5f4b6dbb84786b5bd
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Thu Jan 27 18:16:30 2011 +0000
Report where in the gzip stream we found trouble
diff --git a/bin/varnishtest/vtc_http.c b/bin/varnishtest/vtc_http.c
index c9eb09a..ec50a33 100644
--- a/bin/varnishtest/vtc_http.c
+++ b/bin/varnishtest/vtc_http.c
@@ -555,7 +555,8 @@ 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 (%s)", i, vz.msg);
+ vtc_log(hp->vl, 0, "Gunzip error = %d (%s) in:%jd out:%jd",
+ i, vz.msg, (intmax_t)vz.total_in, (intmax_t)vz.total_out);
hp->bodyl = vz.total_out;
memcpy(hp->body, p, hp->bodyl);
free(p);
More information about the varnish-commit
mailing list