aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2017-07-19 08:24:45 +0100
committerPascal Terjan <pterjan@mageia.org>2017-07-19 08:24:45 +0100
commitff2d249b7c962e6a1e4a0bb0db89e08894a3fc9f (patch)
tree8b005482ffec3ef2520fbd45d52a200117c61f73
parent52099ed821b5b48e988db3789da43a001ae0c19e (diff)
downloadpuppet-ff2d249b7c962e6a1e4a0bb0db89e08894a3fc9f.tar
puppet-ff2d249b7c962e6a1e4a0bb0db89e08894a3fc9f.tar.gz
puppet-ff2d249b7c962e6a1e4a0bb0db89e08894a3fc9f.tar.bz2
puppet-ff2d249b7c962e6a1e4a0bb0db89e08894a3fc9f.tar.xz
puppet-ff2d249b7c962e6a1e4a0bb0db89e08894a3fc9f.zip
Increase timeouts, repository.mageia.org currently takes more than 3s to respond
-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 21465fcc..465b22dc 100755
--- a/modules/mga-mirrors/files/check_mirrors_status
+++ b/modules/mga-mirrors/files/check_mirrors_status
@@ -42,8 +42,8 @@ def fetch_url(url, redirect_limit = 3)
else
uri = URI.parse(url)
http = Net::HTTP.new(uri.host, uri.port)
- http.open_timeout = 2
- http.read_timeout = 2
+ http.open_timeout = 5
+ http.read_timeout = 5
# Ruby 1.8.7 doesn't set a default User-Agent which causes at
# least one mirror to return 403
response = http.get(uri.path, {'User-Agent' => 'check_mirrors'})