]> git.ipfire.org Git - thirdparty/haproxy.git/commit
DEBUG: stream: Display the currently running rule in stream dump
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 4 Mar 2026 07:53:20 +0000 (08:53 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 5 Mar 2026 14:34:47 +0000 (15:34 +0100)
commit9f1e9ee0ed29cae92e39cbc907058bf9062355d1
treee2ed38fc1c42ddbaf19840d6c4695489e26d16bb
parent4939f18ff7e984f3861135a2776c94ba967b2226
DEBUG: stream: Display the currently running rule in stream dump

Since the 2.5, when stream's info are dump, it is possible to print the
yielding rule, if any. It was useful to detect buggy rules on spinning
loop. But it is not possible to detect a rule consuming too much CPU
per-execution. We can see a rule was executing in the backtrace reported by
the watchdog, but we are unable to spot the specific rule.

Thanks to this patch, it is now possible. When a dump is emitted, the
running or yield rule is now displayed with its current state (RUNNING or
YIELDING).

This patch could be backported as far as 3.2 because it could be useful to
spot issues.
src/http_ana.c
src/stream.c
src/tcp_rules.c