MQTT 5: Add Maximum Packet Size check
Disconnect with reason code 0x95 (Packet too large) if a packet
exceeds the Maximum Packet Size limit, as required by section 3.1.2.11.4
of the MQTT 5 spec.
Note: This fix doesn't protect against memory exhaustion in user apps.
It just implements the spec requirement about message limit.
Pick-to: 6.12
Task-number: QTBUG-149866
Change-Id: I2baa8ceb95e4a045437e2caa51e5508b2fa8b2eb
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
| commit | 1316c02fe7efc66c4fce4d616ce8d5d6e9b93394 |
| parent | ece01bf0eebb96b32157bf3508ad95dd8e333e7b |
| author | Tatiana Borisova <tatiana.borisova@qt.io> |
| committer | Tatiana Borisova <tatiana.borisova@qt.io> |
| commit time | Tue, 6 Oct 2026 13:05:52 +0000 |