tmc/grpc-websocket-proxy

[Bug] Leak

Opened this issue · 0 comments

You call io.Pipe() at

requestBodyR, requestBodyW := io.Pipe()

then you lose it at

(When error happens at http.NewRequestWithContext you don't close requestBodyW and responseBodyW)

io.Pipe docs
https://pkg.go.dev/io#Pipe