Skip to content

MQTTWireFormat rejects valid 4-byte remaining lengths #2518

Description

@hai-ben

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions