diff options
author | odynik <odynik.ee@gmail.com> | 2022-03-24 12:14:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-24 12:14:19 +0200 |
commit | 57d6c179c82a21faba20ff0d2995eee31d071935 (patch) | |
tree | bc3511643bf920b98776960097a8b5af238d28bc /web/api | |
parent | 3b586dc08c54bc80e4f18196dfd6dd069de3a5d3 (diff) |
Stream compression - Deactivate compression at runtime in case of a compressor buffer overflow (#12037)
* [Stream compression] Downgrade stream version if compressor buffer overflows
* [Stream compression] More user friendly compression messages
* [Stream compression] Fix mutex starvation
* [Stream compression] enable compression by default
* Update streaming/README.md
Co-authored-by: Tina Luedtke <kickoke@users.noreply.github.com>
Diffstat (limited to 'web/api')
-rw-r--r-- | web/api/web_api_v1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/api/web_api_v1.c b/web/api/web_api_v1.c index 054a716fac..4a5378db28 100644 --- a/web/api/web_api_v1.c +++ b/web/api/web_api_v1.c @@ -1051,7 +1051,7 @@ inline int web_client_api_request_v1_info_fill_buffer(RRDHOST *host, BUFFER *wb) #ifdef ENABLE_COMPRESSION buffer_strcat(wb, "\t\"stream-compression\": "); - buffer_strcat(wb, (default_compression_enabled ? "\"enabled\"" : "\"disabled\"")); + buffer_strcat(wb, (host->sender->rrdpush_compression ? "\"enabled\"" : "\"disabled\"")); buffer_strcat(wb, ",\n"); #else buffer_strcat(wb, "\t\"stream-compression\": \"N/A\",\n"); |