LostHeader in Varnish 3.0.0

Lee Trout lee at leetrout.com
Wed Jul 6 01:44:28 CEST 2011

Great question!

Just solved this problem this week...  The docs are horribly outdated /
missing info :(

You need to use runtime parameters.  For example, to allow 20k headers
(default is 2k) use the following params when you start varnish:

-p http_req_hdr_len=20000 -p http_resp_hdr_len=20000


On Tue, Jul 5, 2011 at 7:14 PM, Gil Hildebrand <gilhildebrand at gmail.com>wrote:

> I am testing upgrade from Varnish 2.0 to 3.0.
> In some cases, because of our advertising and analytics partners, cookies
> can be excessively long. This appears to be a problem in Varnish 3.0, as I
> get a 400 Bad Request response. When I look at varnishlog, I see a
> LostHeader for the Cookie header.
> I found some history on similar issues:
> http://comments.gmane.org/gmane.comp.web.varnish.misc/3236
> https://www.varnish-cache.org/trac/ticket/455
> https://www.varnish-cache.org/lists/pipermail/varnish-commit/2009-April/004227.html
> Initially I installed Varnish via rpm, so I downloaded the source to see if
> I could fix the problem via patch and compile. Unfortunately, I could not
> find HTTP_HDR_MAX_VAL anywhere in the source. Was it removed? Is there now
> a better way to increase the max number of headers?
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20110705/e534657c/attachment-0003.html>

More information about the varnish-misc mailing list