fix(rustproxy-http): configure HTTP/2 client builders with a Tokio timer for keep-alive handling
This commit is contained in:
@@ -912,6 +912,7 @@ impl HttpProxyService {
|
||||
let exec = hyper_util::rt::TokioExecutor::new();
|
||||
let mut h2_builder = hyper::client::conn::http2::Builder::new(exec);
|
||||
h2_builder
|
||||
.timer(hyper_util::rt::TokioTimer::new())
|
||||
.keep_alive_interval(std::time::Duration::from_secs(10))
|
||||
.keep_alive_timeout(std::time::Duration::from_secs(5))
|
||||
.adaptive_window(true)
|
||||
@@ -1052,6 +1053,7 @@ impl HttpProxyService {
|
||||
let exec = hyper_util::rt::TokioExecutor::new();
|
||||
let mut h2_builder = hyper::client::conn::http2::Builder::new(exec);
|
||||
h2_builder
|
||||
.timer(hyper_util::rt::TokioTimer::new())
|
||||
.keep_alive_interval(std::time::Duration::from_secs(10))
|
||||
.keep_alive_timeout(std::time::Duration::from_secs(5))
|
||||
.adaptive_window(true)
|
||||
@@ -1142,6 +1144,7 @@ impl HttpProxyService {
|
||||
let exec = hyper_util::rt::TokioExecutor::new();
|
||||
let mut h2_builder = hyper::client::conn::http2::Builder::new(exec);
|
||||
h2_builder
|
||||
.timer(hyper_util::rt::TokioTimer::new())
|
||||
.keep_alive_interval(std::time::Duration::from_secs(10))
|
||||
.keep_alive_timeout(std::time::Duration::from_secs(5))
|
||||
.adaptive_window(true)
|
||||
|
||||
Reference in New Issue
Block a user