-
Notifications
You must be signed in to change notification settings - Fork 3k
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
{container} Bugfix #15856: az container exec - remove eol check to avoid closing terminal before it even started on linux #16000
Conversation
The backend sends an empty webSocket message after establishing an connection. The removed lines of code interpreted that as an EOL which exits the webSocket read loop. As the Windows code doesn't do that as well, I removed it here as well now. The terminal gets closed after the webSocket closes anyway. Fixes: #15856
Thank you for your contribution bitcloud! We will review the pull request and get back to you soon. |
I'm not quite sure if I should submit that as a hotfix as well to merge that also against the current version? |
container |
Any updates here? Anything else I should do? |
Wait for code owner to review. |
/azp run |
Azure Pipelines successfully started running 2 pipeline(s). |
Actually, I am not the owner of container module, which should be owned by service team. |
Sorry I'm not the owner either and I am not aware which team is the owner. |
@zhoxing-ms Are you willing to be owner of this module? |
The backend sends an empty webSocket message after establishing an connection. The removed lines of code interpreted that as an EOL which exits the webSocket read loop.
As the Windows code doesn't do that as well, I removed it here as well now.
The terminal gets closed after the webSocket closes anyway.
Fixes: #15856
Description
As described in #15856 there is currently an issue getting a remote terminal to a container instance with
az container exec
as it immediately closes the connection.Testing Guide
az container create
with a long living containeraz container exec --exec-command "/bin/bash" ...
History Notes
[container] az container exec: remove eol check to avoid closing terminal before it even started on linux
This checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.