diff --git a/src/client.rs b/src/client.rs index 24284264..0a4a8826 100644 --- a/src/client.rs +++ b/src/client.rs @@ -258,7 +258,10 @@ impl Stream { } async fn handshake_http2(self) -> Result { let mut builder = hyper::client::conn::http2::Builder::new(TokioExecutor::new()); - builder.adaptive_window(true); + builder + // from nghttp2's default + .initial_stream_window_size((1 << 30) - 1) + .initial_connection_window_size((1 << 30) - 1); match self { Stream::Tcp(stream) => {