You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@artemis.apache.org by "Justin Bertram (Jira)" <ji...@apache.org> on 2026/09/02 20:06:00 UTC
[jira] [Resolved] (ARTEMIS-6212) Support sending PUBREC(0x91) for duplicate PUBLISH with DUP=0
[ https://issues.apache.org/jira/browse/ARTEMIS-6212?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Justin Bertram resolved ARTEMIS-6212.
-------------------------------------
Fix Version/s: 2.57.0
Resolution: Fixed
> Support sending PUBREC(0x91) for duplicate PUBLISH with DUP=0
> -------------------------------------------------------------
>
> Key: ARTEMIS-6212
> URL: https://issues.apache.org/jira/browse/ARTEMIS-6212
> Project: Artemis
> Issue Type: Improvement
> Components: MQTT
> Reporter: Justin Bertram
> Assignee: Justin Bertram
> Priority: Major
> Fix For: 2.57.0
>
>
> 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).
> Add a setting, {{rejectQoS2PublishWithReusedPacketId}} (default {{false}}), 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. See the updated MQTT documentation in the PR for more details.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org
For additional commands, e-mail: issues-help@artemis.apache.org