Skip to content

runtime/stdio: avoid hanging on console socket accept - #46

Open
jankaluza wants to merge 1 commit into
containers:mainfrom
jankaluza:console-fd-blocks
Open

runtime/stdio: avoid hanging on console socket accept#46
jankaluza wants to merge 1 commit into
containers:mainfrom
jankaluza:console-fd-blocks

Conversation

@jankaluza

Copy link
Copy Markdown
Member

Replace blocking accept() on --console-socket with polled waits that watch for runtime exit and enforce a 60s timeout. If the runtime exits after connecting, drain any queued connection before failing so a successfully delivered pty fd is not rejected.

This fixes race found during the tests when conmon-v3 process blocked indefinitely during the tests.

@gemini-code-assist

Copy link
Copy Markdown

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

Replace blocking `accept()` on `--console-socket` with polled waits that
watch for runtime exit and enforce a 60s timeout. If the runtime exits
after connecting, drain any queued connection before failing so a
successfully delivered pty fd is not rejected.

This fixes race found during the tests when conmon-v3 process blocked
indefinitely during the tests.

Signed-off-by: Jan Kaluza <jkaluza@redhat.com>
@packit-as-a-service

Copy link
Copy Markdown

Ephemeral COPR build failed.

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.

1 participant