From: Frédéric Lécaille Date: Mon, 27 Dec 2021 16:42:51 +0000 (+0100) Subject: MINOR: quic: Add trace about in flight bytes by packet number space X-Git-Tag: v2.6-dev1~183 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=22cfd83890b1eb72de2404af581509527282023b;p=thirdparty%2Fhaproxy.git MINOR: quic: Add trace about in flight bytes by packet number space This parameter is useful to diagnose packet loss detection issues. --- diff --git a/src/xprt_quic.c b/src/xprt_quic.c index b25b37759e..bff51ac042 100644 --- a/src/xprt_quic.c +++ b/src/xprt_quic.c @@ -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));