]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: quic: Make qc_build_hdshk_pkt() atomically consume a packet number
authorFrédéric Lécaille <flecaille@haproxy.com>
Tue, 3 Aug 2021 14:50:14 +0000 (16:50 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 23 Sep 2021 13:27:25 +0000 (15:27 +0200)
commita7348f6f85778f5242b1325c8682c4c90c78a184
treebeed86775d01eec8215093839514132f05417eb4
parent91ae7aa7ec825107ab12239f808cfe5713cc7372
MINOR: quic: Make qc_build_hdshk_pkt() atomically consume a packet number

Atomically increase the "next packet variable" before building a new packet.
Make the code bug on a packet building failure. This should never happen
if we do not want to consume a packet number for nothing. There are remaining
modifications to come to ensure this is the case.
src/xprt_quic.c