File tree 2 files changed +13
-1
lines changed
2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ tower-service ={ version = "0.3", optional = true }
31
31
tower = { version = " 0.4.1" , optional = true , features = [" make" , " util" ] }
32
32
33
33
[dev-dependencies ]
34
- hyper = { version = " 1.1 .0" , features = [" full" ] }
34
+ hyper = { version = " 1.2 .0" , features = [" full" ] }
35
35
bytes = " 1"
36
36
http-body-util = " 0.1.0"
37
37
tokio = { version = " 1" , features = [" macros" , " test-util" ] }
@@ -75,3 +75,4 @@ __internal_happy_eyeballs_tests = []
75
75
[[example ]]
76
76
name = " client"
77
77
required-features = [" client-legacy" , " http1" , " tokio" ]
78
+
Original file line number Diff line number Diff line change @@ -661,6 +661,17 @@ impl<E> Http2Builder<'_, E> {
661
661
Http1Builder { inner : self . inner }
662
662
}
663
663
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
+
664
675
/// Sets the [`SETTINGS_INITIAL_WINDOW_SIZE`][spec] option for HTTP2
665
676
/// stream-level flow control.
666
677
///
You can’t perform that action at this time.
0 commit comments