From: phk Date: Mon, 24 Nov 2008 12:24:55 +0000 (+0000) Subject: Do not count chunked encoding headers in stat.hdrbytes. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e63bb4a2372e5846bb6d512bda7948d98e97052e;p=varnish Do not count chunked encoding headers in stat.hdrbytes. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3422 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache_response.c b/varnish-cache/bin/varnishd/cache_response.c index 4cf2433d..8aafed48 100644 --- a/varnish-cache/bin/varnishd/cache_response.c +++ b/varnish-cache/bin/varnishd/cache_response.c @@ -146,8 +146,7 @@ RES_WriteObj(struct sess *sp) } else if (sp->wantbody) { if (sp->esis > 0 && sp->http->protover >= 1.1) { sprintf(lenbuf, "%x\r\n", sp->obj->len); - sp->wrk->acct.hdrbytes += - WRK_Write(sp->wrk, lenbuf, -1); + (void)WRK_Write(sp->wrk, lenbuf, -1); } VTAILQ_FOREACH(st, &sp->obj->store, list) { @@ -171,11 +170,11 @@ RES_WriteObj(struct sess *sp) } #endif /* SENDFILE_WORKS */ VSL_stats->n_objwrite++; - WRK_Write(sp->wrk, st->ptr, st->len); + (void)WRK_Write(sp->wrk, st->ptr, st->len); } assert(u == sp->obj->len); if (sp->esis > 0 && sp->http->protover >= 1.1) - WRK_Write(sp->wrk, "\r\n", -1); + (void)WRK_Write(sp->wrk, "\r\n", -1); } if (WRK_Flush(sp->wrk)) vca_close_session(sp, "remote closed");