Skip to content

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