increase JSON_API_MAX_TIME

This commit is contained in:
Flier Lu 2023-02-09 21:06:46 +08:00
parent b0a74e5323
commit f08c1e836d
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ module Homebrew
HOMEBREW_CACHE_API = (HOMEBREW_CACHE/"api").freeze
# 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) }
def fetch(endpoint)

View File

@ -787,7 +787,7 @@ EOS
do
curl \
"${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" \
--time-cond "${HOMEBREW_CACHE}/api/${formula_or_cask}.json" \
--user-agent "${HOMEBREW_USER_AGENT_CURL}" \