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

Mosquitto is not publishing all received message (since Mosquitto 2.0.16) #3056

Open
D-r-P-3-p-p-3-r opened this issue May 23, 2024 · 2 comments

Comments

@D-r-P-3-p-p-3-r
Copy link

D-r-P-3-p-p-3-r commented May 23, 2024

I am experiencing a loss of MQTT messages in the broker (with Mosquitto 2.0.18).
What I noticed at first is that clients that had subscribed to a certain topic (QoS 0 or QoS 2) did not receive all messages that were published (QoS 2, not retained) from another client to that topic.
After creating network traces I could see that all messages arrived at the broker but some of them were not published.
It seems to happen when another publish is received before a previous one was released/completed.
I did not experience the problem with Mosquitto 2.0.12.

Setup to reproduce

  • Client 1 subscribes #
  • Client 2 publishes 3 messages in quick sequence
  • Client 1 sometimes only receives 1 or 2 messages instead of 2

I added two screenshots from network traces that illustrate the problem:

  • topic3 is not published
    image
  • topic2 is not published
    image

Edit: The error was introduced in 2.0.16. In 2.0.15 everything still worked fine.

@D-r-P-3-p-p-3-r D-r-P-3-p-p-3-r changed the title Mosquitto is not publishing all received message (Mosquitto 2.0.18) Mosquitto is not publishing all received message (since Mosquitto 2.0.16) May 23, 2024
@SVH-Powel
Copy link

Could you try to configure the buffer?

#2887 (comment)

@D-r-P-3-p-p-3-r
Copy link
Author

We're using max_queued_messages 200 atm. In the test scenario exactly 3 messages are sent.
Thus, 200 should be enough, no?

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

No branches or pull requests

2 participants