From f09848204fa5283d21ea43e262ee41aa578e1808 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 26 Aug 2024 10:15:24 +0200 Subject: Merging upstream version 1.47.0. Signed-off-by: Daniel Baumann --- src/streaming/sender.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/streaming/sender.c') diff --git a/src/streaming/sender.c b/src/streaming/sender.c index 3432e6927..a5fbe6044 100644 --- a/src/streaming/sender.c +++ b/src/streaming/sender.c @@ -1894,7 +1894,7 @@ void *rrdpush_sender_thread(void *ptr) { // protection from overflow if(unlikely(s->flags & SENDER_FLAG_OVERFLOW)) { worker_is_busy(WORKER_SENDER_JOB_DISCONNECT_OVERFLOW); - errno = 0; + errno_clear(); netdata_log_error("STREAM %s [send to %s]: buffer full (allocated %zu bytes) after sending %zu bytes. Restarting connection", rrdhost_hostname(s->host), s->connected_to, s->buffer->size, s->sent_bytes_on_this_connection); rrdpush_sender_thread_close_socket(s->host); -- cgit v1.2.3