Browse Source

Fix long stats.d chart names (thanks to @vince-lessbits) (#9783)

The read buffer in the streaming receiver was too small to allow the longest lines in the plugins.d protocol to be reassembled.
Andrew Moss 4 years ago
parent
commit
559376ad46
1 changed files with 1 additions and 1 deletions
  1. 1 1
      streaming/rrdpush.h

+ 1 - 1
streaming/rrdpush.h

@@ -81,7 +81,7 @@ struct receiver_state {
     int update_every;
     uint32_t stream_version;
     time_t last_msg_t;
-    char read_buffer[512];
+    char read_buffer[1024];     // Need to allow RRD_ID_LENGTH_MAX * 4 + the other fields
     int read_len;
 #ifdef ENABLE_HTTPS
     struct netdata_ssl ssl;