From d887840138a9ed22ad3210e8aa591afad93fca83 Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Tue, 18 Mar 2025 12:58:58 +0100 Subject: [PATCH] timeout everytwhere --- check-health.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check-health.sh b/check-health.sh index 4e266c26..e9bab256 100755 --- a/check-health.sh +++ b/check-health.sh @@ -7,7 +7,7 @@ timeout=5 # seconds response_file=$(mktemp) -http_status_code=$(curl --ipv4 -m 1 -s -X POST -w "%{http_code}" -o "$response_file" -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["latest", false],"id":1}' $RPC_URL) +http_status_code=$(curl --ipv4 -m $timeout -s -X POST -w "%{http_code}" -o "$response_file" -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["latest", false],"id":1}' $RPC_URL) if [ $? -eq 0 ]; then if [[ $http_status_code -eq 200 ]]; then