hunter/main: enable reqwest tcp_keepalive
This commit is contained in:
parent
df50718724
commit
33d5221e12
|
@ -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"),
|
||||
|
|
Loading…
Reference in New Issue