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 closenow race#427

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
nhooyr merged 8 commits intocoder:devfromalixander:fix-race
Apr 7, 2024
Merged

fix closenow race#427

nhooyr merged 8 commits intocoder:devfromalixander:fix-race
Apr 7, 2024

Conversation

alixander
Copy link
Contributor

@alixanderalixander commentedDec 18, 2023
edited
Loading

the added test fails before this with

Screen Shot 2023-12-18 at 3 32 16 PM

i originally found this in D2 when i added tests for watching and --race started failing but the code seems to be purely confined in this library.

Screen Shot 2023-12-18 at 3 35 58 PM

hacked together test, so if you accept it and want me to clean it up, i can. just seeing if this is legit.

@alixanderalixander mentioned this pull requestDec 18, 2023
@nhooyr
Copy link
Contributor

Copy, weird. Will review tonight. Have a Christmas party now. Happy Holidays! 🥳

alixander reacted with hooray emoji

@nhooyrnhooyr added the bug labelDec 18, 2023
@nhooyrnhooyr mentioned this pull requestDec 19, 2023
@nhooyr
Copy link
Contributor

Didn't get a chance, hopefully tomorrow.

@nhooyr
Copy link
Contributor

I despise the way this code was implemented. This is one of multiple races. See also#239

But this looks like the right fix thanks@alixander

I'll take a look at the test tonight. Helping cook Christmas meals at the Legion today.

alixander reacted with heart emoji

@alixander
Copy link
ContributorAuthor

Merry Christmas man! Christmas in small towns sound 💯 .

I'm sure the test isn't up to par lol. Happy to address comments but also if you wanna just push to this or redo this in another PR, I'm cool with it.

nhooyr reacted with heart emoji

@ClaytonNorthey92
Copy link

hey@alixander and@nhooyr , is it possible to merge this fix in? I am running into this issue on one of my projects.

thanks!

@nhooyr
Copy link
Contributor

I know it's on my radar.

@haha454haha454 mentioned this pull requestFeb 22, 2024
nhooyr added a commit to alixander/websocket that referenced this pull requestApr 5, 2024
Far simpler now. Sorry this took a while.Closescoder#427Closescoder#429Closescoder#434Closescoder#436Closescoder#437
@nhooyr
Copy link
Contributor

Will have a release out by Sunday to fix this and all the associated bugs.

alixanderand others added3 commitsApril 5, 2024 16:42
Not ideal but whatever, I'm going to rewrite all of this anyway.
Far simpler now. Sorry this took a while.Closescoder#427Closescoder#429Closescoder#434Closescoder#436Closescoder#437
@nhooyr
Copy link
Contributor

Not sure why the Wasm test is failing, looking into it. Not sure if it's related to this PR or something else as it seems to fail intermittently in the daily CI.

Context can be cancelled by parent. Doesn't indicate the CloseRead goroutinehas exited.
@nhooyrnhooyr merged commitb0ec201 intocoder:devApr 7, 2024
@alixanderalixander mentioned this pull requestApr 9, 2024
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
Projects
None yet
Milestone
v1.8.11
Development

Successfully merging this pull request may close these issues.

3 participants
@alixander@nhooyr@ClaytonNorthey92

[8]ページ先頭

©2009-2025 Movatter.jp