]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: mux-h2: count within a connection, how many streams are receiving data
authorWilly Tarreau <w@1wt.eu>
Wed, 28 Aug 2024 09:38:32 +0000 (11:38 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 12 Oct 2024 14:29:16 +0000 (16:29 +0200)
commit721ea5b06cccc9f01bc6c901c3b777e1f8ed8bea
tree4217f49fd1bca5973f1a67511e1f529a8d8bcca4
parentc9275084bcf0147dc0c7e8d79eec912f67b4e672
MINOR: mux-h2: count within a connection, how many streams are receiving data

A stream is receiving data from after the HEADERS frame missing END_STREAM,
to the end of the stream or HREM (the presence of END_STREAM). We're now
adding a flag to the stream that indicates this state, as well as a counter
in the connection of streams currently receiving data. The purpose will be
to gauge at any instant the number of streams that might have to share the
available bandwidth and buffers count in order not to allocate too much flow
control to any single stream. For now the counter is kept up to date, and is
reported in "show fd".
include/haproxy/mux_h2-t.h
src/mux_h2.c