Skip to content

Commit 93dc1b2

Browse files
authored
docs: more accurate about default HTTP2 window sizes (#3007)
1 parent c5e50f0 commit 93dc1b2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/async_impl/client.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1566,7 +1566,7 @@ impl ClientBuilder {
15661566

15671567
/// Sets the `SETTINGS_INITIAL_WINDOW_SIZE` option for HTTP2 stream-level flow control.
15681568
///
1569-
/// Default is currently 65,535 but may change internally to optimize for common uses.
1569+
/// Default may change internally to optimize for common uses.
15701570
#[cfg(feature = "http2")]
15711571
#[cfg_attr(docsrs, doc(cfg(feature = "http2")))]
15721572
pub fn http2_initial_stream_window_size(mut self, sz: impl Into<Option<u32>>) -> ClientBuilder {
@@ -1576,7 +1576,7 @@ impl ClientBuilder {
15761576

15771577
/// Sets the max connection-level flow control for HTTP2
15781578
///
1579-
/// Default is currently 65,535 but may change internally to optimize for common uses.
1579+
/// Default may change internally to optimize for common uses.
15801580
#[cfg(feature = "http2")]
15811581
#[cfg_attr(docsrs, doc(cfg(feature = "http2")))]
15821582
pub fn http2_initial_connection_window_size(

src/blocking/client.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ impl ClientBuilder {
484484

485485
/// Sets the `SETTINGS_INITIAL_WINDOW_SIZE` option for HTTP2 stream-level flow control.
486486
///
487-
/// Default is currently 65,535 but may change internally to optimize for common uses.
487+
/// Default may change internally to optimize for common uses.
488488
#[cfg(feature = "http2")]
489489
#[cfg_attr(docsrs, doc(cfg(feature = "http2")))]
490490
pub fn http2_initial_stream_window_size(self, sz: impl Into<Option<u32>>) -> ClientBuilder {
@@ -493,7 +493,7 @@ impl ClientBuilder {
493493

494494
/// Sets the max connection-level flow control for HTTP2
495495
///
496-
/// Default is currently 65,535 but may change internally to optimize for common uses.
496+
/// Default may change internally to optimize for common uses.
497497
#[cfg(feature = "http2")]
498498
#[cfg_attr(docsrs, doc(cfg(feature = "http2")))]
499499
pub fn http2_initial_connection_window_size(self, sz: impl Into<Option<u32>>) -> ClientBuilder {

0 commit comments

Comments
 (0)