From 7480654aaf7fe8818746c2ee516e50db56715320 Mon Sep 17 00:00:00 2001 From: Matthias Radestock Date: Sat, 6 Aug 2016 00:06:34 +0100 Subject: [PATCH] don't complain about closed websockets in pipe connections --- probe/appclient/app_client.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) {