mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-15 01:12:56 +00:00
keepalive while idle
This commit is contained in:
@@ -448,6 +448,7 @@ async fn connect_http2(
|
||||
let (client, connection) = hyper1::client::conn::http2::Builder::new(TokioExecutor::new())
|
||||
.timer(TokioTimer::new())
|
||||
.keep_alive_interval(Duration::from_secs(20))
|
||||
.keep_alive_while_idle(true)
|
||||
.keep_alive_timeout(Duration::from_secs(5))
|
||||
.handshake(TokioIo::new(stream))
|
||||
.await?;
|
||||
|
||||
Reference in New Issue
Block a user