activemq icon indicating copy to clipboard operation
activemq copied to clipboard

MQTTWireFormat rejects valid 4-byte remaining lengths

Open hai-ben opened this issue 3 months ago • 0 comments

When sending MQTT PUBLISH messages with payloads at or above 2 MiB (requiring a 4-byte Remaining Length encoding), the broker drops the connection. Messages below 2 MiB (3-byte Remaining Length) are accepted. The following is observed in logs:

WARN | Transport Connection to: tcp://... failed: Remaining length exceeds 4 bytes

Reproduced with the paho-mqtt client and MQTT.js. No reason to expect other clients wouldn't experience this.

hai-ben avatar Sep 03 '26 21:09 hai-ben