]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: quic: Add traces about sent or resent TX frames
authorFrédéric Lécaille <flecaille@haproxy.com>
Fri, 2 Sep 2022 20:16:10 +0000 (22:16 +0200)
committerFrédéric Lécaille <flecaille@haproxy.com>
Wed, 7 Sep 2022 13:59:29 +0000 (15:59 +0200)
Very useful to help in debugging issues, especially during retransmissions.

Should be backported to 2.6

src/xprt_quic.c

index dded61af4f6893fb89a4b66f06e3798ad1928338..6ac165cdd88b766b0b4e679c090f82469f7cf169 100644 (file)
@@ -608,6 +608,7 @@ static void quic_trace(enum trace_level level, uint64_t mask, const struct trace
                                     (unsigned long long)qc->path->prep_in_flight,
                                     (unsigned long long)qc->path->in_flight);
                        if (pkt) {
+                               const struct quic_frame *frm;
                                chunk_appendf(&trace_buf, " pn=%lu(%s) iflen=%llu",
                                              (unsigned long)pkt->pn_node.key,
                                              pkt->pktns == &qc->pktns[QUIC_TLS_PKTNS_INITIAL] ? "I" :
@@ -616,6 +617,10 @@ static void quic_trace(enum trace_level level, uint64_t mask, const struct trace
                                chunk_appendf(&trace_buf, " rx.bytes=%llu tx.bytes=%llu",
                                              (unsigned long long)qc->rx.bytes,
                                              (unsigned long long)qc->tx.bytes);
+                               list_for_each_entry(frm, &pkt->frms, list) {
+                                       chunk_appendf(&trace_buf, " frm@%p", frm);
+                                       chunk_frm_appendf(&trace_buf, frm);
+                               }
                        }
                }