@cryptotaxi247 / netdata-1 / commits / 6128e5002

chore(aclk/mqtt): remove client_id len check (#19247)

chore(aclk/mqtt):remove client_id len check

Ilya Mashchenko committed Dec 18, 2024 at 18:56 UTC 6128e50028dd3fcb26d69a6745de5cf697c8c250
1 file changed -6
src/aclk/mqtt_websockets/mqtt_ng.c
-6
@@ -823,12 +823,6 @@ mqtt_msg_data mqtt_ng_generate_connect(struct transaction_buffer *trx_buf,
823 // at his own risk!
824 nd_log(NDLS_DAEMON, NDLP_WARNING, "client_id provided is empty string. This might not be allowed by server [MQTT-3.1.3-6]");
825 }
826 - if(len > MQTT_MAX_CLIENT_ID) {
827 - // [MQTT-3.1.3-5] server MUST allow client_id length 1-32
828 - // server MAY allow longer client_id, if user provides longer client_id
829 - // warn them he is doing so at his own risk!
830 - nd_log(NDLS_DAEMON, NDLP_WARNING, "client_id provided is longer than 23 bytes, server might not allow that [MQTT-3.1.3-5]");
831 - }
826
827 if (lwt) {
828 if (lwt->will_message && lwt->will_message_size > 65535) {