From 121b218db50a4df547eb112280d67027148c5596 Mon Sep 17 00:00:00 2001 From: Samarth Bhatia Date: Thu, 27 Aug 2026 15:27:19 +0530 Subject: [PATCH 1/2] fix: add connect timeout so ureq can fail over to other DNS IPs (fixes #358) --- src/github/client.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/github/client.rs b/src/github/client.rs index 96c42e4..1d5aa42 100644 --- a/src/github/client.rs +++ b/src/github/client.rs @@ -40,6 +40,7 @@ impl GithubClient { ) -> ureq::RequestBuilder { let agent: ureq::Agent = ureq::Agent::config_builder() .timeout_global(timeout) + .timeout_connect(Some(Duration::from_secs(5))) .build() .into(); From c69211355f037c068a37931b083b975af7d38868 Mon Sep 17 00:00:00 2001 From: Samarth Bhatia Date: Fri, 28 Aug 2026 11:47:46 +0530 Subject: [PATCH 2/2] change TLS connection timeout to 2s --- src/github/client.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/github/client.rs b/src/github/client.rs index 1d5aa42..b1f2f44 100644 --- a/src/github/client.rs +++ b/src/github/client.rs @@ -40,7 +40,7 @@ impl GithubClient { ) -> ureq::RequestBuilder { let agent: ureq::Agent = ureq::Agent::config_builder() .timeout_global(timeout) - .timeout_connect(Some(Duration::from_secs(5))) + .timeout_connect(Some(Duration::from_secs(2))) .build() .into();