]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: quic: skip sending if no frame to send in io-cb
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 8 Aug 2022 16:15:24 +0000 (18:15 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 9 Aug 2022 14:03:49 +0000 (16:03 +0200)
commitc09ef0c5fcfaf9cce9d7e0dd072e6e04e3db2bc9
tree173c057569a4fb4b1840eea882ecf1bbd95b9d34
parent654269c769a167473d17b7bfec7c37f892975e8d
MINOR: quic: skip sending if no frame to send in io-cb

Check on quic_conn_io_cb() if sending is required. This allows to skip
over Tx buffer allocation if not needed.

To implement this, we check if frame lists on current and next
encryption level are empty. We also need to check if there is no need to
send ACK, PROBE or CONNECTION_CLOSE. This has been isolated in a new
function qc_need_sending() which may be reuse in some other functions in
the future.
src/xprt_quic.c