From a9d3e3d667dde61ee445074eb112e41a8543f3d5 Mon Sep 17 00:00:00 2001 From: boxdot Date: Wed, 5 May 2021 19:50:52 +0200 Subject: [PATCH] Export the default value for the max number of reset streams. --- src/lib.rs | 1 + src/proto/mod.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 6049eec51..84c3c669c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -122,6 +122,7 @@ mod share; pub mod fuzz_bridge; pub use crate::error::{Error, Reason}; +pub use crate::proto::DEFAULT_RESET_STREAM_MAX; pub use crate::share::{FlowControl, Ping, PingPong, Pong, RecvStream, SendStream, StreamId}; #[cfg(feature = "unstable")] diff --git a/src/proto/mod.rs b/src/proto/mod.rs index 84fd8542e..8dc58458c 100644 --- a/src/proto/mod.rs +++ b/src/proto/mod.rs @@ -31,5 +31,6 @@ pub type WindowSize = u32; // Constants pub const MAX_WINDOW_SIZE: WindowSize = (1 << 31) - 1; +/// Default value for the maximum number of concurrent locally reset streams. pub const DEFAULT_RESET_STREAM_MAX: usize = 10; pub const DEFAULT_RESET_STREAM_SECS: u64 = 30;