r1585 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Wed Jun 27 14:43:09 CEST 2007


Author: phk
Date: 2007-06-27 14:43:08 +0200 (Wed, 27 Jun 2007)
New Revision: 1585

Modified:
   trunk/varnish-cache/bin/varnishd/cache_http.c
Log:
Don't fill the entire workspace with read-ahead data.

Eventually we need to separate the "max http header size" from the
workspace size, but that will take a bit of pondering.


Modified: trunk/varnish-cache/bin/varnishd/cache_http.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_http.c	2007-06-27 12:37:34 UTC (rev 1584)
+++ trunk/varnish-cache/bin/varnishd/cache_http.c	2007-06-27 12:43:08 UTC (rev 1585)
@@ -631,6 +631,7 @@
 	int i;
 
 	l = (hp->ws->e - hp->rx_e) - 1;
+	l /= 2;		/* Don't fill all of workspace with read-ahead */
 	if (l <= 1) {
 		VSL(SLT_HttpError, fd, "Received too much");
 		VSLR(SLT_HttpGarbage, fd, hp->rx_s, hp->rx_e);




More information about the varnish-commit mailing list