File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -75,3 +75,4 @@ __internal_happy_eyeballs_tests = []
7575[[example ]]
7676name = " client"
7777required-features = [" client-legacy" , " http1" , " tokio" ]
78+
Original file line number Diff line number Diff line change @@ -661,6 +661,17 @@ impl<E> Http2Builder<'_, E> {
661661 Http1Builder { inner : self . inner }
662662 }
663663
664+ /// Configures the maximum number of pending reset streams allowed before a GOAWAY will be sent.
665+ ///
666+ /// This will default to the default value set by the [`h2` crate](https://crates.io/crates/h2).
667+ /// As of v0.4.0, it is 20.
668+ ///
669+ /// See <https://github.com/hyperium/hyper/issues/2877> for more information.
670+ pub fn max_pending_accept_reset_streams ( & mut self , max : impl Into < Option < usize > > ) -> & mut Self {
671+ self . inner . http2 . max_pending_accept_reset_streams ( max) ;
672+ self
673+ }
674+
664675 /// Sets the [`SETTINGS_INITIAL_WINDOW_SIZE`][spec] option for HTTP2
665676 /// stream-level flow control.
666677 ///
You can’t perform that action at this time.
0 commit comments