On Tue, Mar 01, 2011 at 05:24:18PM -0700, Jason J. W. Williams wrote:
> Hello,
> 
> Can you tell me why HAProxy considers this response from a Riak
> backend server invalid? https://gist.github.com/850204
> 
> I suspect it's the length of the Link header.

Yes, your header has set a new world record : 58 kB ! Many systems
will never accept more than 4kB in a single header. Apache accepts
up to 8kB. Haproxy accepts 8kB by default for a whole request, so
the header itself was larger than the maximum request.

Also, there are 1000 different values in this header, some products
will experience issues because this is the same as concatenating 1000
times the same header and some products have low limits on the number
of headers (typically 100).

You can workaround this for now by setting "tune.bufsize 65536" and
"tune.maxrewrite 1024" in your global section, but if I were you, I'd
fix the application before putting it into production so that it does
not do such stupid things, otherwise it will be a nightmare to maintain
and debug in the long run.

Regards,
Willy


Reply via email to