]> git.kaiwu.me - haproxy.git/commit
MINOR: quic: Initialize the connection timer asap
authorFrédéric Lécaille <flecaille@haproxy.com>
Mon, 31 Jan 2022 09:16:18 +0000 (10:16 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 31 Jan 2022 15:40:23 +0000 (16:40 +0100)
commit789413caf04fbbf7093365b87e194668a61d7c39
treee6ebf8b854239359f1bb1b72548385ee3d497545
parent91f083a365b56cbfa993281031b6b9c66eba278a
MINOR: quic: Initialize the connection timer asap

We must move this initialization from xprt_start() callback, which
comes too late (after handshake completion for 1RTT session). This timer must be
usable as soon as we have packets to send/receive. Let's initialize it after
the TLS context is initialized in qc_conn_alloc_ssl_ctx(). This latter function
initializes I/O handler task (quic_conn_io_cb) to send/receive packets.
src/xprt_quic.c