]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: mux-quic: Missing I/O handler events initialization
authorFrédéric Lécaille <flecaille@haproxy.com>
Fri, 18 Mar 2022 21:49:22 +0000 (22:49 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 21 Mar 2022 10:29:40 +0000 (11:29 +0100)
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

index 9d85c8a35a0df6c5cf45248ce5e2b613bebbe12a..87be58c6840b263cb18abc79f3a4e44db1641305 100644 (file)
@@ -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;