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: Protect codersdk.Client SessionToken so it can be updated#4965

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
mafredri merged 1 commit intomainfrommafredri/session-token-race
Nov 9, 2022

Conversation

@mafredri
Copy link
Member

This feature is used by the coder agent to exchange a new token. By
protecting the SessionToken via mutex we ensure there are no data races
when accessing it.

This race can be seen here:https://github.com/coder/coder/actions/runs/3427027452/jobs/5709526632

@mafredrimafredri self-assigned thisNov 9, 2022
@mafredrimafredri requested a review froma teamNovember 9, 2022 11:01
This feature is used by the coder agent to exchange a new token. Byprotecting the SessionToken via mutex we ensure there are no data raceswhen accessing it.
@mafredrimafredriforce-pushed themafredri/session-token-race branch from9b364e0 to1df8ee2CompareNovember 9, 2022 11:11
Copy link
Member

@kylecarbskylecarbs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Oofta this was a race I caused 🤦‍♂️. Thank you for fixing!

mafredri reacted with heart emoji
@mafredrimafredri merged commit26ab0d3 intomainNov 9, 2022
@mafredrimafredri deleted the mafredri/session-token-race branchNovember 9, 2022 13:31
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsNov 9, 2022
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

@johnstcnjohnstcnjohnstcn approved these changes

@kylecarbskylecarbskylecarbs approved these changes

Assignees

@mafredrimafredri

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@mafredri@johnstcn@kylecarbs

[8]ページ先頭

©2009-2025 Movatter.jp