]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: quic: implement a basic "show quic" CLI handler
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 1 Feb 2023 09:18:26 +0000 (10:18 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 9 Feb 2023 17:11:00 +0000 (18:11 +0100)
commit15c74702d594a5160981b0778a0959ab0e64ad0a
tree49bcf92be5b7b1fed1d699c2569fba8edda966a2
parentdb991c2658e5b35dee0a18512f86ba107d724136
MINOR: quic: implement a basic "show quic" CLI handler

Implement a basic "show quic" CLI handler. This command will be useful
to display various information on all the active QUIC frontend
connections.

This work is heavily inspired by "show sess". Most notably, a global
list of quic_conn has been introduced to be able to loop over them. This
list is stored per thread in ha_thread_ctx.

Also add three CLI handlers for "show quic" in order to allocate and
free the command context. The dump handler runs on thread isolation.
Each quic_conn is referenced using a back-ref to handle deletion during
handler yielding.

For the moment, only a list of raw quic_conn pointers is displayed. The
handler will be completed over time with more information as needed.

This should be backported up to 2.7.
doc/management.txt
include/haproxy/quic_conn-t.h
include/haproxy/tinfo-t.h
src/quic_conn.c