MINOR: stream: report the current rule in "show sess all" when known
authorWilly Tarreau <w@1wt.eu>
Mon, 11 Oct 2021 07:49:03 +0000 (09:49 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 12 Oct 2021 05:38:30 +0000 (07:38 +0200)
commit1274e10d5c857b41d092c805b22d356e3d799aef
treeb00c53e807da4a1eaff4500f8eda22096bf20eac
parentc9e48685101f9d4db03a43a976154ffa2c2df666
MINOR: stream: report the current rule in "show sess all" when known

Sometimes an HTTP or TCP rule may take time to complete because it is
waiting for external data (e.g. "wait-for-body", "do-resolve"), and it
can be useful to report the action and the location of that rule in
"show sess all". Here for streams blocked on such a rule, there will
now be a "current_line" extra line reporting this. Note that this does
not catch rulesets which are re-evaluated from the start on each change
(e.g. tcp-request content waiting for changes) but only when a specific
rule is being paused.
src/stream.c