]> err.no Git - varnish/commitdiff
Do not count chunked encoding headers in stat.hdrbytes.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 24 Nov 2008 12:24:55 +0000 (12:24 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 24 Nov 2008 12:24:55 +0000 (12:24 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3422 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_response.c

index 4cf2433d4c2c3e7ea51a7431c49203ad8447b069..8aafed480262df12b6d474786233b1ec801ea839 100644 (file)
@@ -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");