Fix MQTT QoS 2 Subscriber Handling (PUBREC/PUBREL/PUBCOMP) and Add Tests#90
Open
MarcAntoineCRUE wants to merge 3 commits intohmueller01:masterfrom
Open
Fix MQTT QoS 2 Subscriber Handling (PUBREC/PUBREL/PUBCOMP) and Add Tests#90MarcAntoineCRUE wants to merge 3 commits intohmueller01:masterfrom
MarcAntoineCRUE wants to merge 3 commits intohmueller01:masterfrom
Conversation
Owner
|
@MarcAntoineCRUE Thank you very much for your contribution! Could you please do not commit a new test ( |
Author
|
Yes I just mentioned I added a new commit, this is why I changed it to draft, as I need to update that |
Author
|
It is now good for review |
5faa5bd to
a5710c2
Compare
Owner
|
Can you please add short change note in |
|
Memory usage change @ a5710c2
Click for full report table
Click for full report CSV |
Author
|
Ok changelog is done, up to you for merging |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description:
This merge request fixes critical issues in the MQTT QoS 2 message flow for subscribers in the PubSubClient library, and adds a dedicated test to ensure correct behavior.
Summary of changes:
Motivation:
Previously, the library responded with PUBACK to all QoS > 0 PUBLISH packets, breaking the QoS 2 protocol. The lack of a PUBREL handler meant the handshake was never completed, potentially causing message loss or duplicate delivery. This patch brings the implementation in line with the MQTT specification and ensures robust, standards-compliant behavior.
Impact: