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

Make SignalR Redis test thread-safe #41564

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Make SignalR Redis test thread-safe #41564

wants to merge 1 commit into from

Conversation

Copy link
Member

@BrennanConroy BrennanConroy commented May 6, 2022

TestServer could shut down right after the first handler in

foreach (var (_, handler) in handlers)
{
    handler(channel, message);
}

is invoked, which creates a race with the second iteration of the loop checking for another item in the list while the list is cleared by the TestServer closing.

@BrennanConroy BrennanConroy added the area-signalr label May 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-signalr
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant