Skip to content

Commit daca366

Browse files
committed
try keepalive on artifact url endpoint
1 parent 5a48932 commit daca366

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/api.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,9 @@ impl ApiClient {
122122
args: &PushQueryParams,
123123
hash: String,
124124
) -> Result<PullResponse> {
125-
let client = reqwest::Client::new();
125+
let client = reqwest::ClientBuilder::new()
126+
.tcp_keepalive(Some(std::time::Duration::from_secs(2 * 60 * 60)))
127+
.build()?;
126128

127129
let tok = self.token()?.clone();
128130
let scheduler_host = self.get_scheduler_host().clone();

0 commit comments

Comments
 (0)