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 #2763: ConnectionMultiplexer.Subscription is not Thread-safe #2769

Merged
merged 5 commits into from
Aug 18, 2024

Conversation

Chuck-EP
Copy link
Contributor

@Chuck-EP Chuck-EP commented Aug 1, 2024

Issue

#2763

Solution

Simply added a lock around _handlers in ConnectionMultiplexer.Subscription, like I was suggesting in the issue.

Unit Test

I added one that does exactly what the example code in #2763 was doing & testing for. I used the other tests as template/guide, let me know if something isn't up to spec.

Copy link
Collaborator

@NickCraver NickCraver left a comment

Choose a reason for hiding this comment

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

Looking good and test is very much appreciated :) Thanks for this!

@NickCraver NickCraver merged commit fe40d17 into StackExchange:main Aug 18, 2024
5 checks passed
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