MINOR: quic: Prepare STREAM frames to fill QUIC packets
authorFrédéric Lécaille <flecaille@haproxy.com>
Wed, 25 Aug 2021 15:56:22 +0000 (17:56 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 23 Sep 2021 13:27:25 +0000 (15:27 +0200)
commita5b1b894c695c6b632f1fd175be776decdc2aafa
tree6f2053cdf9a6eacc6a6ca73afd80c70d9bfc6cc4
parentf4c5c7bdbb9abffe7ce3c104153e2f4d72361fcc
MINOR: quic: Prepare STREAM frames to fill QUIC packets

We must take as most as possible data from STREAM frames to be encapsulated
in QUIC packets, almost as this is done for CRYPTO frames whose fields are
variable length fields. The difference is that STREAM frames are only accepted
for short packets without any "Length" field. So it is sufficient to call
max_available_room() for that in place of max_stream_data_size() as this
is done for CRYPTO data.
src/xprt_quic.c