Error 413 Request Entity Too Large

Rowan @ Jetboy rowan at jetboy.co.uk
Mon Oct 22 18:45:54 CEST 2012


Cheers Per. Nick Tailor's been helping out off-list as well, and I've ended
up with:

 

DAEMON_OPTS="-a :80 \

             -f /etc/varnish/varnish.vcl \

             -p http_req_size=65536 \

             -p http_resp_size=65536 \

             -p sess_workspace=262144 \

             -p thread_pool_min=250 \

             -p thread_pool_max=2000 \

             -s malloc,4G \

             -S /etc/varnish/secret \

             -T localhost:6082"

 

I tried increasing http_req_size and http_resp_size first, together with
http_req_hdr_len and http_resp_hdr_len, but I was still getting reports of
problems. Bumping up sess_workspace as well *seems* to have fixed things,
but time will tell. Another fix was to get the client to clear their
cookies, but I don't know whether this is a temporary or permanent solution.
The problem seemed to be isolated to IE/Windows, but included IE8/Windows XP
and IE9/Windows 7. I can't replicate the problem use virgin Windows installs
on VMs or other Windows boxes I have access to. The user with IE8/Windows
had no problem accessing the forum on a non-Windows tablet via the same ISP.
While having a (tentative) fix is great, I still don't know why these users
were having the problem in the first place.

 

Thanks to both.

 

 

From: Per Buer [mailto:perbu at varnish-software.com] 
Sent: 11 October 2012 13:06
To: rowan at jetboy.co.uk
Cc: varnish-misc at varnish-cache.org
Subject: Re: Error 413 Request Entity Too Large

 

On Mon, Oct 8, 2012 at 12:12 PM, Rowan @ Jetboy <rowan at jetboy.co.uk> wrote:

I've had a handful of complaints from my website users that they're seeing
the error below when trying to access an installation of the MyBB forum.

 

Error 413

Request Entity Too Large

Guru Meditation:

XID: 190197240

Varnish cache server

 

I'm not 100% sure but if memory serves me well you need to tweak this one:

 

       http_req_size

 

              . Units: bytes

 

              . Default: 32768

 

              Maximum  number  of  bytes  of  HTTP client request we will
deal

              with.  This is a limit on all bytes up to the double blank
line

              which  ends  the  HTTP  request.   The memory for the request
is

              allocated from the session workspace (param: sess_workspace)
and

              this parameter limits how much of that the request is allowed
to

              take up.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20121022/43f0ebc3/attachment-0001.html>


More information about the varnish-misc mailing list