From 3dea34173241ef890b94b516ecf700b456c07472 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Mon, 5 Aug 2013 19:44:34 -0500 Subject: Enable connection timeouts when mirrors are available Closes Homebrew/homebrew#21623. --- Library/Homebrew/download_strategy.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Library') diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index 17ee4143f..bf1b1b1de 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -144,6 +144,11 @@ class CurlDownloadStrategy < AbstractDownloadStrategy private + def curl(*args) + args << '--connect-timeout' << '5' unless @mirrors.empty? + super + end + def xzpath "#{HOMEBREW_PREFIX}/opt/xz/bin/xz" end -- cgit v1.2.3