BUG/MINOR: bwlim: Fix parameters check for set-bandwidth-limit actions
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 13 Jan 2023 14:39:54 +0000 (15:39 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 19 Jan 2023 15:15:12 +0000 (16:15 +0100)
commit6bf86c73bae90bd6f0ed97e0df7c56199327a3bf
tree7acdd03ac9138282bc16f031e323b37bd85abce0
parentda2e117369d82e8048d08d17f6f58d047d0c6959
BUG/MINOR: bwlim: Fix parameters check for set-bandwidth-limit actions

First, the inspect-delay is now tested if the action is used on a
tcp-response content rule. Then, when an expressions scope is checked, we
now take care to detect the right scope depending on the ruleset used
(tcp-request, tcp-response, http-request or http-response).

This patch could be backported to 2.7.
src/flt_bwlim.c