increase JSON_API_MAX_TIME
This commit is contained in:
parent
b0a74e5323
commit
f08c1e836d
@ -20,7 +20,7 @@ module Homebrew
|
|||||||
HOMEBREW_CACHE_API = (HOMEBREW_CACHE/"api").freeze
|
HOMEBREW_CACHE_API = (HOMEBREW_CACHE/"api").freeze
|
||||||
|
|
||||||
# Set a longer timeout just for large(r) files.
|
# Set a longer timeout just for large(r) files.
|
||||||
JSON_API_MAX_TIME = 10
|
JSON_API_MAX_TIME = 30
|
||||||
|
|
||||||
sig { params(endpoint: String).returns(Hash) }
|
sig { params(endpoint: String).returns(Hash) }
|
||||||
def fetch(endpoint)
|
def fetch(endpoint)
|
||||||
|
|||||||
@ -787,7 +787,7 @@ EOS
|
|||||||
do
|
do
|
||||||
curl \
|
curl \
|
||||||
"${CURL_DISABLE_CURLRC_ARGS[@]}" \
|
"${CURL_DISABLE_CURLRC_ARGS[@]}" \
|
||||||
--fail --compressed --silent --max-time 10 \
|
--fail --compressed --silent --max-time 30 \
|
||||||
--location --remote-time --output "${HOMEBREW_CACHE}/api/${formula_or_cask}.json" \
|
--location --remote-time --output "${HOMEBREW_CACHE}/api/${formula_or_cask}.json" \
|
||||||
--time-cond "${HOMEBREW_CACHE}/api/${formula_or_cask}.json" \
|
--time-cond "${HOMEBREW_CACHE}/api/${formula_or_cask}.json" \
|
||||||
--user-agent "${HOMEBREW_USER_AGENT_CURL}" \
|
--user-agent "${HOMEBREW_USER_AGENT_CURL}" \
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user