Skip to content

QoS2 duplicate PUBLISH stuff - #6648

Open
jbertram wants to merge 2 commits into
apache:mainfrom
jbertram:ARTEMIS-6212
Open

QoS2 duplicate PUBLISH stuff#6648
jbertram wants to merge 2 commits into
apache:mainfrom
jbertram:ARTEMIS-6212

Conversation

@jbertram

Copy link
Copy Markdown
Contributor

No description provided.

jbertram and others added 2 commits September 2, 2026 11:15
When the broker receives a QoS 2 PUBLISH reusing a packet identifier
that is still in use, it currently acknowledges with PUBREC reason
code 0x00 (Success) and drops the reused-ID message as a duplicate even
when the DUP flag indicates an unexpected reuse rather than a
legitimate retransmission (typically a non-compliant client).

This commit adds a setting, rejectQoS2PublishWithReusedPacketId,
configurable on the MQTT acceptor. When enabled, the broker responds to
this case for MQTT 5 clients with PUBREC reason code 0x91 (Packet
Identifier in use) instead of 0x80.

This is an opt-in diagnostic aid and is not required by the MQTT
specification.

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant