r1505 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Sun Jun 10 09:47:51 CEST 2007


Author: phk
Date: 2007-06-10 09:47:50 +0200 (Sun, 10 Jun 2007)
New Revision: 1505

Modified:
   trunk/varnish-cache/bin/varnishd/cache_http.c
Log:
Fix a bug I introduced in the workspace rewamp: Don't throw away
perfectly good pipelined data.



Modified: trunk/varnish-cache/bin/varnishd/cache_http.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_http.c	2007-06-10 07:19:21 UTC (rev 1504)
+++ trunk/varnish-cache/bin/varnishd/cache_http.c	2007-06-10 07:47:50 UTC (rev 1505)
@@ -361,7 +361,8 @@
 		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)




More information about the varnish-commit mailing list