@cryptotaxi247 / netdata-1 / commits / 351bab509

anonymous-statistics: add a timeout when using `curl` (#11010)

Ilya Mashchenko committed Apr 22, 2021 at 11:02 UTC 351bab509a59128c229769a94a81f77db0dcac65
1 file changed +1 -1
daemon/anonymous-statistics.sh.in
+1 -1
@@ -80,7 +80,7 @@ EOF
80
81 # send the anonymous statistics to the Netdata PostHog
82 if [ -n "$(command -v curl 2> /dev/null)" ]; then
83 - curl -X POST --header "Content-Type: application/json" -d "${REQ_BODY}" https://posthog.netdata.cloud/capture/ > /dev/null 2>&1
83 + curl -X POST --max-time 2 --header "Content-Type: application/json" -d "${REQ_BODY}" https://posthog.netdata.cloud/capture/ > /dev/null 2>&1
84 else
85 wget -q -O - --no-check-certificate \
86 --method POST \