From a2b29b68d4a79f06794e45e5d8b69b6b0774ab5e Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Sat, 29 Jun 2019 11:05:36 +0200 Subject: [PATCH] src/client/http_client.rs: use maximal h2 window sizes --- src/client/http_client.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/client/http_client.rs b/src/client/http_client.rs index 25d975f5..a5cc406f 100644 --- a/src/client/http_client.rs +++ b/src/client/http_client.rs @@ -323,12 +323,12 @@ impl HttpClient { } }) .and_then(|upgraded| { - let window_size = 32*1024*1024; // max = (1 << 31) - 2 + let max_window_size = (1 << 31) - 2; h2::client::Builder::new() + .initial_connection_window_size(max_window_size) + .initial_window_size(max_window_size) .max_frame_size(4*1024*1024) - .initial_window_size(window_size) - .initial_connection_window_size(window_size) .handshake(upgraded) .map_err(Error::from) })