[3.0] b164c06 Fix for an issue where the bodybytes counter is not updated correctly on gunzipped delivery
Tollef Fog Heen
tfheen at varnish-cache.org
Fri Jul 13 11:36:07 CEST 2012
commit b164c06c36098b8c2881bac2d5cc2fbfca6f10f7
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