Enable connection timeouts when mirrors are available

Closes Homebrew/homebrew#21623.
This commit is contained in:
Jack Nagel 2013-08-05 19:44:34 -05:00
parent 5600713bbb
commit 3dea341732

View File

@ -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