Skip to content

Commit

Permalink
Merge pull request #540 from hatoo/http2-adaptive-window
Browse files Browse the repository at this point in the history
enable http2 adaptive window
  • Loading branch information
hatoo authored Jul 20, 2024
2 parents 483d173 + 3ba4943 commit 6eb9b0e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,8 @@ impl Stream {
}
}
async fn handshake_http2(self) -> Result<SendRequestHttp2, ClientError> {
let builder = hyper::client::conn::http2::Builder::new(TokioExecutor::new());
let mut builder = hyper::client::conn::http2::Builder::new(TokioExecutor::new());
builder.adaptive_window(true);

match self {
Stream::Tcp(stream) => {
Expand Down

0 comments on commit 6eb9b0e

Please sign in to comment.