summaryrefslogtreecommitdiff
path: root/ssl/quic/quic_channel.c
diff options
context:
space:
mode:
authorHugo Landau <hlandau@openssl.org>2023-04-18 19:30:56 +0100
committerHugo Landau <hlandau@openssl.org>2023-05-12 14:47:13 +0100
commit0847e63ee5d58d824390aadcbcf10281c45900c4 (patch)
tree5dfd6836eb30316eb68fa0ea8c5d538cc27d9874 /ssl/quic/quic_channel.c
parent9cacba434b027bc6f3a3f3c4255c2453935e5357 (diff)
downloadopenssl-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 'ssl/quic/quic_channel.c')
-rw-r--r--ssl/quic/quic_channel.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ssl/quic/quic_channel.c b/ssl/quic/quic_channel.c
index ec0364ee68..7e55b7b5c6 100644
--- a/ssl/quic/quic_channel.c
+++ b/ssl/quic/quic_channel.c
@@ -1372,6 +1372,9 @@ static void ch_tick(QUIC_TICK_RESULT *res, void *arg, uint32_t flags)
/* Write any data to the network due to be sent. */
ch_tx(ch);
+ /* Do stream GC. */
+ ossl_quic_stream_map_gc(&ch->qsm);
+
/* Determine the time at which we should next be ticked. */
res->tick_deadline = ch_determine_next_tick_deadline(ch);