-
Notifications
You must be signed in to change notification settings - Fork 526
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
Status callback for exec is never called when stdin closes #465
Comments
You could try sending an explicit |
@brendandburns neat, that does work indeed, but only when tty is also attached. With tty I am not able to correctly receive binary data for exec command.
|
Makes sense ctrl-d is a terminal character after all. This error is coming from the tar command itself. I'm not sure why that's happening, but I don't think it's related to this library. |
@brendandburns you are correct it will be related to tty itself, but the fact with result is as I think issue could be solved with #411 or maybe there is way for ws protocol to close streams some other way. |
I'm obviously not certain, but I think |
It does not matter what executable I try to run, even cat breaks up in similiar manner as if you try to paste binary data trough regular terminal. I believe I would have to somehow escape the data so the terminal could recognize 0x04 as a byte and as a ctrl-d. I am not sure if thats possible (I was not able to find anything about that), but could also solve the issue. |
Did you find out something @mochja? I'm trying to upload some file with |
@bankyadam I did not, I think there are only two proper ways to handle this:
I was experimenting by removing following lines javascript/src/web-socket-handler.ts Lines 68 to 70 in 932c2fb
and if I am remembering correctly it was somewhat working. |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Is it possible to close stdin for Exec without closing ws connection?
StatusStream is not received if WS connection is closed as well as additional data on stdout, stderr streams is lost.
The text was updated successfully, but these errors were encountered: