Skip to content

Commit

Permalink
WIP: quic: Add traces
Browse files Browse the repository at this point in the history
  • Loading branch information
haproxyFred committed Sep 2, 2024
1 parent 740fba5 commit c93c666
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/quic_cid.c
Original file line number Diff line number Diff line change
Expand Up @@ -336,15 +336,19 @@ struct quic_conn *retrieve_qc_conn_from_cid(struct quic_rx_packet *pkt,
node = ebmb_lookup(&tree->root, derive_cid.data, derive_cid.len);
}

if (!node)
if (!node) {
TRACE_DEVEL("connection not found", QUIC_EV_CONN_RXPKT, NULL, pkt);
goto end;
}

conn_id = ebmb_entry(node, struct quic_connection_id, node);
conn_id_tid = HA_ATOMIC_LOAD(&conn_id->tid);
if (conn_id_tid != tid) {
*new_tid = conn_id_tid;
TRACE_DEVEL("connection not found", QUIC_EV_CONN_RXPKT, NULL, pkt);
goto end;
}

qc = conn_id->qc;
TRACE_DEVEL("found connection", QUIC_EV_CONN_RXPKT, qc);

Expand Down

0 comments on commit c93c666

Please sign in to comment.