Skip to content

Commit

Permalink
try keepalive on artifact url endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
kcking committed Oct 12, 2021
1 parent 5a48932 commit daca366
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,9 @@ impl ApiClient {
args: &PushQueryParams,
hash: String,
) -> Result<PullResponse> {
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();
Expand Down

0 comments on commit daca366

Please sign in to comment.