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 concurrent map write issue on ConnectionDetails.Options (#577) #785

Merged
merged 1 commit into from
Sep 24, 2022

Conversation

sio4
Copy link
Member

@sio4 sio4 commented Sep 24, 2022

Indeed, the map ConnectionDetails.Options is not protected on write accesses. This PR adds a setter and getter for the map, and the setter uses a mutex lock to protect them. However, the CD operations only happen when the connection is defined and configured so I am not sure how they are accessed concurrently. 🤔

fixes #577

@sio4 sio4 added the bug Something isn't working label Sep 24, 2022
@sio4 sio4 added this to the v6.0.7 milestone Sep 24, 2022
@sio4 sio4 self-assigned this Sep 24, 2022
@sio4 sio4 mentioned this pull request Sep 24, 2022
30 tasks
@sio4 sio4 merged commit d71c504 into main Sep 24, 2022
@sio4 sio4 deleted the fix-concurrent-map-writes-on-cd-options branch September 24, 2022 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fatal error: concurrent map writes
1 participant