diff options
author | Hugo Landau <hlandau@openssl.org> | 2023-04-18 19:30:56 +0100 |
---|---|---|
committer | Hugo Landau <hlandau@openssl.org> | 2023-05-12 14:47:13 +0100 |
commit | 0847e63ee5d58d824390aadcbcf10281c45900c4 (patch) | |
tree | 5dfd6836eb30316eb68fa0ea8c5d538cc27d9874 /include/internal/quic_stream.h | |
parent | 9cacba434b027bc6f3a3f3c4255c2453935e5357 (diff) | |
download | openssl-new-0847e63ee5d58d824390aadcbcf10281c45900c4.tar.gz |
QUIC QSM: Stream garbage collection
This allows QUIC_STREAM objects to be deleted when they are no longer
needed.
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20765)
Diffstat (limited to 'include/internal/quic_stream.h')
-rw-r--r-- | include/internal/quic_stream.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/internal/quic_stream.h b/include/internal/quic_stream.h index 42d6ed2d7d..a1e88a4ab6 100644 --- a/include/internal/quic_stream.h +++ b/include/internal/quic_stream.h @@ -254,6 +254,12 @@ void ossl_quic_sstream_fin(QUIC_SSTREAM *qss); int ossl_quic_sstream_get_final_size(QUIC_SSTREAM *qss, uint64_t *final_size); /* + * Returns 1 iff all bytes (and any FIN, if any) which have been appended to the + * QUIC_SSTREAM so far, and any FIN (if any), have been both sent and acked. + */ +int ossl_quic_sstream_is_totally_acked(QUIC_SSTREAM *qss); + +/* * Resizes the internal ring buffer. All stream data is preserved safely. * * This can be used to expand or contract the ring buffer, but not to contract |