Enable connection timeouts when mirrors are available
Closes Homebrew/homebrew#21623.
This commit is contained in:
parent
5600713bbb
commit
3dea341732
@ -144,6 +144,11 @@ class CurlDownloadStrategy < AbstractDownloadStrategy
|
|||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
def curl(*args)
|
||||||
|
args << '--connect-timeout' << '5' unless @mirrors.empty?
|
||||||
|
super
|
||||||
|
end
|
||||||
|
|
||||||
def xzpath
|
def xzpath
|
||||||
"#{HOMEBREW_PREFIX}/opt/xz/bin/xz"
|
"#{HOMEBREW_PREFIX}/opt/xz/bin/xz"
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user