]> git.ipfire.org Git - thirdparty/openssl.git/commit
Improve the QUIC_RSTREAM implementation
authorTomas Mraz <tomas@openssl.org>
Wed, 30 Nov 2022 18:30:30 +0000 (19:30 +0100)
committerTomas Mraz <tomas@openssl.org>
Mon, 6 Mar 2023 11:26:16 +0000 (12:26 +0100)
commit2113ea584cdfd59892bbeb7acd78d8b1a825a156
tree653548a8021fdda207d9a08b9edcb8fc26a0af82
parentac21c1780a63a8d9a3a6217eb52fe0d188fa7655
Improve the QUIC_RSTREAM implementation

Add API calls to avoid copying data when reading
These are ossl_quic_rstream_get_record() and
ossl_quic_rstream_release_record().

Add side storage for the stream frame data.
When there are too many packets referenced by the
receiving stream the function ossl_quic_rstream_move_to_rbuf()
can be called to move the data to a ring buffer.

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19794)
include/internal/quic_sf_list.h
include/internal/quic_stream.h
include/internal/ring_buf.h [new file with mode: 0644]
ssl/quic/quic_channel.c
ssl/quic/quic_rstream.c
ssl/quic/quic_sf_list.c
ssl/quic/quic_sstream.c
test/quic_stream_test.c