From ff3cf65966a23d315189bad00ae54283f402fc11 Mon Sep 17 00:00:00 2001 From: phk Date: Wed, 27 Jun 2007 12:43:08 +0000 Subject: [PATCH] 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. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1585 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/cache_http.c | 1 + 1 file changed, 1 insertion(+) diff --git a/varnish-cache/bin/varnishd/cache_http.c b/varnish-cache/bin/varnishd/cache_http.c index 653ea14b..3a3969b6 100644 --- a/varnish-cache/bin/varnishd/cache_http.c +++ b/varnish-cache/bin/varnishd/cache_http.c @@ -631,6 +631,7 @@ http_RecvSome(int fd, struct http *hp) 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); -- 2.39.5