From: phk Date: Sun, 10 Jun 2007 07:47:50 +0000 (+0000) Subject: Fix a bug I introduced in the workspace rewamp: Don't throw away X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f464918f59ec71f42f97927360a4e008a2f4d2c;p=varnish Fix a bug I introduced in the workspace rewamp: Don't throw away perfectly good pipelined data. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1505 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache_http.c b/varnish-cache/bin/varnishd/cache_http.c index 26936ef2..85f25f00 100644 --- a/varnish-cache/bin/varnishd/cache_http.c +++ b/varnish-cache/bin/varnishd/cache_http.c @@ -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)