]> git.ipfire.org Git - thirdparty/openssl.git/commit - ssl/quic/quic_txp.c
Correctly track the original length when generating a stream frame
authorMatt Caswell <matt@openssl.org>
Thu, 2 Nov 2023 16:25:27 +0000 (16:25 +0000)
committerHugo Landau <hlandau@openssl.org>
Mon, 6 Nov 2023 07:51:22 +0000 (07:51 +0000)
commite718b248f94fa41562b740482813716a2ff13db5
tree8acb119e0f511ee2ee20029aa1de4038978cd6f4
parent3150dbe7cb71de1ee7040c6fdeb254c88e775b7c
Correctly track the original length when generating a stream frame

txp_generate_stream_frames() plans chunks of data to send via the
function txp_plan_stream_chunk(). That function may clamp the amount in
the chunk due to flow control, even though there is more available to send.

We should take this into account when deciding whether or not to try
serializing the next chunk.

Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22601)
ssl/quic/quic_txp.c