@@ -52,6 +52,7 @@ pub(crate) struct Config {
52
52
pub ( crate ) adaptive_window : bool ,
53
53
pub ( crate ) initial_conn_window_size : u32 ,
54
54
pub ( crate ) initial_stream_window_size : u32 ,
55
+ pub ( crate ) initial_max_send_streams : Option < usize > ,
55
56
pub ( crate ) max_frame_size : u32 ,
56
57
#[ cfg( feature = "runtime" ) ]
57
58
pub ( crate ) keep_alive_interval : Option < Duration > ,
@@ -69,6 +70,7 @@ impl Default for Config {
69
70
adaptive_window : false ,
70
71
initial_conn_window_size : DEFAULT_CONN_WINDOW ,
71
72
initial_stream_window_size : DEFAULT_STREAM_WINDOW ,
73
+ initial_max_send_streams : None ,
72
74
max_frame_size : DEFAULT_MAX_FRAME_SIZE ,
73
75
#[ cfg( feature = "runtime" ) ]
74
76
keep_alive_interval : None ,
@@ -90,6 +92,9 @@ fn new_builder(config: &Config) -> Builder {
90
92
. max_frame_size ( config. max_frame_size )
91
93
. max_send_buffer_size ( config. max_send_buffer_size )
92
94
. enable_push ( false ) ;
95
+ if let Some ( initial_max_send_streams) = config. initial_max_send_streams {
96
+ builder. initial_max_send_streams ( initial_max_send_streams) ;
97
+ }
93
98
if let Some ( max) = config. max_concurrent_reset_streams {
94
99
builder. max_concurrent_reset_streams ( max) ;
95
100
}
0 commit comments