Skip to content

Commit

Permalink
remove is being closed. logs in proxystream when copying
Browse files Browse the repository at this point in the history
 - they happen every time the server named pipe is about closing, it's similar to EOF

Signed-off-by: ebriney <emmanuel.briney@docker.com>
  • Loading branch information
ebriney committed Nov 18, 2019
1 parent 8b67ee2 commit d4c8819
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/pkg/libproxy/stream_proxy.go
Expand Up @@ -17,7 +17,7 @@ func ProxyStream(client, backend Conn, quit <-chan struct{}) error {
event := make(chan int64)
var broker = func(to, from Conn) {
written, err := io.Copy(to, from)
if err != nil && err != io.EOF {
if err != nil && err != io.EOF && !errIsBeingClosed(err) {
log.Println("error copying:", err)
}
err = to.CloseWrite()
Expand Down

0 comments on commit d4c8819

Please sign in to comment.