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

1.5.8 max_queued_bytes and max_inflight_bytes unexpected behaviour #2538

Open
gabrielfpvh opened this issue May 17, 2022 · 0 comments
Open

Comments

@gabrielfpvh
Copy link

Context

mosquitto version 1.5.8 running on a docker container: https://hub.docker.com/layers/eclipse-mosquitto/library/eclipse-mosquitto/1.5.8/images/sha256-6e8fb0e118f09f24e7d51ab2397f6bad4545f320cec4484068b98acfec851398?context=explore
Tests were performed with generic paho mqtt python package.
The mqtt broker contained 12k messages retained.

First test: wrong behaviour

max_inflight_bytes 100000000
max_inflight_messages 1000
max_queued_messages 1000000
max_queued_bytes 1000000000

Results

After connecting the broker and subscribing the retained messages. the client only received 1000 messages. It corresponds to the max_inflight_messages configuration. This number was changed and matches the results.

First test: correct behaviour

max_inflight_bytes 0
max_inflight_messages 1000
max_queued_messages 1000000
max_queued_bytes 0

Results

After connecting the broker and subscribing the retained messages. the client received all 12k messages in batches of 1000.

@gabrielfpvh gabrielfpvh changed the title 1.5.8 max_queued_bytes and max_inflight_bytes 1.5.8 max_queued_bytes and max_inflight_bytes unexpected behaviour May 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants