From: Willy Tarreau Date: Sun, 25 Jan 2009 13:06:58 +0000 (+0100) Subject: [OPTIM] make global.maxpipes default to global.maxconn/4 when not specified X-Git-Tag: v1.3.16-rc1~61 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=686ac828faab952ade4e5774b304595497ede5c6;p=thirdparty%2Fhaproxy.git [OPTIM] make global.maxpipes default to global.maxconn/4 when not specified global.maxconn/4 seems to be a good hint for global.maxpipes when that one must be guessed. If the limit is reached, it's still possible to set it manually in the configuration. --- diff --git a/src/haproxy.c b/src/haproxy.c index fd4b050288..8ec217c192 100644 --- a/src/haproxy.c +++ b/src/haproxy.c @@ -566,6 +566,7 @@ void init(int argc, char **argv) global.maxpipes = MAX(nbfe, nbbe); if (global.maxpipes > global.maxconn) global.maxpipes = global.maxconn; + global.maxpipes /= 4; }