]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: mux_quic: display QCS sd on traces
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 27 Apr 2026 11:56:39 +0000 (13:56 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 27 Apr 2026 13:02:58 +0000 (15:02 +0200)
Add SD pointer and flags value when logging a QCS instance in
qmux_dump_qcs_info(). This changes output for bot htraces and
MUX_SCTL_DBG_STR.

src/qmux_trace.c

index b5d85e2eac88c270a992a3beb4acbe7040f9f567..812a4881bb876322dba0d73458965ae036cb0d00 100644 (file)
@@ -8,6 +8,7 @@
 #include <haproxy/quic_conn-t.h>
 #include <haproxy/quic_frame-t.h>
 #include <haproxy/quic_utils.h>
+#include <haproxy/stconn.h>
 
 /* trace source and events */
 static void qmux_trace(enum trace_level level, uint64_t mask,
@@ -163,6 +164,11 @@ void qmux_dump_qcs_info(struct buffer *msg, const struct qcs *qcs)
        chunk_appendf(msg, " qcs=%p .id=%llu .st=%s .flg=0x%04x", qcs, (ullong)qcs->id,
                      qcs_st_to_str(qcs->st), qcs->flags);
 
+       if (qcs->sd) {
+               chunk_appendf(msg, " .sd=%p", qcs->sd);
+               chunk_appendf(msg, "(.flg=0x%08x)", se_fl_get(qcs->sd));
+       }
+
        chunk_appendf(msg, " .rx=%llu/%llu rxb=%u(%u)",
                      (ullong)qcs->rx.offset_max, (ullong)qcs->rx.msd,
                      qcs->rx.data.bcnt, qcs->rx.data.bmax);