diff --git a/probe/appclient/app_client.go b/probe/appclient/app_client.go index bffaf0d5c..cb240ecde 100644 --- a/probe/appclient/app_client.go +++ b/probe/appclient/app_client.go @@ -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) {