[3.0] b50bbd6 Fix for an issue where the bodybytes counter is not updated correctly on gunzipped delivery
Dag Haavi Finstad
daghf at varnish-cache.org
Tue Jul 17 15:39:07 CEST 2012
commit b50bbd6f6beefab8f8dda8b82cae66cf8324e0af
Author: Dag Haavi Finstad <daghf at varnish-software.com>
Date: Thu Jul 5 14:54:03 2012 +0200
Fix for an issue where the bodybytes counter is not updated correctly on gunzipped delivery
diff --git a/bin/varnishd/cache_response.c b/bin/varnishd/cache_response.c
index 5a0ee9e..f22d48a 100644
--- a/bin/varnishd/cache_response.c
+++ b/bin/varnishd/cache_response.c
@@ -185,6 +185,7 @@ res_WriteGunzipObj(struct sess *sp)
(void)i;
}
if (obufl) {
+ sp->wrk->acct_tmp.bodybytes += obufl;
(void)WRW_Write(sp->wrk, obuf, obufl);
(void)WRW_Flush(sp->wrk);
}
More information about the varnish-commit
mailing list