]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: quic: simplify qc_send_hdshk_pkts() return
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 8 Apr 2024 13:25:56 +0000 (15:25 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 10 Apr 2024 08:14:36 +0000 (10:14 +0200)
commit44eec848e84cc2533f9b412950e297771979d9e1
treed3f15e7afb4660e012fe56591fd7074655e29138
parent9420cfc0db94acb9a76a265c7fbd56065863934b
MINOR: quic: simplify qc_send_hdshk_pkts() return

Clean up trailer of qc_send_hdshk_pkts() by removing label "leave". Only
"out" label is now used. This operation is safe as LIST_DEL_INIT() is
idempotent. Caller of qc_send_hdshk_pkts() also ensures input frame
lists are freed, so it's better to always reset quic_enc_level
<retrans_frms> member.

Also take the opportunity to reset QUIC_FL_CONN_RETRANS_OLD_DATA only if
already set. This is considered more robust and will also remove
unneeded trace occurences.

No functional change. The main objective of this commit is to clean up
code in preparation of a refactoring on send functions.
src/quic_tx.c