From: Dmitry Sivachenko Date: Sun, 21 Oct 2012 14:10:25 +0000 (+0400) Subject: DOC: make it clear what the HTTP request size is X-Git-Tag: v1.5-dev13~130 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f6f4f7b9a60c08ad452b422737d386e8035e96b5;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/doc/configuration.txt b/doc/configuration.txt index a0310de938..4167d5e1ee 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} ]