Closed scharri closed 1 year ago
Hi @scharri, can you tell us your mosquitto version?
Hi @rina23q my mosquitto version is: 2.0.11
From first look the main differences in the docs between the settings are:
max_packet_size
applies a limit the whole message (not just payload)message_size_limit
applies a limit to the message's payload sizeSo it looks like we can make the change (assuming all of the integration tests don't pick up anything unexpected)
We might need to rethink the default value, as Cumulocity default MQTT payload limit is 16384
bytes. There is a semi-related ticket regarding this #1415
Otherwise if we did not want to impose the limit to the local MQTT broker, we could limit the bridge max package size setting via bridge_max_packet_size
. But again we need to be careful about mismatches between the local and bridge MQTT brokers so that messages don't get silently swallowed without being propagated to the cloud.
Apologize: I respond to this question off-line but failed to report the response here.
max_packet_size
is meaningful only for MQTT v5 while thin-edge use MQTT v3.1.1.So this is not a simple fix.
Since we don't have short term plans to support MQTT v5 we will close this issue.
Describe the bug If you start mosquitto in verbose mode you will get the note about using
max_packet_size
insteadmessage_size_limit
.To Reproduce Start mosquitto and look at the output: sudo mosquitto -v -c /etc/mosquitto/mosquitto.conf
Expected behavior No information about using an alternative option instead used option.
Screenshots
Environment (please complete the following information):
Additional context