mirror of
https://github.com/gravitational/teleport.git
synced 2026-09-19 11:00:37 +08:00
The interface smuggling within `stream.ReadWriter.Close` now checks for `io.Closer` instead of `grpc.ClientStream` to allow clients that need to perform additoinal closing logic besides sending a `CloseSend` message to do so. All existing client implementations of `stream.Source` now implement `io.Closer` so they are still cleaned up properly. The multiplexed ssh streams are now tied together to prevent attempts to send a message at the same time. In addition, the client ssh streams have been updated to only send a single `CloseSend` on which ever protocol is terminated first.