@@ -49,6 +49,7 @@ pub(crate) struct Config {
49
49
pub ( crate ) max_frame_size : u32 ,
50
50
pub ( crate ) enable_connect_protocol : bool ,
51
51
pub ( crate ) max_concurrent_streams : Option < u32 > ,
52
+ pub ( crate ) max_pending_accept_reset_streams : Option < usize > ,
52
53
pub ( crate ) keep_alive_interval : Option < Duration > ,
53
54
pub ( crate ) keep_alive_timeout : Duration ,
54
55
pub ( crate ) max_send_buffer_size : usize ,
@@ -64,6 +65,7 @@ impl Default for Config {
64
65
max_frame_size : DEFAULT_MAX_FRAME_SIZE ,
65
66
enable_connect_protocol : false ,
66
67
max_concurrent_streams : Some ( 200 ) ,
68
+ max_pending_accept_reset_streams : None ,
67
69
keep_alive_interval : None ,
68
70
keep_alive_timeout : Duration :: from_secs ( 20 ) ,
69
71
max_send_buffer_size : DEFAULT_MAX_SEND_BUF_SIZE ,
@@ -131,6 +133,9 @@ where
131
133
if let Some ( max) = config. max_concurrent_streams {
132
134
builder. max_concurrent_streams ( max) ;
133
135
}
136
+ if let Some ( max) = config. max_pending_accept_reset_streams {
137
+ builder. max_pending_accept_reset_streams ( max) ;
138
+ }
134
139
if config. enable_connect_protocol {
135
140
builder. enable_connect_protocol ( ) ;
136
141
}
0 commit comments