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

Fix #583 inflight slots incremented too often #584

Conversation

hylkevds
Copy link
Collaborator

@hylkevds hylkevds commented Feb 24, 2021

This PR fixes a missed insertion into the timeout counters when messages are drained into a connection


When processing an ACK, the inflightSlots should only be increased if it is the first time the ACK is received for a given message. The ACK may be received multiple times, the subsequent ACKs should not cause the count to be increased.

This PR depends on PR #576 that fixes #573

Copy link
Collaborator

@andsel andsel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @hylkevds thanks to point this out. This code is based on an already merged PR, so please could you rebase it to master so that the changes this PR is promoting could be easily reviewable?

@hylkevds hylkevds force-pushed the fix_583_inflightSlots_incremented_too_often branch from e74af75 to f4bd776 Compare July 2, 2021 12:32
Makes sure that messages get added to the inflightTimeouts.
@hylkevds hylkevds force-pushed the fix_583_inflightSlots_incremented_too_often branch from f4bd776 to d710198 Compare July 2, 2021 12:43
@hylkevds
Copy link
Collaborator Author

hylkevds commented Jul 2, 2021

Most of the counting issues were already fixed.

@andsel andsel merged commit c1cccfa into moquette-io:master Jul 2, 2021
@hylkevds hylkevds deleted the fix_583_inflightSlots_incremented_too_often branch July 2, 2021 13:11
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.

0.14: IllegalReferenceCountException: refCnt: 0
2 participants