Skip to content

Commit 8506ee1

Browse files
committed
add tcp_keepalive for long builds
1 parent 9c24b35 commit 8506ee1

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
@@ -284,7 +284,9 @@ impl BuildRecall for ApiClient {
284284

285285
handle
286286
.spawn_blocking(move || -> Result<bool> {
287-
let client = reqwest::blocking::Client::new();
287+
let client = reqwest::blocking::ClientBuilder::new()
288+
.tcp_keepalive(Some(std::time::Duration::from_secs(60)))
289+
.build()?;
288290

289291
let resp = client
290292
.get(artifact_url)

0 commit comments

Comments
 (0)