From: Frédéric Lécaille Date: Tue, 3 Aug 2021 12:25:36 +0000 (+0200) Subject: MINOR: quic: Add the QUIC connection state to traces X-Git-Tag: v2.5-dev8~92 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=546186b1cfbc869144fbdf997cb08b5f03d9d7f1;p=thirdparty%2Fhaproxy.git MINOR: quic: Add the QUIC connection state to traces This connection variable was missing. It is useful to debug issues. --- diff --git a/src/xprt_quic.c b/src/xprt_quic.c index a8e26cde41..f520a9b178 100644 --- a/src/xprt_quic.c +++ b/src/xprt_quic.c @@ -384,8 +384,9 @@ static void quic_trace(enum trace_level level, uint64_t mask, const struct trace pktns = qc->pktns; chunk_appendf(&trace_buf, - " qel=%c ack?%d cwnd=%llu ppif=%lld pif=%llu if=%llu pp=%u pdg=%llu", + " qel=%c state=%s ack?%d cwnd=%llu ppif=%lld pif=%llu if=%llu pp=%u pdg=%llu", quic_enc_level_char_from_qel(qel, qc), + quic_hdshk_state_str(HA_ATOMIC_LOAD(&qc->state)), !!(pktns->flags & QUIC_FL_PKTNS_ACK_REQUIRED), (unsigned long long)qc->path->cwnd, (unsigned long long)qc->path->prep_in_flight,