From c380c4dc1440da2f10fed88b01b4455dd1bf5358 Mon Sep 17 00:00:00 2001 From: phk Date: Fri, 30 Jun 2006 11:20:10 +0000 Subject: [PATCH] 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 --- varnish-cache/bin/varnishd/cache_fetch.c | 2 -- 1 file changed, 2 deletions(-) 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; } } } -- 2.39.5