summaryrefslogtreecommitdiffstats
path: root/streaming
diff options
context:
space:
mode:
authorEmmanuel Vasilakis <mrzammler@mm.st>2022-05-20 15:10:37 +0300
committerGitHub <noreply@github.com>2022-05-20 15:10:37 +0300
commit8df044d5d3abda58f32875d601eca670bd61b70d (patch)
treee518784b6d9891649d4929c77c8c1593c971df08 /streaming
parent68283aa05792f99b35c86dfc55cfad44b5b91cb0 (diff)
Don't permanetly disable a destination because of denied access (#12971)
dont make denied destination permanent
Diffstat (limited to 'streaming')
-rw-r--r--streaming/rrdpush.c1
-rw-r--r--streaming/sender.c3
2 files changed, 3 insertions, 1 deletions
diff --git a/streaming/rrdpush.c b/streaming/rrdpush.c
index 00fe02093d..783226066a 100644
--- a/streaming/rrdpush.c
+++ b/streaming/rrdpush.c
@@ -437,6 +437,7 @@ int connect_to_one_of_destinations(
} else if (d->disabled_already_streaming && (d->disabled_already_streaming + 30 > now_realtime_sec())) {
continue;
} else if (d->disabled_because_of_denied_access) {
+ d->disabled_because_of_denied_access = 0;
continue;
}
diff --git a/streaming/sender.c b/streaming/sender.c
index cdcd18d977..88febc0447 100644
--- a/streaming/sender.c
+++ b/streaming/sender.c
@@ -502,7 +502,8 @@ if(!s->rrdpush_compression)
else if(version == -4) {
error("STREAM %s [send to %s]: remote server denied access for [%s].", host->hostname, s->connected_to, host->hostname);
rrdpush_sender_thread_close_socket(host);
- host->destination->disabled_because_of_denied_access = 1;
+ if (host->destination->next)
+ host->destination->disabled_because_of_denied_access = 1;
return 0;
}
s->version = version;