Skip to content

fixed concurrent map write issue on ConnectionDetails.Options (#577)#785

Merged
sio4 merged 1 commit intomainfrom
fix-concurrent-map-writes-on-cd-options
Sep 24, 2022
Merged

fixed concurrent map write issue on ConnectionDetails.Options (#577)#785
sio4 merged 1 commit intomainfrom
fix-concurrent-map-writes-on-cd-options

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