]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: quic: Add a trace to identify connections which sent Initial packet.
authorFrédéric Lécaille <flecaille@haproxy.com>
Mon, 13 Feb 2023 16:45:36 +0000 (17:45 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 17 Feb 2023 16:36:30 +0000 (17:36 +0100)
This should help in diagnosing issues revealed by the interop runner which counts
the number of handshakes from the number of Initial packets sent by the server.

Must be backported to 2.7.

src/quic_conn.c

index cbead1231e553c91a2e757d9da3b7ebffb6c4d17..36afa583a1cbd5fd60523acdbb706964e13c7d15 100644 (file)
@@ -632,6 +632,11 @@ static void quic_trace(enum trace_level level, uint64_t mask, const struct trace
                                        chunk_appendf(&trace_buf, " frm@%p", frm);
                                        chunk_frm_appendf(&trace_buf, frm);
                                }
+
+                               if (pkt->type == QUIC_PACKET_TYPE_INITIAL) {
+                                       chunk_appendf(&trace_buf, " with scid");
+                                       quic_cid_dump(&trace_buf, &qc->scid);
+                               }
                        }
                }