@@ -46,6 +46,7 @@ pub(crate) struct Config {
4646 pub ( crate ) max_frame_size : u32 ,
4747 pub ( crate ) enable_connect_protocol : bool ,
4848 pub ( crate ) max_concurrent_streams : Option < u32 > ,
49+ pub ( crate ) max_pending_accept_reset_streams : Option < usize > ,
4950 #[ cfg( feature = "runtime" ) ]
5051 pub ( crate ) keep_alive_interval : Option < Duration > ,
5152 #[ cfg( feature = "runtime" ) ]
@@ -63,6 +64,7 @@ impl Default for Config {
6364 max_frame_size : DEFAULT_MAX_FRAME_SIZE ,
6465 enable_connect_protocol : false ,
6566 max_concurrent_streams : None ,
67+ max_pending_accept_reset_streams : None ,
6668 #[ cfg( feature = "runtime" ) ]
6769 keep_alive_interval : None ,
6870 #[ cfg( feature = "runtime" ) ]
@@ -125,6 +127,9 @@ where
125127 if let Some ( max) = config. max_concurrent_streams {
126128 builder. max_concurrent_streams ( max) ;
127129 }
130+ if let Some ( max) = config. max_pending_accept_reset_streams {
131+ builder. max_pending_accept_reset_streams ( max) ;
132+ }
128133 if config. enable_connect_protocol {
129134 builder. enable_connect_protocol ( ) ;
130135 }
@@ -503,7 +508,6 @@ where
503508 }
504509 }
505510
506-
507511 if !body. is_end_stream ( ) {
508512 // automatically set Content-Length from body...
509513 if let Some ( len) = body. size_hint ( ) . exact ( ) {
0 commit comments