MINOR: stream/stats: Expose the current number of streams in stats
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 25 Sep 2024 07:59:11 +0000 (09:59 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 6 Nov 2024 17:57:42 +0000 (18:57 +0100)
commitfb9c53581bcf8df687738a46f6bf9c25f4122540
tree5b2d939873feed4860178cf07cbf8eda6aa47e81
parent5ca7eb5e8440f8501d6acecd5e2aa0c71d433010
MINOR: stream/stats: Expose the current number of streams in stats

A shared counter is added in the thread context to track the current number
of streams. This number is then reported in stats. It will be a useful
information to diagnose some bugs.

(cherry picked from commit 18ee22ff766bd7399947af3be2b512ac5827b3c8)
[wt: adj ctx in tinfo-t]
Signed-off-by: Willy Tarreau <w@1wt.eu>
include/haproxy/stats-t.h
include/haproxy/tinfo-t.h
src/stats.c
src/stream.c