mirror of
https://github.com/gravitational/teleport.git
synced 2026-11-04 10:25:32 +08:00
* [devicetrust] fix: handle server errors in bi-directional streams Fix an edge case in the devicetrust gRPC bi-directional stream handler where the stream could terminate with an error after the last client `Recv` call but before the next `Send` call. Previously, this scenario caused the `Send` method to return an `io.EOF` error, which indicated that the connection was terminated but did not reveal any errors returned by the server. This update ensures that the client continues to consume the stream until an error is returned, allowing for proper error handling and more robust stream management. Signed-off-by: Tiago Silva <tiago.silva@goteleport.com> * add license headers * drop helper and local skip io.EOF errors --------- Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>