]> git.kaiwu.me - haproxy.git/commit
MINOR/OPTIM: http_htx: lookup once http_errors section on check/init
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 18 Mar 2026 15:49:33 +0000 (16:49 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 23 Mar 2026 09:51:33 +0000 (10:51 +0100)
commit2ca7601c2d6781f455cf205e4f3b52f5beb16e41
tree0c7c1ac5b848fc7b2e9a21acb95603355f82ac4d
parentd250b381dca2a53e4ec8c17c4fca28ecef4c4c83
MINOR/OPTIM: http_htx: lookup once http_errors section on check/init

The previous patch has splitted the original proxy_check_errors()
function in two, so that check and init steps are performed separately.
However, this renders the code inefficient for "errorfiles" directive as
tree lookup on http-errors section is performed twice.

Optimize this by adding a reference to the section in conf_errors
structure. This is resolved during proxy_check_http_errors() and
proxy_finalize_http_errors() can reuse it.

No need to backport.
src/http_htx.c