diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-09-13 09:05:51 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-09-13 09:05:51 +0000 |
commit | 672fc35cb792435254eee5d411d133f85a3fa299 (patch) | |
tree | dd535655e97cc77680a9b7eeba96a9376711baf1 /exporting/send_data.c | |
parent | Adding upstream version 1.42.2. (diff) | |
download | netdata-672fc35cb792435254eee5d411d133f85a3fa299.tar.xz netdata-672fc35cb792435254eee5d411d133f85a3fa299.zip |
Adding upstream version 1.42.3.upstream/1.42.3
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'exporting/send_data.c')
-rw-r--r-- | exporting/send_data.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/exporting/send_data.c b/exporting/send_data.c index 3fec7320d..1b13f837f 100644 --- a/exporting/send_data.c +++ b/exporting/send_data.c @@ -103,6 +103,8 @@ void simple_connector_receive_response(int *sock, struct instance *instance) // failed to receive data if (errno != EAGAIN && errno != EWOULDBLOCK) { netdata_log_error("EXPORTING: cannot receive data from '%s'.", instance->config.destination); + close(*sock); + *sock = -1; } } |