From 236e92b7807c301718dd95a4d355f4ecf4b1a691 Mon Sep 17 00:00:00 2001 From: networkjanitor Date: Fri, 30 Aug 2024 23:17:21 +0200 Subject: fix: increase upload timeout to match dps.report internal timeout --- src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.rs b/src/main.rs index 6352bff..3e84e2d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -250,6 +250,8 @@ fn upload_log(file: &Path, url: &str) -> Result { .post(url) .query(&[("json", 1)]) .multipart(form) + // dps.report internal processing timeout is 15 mins + .timeout(Duration::from_secs(60 * 15)) .send()? .error_for_status()? .json()?; -- cgit v1.2.3