summaryrefslogtreecommitdiffstats
path: root/streaming/sender.c
diff options
context:
space:
mode:
authorCosta Tsaousis <costa@netdata.cloud>2023-08-21 11:20:18 +0300
committerGitHub <noreply@github.com>2023-08-21 11:20:18 +0300
commit41bd902426bd6e5241eb8a09f50fc22efa7f9c51 (patch)
tree2af34d90d820f1b565273c235b9e57e986607da9 /streaming/sender.c
parentb090c9f80b64005003294d4b8390bd9b6cf0aecf (diff)
Facets histograms (#15846)
Diffstat (limited to 'streaming/sender.c')
-rw-r--r--streaming/sender.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/streaming/sender.c b/streaming/sender.c
index 76843518e5..e703f1e5d8 100644
--- a/streaming/sender.c
+++ b/streaming/sender.c
@@ -981,7 +981,9 @@ void execute_commands(struct sender_state *s) {
int code = rrd_call_function_async(s->host, wb, timeout, function, stream_execute_function_callback, tmp);
if(code != HTTP_RESP_OK) {
- rrd_call_function_error(wb, "Failed to route request to collector", code);
+ if (!buffer_strlen(wb))
+ rrd_call_function_error(wb, "Failed to route request to collector", code);
+
stream_execute_function_callback(wb, code, tmp);
}
}