From 2149e32c9eea97523db52e5f61925f79a92e6067 Mon Sep 17 00:00:00 2001 From: Kekma <136650032+KekmaTime@users.noreply.github.com> Date: Tue, 19 Mar 2024 01:03:52 +0530 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20config=20option=20to=20time?= =?UTF-8?q?out=20requests=20for=20fetching=20search=20results=20from=20the?= =?UTF-8?q?=20upstream=20search=20engines=20(#545)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/results/aggregator.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/results/aggregator.rs b/src/results/aggregator.rs index b46befd..5244a76 100644 --- a/src/results/aggregator.rs +++ b/src/results/aggregator.rs @@ -77,6 +77,7 @@ pub async fn aggregate( let client = CLIENT.get_or_init(|| { ClientBuilder::new() .timeout(Duration::from_secs(config.request_timeout as u64)) // Add timeout to request to avoid DDOSing the server + .connect_timeout(Duration::from_secs(config.request_timeout as u64)) // Add timeout to request to avoid DDOSing the server .https_only(true) .gzip(true) .brotli(true)