From: phk Date: Fri, 30 Jun 2006 11:20:10 +0000 (+0000) Subject: Fix object length double accounting in chunked fetch X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c380c4dc1440da2f10fed88b01b4455dd1bf5358;p=varnish Fix object length double accounting in chunked fetch git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@272 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache_fetch.c b/varnish-cache/bin/varnishd/cache_fetch.c index 45c79371..aad76d92 100644 --- a/varnish-cache/bin/varnishd/cache_fetch.c +++ b/varnish-cache/bin/varnishd/cache_fetch.c @@ -161,7 +161,6 @@ fetch_chunked(struct worker *w, struct sess *sp, int fd, struct http *hp) st->len += e - b; v -= e - b; u -= e - b; - sp->obj->len += e - b; } while (v > 0) { i = read(fd, p, v); @@ -170,7 +169,6 @@ fetch_chunked(struct worker *w, struct sess *sp, int fd, struct http *hp) v -= i; u -= i; p += i; - sp->obj->len += i; } } }