Skip to content

Fix data race for streams map#1355

Merged
AlexxIT merged 3 commits intoAlexxIT:masterfrom
michelepra:concurrent_map_fix
Sep 27, 2024
Merged

Fix data race for streams map#1355
AlexxIT merged 3 commits intoAlexxIT:masterfrom
michelepra:concurrent_map_fix

Conversation

@michelepra
Copy link

If concurrently calling create stream from api we can have error in write into streams map.
See https://go.dev/doc/articles/race_detector

@AlexxIT AlexxIT merged commit ef7d898 into AlexxIT:master Sep 27, 2024
@AlexxIT
Copy link
Owner

AlexxIT commented Sep 27, 2024

Thanks!

@michelepra michelepra deleted the concurrent_map_fix branch September 30, 2024 07:05
@AlexxIT AlexxIT changed the title data race for streams map Fix data race for streams map Oct 28, 2024
@AlexxIT AlexxIT added this to the v1.9.5 milestone Oct 28, 2024
@AlexxIT
Copy link
Owner

AlexxIT commented Oct 28, 2024

57Darling02 pushed a commit to 57Darling02/go2nvr that referenced this pull request Feb 17, 2026
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