Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent web ui SSH connections from leaking (#41501)
The session closing in TerminalHandler.Close did not always close established ssh sessions if the client closed the web socket at any point between the new browser tab being opened and the session being established. In these cases the SSH connection was leaked for the duration of the Proxy process. To ensure sessions are always terminated a check to see if the client closed the web socket was added prior to writing the session metadata and after the shell is established for the ssh session.
- Loading branch information