]> err.no Git - varnish/commitdiff
Fix a bug I introduced in the workspace rewamp: Don't throw away
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sun, 10 Jun 2007 07:47:50 +0000 (07:47 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sun, 10 Jun 2007 07:47:50 +0000 (07:47 +0000)
perfectly good pipelined data.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1505 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_http.c

index 26936ef23eea66d402a12eb9cec109e505da021f..85f25f00ad4508b0162f19f39d49efb69b5c074e 100644 (file)
@@ -361,7 +361,8 @@ http_Read(struct http *hp, int fd, void *p, unsigned len)
                b += u;
                len -= u;
        }
-       hp->pl_s = hp->pl_e = NULL;
+       if (hp->pl_e == hp->pl_s)
+               hp->pl_s = hp->pl_e = NULL;
        if (len > 0) {
                i = read(fd, b, len);
                if (i < 0)