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: catch missed output with reconnecting PTY#9094

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
code-asher merged 1 commit intomainfromasher/pty-flake
Aug 14, 2023

Conversation

code-asher
Copy link
Member

@code-ashercode-asher commentedAug 14, 2023
edited
Loading

This is currently failing the tests pretty reliably.

I forgot that waiting on the cond releases the lock so it was possible to get pty output after writing the buffer but before adding the pty to the map. To fix, add the pty to the map while under the same lock where we read from the buffer.

The rest does not need to be behind the lock so I moved it out of doAttach, and that also means we no longer need
waitForStateOrContextLocked.

Copy link

@cdr-botcdr-botbot left a comment

Choose a reason for hiding this comment

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

This PR is a hotfix and has been automatically approved.

  • ✅ Base is main
  • ✅ Has hotfix label
  • ✅ Head is from coder/coder
  • ✅ Less than 100 lines

@code-ashercode-asher changed the titlefix: reconnecting PTY flakefix: missed output with reconnecting PTYAug 14, 2023
@code-ashercode-asher changed the titlefix: missed output with reconnecting PTYfix: catch missed output with reconnecting PTYAug 14, 2023
@code-ashercode-asherforce-pushed theasher/pty-flake branch 2 times, most recently from16c9105 tob054a12CompareAugust 14, 2023 22:34
I forgot that waiting on the cond releases the lock so it was possibleto get pty output after writing the buffer but before adding the pty tothe map.  To fix, add the pty to the map while under the same lock wherewe write to the buffer.The rest does not need to be behind the lock so I moved it out ofdoAttach, and that also means we no longer needwaitForStateOrContextLocked.Also, this can hit a logger error saying the attach failed which failsthe tests however it is not that the attach failed, just that theprocess already ran and exited.  So if the process exits move to theclose phase *without* an error.
@code-ashercode-asher merged commita08f7b8 intomainAug 14, 2023
@code-ashercode-asher deleted the asher/pty-flake branchAugust 14, 2023 23:54
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsAug 14, 2023
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

@cdr-botcdr-bot[bot]cdr-bot[bot] approved these changes

Assignees

@code-ashercode-asher

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

@code-asher

[8]ページ先頭

©2009-2025 Movatter.jp