aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mga-mirrors/files
diff options
context:
space:
mode:
authorDan Fandrich <danf@mageia.org>2025-04-23 17:01:00 -0700
committerDan Fandrich <danf@mageia.org>2025-04-23 17:02:24 -0700
commit20a7380942070a33d974a5c4afcb1dd643520860 (patch)
treeb297224a8501761c0aaf91d2f73cbdcfcbac8534 /modules/mga-mirrors/files
parentd904370553f208098564ae70860050dc0c4ab8dd (diff)
downloadpuppet-master.tar
puppet-master.tar.gz
puppet-master.tar.bz2
puppet-master.tar.xz
puppet-master.zip
Bump the timeouts in check_mirrorHEADmaster
When servers are bogged down it can take longer than 9 seconds to connect.
Diffstat (limited to 'modules/mga-mirrors/files')
-rwxr-xr-xmodules/mga-mirrors/files/check_mirrors_status4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/mga-mirrors/files/check_mirrors_status b/modules/mga-mirrors/files/check_mirrors_status
index 2d5fc7d4..9c00ac8d 100755
--- a/modules/mga-mirrors/files/check_mirrors_status
+++ b/modules/mga-mirrors/files/check_mirrors_status
@@ -71,8 +71,8 @@ def fetch_url(url, redirect_limit = 3)
else
uri = URI.parse(url)
http = Net::HTTP.new(uri.host, uri.port)
- http.open_timeout = 9
- http.read_timeout = 9
+ http.open_timeout = 30
+ http.read_timeout = 30
if uri.scheme == 'https' then
http.use_ssl = true
end