From f27b66faee7d5de5c97329fe049ae1e72ed89cb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Fri, 18 Mar 2022 22:49:22 +0100 Subject: [PATCH] BUG/MINOR: mux-quic: Missing I/O handler events initialization This could lead to a mux erratic behavior. Sometimes the application layer could not wakeup the mux I/O handler because it estimated it had already subscribed to write events (see h3_snd_buf() end of implementation). --- src/mux_quic.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mux_quic.c b/src/mux_quic.c index 9d85c8a35..87be58c68 100644 --- a/src/mux_quic.c +++ b/src/mux_quic.c @@ -745,6 +745,7 @@ static int qc_init(struct connection *conn, struct proxy *prx, qcc->subs = NULL; qcc->wait_event.tasklet->process = qc_io_cb; qcc->wait_event.tasklet->context = qcc; + qcc->wait_event.events = 0; /* haproxy timeouts */ qcc->timeout = prx->timeout.client;