Skip to content

fix: lock subscriptions #247

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

Merged
merged 4 commits into from
Jul 17, 2025
Merged

Conversation

SaschaBa
Copy link
Contributor

@SaschaBa SaschaBa commented Jul 10, 2025

Description

Every access of the Subscriptions property is now locked with a semaphore. User of the client should not access the Subscriptions, also this property is public, because they can not lock the access. Later the Subscriptions should not be public and be perhaps of type ConcurrentBag.

Related Issue

#225

Type of Change

  • 📚 Examples / docs / tutorials / dependencies update
  • 🔧 Bug fix (non-breaking change which fixes an issue)
  • 🥂 Improvement (non-breaking change which improves an existing feature)
  • 🚀 New feature (non-breaking change which adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to change)
  • 🔐 Security fix

Checklist

  • I've written tests (if applicable) for all new methods and classes that I created. (rake test)
  • I've added documentation as necessary so users can easily use and understand this feature/fix.

every access of the Subscriptions property is now locked with a semaphore.
User of the client should not access the Subscriptions, also this property is public, because they can not lock the access. Later the Subscriptions should not be public and be perhaps of type ConcurrentBag.
Copy link

cla-bot bot commented Jul 10, 2025

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have the users @SaschaBa on file. In order for us to review and merge your code, please sign our Contributor License Agreement to get yourself added. You'll find the CLA and more information here: https://github.com/hivemq/hivemq-community/blob/master/CONTRIBUTING.adoc#contributor-license-agreement

@SaschaBa
Copy link
Contributor Author

ok, signed the cla

@pglombardo
Copy link
Collaborator

Excellent @SaschaBa - much appreciated. I'll fix the CLA bot and look to merge this PR soon.

@SaschaBa
Copy link
Contributor Author

sorry, used language features of .net8. Will fix it.

The project compiles for .net6 and up and so newer language features don't work.
Copy link

cla-bot bot commented Jul 10, 2025

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have the users @SaschaBa on file. In order for us to review and merge your code, please sign our Contributor License Agreement to get yourself added. You'll find the CLA and more information here: https://github.com/hivemq/hivemq-community/blob/master/CONTRIBUTING.adoc#contributor-license-agreement

primary constructor are not supported in .net6 and .net7
Copy link

cla-bot bot commented Jul 10, 2025

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have the users @SaschaBa on file. In order for us to review and merge your code, please sign our Contributor License Agreement to get yourself added. You'll find the CLA and more information here: https://github.com/hivemq/hivemq-community/blob/master/CONTRIBUTING.adoc#contributor-license-agreement

Copy link

cla-bot bot commented Jul 10, 2025

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have the users @SaschaBa on file. In order for us to review and merge your code, please sign our Contributor License Agreement to get yourself added. You'll find the CLA and more information here: https://github.com/hivemq/hivemq-community/blob/master/CONTRIBUTING.adoc#contributor-license-agreement

@SaschaBa
Copy link
Contributor Author

Excellent @SaschaBa - much appreciated. I'll fix the CLA bot and look to merge this PR soon.

@pglombardo Do you know, when it will be merged? Can I help you somehow?

@pglombardo
Copy link
Collaborator

Hi @SaschaBa - I am aiming for this week.

@SaschaBa
Copy link
Contributor Author

Hi @SaschaBa - I am aiming for this week.

Hi, isn't it possible to skip this verification check? You should see, that I signed it. At the moment it blocks a lot for us, that's why I need to ask again. ;-) Sorry

@pglombardo pglombardo added the enhancement New feature or request label Jul 17, 2025
@pglombardo pglombardo merged commit a52ff03 into hivemq:main Jul 17, 2025
9 of 10 checks passed
@pglombardo
Copy link
Collaborator

Ok thanks for the patience @SaschaBa (and the PR!). This has been merged and released in v0.27.0.

@SaschaBa SaschaBa deleted the 225-async-subscription-fix branch July 18, 2025 08:49
@sauroter
Copy link
Member

Hi @SaschaBa,

could I please ask you to sign the CLA again. We had an IT issue that yours got lost. I am really sorry about this.

All the best
Georg

@SaschaBa
Copy link
Contributor Author

Hi @SaschaBa,

could I please ask you to sign the CLA again. We had an IT issue that yours got lost. I am really sorry about this.

All the best Georg

Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants