File tree 1 file changed +16
-0
lines changed
1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -1288,6 +1288,22 @@ impl Builder {
1288
1288
self
1289
1289
}
1290
1290
1291
+ /// Configures the maximum number of pending reset streams allowed before a GOAWAY will be sent.
1292
+ ///
1293
+ /// This will default to the default value set by the [`h2` crate](https://crates.io/crates/h2).
1294
+ /// As of v0.4.0, it is 20.
1295
+ ///
1296
+ /// See <https://github.com/hyperium/hyper/issues/2877> for more information.
1297
+ #[ cfg( feature = "http2" ) ]
1298
+ #[ cfg_attr( docsrs, doc( cfg( feature = "http2" ) ) ) ]
1299
+ pub fn http2_max_pending_accept_reset_streams (
1300
+ & mut self ,
1301
+ max : impl Into < Option < usize > > ,
1302
+ ) -> & mut Self {
1303
+ self . h2_builder . max_pending_accept_reset_streams ( max. into ( ) ) ;
1304
+ self
1305
+ }
1306
+
1291
1307
/// Sets the [`SETTINGS_INITIAL_WINDOW_SIZE`][spec] option for HTTP2
1292
1308
/// stream-level flow control.
1293
1309
///
You can’t perform that action at this time.
0 commit comments