commit | c09ef0c5fcfaf9cce9d7e0dd072e6e04e3db2bc9 | [log] [tgz] |
---|---|---|
author | Amaury Denoyelle <adenoyelle@haproxy.com> | Mon Aug 08 18:15:24 2022 +0200 |
committer | Amaury Denoyelle <adenoyelle@haproxy.com> | Tue Aug 09 16:03:49 2022 +0200 |
tree | 173c057569a4fb4b1840eea882ecf1bbd95b9d34 | |
parent | 654269c769a167473d17b7bfec7c37f892975e8d [diff] |
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.