diff options
Diffstat (limited to 'streaming')
-rw-r--r-- | streaming/rrdpush.c | 1 | ||||
-rw-r--r-- | streaming/sender.c | 3 |
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; |