Skip to content
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.

Commit

Permalink
Use --connect-timeout to avoid stalled curl connections
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonrudolph committed Mar 14, 2022
1 parent 63f43af commit 0051afa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ getcli() {
local rval=-1
for host in "${BUILDPULSE_TEST_REPORTER_HOSTS[@]}"; do
url="${host}/${BUILDPULSE_TEST_REPORTER_BINARY}"
if (set -x; curl -fsSL --retry 3 --retry-connrefused "$url" > "$1"); then
if (set -x; curl -fsSL --retry 3 --retry-connrefused --connect-timeout 5 "$url" > "$1"); then
return 0
else
rval=$?
Expand Down

0 comments on commit 0051afa

Please sign in to comment.