]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: mux-h2: update session trackers with number of glitches
authorWilly Tarreau <w@1wt.eu>
Fri, 19 Jan 2024 16:33:27 +0000 (17:33 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 8 Feb 2024 14:51:49 +0000 (15:51 +0100)
commit870e2d3f1f1180391c6d6cd6658c48a76bd91e5a
treec4bf0a7e6ad24d742f7cb3b04ac2f1fdfa1bb78a
parent8581d62daf97d761ab07fffb96808958a1bbed13
MEDIUM: mux-h2: update session trackers with number of glitches

We now update the session's tracked counters with the observed glitches.
In order to avoid incurring a high cost, e.g. if many small frames contain
issues, we batch the updates around h2_process_demux() by directly passing
the difference. Indeed, for now all functions that increment glitches are
called from h2_process_demux(). If that were to change, we'd just need to
keep the value of the last synced counter in the h2c struct instead of the
stack.

The regtest was updated to verify that the 3rd client that does not cause
issue still sees the counter resulting from client 2's mistakes. The rate
is also verified, considering it shouldn't fail since the period is very
long (1m).
reg-tests/connection/h2_glitches.vtc
src/mux_h2.c