]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: quic: improve sending API on retransmit
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 5 Apr 2024 15:43:38 +0000 (17:43 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 10 Apr 2024 09:06:55 +0000 (11:06 +0200)
commit3a8f4761e7d37b8e6a9a0cb5600322fe92707941
treedcf4aff81b4a6393d760f26a3e82ed3b7165adbe
parent93f5b4c8ae0e91acb890afced89fc0fcb9fabe26
MINOR: quic: improve sending API on retransmit

qc_send_hdshk_pkts() is a wrapper for qc_prep_hpkts() used on
retransmission. It was restricted to use two quic_enc_level pointers as
distinct arguments. Adapt it to directly use the same list of
quic_enc_level which is passed then to qc_prep_hpkts().

Now for retransmission quic_enc_level send list is built directly into
qc_dgrams_retransmit() which calls qc_send_hdshk_pkts().

Along this change, a new utility function qel_register_send() is
defined. It is an helper to build the quic_enc_level send list. It
enfores that each quic_enc_level instance is only registered in a single
list to prevent memory issues. It is both used in qc_dgrams_retransmit()
and quic_conn_io_cb().
include/haproxy/quic_tx.h
src/quic_conn.c
src/quic_tx.c