fix: add connect_timeout to reqwest client to prevent indefinite TCP SYN hangs

This commit is contained in:
M1 2026-03-18 12:37:09 +04:00
parent 68093131fa
commit d49cfa70f5
1 changed files with 1 additions and 0 deletions

View File

@ -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<Mutex<HashSet<String>>> = Arc::new(Mutex::new(HashSet::new()));