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

dtls: fix race condition in DTLSConn::close #611

Merged
merged 1 commit into from
Sep 7, 2024

Conversation

feschber
Copy link
Contributor

@feschber feschber commented Sep 5, 2024

a context switch to a simultaneous close operation between closed.load() and closed.store() would lead to an additional unwanted close operation on the inner connection

Copy link

codecov bot commented Sep 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 60.57%. Comparing base (23bbc1f) to head (9cda451).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #611      +/-   ##
==========================================
- Coverage   60.59%   60.57%   -0.03%     
==========================================
  Files         482      471      -11     
  Lines       47981    47937      -44     
  Branches    12478    12478              
==========================================
- Hits        29075    29038      -37     
+ Misses       9665     9638      -27     
- Partials     9241     9261      +20     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

a context switch to a simultaneous close operation between
`closed.load()` and `closed.store()` would lead to an additional
unwanted close operation on the inner connection
@rainliu
Copy link
Member

rainliu commented Sep 7, 2024

please fix cargo clippy/fmt check. Thanks.

@feschber
Copy link
Contributor Author

feschber commented Sep 7, 2024

please fix cargo clippy/fmt check. Thanks.

looks like that is unrelated to this PR

@rainliu rainliu merged commit 7d5ee0a into webrtc-rs:master Sep 7, 2024
3 of 5 checks passed
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