From f6f4f7b9a60c08ad452b422737d386e8035e96b5 Mon Sep 17 00:00:00 2001 From: Dmitry Sivachenko Date: Sun, 21 Oct 2012 18:10:25 +0400 Subject: [PATCH] DOC: make it clear what the HTTP request size is Please consider the following patch for configuration.txt to clarify meaning of bufsize, maxrewrite and the size of HTTP request which can be processed. --- doc/configuration.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/doc/configuration.txt b/doc/configuration.txt index a0310de93..4167d5e1e 100644 --- a/doc/configuration.txt +++ b/doc/configuration.txt @@ -725,6 +725,9 @@ tune.bufsize statistics, and values larger than default size will increase memory usage, possibly causing the system to run out of memory. At least the global maxconn parameter should be decreased by the same factor as this one is increased. + If HTTP request is larger than (tune.bufsize - tune.maxrewrite), haproxy will + return HTTP 400 (Bad Request) error. Similarly if an HTTP response is larger + than this size, haproxy will return HTTP 502 (Bad Gateway). tune.chksize Sets the check buffer size to this size (in bytes). Higher values may help @@ -4549,8 +4552,8 @@ reqirep [{if | unless} ] (ignore case) # replace "www.mydomain.com" with "www" in the host name. reqirep ^Host:\ www.mydomain.com Host:\ www - See also: "reqadd", "reqdel", "rsprep", section 6 about HTTP header - manipulation, and section 7 about ACLs. + See also: "reqadd", "reqdel", "rsprep", "tune.bufsize", section 6 about + HTTP header manipulation, and section 7 about ACLs. reqtarpit [{if | unless} ]