]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: muxes: Add ctl commands to get info on streams for a connection
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 30 Apr 2024 14:18:07 +0000 (16:18 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 6 May 2024 20:00:00 +0000 (22:00 +0200)
commiteca9831ec8451ae067681d578a728249656994d1
tree7a54d96f2dab445bef5cf68b92ca69973fe0a600
parent12fb6d73cde5688c9ddfeb199e036be4828700a9
MINOR: muxes: Add ctl commands to get info on streams for a connection

There are 2 new ctl commands that may be used to retrieve the current number
of streams openned for a connection and its limit (the maximum number of
streams a mux connection supports).

For the PT and H1 muxes, the limit is always 1 and the current number of
streams is 0 for idle connections, otherwise 1 is returned.

For the H2 and the FCGI muxes, info are already available in the mux
connection.

For the QUIC mux, the limit is also directly available. It is the maximum
initial sub-ID of bidirectional stream allowed for the connection. For the
current number of streams, it is the number of SC attached on the connection
and the number of not already attached streams present in the "opening_list"
list.
include/haproxy/connection-t.h
src/mux_fcgi.c
src/mux_h1.c
src/mux_h2.c
src/mux_pt.c
src/mux_quic.c