src/client/http_client.rs: use maximal h2 window sizes
This commit is contained in:
parent
872debdefa
commit
a2b29b68d4
@ -323,12 +323,12 @@ impl HttpClient {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
.and_then(|upgraded| {
|
.and_then(|upgraded| {
|
||||||
let window_size = 32*1024*1024; // max = (1 << 31) - 2
|
let max_window_size = (1 << 31) - 2;
|
||||||
|
|
||||||
h2::client::Builder::new()
|
h2::client::Builder::new()
|
||||||
|
.initial_connection_window_size(max_window_size)
|
||||||
|
.initial_window_size(max_window_size)
|
||||||
.max_frame_size(4*1024*1024)
|
.max_frame_size(4*1024*1024)
|
||||||
.initial_window_size(window_size)
|
|
||||||
.initial_connection_window_size(window_size)
|
|
||||||
.handshake(upgraded)
|
.handshake(upgraded)
|
||||||
.map_err(Error::from)
|
.map_err(Error::from)
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user