diff options
author | Hugo Landau <hlandau@openssl.org> | 2024-02-02 12:21:11 +0000 |
---|---|---|
committer | Hugo Landau <hlandau@openssl.org> | 2024-02-10 11:37:14 +0000 |
commit | a5d16ac371245bd87e9ec264763a16db7015d59b (patch) | |
tree | 153061d382ed7665befd2486aaacc54d54fcd0cf /include | |
parent | ab05f13cedb6cb1f058381676ae28652f7e4534d (diff) |
QUIC QSM: Allow bidi and uni incoming streams to be tracked separately
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23495)
Diffstat (limited to 'include')
-rw-r--r-- | include/internal/quic_stream_map.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/internal/quic_stream_map.h b/include/internal/quic_stream_map.h index 9d860f6d1f..41d2eb345d 100644 --- a/include/internal/quic_stream_map.h +++ b/include/internal/quic_stream_map.h @@ -520,7 +520,7 @@ struct quic_stream_map_st { QUIC_STREAM_LIST_NODE accept_list; QUIC_STREAM_LIST_NODE ready_for_gc_list; size_t rr_stepping, rr_counter; - size_t num_accept, num_shutdown_flush; + size_t num_accept_bidi, num_accept_uni, num_shutdown_flush; QUIC_STREAM *rr_cur; uint64_t (*get_stream_limit_cb)(int uni, void *arg); void *get_stream_limit_cb_arg; @@ -806,8 +806,11 @@ void ossl_quic_stream_map_remove_from_accept_queue(QUIC_STREAM_MAP *qsm, QUIC_STREAM *s, OSSL_TIME rtt); -/* Returns the length of the accept queue. */ -size_t ossl_quic_stream_map_get_accept_queue_len(QUIC_STREAM_MAP *qsm); +/* Returns the length of the accept queue for the given stream type. */ +size_t ossl_quic_stream_map_get_accept_queue_len(QUIC_STREAM_MAP *qsm, int is_uni); + +/* Returns the total length of the accept queues for all stream types. */ +size_t ossl_quic_stream_map_get_total_accept_queue_len(QUIC_STREAM_MAP *qsm); /* * Shutdown Flush and GC |