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

connmgr: Atomic connection request ID updates. #3055

Merged
merged 2 commits into from Feb 14, 2023

Conversation

davecgh
Copy link
Member

@davecgh davecgh commented Feb 13, 2023

This updates all accesses of a connection request's ID field to use its accessor func to ensure it is always accessed atomically and adds additional synchronization logic to the code that conditionally updates the ID of an existing connection request when one hasn't already been assigned to help prevent any potential logic races that could inadvertently be introduced in future code updates.

It is split into individual commits for ease of review.

This updates all accesses of a connection request's ID field to use its
accessor func to ensure it is always accessed atomically.
This adds additional synchronization logic to the code that
conditionally updates the ID of an existing connection request when one
hasn't already been assigned to help prevent any potential logic races
that could inadvertently be introduced in future code updates.
@davecgh davecgh merged commit 9408498 into decred:master Feb 14, 2023
@davecgh davecgh deleted the connmgr_atomic_updates branch February 14, 2023 19:47
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.

None yet

2 participants