summaryrefslogtreecommitdiffstats
path: root/exporting/send_data.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-09-13 09:05:54 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-09-13 09:05:54 +0000
commit9900e305cf4109599775213d14edc842d5fad8b5 (patch)
tree490b94f8d18f44abcb02f09b2b5ed5a2b2cf4174 /exporting/send_data.c
parentReleasing debian version 1.42.2-1. (diff)
downloadnetdata-9900e305cf4109599775213d14edc842d5fad8b5.tar.xz
netdata-9900e305cf4109599775213d14edc842d5fad8b5.zip
Merging upstream version 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.c2
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;
}
}