]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: h3: adjust HTTP headers traces
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 25 Jun 2026 12:29:47 +0000 (14:29 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 29 Jun 2026 14:33:55 +0000 (16:33 +0200)
In a recent patch, dedicated HTTP/3 traces have been added to log the
transfered HTTP content, with the start/status line and headers as well.

This patch adjusts these traces, correcting "qcc" typo to "qcs". It also
now correctly pass qcc and qcs as argument, which is used for trace
follow.

No need to backport unless HTTP/3 header traces are picked to previous
releases.

src/h3.c

index e9501fb79b5e8a74c05e391fe94f778dea9911e2..ed581e26a272dc31626b1043249cd195e8371f42 100644 (file)
--- a/src/h3.c
+++ b/src/h3.c
@@ -649,7 +649,7 @@ static void _h3_trace_header(const struct ist n, const struct ist v,
 
        s_str = chunk_newstr(&trash);
        if (qcs)
-               chunk_appendf(&trash, " qcc=%p(%llu)", qcs, (ullong)qcs->id);
+               chunk_appendf(&trash, " qcs=%p(%llu)", qcs, (ullong)qcs->id);
 
        n_short = ist2(chunk_newstr(&trash), 0);
        istscpy(&n_short, n, 256);
@@ -664,7 +664,7 @@ static void _h3_trace_header(const struct ist n, const struct ist v,
                chunk_appendf(&trash, " (... +%ld)", (long)(v.len - v_short.len));
 
        TRACE_PRINTF_LOC(TRACE_LEVEL_USER, mask, trc_loc, func,
-                        0, 0, 0, 0, "%s%s %s %s: %s", c_str, s_str,
+                        qcc->conn, qcs, 0, 0, "%s%s %s %s: %s", c_str, s_str,
                         mask & H3_EV_TX_HDR ? "sndh" : "rcvh",
                         istptr(n_short), istptr(v_short));
 }