mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-24 23:31:40 +02:00
MINOR: quic: Add traces to qc_kill_conn()
Very minor modification to help in debugging issues. Must be backported to 2.7.
This commit is contained in:
parent
a2c62c3141
commit
2f531116ed
@ -224,6 +224,7 @@ enum quic_pkt_type {
|
||||
#define QUIC_EV_CONN_SUB (1ULL << 46)
|
||||
#define QUIC_EV_CONN_ELEVELSEL (1ULL << 47)
|
||||
#define QUIC_EV_CONN_RCV (1ULL << 48)
|
||||
#define QUIC_EV_CONN_KILL (1ULL << 49)
|
||||
|
||||
/* Similar to kernel min()/max() definitions. */
|
||||
#define QUIC_MIN(a, b) ({ \
|
||||
|
@ -738,8 +738,10 @@ static inline int quic_peer_validated_addr(struct quic_conn *qc)
|
||||
/* To be called to kill a connection as soon as possible (without sending any packet). */
|
||||
void qc_kill_conn(struct quic_conn *qc)
|
||||
{
|
||||
TRACE_ENTER(QUIC_EV_CONN_KILL, qc);
|
||||
qc->flags |= QUIC_FL_CONN_TO_KILL;
|
||||
task_wakeup(qc->idle_timer_task, TASK_WOKEN_OTHER);
|
||||
TRACE_LEAVE(QUIC_EV_CONN_KILL, qc);
|
||||
}
|
||||
|
||||
/* Set the timer attached to the QUIC connection with <ctx> as I/O handler and used for
|
||||
|
Loading…
x
Reference in New Issue
Block a user