Disable read timeout for HTTP downloader
This commit is contained in:
parent
627066c986
commit
ef265ab3ba
|
@ -19,6 +19,7 @@ module Vagrant
|
||||||
proxy_uri = resolve_proxy(uri)
|
proxy_uri = resolve_proxy(uri)
|
||||||
|
|
||||||
http = Net::HTTP.new(uri.host, uri.port, proxy_uri.host, proxy_uri.port, proxy_uri.user, proxy_uri.password)
|
http = Net::HTTP.new(uri.host, uri.port, proxy_uri.host, proxy_uri.port, proxy_uri.user, proxy_uri.password)
|
||||||
|
http.read_timeout = nil # Disable the read timeout, just let it try to download
|
||||||
|
|
||||||
if uri.scheme == "https"
|
if uri.scheme == "https"
|
||||||
http.use_ssl = true
|
http.use_ssl = true
|
||||||
|
|
Loading…
Reference in New Issue