From ff2d249b7c962e6a1e4a0bb0db89e08894a3fc9f Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Wed, 19 Jul 2017 08:24:45 +0100 Subject: Increase timeouts, repository.mageia.org currently takes more than 3s to respond --- modules/mga-mirrors/files/check_mirrors_status | 4 ++-- 1 file 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'}) -- cgit v1.2.1