diff options
author | Matthew Heon <mheon@redhat.com> | 2020-09-23 16:30:51 -0400 |
---|---|---|
committer | Matthew Heon <mheon@redhat.com> | 2020-09-25 11:19:55 -0400 |
commit | 76e841b6503296557a6ae2e97ba40d476d4e46ff (patch) | |
tree | cfed4f117a3af5c76a322ff80e05e4564f9209e6 /test/e2e/unshare_test.go | |
parent | 8ead007e5ad7f2ec41f5368f68df2acd6f9e08b8 (diff) | |
download | podman-76e841b6503296557a6ae2e97ba40d476d4e46ff.tar.gz podman-76e841b6503296557a6ae2e97ba40d476d4e46ff.tar.bz2 podman-76e841b6503296557a6ae2e97ba40d476d4e46ff.zip |
HTTP Attach: Wait until both STDIN and STDOUT finish
In the old code, there was a chance that we could return when
only one of STDIN or STDOUT had finished - this could lead to us
dropping either input to the container, or output from it, in the
case that one stream terminated early.
To resolve this, use separate channels to return STDOUT and STDIN
errors, and track which ones have returned cleanly to ensure that
we need bith in order to return from the HTTP attach function and
pass control back to the HTTP handler (which would assume we
exited cleanly and close the client's attach connection).
Signed-off-by: Matthew Heon <mheon@redhat.com>
Diffstat (limited to 'test/e2e/unshare_test.go')
0 files changed, 0 insertions, 0 deletions