Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: Race when shutting down and opening WebSockets#576

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
kylecarbs merged 1 commit intomainfromfixwaitrace
Mar 26, 2022

Conversation

kylecarbs
Copy link
Member

Adding to a WaitGroup while calling wait is a race condition. Surrounding
this in a mutex should solve the problem. Since context is used for
cancellation on all sockets, cleanup should occur properly.

See:https://github.com/coder/coder/runs/5701221057?check_suite_focus=true#step:10:98

Adding to a WaitGroup while calling wait is a race condition. Surroundingthis in a mutex should solve the problem. Since context is used forcancellation on all sockets, cleanup should occur properly.See:https://github.com/coder/coder/runs/5701221057?check_suite_focus=true#step:10:98
@kylecarbskylecarbs requested a review fromcoadlerMarch 26, 2022 05:12
@kylecarbskylecarbs self-assigned thisMar 26, 2022
@codecov
Copy link

codecovbot commentedMar 26, 2022
edited
Loading

Codecov Report

Merging#576 (f869e5e) intomain (ff2f647) willincrease coverage by0.12%.
The diff coverage is100.00%.

@@            Coverage Diff             @@##             main     #576      +/-   ##==========================================+ Coverage   63.20%   63.32%   +0.12%==========================================  Files         109      195      +86       Lines       10132    11215    +1083       Branches        0       85      +85     ==========================================+ Hits         6404     7102     +698- Misses       2998     3352     +354- Partials      730      761      +31
FlagCoverage Δ
unittest-go-62.16% <100.00%> (+0.10%)⬆️
unittest-go-macos-latest57.92% <100.00%> (-0.19%)⬇️
unittest-go-ubuntu-latest61.12% <100.00%> (-0.26%)⬇️
unittest-go-windows-202257.11% <100.00%> (?)
unittest-js63.32% <ø> (?)
Impacted FilesCoverage Δ
coderd/coderd.go96.42% <100.00%> (+0.10%)⬆️
coderd/provisionerdaemons.go59.15% <100.00%> (+0.64%)⬆️
coderd/workspaceresources.go58.37% <100.00%> (+0.76%)⬆️
peer/conn.go77.91% <0.00%> (-3.81%)⬇️
cli/cliui/job.go66.66% <0.00%> (-2.57%)⬇️
peer/channel.go83.04% <0.00%> (-2.34%)⬇️
site/src/components/Icons/CoderIcon.tsx100.00% <0.00%> (ø)
site/src/components/Workspace/constants.ts100.00% <0.00%> (ø)
site/src/util/swr.ts0.00% <0.00%> (ø)
site/src/components/Button/SplitButton.tsx89.47% <0.00%> (ø)
... and91 more

Continue to review full report at Codecov.

Legend -Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing data
Powered byCodecov. Last updateff2f647...f869e5e. Read thecomment docs.

@kylecarbskylecarbs merged commit3a48e40 intomainMar 26, 2022
@kylecarbskylecarbs deleted the fixwaitrace branchMarch 26, 2022 18:53
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@coadlercoadlercoadler approved these changes

Assignees

@kylecarbskylecarbs

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@kylecarbs@coadler

[8]ページ先頭

©2009-2025 Movatter.jp