diff options
author | Hugo Landau <hlandau@openssl.org> | 2024-01-22 13:16:25 +0000 |
---|---|---|
committer | Hugo Landau <hlandau@openssl.org> | 2024-02-08 16:50:00 +0000 |
commit | ecff7ca4c1043265a7af09d7f9286a08779dd098 (patch) | |
tree | a1a77d5d2c412626dcd5438643dd33b020e8d600 /include | |
parent | a774062466d3d2d2908c4f076a9cbbd2cb00738a (diff) |
QUIC CHANNEL: Add idle timeout configuration and stream count APIs
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23360)
Diffstat (limited to 'include')
-rw-r--r-- | include/internal/quic_channel.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/include/internal/quic_channel.h b/include/internal/quic_channel.h index 2f3d91d5c7..236d4a8dba 100644 --- a/include/internal/quic_channel.h +++ b/include/internal/quic_channel.h @@ -422,6 +422,29 @@ void ossl_quic_channel_get_diag_local_cid(QUIC_CHANNEL *ch, QUIC_CONN_ID *cid); */ int ossl_quic_channel_is_new_local_stream_admissible(QUIC_CHANNEL *ch, int is_uni); +/* + * Returns the number of additional streams that can currently be created based + * on flow control. + */ +uint64_t ossl_quic_channel_get_local_stream_count_avail(const QUIC_CHANNEL *ch, + int is_uni); +uint64_t ossl_quic_channel_get_remote_stream_count_avail(const QUIC_CHANNEL *ch, + int is_uni); + +/* + * Returns 1 if we have generated our local transport parameters yet. + */ +int ossl_quic_channel_have_generated_transport_params(const QUIC_CHANNEL *ch); + +/* Configures the idle timeout to request from peer (milliseconds, 0=no timeout). */ +void ossl_quic_channel_set_max_idle_timeout_request(QUIC_CHANNEL *ch, uint64_t ms); +/* Get the configured idle timeout to request from peer. */ +uint64_t ossl_quic_channel_get_max_idle_timeout_request(const QUIC_CHANNEL *ch); +/* Get the idle timeout requested by the peer. */ +uint64_t ossl_quic_channel_get_max_idle_timeout_peer_request(const QUIC_CHANNEL *ch); +/* Get the idle timeout actually negotiated. */ +uint64_t ossl_quic_channel_get_max_idle_timeout_actual(const QUIC_CHANNEL *ch); + # endif #endif |