mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-21 22:01:31 +02:00
[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.
This commit is contained in:
parent
a206fa9d5d
commit
686ac828fa
@ -566,6 +566,7 @@ void init(int argc, char **argv)
|
|||||||
global.maxpipes = MAX(nbfe, nbbe);
|
global.maxpipes = MAX(nbfe, nbbe);
|
||||||
if (global.maxpipes > global.maxconn)
|
if (global.maxpipes > global.maxconn)
|
||||||
global.maxpipes = global.maxconn;
|
global.maxpipes = global.maxconn;
|
||||||
|
global.maxpipes /= 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user