]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: quic: use qc_send_hdshk_pkts() in handshake IO cb
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 8 Apr 2024 07:46:46 +0000 (09:46 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 10 Apr 2024 09:07:19 +0000 (11:07 +0200)
commit4e4127a66dd8f541e37d2933d6130b4090bbb288
tree514bf4705c777aefda9046bb32612d0e495b3e09
parent3a8f4761e7d37b8e6a9a0cb5600322fe92707941
MINOR: quic: use qc_send_hdshk_pkts() in handshake IO cb

quic_conn_io_cb() manually implements emission by using lower level
functions qc_prep_pkts() and qc_send_ppkts(). Replace this by using the
higher level function qc_send_hdshk_pkts() which notably handle buffer
allocation and purging.

This allows to clean up send API by flagging qc_prep_pkts() and
qc_send_ppkts() as static. They are now used in a single location inside
qc_send_hdshk_pkts().
include/haproxy/quic_tx.h
src/quic_conn.c
src/quic_tx.c