From 2a4d4c4d49b6df1d184dffa2af4b899d736761bb Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Fri, 11 Mar 2022 15:58:36 +0100 Subject: [PATCH] dnf-json: use the default connection timeout By default `timeout` is 30 seconds, but we had it set to 5. Drop the override and use the default. This has two effects: it increases the time before we give up on connecting (as it says on the tin), and it also increases the time download has to be slow for before we give up. Internally, we were seing failures in downlaoding metadata from ODCS and similar issues have occurred in CI too. The potential downside to this is in case of having several mirrors this means it takes longer before giving up on a bad one and trying a better one. But slow is better than broken, so for now rever to the default behavior. Signed-off-by: Tom Gundersen --- dnf-json | 3 --- 1 file changed, 3 deletions(-) diff --git a/dnf-json b/dnf-json index 988c3b60d..74be0c657 100755 --- a/dnf-json +++ b/dnf-json @@ -118,9 +118,6 @@ class Solver(): # building images, I don't care if we download even more. self.base.conf.zchunk = False - # Try another mirror if it takes longer than 5 seconds to connect. - self.base.conf.timeout = 5 - # Set the rest of the dnf configuration. self.base.conf.module_platform_id = module_platform_id self.base.conf.config_file_path = "/dev/null"