Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Perform a one-sided close of HTTP attach conn on EOF #10916

Merged
merged 1 commit into from
Jul 14, 2021

Conversation

mheon
Copy link
Member

@mheon mheon commented Jul 12, 2021

On EOF of STDIN, we need to perform a one-sided close of the attach connection on the client side, to ensure that STDIN finishing will also cause the exec session to terminate, instead of hang.

Fixes #7360

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jul 12, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mheon

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 12, 2021
@mheon
Copy link
Member Author

mheon commented Jul 12, 2021

Needs a test still. Will do tomorrow.

@mheon mheon force-pushed the fix_7360 branch 2 times, most recently from 721ce63 to 225f9d5 Compare July 13, 2021 20:19
On EOF of STDIN, we need to perform a one-sided close of the
attach connection on the client side, to ensure that STDIN
finishing will also cause the exec session to terminate, instead
of hang.

Fixes containers#7360

Signed-off-by: Matthew Heon <[email protected]>
@mheon
Copy link
Member Author

mheon commented Jul 13, 2021

Tests added (well, uncommented). Two integration tests flaked, restarted. I think this is going to go green. @containers/podman-maintainers PTAL

Copy link
Member

@vrothberg vrothberg left a comment

Choose a reason for hiding this comment

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

LGTM, restarted the flaked (?) Ubuntu jobs

@mheon
Copy link
Member Author

mheon commented Jul 14, 2021

The flake on 2010 seems consistent, but also seems entirely unrelated to my change? I only modified remote code, and this is a local test

@edsantiago
Copy link
Member

/lgtm

Thank you @mheon!

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jul 14, 2021
@openshift-merge-robot openshift-merge-robot merged commit ace19c7 into containers:main Jul 14, 2021
@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 22, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

podman-remote exec -i, with stdin redirection, hangs
4 participants