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

Introduce connections_lock to protect Server.connections #1161

Merged
merged 3 commits into from
Mar 25, 2024

Conversation

Drvi
Copy link
Collaborator

@Drvi Drvi commented Mar 25, 2024

The listenloop deletes elements from the connections set, but if someone tries to close the server at the same time, this could lead to crashes.

@Drvi Drvi requested review from quinnj and NHDaly March 25, 2024 09:57
@codecov-commenter
Copy link

codecov-commenter commented Mar 25, 2024

Codecov Report

Attention: Patch coverage is 77.77778% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 83.19%. Comparing base (c495600) to head (320c83d).

Files Patch % Lines
src/Servers.jl 77.77% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1161      +/-   ##
==========================================
- Coverage   83.19%   83.19%   -0.01%     
==========================================
  Files          32       32              
  Lines        3053     3058       +5     
==========================================
+ Hits         2540     2544       +4     
- Misses        513      514       +1     

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

@Drvi Drvi merged commit eb1d2a9 into master Mar 25, 2024
11 checks passed
@Drvi Drvi deleted the td-lock-connections-mutation branch March 25, 2024 16:46
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.

3 participants