Skip to content
Snippets Groups Projects
Commit 1c122d5f authored by Stephen D's avatar Stephen D
Browse files

keepalive

parent 542eb4d1
No related branches found
No related tags found
No related merge requests found
......@@ -33,6 +33,7 @@ async fn main() -> anyhow::Result<()> {
let endpoint = Endpoint::from_static("https://felinet.scd31.com")
.keep_alive_while_idle(true)
.keep_alive_timeout(Duration::from_secs(5))
.http2_keep_alive_interval(Duration::from_secs(5))
.tcp_keepalive(Some(Duration::from_secs(5)));
let mut client = HandlerClient::connect(endpoint).await?;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment