From: Frédéric Lécaille Date: Fri, 18 Mar 2022 21:49:22 +0000 (+0100) Subject: BUG/MINOR: mux-quic: Missing I/O handler events initialization X-Git-Tag: v2.6-dev4~34 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f27b66faee7d5de5c97329fe049ae1e72ed89cb7;p=thirdparty%2Fhaproxy.git 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). --- diff --git a/src/mux_quic.c b/src/mux_quic.c index 9d85c8a35a..87be58c684 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;