]> git.ipfire.org Git - thirdparty/haproxy.git/commit
DOC: config: fix confusing init-state examples
authorAurelien DARRAGON <adarragon@haproxy.com>
Fri, 6 Dec 2024 11:04:11 +0000 (12:04 +0100)
committerAurelien DARRAGON <adarragon@haproxy.com>
Fri, 6 Dec 2024 12:16:12 +0000 (13:16 +0100)
commit7934eef25d1207392a1b4a915d21889babfb1fb0
tree399426714c3fc07bdc22236f989d1da4315aff9a
parentf24e57d717a96a4e031fb1b4691c8b4887c1f575
DOC: config: fix confusing init-state examples

in 50322dff ("MEDIUM: server: add init-state"), some examples on how to
use init-state server keyword were added alongside with the keyword
documentation.

However, as reported by Nick Ramirez, there was an error because the
example that stated that haproxy will pass the traffic to the server after
3 successful health checks used the "init-state down" instead of the
"init-state fully-down". Thus the behavior wouldn't match what the
comment said (only 1 successful health check was required).

Here we fix the example in itself to match with the comment. Also the
following example ("# or") was also affected, but it is kind of
redundant as the main purpose of the examples are to illustrate the
feature in itself and not how to use server-template directive, so we
remove it.

This should be backported in 3.1 with 50322dff
doc/configuration.txt