Commit c8e9f809 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

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: http://www.varnish-cache.org/svn/trunk/varnish-cache@1585 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 5691f839
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment