@@ -49,6 +49,7 @@ pub(crate) struct Config {
4949 pub ( crate ) max_frame_size : u32 ,
5050 pub ( crate ) enable_connect_protocol : bool ,
5151 pub ( crate ) max_concurrent_streams : Option < u32 > ,
52+ pub ( crate ) max_pending_accept_reset_streams : Option < usize > ,
5253 pub ( crate ) keep_alive_interval : Option < Duration > ,
5354 pub ( crate ) keep_alive_timeout : Duration ,
5455 pub ( crate ) max_send_buffer_size : usize ,
@@ -64,6 +65,7 @@ impl Default for Config {
6465 max_frame_size : DEFAULT_MAX_FRAME_SIZE ,
6566 enable_connect_protocol : false ,
6667 max_concurrent_streams : Some ( 200 ) ,
68+ max_pending_accept_reset_streams : None ,
6769 keep_alive_interval : None ,
6870 keep_alive_timeout : Duration :: from_secs ( 20 ) ,
6971 max_send_buffer_size : DEFAULT_MAX_SEND_BUF_SIZE ,
@@ -131,6 +133,9 @@ where
131133 if let Some ( max) = config. max_concurrent_streams {
132134 builder. max_concurrent_streams ( max) ;
133135 }
136+ if let Some ( max) = config. max_pending_accept_reset_streams {
137+ builder. max_pending_accept_reset_streams ( max) ;
138+ }
134139 if config. enable_connect_protocol {
135140 builder. enable_connect_protocol ( ) ;
136141 }
0 commit comments