]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: quic: Add trace about in flight bytes by packet number space
authorFrédéric Lécaille <flecaille@haproxy.com>
Mon, 27 Dec 2021 16:42:51 +0000 (17:42 +0100)
committerFrédéric Lécaille <flecaille@haproxy.com>
Tue, 4 Jan 2022 16:30:00 +0000 (17:30 +0100)
This parameter is useful to diagnose packet loss detection issues.

src/xprt_quic.c

index b25b37759e946a75cccc01508f1063afa576da74..bff51ac0426605244cb538974690583b8d753c21 100644 (file)
@@ -496,7 +496,9 @@ static void quic_trace(enum trace_level level, uint64_t mask, const struct trace
                                              pktns == &qc->pktns[QUIC_TLS_PKTNS_INITIAL] ? "I" :
                                              pktns == &qc->pktns[QUIC_TLS_PKTNS_01RTT] ? "01RTT": "H",
                                              pktns->tx.pto_probe);
-                               if (mask & QUIC_EV_CONN_STIMER) {
+                               if (mask & (QUIC_EV_CONN_STIMER|QUIC_EV_CONN_SPTO)) {
+                                       if (pktns->tx.in_flight)
+                                               chunk_appendf(&trace_buf, " if=%llu", (ull)pktns->tx.in_flight);
                                        if (pktns->tx.loss_time)
                                                chunk_appendf(&trace_buf, " loss_time=%dms",
                                                              TICKS_TO_MS(pktns->tx.loss_time - now_ms));