summaryrefslogtreecommitdiffstats
path: root/daemon
diff options
context:
space:
mode:
authorIlya Mashchenko <ilya@netdata.cloud>2021-04-22 11:02:54 +0300
committerGitHub <noreply@github.com>2021-04-22 11:02:54 +0300
commit351bab509a59128c229769a94a81f77db0dcac65 (patch)
tree9c83585bef4304c985193ae3accc36e18def83c6 /daemon
parentddc36cc36fe14c1078d7ed12f66fa5b6b3be8f08 (diff)
anonymous-statistics: add a timeout when using `curl` (#11010)
Diffstat (limited to 'daemon')
-rwxr-xr-xdaemon/anonymous-statistics.sh.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/anonymous-statistics.sh.in b/daemon/anonymous-statistics.sh.in
index 47004f3d00..3bf99f7aba 100755
--- a/daemon/anonymous-statistics.sh.in
+++ b/daemon/anonymous-statistics.sh.in
@@ -80,7 +80,7 @@ EOF
# send the anonymous statistics to the Netdata PostHog
if [ -n "$(command -v curl 2> /dev/null)" ]; then
- curl -X POST --header "Content-Type: application/json" -d "${REQ_BODY}" https://posthog.netdata.cloud/capture/ > /dev/null 2>&1
+ curl -X POST --max-time 2 --header "Content-Type: application/json" -d "${REQ_BODY}" https://posthog.netdata.cloud/capture/ > /dev/null 2>&1
else
wget -q -O - --no-check-certificate \
--method POST \