aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/download_strategy.rb5
1 files changed, 5 insertions, 0 deletions
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