summaryrefslogtreecommitdiffstats
path: root/streaming/sender.c
diff options
context:
space:
mode:
Diffstat (limited to 'streaming/sender.c')
-rw-r--r--streaming/sender.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/streaming/sender.c b/streaming/sender.c
index c74c9b407..6e58d9a21 100644
--- a/streaming/sender.c
+++ b/streaming/sender.c
@@ -554,7 +554,7 @@ static bool rrdpush_sender_connect_ssl(struct sender_state *s) {
return true;
}
- // failed to establish connection
+ error("SSL: failed to establish connection.");
return false;
#else
@@ -708,7 +708,7 @@ static bool rrdpush_sender_thread_connect_to_parent(RRDHOST *host, int default_p
if(!rrdpush_sender_connect_ssl(s))
return false;
- ssize_t bytes;
+ ssize_t bytes, len = strlen(http);
bytes = send_timeout(
#ifdef ENABLE_HTTPS
@@ -716,7 +716,7 @@ static bool rrdpush_sender_thread_connect_to_parent(RRDHOST *host, int default_p
#endif
s->rrdpush_sender_socket,
http,
- strlen(http),
+ len,
0,
timeout);
@@ -730,8 +730,6 @@ static bool rrdpush_sender_thread_connect_to_parent(RRDHOST *host, int default_p
return false;
}
- // info("STREAM %s [send to %s]: waiting response from remote netdata...", rrdhost_hostname(host), s->connected_to);
-
bytes = recv_timeout(
#ifdef ENABLE_HTTPS
&host->sender->ssl,