mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-21 06:06:59 -04:00
MINOR: quic: Add traces in qc_set_timer() (scheduling)
This should be helpful to diagnose some issues: timer task not run when it should run.
This commit is contained in:
parent
ce69cbc520
commit
aaf1f19e8b
1 changed files with 6 additions and 2 deletions
|
|
@ -657,10 +657,14 @@ static inline void qc_set_timer(struct quic_conn *qc)
|
|||
qc->timer = pto;
|
||||
out:
|
||||
if (qc->timer_task && qc->timer != TICK_ETERNITY) {
|
||||
if (tick_is_expired(qc->timer, now_ms))
|
||||
if (tick_is_expired(qc->timer, now_ms)) {
|
||||
TRACE_PROTO("wakeup asap timer task", QUIC_EV_CONN_STIMER, qc);
|
||||
task_wakeup(qc->timer_task, TASK_WOKEN_MSG);
|
||||
else
|
||||
}
|
||||
else {
|
||||
TRACE_PROTO("timer task scheduling", QUIC_EV_CONN_STIMER, qc);
|
||||
task_schedule(qc->timer_task, qc->timer);
|
||||
}
|
||||
}
|
||||
TRACE_LEAVE(QUIC_EV_CONN_STIMER, qc, pktns);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue