Skip to content

Fix data race in SSLCertContext copy & assignment#13227

Open
AceMeistr wants to merge 1 commit into
apache:masterfrom
AceMeistr:master
Open

Fix data race in SSLCertContext copy & assignment#13227
AceMeistr wants to merge 1 commit into
apache:masterfrom
AceMeistr:master

Conversation

@AceMeistr
Copy link
Copy Markdown

Resolve concurrent read/write data races by using std::scoped_lock in operator= and locking other.ctx_mutex at the start of the copy constructor.

  1. Replaced the manual lock definition and sequence with std::scoped_lock

  2. Pushed lock guard to beginning to avoid source mutation during read to avoid data race by threads
    ISSUE #13225

Resolve concurrent read/write data races by using std::scoped_lock in operator= and locking other.ctx_mutex at the start of the copy constructor.
@AceMeistr AceMeistr marked this pull request as draft June 3, 2026 18:09
@AceMeistr AceMeistr marked this pull request as ready for review June 3, 2026 18:09
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.

1 participant