diff --git a/src/api.rs b/src/api.rs index 3aae46f..190b19a 100644 --- a/src/api.rs +++ b/src/api.rs @@ -122,7 +122,9 @@ impl ApiClient { args: &PushQueryParams, hash: String, ) -> Result { - let client = reqwest::Client::new(); + let client = reqwest::ClientBuilder::new() + .tcp_keepalive(Some(std::time::Duration::from_secs(2 * 60 * 60))) + .build()?; let tok = self.token()?.clone(); let scheduler_host = self.get_scheduler_host().clone();