1
0
mirror of https://github.com/qt/qtmqtt.git synced 2026-10-25 16:16:26 +00:00
Go to file
Tatiana Borisova 51fe8b4f2e Limit MQTT packet size for MQTT 3.x connections
- Enforce the configured packet size limit locally for MQTT 3.1/3.1.1.
- Close the connection if the broker sends a packet exceeding the limit.

MQTT 3.1 and 3.1.1 have no way to tell the broker the maximum packet
size the client accepts, so the limit can only be applied on the
client side. This is helpful for clients on embedded devices, where
memory is limited and a very large packet from the broker could
exhaust it.

[ChangeLog][QMqttClient] The maximumPacketSize connection property is
now also enforced for MQTT 3.1 and 3.1.1 connections. Previously it was
only honored for MQTT 5.0. The client now closes the connection if the
broker sends a packet larger than this limit. This helps clients on
embedded devices to protect their limited memory. The default behavior
is unchanged: if no limit is set, only the protocol maximum of 256 MB
applies.

Change-Id: I26625325f490e2396fa493005c1f322253007a33
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
2026-10-20 11:48:44 +00:00
coin Update to coin_module_test_template_v3.yaml 2026-08-17 09:51:21 +00:00
dist Remove year from Qt Copyright in REUSE.toml 2025-07-09 11:01:49 +02:00
examples Doc: Add alt text for \image tags for qtmqtt 2026-03-11 14:32:53 +01:00
LICENSES Add REUSE.toml files and missing licenses 2024-11-14 12:24:58 +00:00
src Limit MQTT packet size for MQTT 3.x connections 2026-10-20 11:48:44 +00:00
tests Read the Remaining Length as a variable byte integer everywhere 2026-09-01 17:40:37 +00:00
.cmake.conf Bump version to 6.13.0 2026-06-04 21:59:51 +00:00
.gitattributes Initial commit 2017-01-19 10:27:05 +01:00
.gitignore Add CMakeUserPresets.json to .gitignore 2024-11-28 18:02:47 +01:00
.gitreview Add .gitreview file 2025-03-24 15:22:02 +01:00
.tag Initial commit 2017-01-19 10:27:05 +01:00
CMakeLists.txt Move qt_internal_project_setup as early as possible 2025-06-20 15:33:39 +02:00
CONTRIBUTING.md Add CONTRIBUTING.md file 2026-04-21 07:22:04 +00:00
dependencies.yaml Update dependencies on 'dev' in qt/qtmqtt 2026-10-20 09:32:25 +00:00
licenseRule.json Add CONTRIBUTING.md file 2026-04-21 07:22:04 +00:00
REUSE.toml Add CONTRIBUTING.md file 2026-04-21 07:22:04 +00:00