]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: bwlim: Add support of bandwith limitation at the stream level
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 22 Jun 2022 14:55:04 +0000 (16:55 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 24 Jun 2022 12:06:26 +0000 (14:06 +0200)
commit2b6777021d5586fbe02a07f9930a7274f5a400e7
tree8809e5e2d18c9a76a90449f402446c7ceae1b3fa
parent628e89cfaeec20bcb7687185efac91d6eb36ac07
MEDIUM: bwlim: Add support of bandwith limitation at the stream level

This patch adds a filter to limit bandwith at the stream level. Several
filters can be defined. A filter may limit incoming data (upload) or
outgoing data (download). The limit can be defined per-stream or shared via
a stick-table. For a given stream, the bandwith limitation filters can be
enabled using the "set-bandwidth-limit" action.

A bandwith limitation filter can be used indifferently for HTTP or TCP
stream. For HTTP stream, only the payload transfer is limited. The filter is
pretty simple for now. But it was designed to be extensible. The current
design tries, as far as possible, to never exceed the limit. There is no
burst.
Makefile
doc/configuration.txt
src/flt_bwlim.c [new file with mode: 0644]