Hi, this patch increases timeout/max_redirects params. Though I don't think this causes the problem I think it's better to increase these params.
From: Jan Provaznik jprovazn@redhat.com
- timeout is now 90secs - max_redirects is 10 --- .../util/repository_manager/comps_repository.rb | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/app/util/repository_manager/comps_repository.rb b/src/app/util/repository_manager/comps_repository.rb index 6a90f14..65262f7 100644 --- a/src/app/util/repository_manager/comps_repository.rb +++ b/src/app/util/repository_manager/comps_repository.rb @@ -111,7 +111,7 @@ class CompsRepository < AbstractRepository end
def download_xml(url) - resp = Typhoeus::Request.get(url, :timeout => 30000, :follow_location => true, :max_redirects => 3) + resp = Typhoeus::Request.get(url, :timeout => 90000, :follow_location => true, :max_redirects => 10) unless resp.code == 200 raise "failed to fetch #{url}: #{resp.body}" end
deltacloud-devel@lists.fedorahosted.org