]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: quic: Move an SSL func call from QUIC I/O handler to the xprt init.
authorFrédéric Lécaille <flecaille@haproxy.com>
Thu, 27 May 2021 12:57:09 +0000 (14:57 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 23 Sep 2021 13:27:25 +0000 (15:27 +0200)
commit1e1aad4ff44eee492a17929faabbf561291c15e1
tree83dc7f8a5659f97a3613127e006ae5c49060da9b
parent11c304da0ab6b52a7d0faf8cc248b524fe1b0a59
MINOR: quic: Move an SSL func call from QUIC I/O handler to the xprt init.

Move the call to SSL_set_quic_transport_params() from the listener I/O dgram
handler to the ->init() callback of the xprt (qc_conn_init()) which initializes
its context where is stored the SSL context itself, needed by
SSL_set_quic_transport_params(). Furthermore this is already what is done for the
server counterpart of ->init() QUIC xprt callback. As the ->init() may be run
by another thread than the one for the I/O handler, the xprt context could
not be potentially already initialized before calling SSL_set_quic_transport_params()
from the I/O handler.
src/xprt_quic.c