From d49cfa70f5c4a32829721478099e1ad94f106a1c Mon Sep 17 00:00:00 2001 From: M1 Date: Wed, 18 Mar 2026 12:37:09 +0400 Subject: [PATCH] fix: add connect_timeout to reqwest client to prevent indefinite TCP SYN hangs --- apps/monitor/src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/monitor/src/main.rs b/apps/monitor/src/main.rs index 9f6b4ba..05ac45a 100644 --- a/apps/monitor/src/main.rs +++ b/apps/monitor/src/main.rs @@ -31,6 +31,7 @@ async fn main() -> Result<()> { let client = reqwest::Client::builder() .user_agent("PingQL-Monitor/0.1") + .connect_timeout(std::time::Duration::from_secs(10)) .build()?; let in_flight: Arc>> = Arc::new(Mutex::new(HashSet::new()));