From cea114c0a4a85f611a2f4e180fbe0a362d85e7cc Mon Sep 17 00:00:00 2001 From: Arnie97 Date: Fri, 21 Mar 2025 21:37:58 +0800 Subject: [PATCH] * MDF [conf] Fix default max_packet_size The maximum packet size that MQTT protocol spec allows is 256 MB. The current default value does not make sense, and breaks compatibility with various MQTT client libraries, such as Eclipse Paho. --- etc/nanomq.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/nanomq.conf b/etc/nanomq.conf index 54818336..f06813c1 100644 --- a/etc/nanomq.conf +++ b/etc/nanomq.conf @@ -6,7 +6,7 @@ mqtt { property_size = 32 - max_packet_size = 260MB + max_packet_size = 256MB max_mqueue_len = 2048 retry_interval = 10s keepalive_multiplier = 1.25