Disable read timeout for HTTP downloader

This commit is contained in:
Mitchell Hashimoto 2012-06-28 21:28:40 -07:00
parent 627066c986
commit ef265ab3ba
1 changed files with 1 additions and 0 deletions

View File

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