]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: listener: do not needlessly set l->maxconn
authorWilly Tarreau <w@1wt.eu>
Wed, 27 Feb 2019 15:49:00 +0000 (16:49 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 28 Feb 2019 16:05:32 +0000 (17:05 +0100)
commita8cf66bcab7167b260b310221a54069f84022882
treeb9d49170cdbf79f936982917e33ccc347ac226ef
parente2711c7bd6c63007335e2c0afa9ab7ba69f6046c
MINOR: listener: do not needlessly set l->maxconn

It's pointless to always set and maintain l->maxconn because the accept
loop already enforces the frontend's limit anyway. Thus let's stop setting
this value by default and keep it to zero meaning "no limit". This way the
frontend's maxconn will be used by default. Of course if a value is set,
it will be enforced.
src/cfgparse.c
src/cli.c
src/listener.c
src/peers.c
src/proxy.c
src/stats.c