]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: proxy: do not change the listeners' maxconn when updating the frontend's
authorWilly Tarreau <w@1wt.eu>
Wed, 27 Feb 2019 15:53:33 +0000 (16:53 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 28 Feb 2019 16:05:32 +0000 (17:05 +0100)
commitd89cc8bfc07702e4ce7ab818b4fc4483ef6e63bc
tree8a1c825bc9dd0342286c9fc044c3c655f1bfaa10
parenta8cf66bcab7167b260b310221a54069f84022882
MINOR: proxy: do not change the listeners' maxconn when updating the frontend's

It is possible to update a frontend's maxconn from the CLI. Unfortunately
when doing this it scratches all listeners' maxconn values and sets them
all to the new frontend's value. This can be problematic when mixing
different traffic classes (bind to interface or private networks, etc).

Now that the listener's maxconn is allowed to remain unset, let's not
change these values when setting the frontend's maxconn. This way the
overall frontend's limit can be raised but if certain specific listeners
had their own value forced in the config, they will be preserved. This
makes more sense and is more in line with the principle of defaults
propagation.
src/proxy.c