From da2e117369d82e8048d08d17f6f58d047d0c6959 Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Fri, 13 Jan 2023 15:33:32 +0100 Subject: [PATCH] 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 | 28 ++++++++++++------- src/flt_bwlim.c | 62 ++++++++++++++++++++++++++++++++++--------- 2 files changed, 68 insertions(+), 22 deletions(-) diff --git a/doc/configuration.txt b/doc/configuration.txt index c6df770c0..26cc044af 100644 --- a/doc/configuration.txt +++ b/doc/configuration.txt @@ -6592,7 +6592,7 @@ http-request [options...] [ { if | unless } ] - sc-inc-gpc1() - sc-set-gpt(,) { | } - sc-set-gpt0() { | } - - set-bandwidth-limit [limit ] [period ] + - set-bandwidth-limit [limit { | }] [period { |