]> err.no Git - varnish/commitdiff
Fix object length double accounting in chunked fetch
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 30 Jun 2006 11:20:10 +0000 (11:20 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 30 Jun 2006 11:20:10 +0000 (11:20 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@272 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_fetch.c

index 45c79371853e9a0c991ff5fd5f7f992c4c23a6c2..aad76d92046300f00bb1a436f3e62aa4b71c3ba3 100644 (file)
@@ -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;
                        }
                }
        }