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 #455, #583, #587: inlfightSlots counting, CCE & QoS2 deadlock #601

Conversation

hylkevds
Copy link
Collaborator

This set of commits is linked together to closely to make separate PRs for. It fixes:

The result of never putting PubRelMessages on the sessionQueue is that the sessionQueue can now only contain PublishedMessages, so the sessionQueue generic could be directly for that class.

This PR continues on #600 and supersedes #584 and #588.

- moquette-io#455: resendInflightNotAcked() assumed all messages in the inflightWindow are
  PublishedMessage, but they can also be PubRelMarker. This caused a
  ClassCastException.

- moquette-io#587: When sending PubRelMessages, never put them on the queue, since this
  deadlocks the system.
@hylkevds hylkevds force-pushed the fix_455_583_587_QOS2_slots_CCE_Deadlock branch from 4028a0b to 8736462 Compare June 26, 2021 19:59
@hylkevds
Copy link
Collaborator Author

hylkevds commented Jul 2, 2021

Obsoleted by recent changes/merges, use #588 instead.

@hylkevds hylkevds closed this Jul 2, 2021
@hylkevds hylkevds deleted the fix_455_583_587_QOS2_slots_CCE_Deadlock branch July 20, 2021 07:17
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.

1 participant