From: Frederic Lecaille Date: Fri, 30 Aug 2024 13:25:16 +0000 (+0200) Subject: MINOR: quic: Add trace for QUIC_EV_CONN_IO_CB event. X-Git-Tag: v3.1-dev7~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8854cef03672235addec6f3baafcc44f0e0441f4;p=thirdparty%2Fhaproxy.git MINOR: quic: Add trace for QUIC_EV_CONN_IO_CB event. Dump the early data status from QUIC_EV_CONN_IO_CB trace event. This is very helpful to know if the QUIC server has accepted the early data received from clients. --- diff --git a/src/quic_trace.c b/src/quic_trace.c index ce683f6571..26ebb6eeff 100644 --- a/src/quic_trace.c +++ b/src/quic_trace.c @@ -15,6 +15,7 @@ #include #include #include +#include #include #include #include @@ -260,9 +261,13 @@ static void quic_trace(enum trace_level level, uint64_t mask, const struct trace if (mask & QUIC_EV_CONN_IO_CB) { const enum quic_handshake_state *state = a2; + const SSL *ssl = a3; if (state) chunk_appendf(&trace_buf, " state=%s", quic_hdshk_state_str(*state)); + if (ssl) + chunk_appendf(&trace_buf, " early_data_status=%s", + quic_ssl_early_data_status_str(ssl)); } if (mask & (QUIC_EV_CONN_TRMHP|QUIC_EV_CONN_ELRMHP|QUIC_EV_CONN_SPKT)) {