]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: quic: Splice the frames which could not be added to packets
authorFrédéric Lécaille <flecaille@haproxy.com>
Fri, 14 Jan 2022 19:39:18 +0000 (20:39 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 20 Jan 2022 15:43:06 +0000 (16:43 +0100)
commitcba4cd427ecda7d47c5d97e82b6a4d10e8647c5b
treec403a900f787ff585848eca2dce404bb36894739
parent82468ea98e2f0736b08647579d0c6adec8a6cd38
MINOR: quic: Splice the frames which could not be added to packets

When building packets to send, we build frames computing their sizes
to have more chance to be added to new packets. There are rare cases
where this packet coult not be built because of the congestion control
which may for instance prevent us from building a packet with padding
(retransmitted Initial packets). In such a case, the pre-built frames
were lost because added to the packet frame list but not move packet
to the packet number space they come from.

With this patch we add the frames to the packet only if it could be built
and move them back to the packet number space if not.
src/xprt_quic.c