From bb4443c74dbdb5ef265790ddc44b40b3808cce60 Mon Sep 17 00:00:00 2001 From: Kurt Date: Thu, 20 Feb 2025 19:31:53 +0100 Subject: [PATCH] Use --connect-timeout 3 in setup_network.sh : check_internet_connection curls seems to have a very long default timeout causing the whole subdata to hang when in secondary mode. This is because setup_network.sh is called from line 630 of subdata.py - control path for "extern" openwb. --- runs/setup_network.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runs/setup_network.sh b/runs/setup_network.sh index 76854d548f..f3da7a03b3 100755 --- a/runs/setup_network.sh +++ b/runs/setup_network.sh @@ -63,7 +63,7 @@ function setup_pnp_network() { } function check_internet_connection() { - if curl -s --head --request GET "https://www.github.com" >/dev/null; then + if curl -s --head --connect-timeout 3 --request GET "https://www.github.com" >/dev/null; then echo "Internet connection is up" else echo "ERROR: no internet connection!"