]> git.kaiwu.me - haproxy.git/commit
MINOR: http_htx: split check/init of http_errors
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 18 Mar 2026 15:21:37 +0000 (16:21 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 23 Mar 2026 09:51:33 +0000 (10:51 +0100)
commitd250b381dca2a53e4ec8c17c4fca28ecef4c4c83
tree403a0b6f321fdee3092f113d72c2d3ce63758591
parent5b184e4178eb3a6c31b8e7bcd7f17b3c291423c4
MINOR: http_htx: split check/init of http_errors

Function proxy_check_errors() is used when configuration parsing is
over. This patch splits it in two newly named ones.

The first function is named proxy_check_http_errors(). It is responsible
to check for the validity of any "errorfiles" directive which could
reference non-existent http-errors section or code not defined in such
section. This function is now called via proxy_finalize().

The second function is named proxy_finalize_http_errors(). It converts
each conf_errors type used during parsing in a proper http_reply type
for runtime usage. This function is still called via post-proxy-check,
after proxy_finalize().

This patch does not bring any functional change. However, it will become
necessary to ensure http-errors can be used as expected with dynamic
backends.
include/haproxy/http_htx.h
src/http_htx.c
src/proxy.c