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

Fixed #610: Subscriptions not removed from session on unsubscribe #612

Merged

Conversation

hylkevds
Copy link
Collaborator

On unsubscribe, subscriptions were not removed from Sessions and duplicate subscriptions did not replace the old subscription in the Session.

By changing Session.subscription from a List to a Set, duplicate subscriptions automatically replace old ones, and removing subscriptions becomes easier.
Also adds a Test.

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.

LGTM

@andsel andsel merged commit 5c932cb into moquette-io:master Aug 8, 2021
andsel added a commit to andsel/moquette that referenced this pull request Aug 8, 2021
andsel added a commit that referenced this pull request Aug 8, 2021
* Update Changelog after merge of #612
andsel pushed a commit to andsel/moquette that referenced this pull request Aug 8, 2021
andsel added a commit that referenced this pull request Aug 8, 2021
* Fixed #610: Subscriptions not removed from session on unsubscribe (#612)

Co-authored-by: Hylke van der Schaaf <[email protected]>
@hylkevds hylkevds deleted the fix610_FixSubscriptionsLeak branch February 2, 2022 09:08
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.

2 participants