]> git.kaiwu.me - haproxy.git/commit
MINOR: fcgi-app: Stop to explicitly loop on the proxy's filter_configs list
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 27 Oct 2026 09:48:34 +0000 (10:48 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 27 Oct 2026 13:08:45 +0000 (14:08 +0100)
commit99d7eebaa96e80ea4c45b79ae2ebf337a9c0de04
tree85704be8a3e6d9b0511f4aa29364f66149f84ef4
parent92a690be09e89440787a78462719f0562f1bb01a
MINOR: fcgi-app: Stop to explicitly loop on the proxy's filter_configs list

The "fcgi-app" filter keyword parser and the implicit "use-fcgi-app"
declaration resolution both scanned the filter_configs list of the proxy
by hand to find a previously declared FCGI filter configuration, matching
on the filter id and the application name.

The parsers now use flt_find_conf() with a match callback, the supported
way to find a filter configuration, which walks the right list depending
on the filter mode of the proxy. An explicit "fcgi-app" declaration now
rejects the replacement of another explicit declaration instead of any
one found, the implicit configuration it replaces is removed with
flt_conf_delete(), and the one-fcgi-app-per-backend check of
"use-fcgi-app" resolves the FCGI instance directly with
flt_find_instance() instead of a manual loop on the configurations.
src/fcgi-app.c