MINOR: quic: Shorten some handshakes
authorFrédéric Lécaille <flecaille@haproxy.com>
Mon, 30 Aug 2021 15:16:07 +0000 (17:16 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 23 Sep 2021 13:27:25 +0000 (15:27 +0200)
commit2766e78f3b6ba7977b8c4c344337f10b0f19b306
tree9efc9445478334bd102f5886e52a873f20a06bbd
parent42bb8aac659cd4bb3ced811e3e6d0137d5f13d56
MINOR: quic: Shorten some handshakes

Move the "ACK required" bit from the packet number space to the connection level.
Force the "ACK required" option when acknowlegding Handshake or Initial packet.
A client may send three packets with a different encryption level for each. So,
this patch modifies qc_treat_rx_pkts() to consider two encryption level passed
as parameters, in place of only one.
Make qc_conn_io_cb() restart its process after the handshake has succeeded
so that to process any Application level packets which have already been received
in the same datagram as the last CRYPTO frames in Handshake packets.
include/haproxy/xprt_quic-t.h
include/haproxy/xprt_quic.h
src/xprt_quic.c