From 9f464918f59ec71f42f97927360a4e008a2f4d2c Mon Sep 17 00:00:00 2001 From: phk Date: Sun, 10 Jun 2007 07:47:50 +0000 Subject: [PATCH] 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 --- varnish-cache/bin/varnishd/cache_http.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.39.5