diff --git a/pkg/abstractions/endpoint/buffer.go b/pkg/abstractions/endpoint/buffer.go index 604a2ba08..5d50818fd 100644 --- a/pkg/abstractions/endpoint/buffer.go +++ b/pkg/abstractions/endpoint/buffer.go @@ -558,6 +558,11 @@ func (rb *RequestBuffer) proxyWebsocketConnection(r *request, c container, diale } func forwardWSConn(src net.Conn, dst net.Conn) { + defer func() { + src.Close() + dst.Close() + }() + _, err := io.Copy(src, dst) if err != nil { return