aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mga-mirrors/files
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2024-01-01 15:26:40 -0800
committerDan Fandrich <dan@coneharvesters.com>2024-01-01 15:26:40 -0800
commit87bfc7841635e011dfc060e833a835d8ec4e754d (patch)
treee2a6ef21d6b70c02fcc306fa5f36d16f3522e01f /modules/mga-mirrors/files
parentbc4bde474e3377c603c750d93f6484f44ceee7da (diff)
downloadpuppet-87bfc7841635e011dfc060e833a835d8ec4e754d.tar
puppet-87bfc7841635e011dfc060e833a835d8ec4e754d.tar.gz
puppet-87bfc7841635e011dfc060e833a835d8ec4e754d.tar.bz2
puppet-87bfc7841635e011dfc060e833a835d8ec4e754d.tar.xz
puppet-87bfc7841635e011dfc060e833a835d8ec4e754d.zip
Bump timeouts in check_mirrors_status
Slow systems/networks might be the reason for the occasional missing data causing previous crashes.
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 c0e6a53b..056d1bab 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 = 5
- http.read_timeout = 5
+ http.open_timeout = 9
+ http.read_timeout = 9
if uri.scheme == 'https' then
http.use_ssl = true
end