MINOR: quic: simplify qc_prep_pkts() exit path
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 16 Oct 2024 15:50:30 +0000 (17:50 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 19 Nov 2024 15:16:48 +0000 (16:16 +0100)
commita554d82131dde3fd0d5e0bc110814cf6feb98338
tree7d41d9414de54626433ce80982b3744eaefd60ef
parent4069873403cbb36c9ae7274c6d9bceff7e948b3f
MINOR: quic: simplify qc_prep_pkts() exit path

To prepare pacing support, qc_prep_pkts() exit path have been rewritten
to be easily modified. This is purely refactoring which should not have
any functional change :
* a dedicated error path has been added
* ensure qc_txb_store() is always called to finalize datagram on normal
  exit path if first_pkt is not NULL. Needed to support breaking from
  packet building loop in a easier way.
src/quic_tx.c