]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: quic: mark ctrl layer as ready on quic_connect_server()
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 5 Jun 2025 13:27:49 +0000 (15:27 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 12 Jun 2025 09:25:12 +0000 (11:25 +0200)
Use conn_ctrl_init() on the connection when quic_connect_server()
succeeds. This is necessary so that the connection is considered as
completely initialized. Without this, connect operation will be call
again if connection is reused.

src/proto_quic.c

index c2ec3a37b8d6a2b669b6c9bc682a2b89ca36f70a..f7a1e249288938461174519f0cc8adbeb2060d45 100644 (file)
@@ -431,6 +431,7 @@ int quic_connect_server(struct connection *conn, int flags)
        fd_insert(fd, qc, quic_conn_sock_fd_iocb, tgid, ti->ltid_bit);
        fd_want_recv(fd);
 
+       conn_ctrl_init(conn);
        return SF_ERR_NONE;  /* connection is OK */
 }