]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: stream: maintain per-stream counters of the number of passes on code
authorWilly Tarreau <w@1wt.eu>
Tue, 22 Oct 2024 14:35:04 +0000 (16:35 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 22 Oct 2024 18:13:00 +0000 (20:13 +0200)
commit37d5c6fe3a2c7c526f5a3c647c359c3e40d7feb7
treef10e2ada4442a4dbf2adcbacc8b609a8eddd06c7
parentce314cfb395a407484e1b37d76e8af8007c1ff4c
MINOR: stream: maintain per-stream counters of the number of passes on code

Process_stream() is a complex function and a few times some lopos were
either witnessed or suspected. Each time this happens it's extremely
difficult to figure why because it involves combinations of analysers,
filters, errors etc.

Let's at least maintain a set of 4 counters per stream that report the
number of times we've been through each of the 4 most important blocks
(stconn changes, request analysers, response analysers, and propagation
of changes down). These ones are stored in the stream and reported in
"show sess all", just like they will be reported in panic dumps.
include/haproxy/stream-t.h
src/stream.c