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

Do not decrease inflight messages on PUBREL #884

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rubenbaer
Copy link

When a QoS 2 message is received, the inflight messages was decremented on PUBREL. But the inflight messages must be a count of sent but not received messages. This yielded a negative inflight count for QoS 2 messages.

This change removes this decrement and fixes #805.

When a QoS 2 message is received, the inflight messages was decremented
on `PUBREL`. But the inflight messages must be a count of sent but not
received messages. This yielded a negative inflight count for QoS 2
messages.

This change removes this decrement and fixes eclipse-paho#805.

Signed-off-by: Ruben Bär <[email protected]>
@rubenbaer rubenbaer changed the title Do not decreate inflight messages on PUBREL Do not decrease inflight messages on PUBREL Mar 6, 2025
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

Successfully merging this pull request may close these issues.

Negative inflight messages counter with QoS 2 for subscribe and publish
1 participant