@cryptotaxi247 / netdata-1 / commits / 19ae01efc

minor - remove RX_MSGLEN_MAX (#14918)

remove RX_MSGLEN_MAX

Timotej S committed Apr 18, 2023 at 12:08 UTC 19ae01efcc84bb1870b928a646a071b22f853b0b
1 file changed -4
aclk/aclk.c
-4
@@ -249,14 +249,10 @@ void aclk_mqtt_wss_log_cb(mqtt_wss_log_type_t log_type, const char* str)
249 }
250 }
251
252 -//TODO prevent big buffer on stack
253 -#define RX_MSGLEN_MAX 4096
252 static void msg_callback(const char *topic, const void *msg, size_t msglen, int qos)
253 {
254 UNUSED(qos);
255 aclk_rcvd_cloud_msgs++;
258 - if (msglen > RX_MSGLEN_MAX)
259 - error("Incoming ACLK message was bigger than MAX of %d and got truncated.", RX_MSGLEN_MAX);
256
257 debug(D_ACLK, "Got Message From Broker Topic \"%s\" QOS %d", topic, qos);
258