haproxy/reg-tests/http-rules
Christopher Faulet 5796228aba BUG/MEDIUM: rules: Be able to use captures defined in defaults section
Since the 2.5, it is possible to define TCP/HTTP ruleset in defaults
sections. However, rules defining a capture in defaults sections was not
properly handled because they was not shared with the proxies inheriting
from the defaults section. This led to crash when haproxy tried to store a
new capture.

So now, to fix the issue, when a new proxy is created, the list of captures
points to the list of its defaults section. It may be NULL or not. All new
caputres are prepended to this list. It is not a problem to share the same
defaults section between several proxies, because it is not altered and we
take care to not release it when corresponding proxies are freed but only
when defaults proxies are freed. To do so, defaults proxies are now
unreferenced at the end of free_proxy() function instead of the beginning.

This patch should fix the issue #1674. It must be backported to 2.5.
2022-04-25 15:28:21 +02:00
..
1k.txt REGTESTS: Add reg tests for the HTTP return action 2020-02-06 15:13:04 +01:00
acl_cli_spaces.vtc REGTESTS: extend the default I/O timeouts and make them overridable 2021-11-18 17:57:11 +01:00
agents.acl REGTEST: http-rules: test spaces in ACLs 2020-06-19 14:32:55 +02:00
converters_ipmask_concat_strcmp_field_word.map REGTEST: rename the reg test files. 2019-04-23 15:37:03 +02:00
converters_ipmask_concat_strcmp_field_word.vtc REGTESTS: extend the default I/O timeouts and make them overridable 2021-11-18 17:57:11 +01:00
default_rules.vtc BUG/MEDIUM: rules: Be able to use captures defined in defaults section 2022-04-25 15:28:21 +02:00
del_header.vtc REGTESTS: extend the default I/O timeouts and make them overridable 2021-11-18 17:57:11 +01:00
except-forwardfor-originalto.vtc REGTESTS: extend the default I/O timeouts and make them overridable 2021-11-18 17:57:11 +01:00
h1_to_h1c.vtc REGTESTS: extend the default I/O timeouts and make them overridable 2021-11-18 17:57:11 +01:00
h1or2_to_h1c.vtc REGTESTS: extend the default I/O timeouts and make them overridable 2021-11-18 17:57:11 +01:00
http_after_response.vtc REGTESTS: extend the default I/O timeouts and make them overridable 2021-11-18 17:57:11 +01:00
http_return.vtc REGTESTS: extend the default I/O timeouts and make them overridable 2021-11-18 17:57:11 +01:00
lf-file.txt REGTESTS: Add reg tests for the HTTP return action 2020-02-06 15:13:04 +01:00
map_redirect-be.map REGTEST: rename the reg test files. 2019-04-23 15:37:03 +02:00
map_redirect.map MINOR: http-rules: add a new "ignore-empty" option to redirects. 2021-09-02 17:06:18 +02:00
map_redirect.vtc REGTESTS: extend the default I/O timeouts and make them overridable 2021-11-18 17:57:11 +01:00
map_regm_with_backref.map REGTEST: rename the reg test files. 2019-04-23 15:37:03 +02:00
map_regm_with_backref.vtc REGTESTS: extend the default I/O timeouts and make them overridable 2021-11-18 17:57:11 +01:00
normalize_uri.vtc REGTESTS: fix the race conditions in normalize_uri.vtc 2022-02-28 17:16:55 +01:00
path_and_pathq.vtc REGTESTS: extend the default I/O timeouts and make them overridable 2021-11-18 17:57:11 +01:00
strict_rw_mode.vtc REGTESTS: extend the default I/O timeouts and make them overridable 2021-11-18 17:57:11 +01:00