]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: proxy: monitor-uri works with tcp->http upgrades
authorAurelien DARRAGON <adarragon@haproxy.com>
Wed, 6 Dec 2023 10:01:01 +0000 (11:01 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 21 Dec 2023 13:22:26 +0000 (14:22 +0100)
commite35fa36360fe8d877cdcf1c0910b6a1505d5f954
treec709fa3af8399430fb88cc412f9d633ce6b269de
parent8a6cc6e3eaee941312e9be02970ca11d2516e74e
MINOR: proxy: monitor-uri works with tcp->http upgrades

Currently, we have a check in proxy_cfg_ensure_no_http() that generates a
warning if the monitor-uri is configured on a proxy that doesn't have
mode HTTP enabled.

However, when we give a look at monitor-uri implementation, it's not
100% correct. Indeed, despite the warning message, the directive will
still be evaluated when HTTP upgrade occurs from a TCP frontend.
Thus the error is misleading.

To make the error message comply with the actual behavior, the check was
moved alongside other checks that accept both native HTTP mode or HTTP
upgrades in cfgparse.c.
src/cfgparse.c
src/proxy.c