projects
/
haproxy-2.5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
139814a
)
BUG/MAJOR: xprt-quic: do not queue qc timer if not set
author
Amaury Denoyelle
<adenoyelle@haproxy.com>
Tue, 5 Oct 2021 12:42:25 +0000
(14:42 +0200)
committer
Amaury Denoyelle
<adenoyelle@haproxy.com>
Thu, 7 Oct 2021 15:35:25 +0000
(17:35 +0200)
Do not queue the pto/loss-detection timer if set to TICK_ETERNITY. This
usage is invalid with the scheduler and cause a BUG_ON trigger.
src/xprt_quic.c
patch
|
blob
|
history
diff --git
a/src/xprt_quic.c
b/src/xprt_quic.c
index
8501e3f
..
cee9322
100644
(file)
--- a/
src/xprt_quic.c
+++ b/
src/xprt_quic.c
@@
-647,7
+647,8
@@
static inline void qc_set_timer(struct ssl_sock_ctx *ctx)
if (tick_isset(pto))
qc->timer = pto;
out:
- task_schedule(qc->timer_task, qc->timer);
+ if (qc->timer != TICK_ETERNITY)
+ task_schedule(qc->timer_task, qc->timer);
TRACE_LEAVE(QUIC_EV_CONN_STIMER, ctx->conn, pktns);
}