diff options
author | Vladimir Kobal <vlad@prokk.net> | 2020-11-10 14:47:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-10 14:47:05 +0200 |
commit | 1825ac4c1a03689a866b3d63851c306a8730beef (patch) | |
tree | fc25df8a7ca9476669833c2e99524e7f07ba7a18 /exporting/send_data.c | |
parent | 9941c41b28bebcde29998a2aa8a3c1303811ad7b (diff) |
Fix chart filtering (#10218)
Diffstat (limited to 'exporting/send_data.c')
-rw-r--r-- | exporting/send_data.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/exporting/send_data.c b/exporting/send_data.c index 11c93c5097..38e4c98b13 100644 --- a/exporting/send_data.c +++ b/exporting/send_data.c @@ -64,7 +64,7 @@ void simple_connector_receive_response(int *sock, struct instance *instance) { static BUFFER *response = NULL; if (!response) - response = buffer_create(1); + response = buffer_create(4096); struct stats *stats = &instance->stats; #ifdef ENABLE_HTTPS @@ -79,8 +79,6 @@ void simple_connector_receive_response(int *sock, struct instance *instance) // loop through to collect all data while (*sock != -1 && errno != EWOULDBLOCK) { - buffer_need_bytes(response, 4096); - ssize_t r; #ifdef ENABLE_HTTPS if (exporting_tls_is_enabled(instance->config.type, options) && |