MEDIUM: bwlim: Support constants limit or period on set-bandwidth-limit actions
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 13 Jan 2023 14:33:32 +0000 (15:33 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 19 Jan 2023 15:15:12 +0000 (16:15 +0100)
commitda2e117369d82e8048d08d17f6f58d047d0c6959
tree591f4d8c7506611a72b3ffb7facbcc99805c5886
parentab34ebe5f52ef6830d31f252792692ea156e0e53
MEDIUM: bwlim: Support constants limit or period on set-bandwidth-limit actions

It is now possible to set a constant for the limit or period parameters on a
set-bandwidth-limit actions. The limit must follow the HAProxy size format
and is expressed in bytes. The period must follow the HAProxy time format
and is expressed in milliseconds. Of course, it is still possible to use
sample expressions instead.

The documentation was updated accordingly.

It is not really a bug. Only exemples were written this way in the
documentation. But it could be good to backport this change in 2.7.
doc/configuration.txt
src/flt_bwlim.c