Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

with QoS 2 libmosquitto fails to deliver properties to msg callback #1436

Closed
bschaer opened this issue Sep 30, 2019 · 1 comment
Closed

with QoS 2 libmosquitto fails to deliver properties to msg callback #1436

bschaer opened this issue Sep 30, 2019 · 1 comment

Comments

@bschaer
Copy link

bschaer commented Sep 30, 2019

If an application using libmosquitto gets a message which has been delivered with QoS 2, then all properties are not delivered to the callback method which has been registered with mosquitto_publish_v5_callback_set().
The reason for that lies in file handle_publish.c, line 159: In case of QoS 2 messages, the message is not delivered right away, but put into a delivery queue with the method message__queue. Since this queue doesn't seem to support properties, they got dropped at this place and can no longer delivered to the application code.

@karlp
Copy link
Contributor

karlp commented Sep 30, 2019

duplicate of #1432

@bschaer bschaer closed this as completed Sep 30, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Dec 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants