hunter/main: enable reqwest tcp_keepalive

This commit is contained in:
Astro 2022-12-29 15:30:35 +01:00
parent df50718724
commit 33d5221e12
1 changed files with 1 additions and 0 deletions

View File

@ -75,6 +75,7 @@ async fn main() {
cave::systemd::status("Starting HTTP client");
let client = reqwest::Client::builder()
.timeout(Duration::from_secs(30))
.tcp_keepalive(Duration::from_secs(300))
.pool_max_idle_per_host(0)
.user_agent(concat!(
env!("CARGO_PKG_NAME"),