mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-19 13:29:35 +00:00
don't complain about closed websockets in pipe connections
This commit is contained in:
@@ -311,7 +311,10 @@ func (c *appClient) pipeConnection(id string, pipe xfer.Pipe) (bool, error) {
|
||||
defer c.closeConn(id)
|
||||
|
||||
_, remote := pipe.Ends()
|
||||
return false, pipe.CopyToWebsocket(remote, conn)
|
||||
if err := pipe.CopyToWebsocket(remote, conn); err != nil && !xfer.IsExpectedWSCloseError(err) {
|
||||
return false, err
|
||||
}
|
||||
return false, nil
|
||||
}
|
||||
|
||||
func (c *appClient) PipeConnection(id string, pipe xfer.Pipe) {
|
||||
|
||||
Reference in New Issue
Block a user