]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: quic: initialize ssl_sock_ctx alongside the quic_conn
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 18 Jan 2022 15:44:34 +0000 (16:44 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 24 Jan 2022 09:30:49 +0000 (10:30 +0100)
commit33ac346ba8862c15a92eea0f4a087c964c1e8de5
tree4540c0933816d7544bf448250e6aca400503c9d7
parent9320dd53850aeb73f6637d2bc96503dea0fd67f5
MINOR: quic: initialize ssl_sock_ctx alongside the quic_conn

Extract the allocation of ssl_sock_ctx from qc_conn_init to a dedicated
function qc_conn_alloc_ssl_ctx. This function is called just after
allocating a new quic_conn, without waiting for the initialization of
the connection. It allocates the ssl_sock_ctx and the quic_conn tasklet.

This change is now possible because the SSL callbacks are dealing with a
quic_conn instance.

This change is required to be able to delay the connection allocation
and handle handshake packets without it.
src/xprt_quic.c