fix: remove tcpproxy copy error handling (#10715)

Co-authored-by: Zadkiel Aharonian <hello@zadkiel.fr>
This commit is contained in:
k8s-infra-cherrypick-robot 2023-12-01 08:25:56 -08:00 committed by GitHub
parent 6e21bfd7a6
commit 7100fecafb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -125,9 +125,8 @@ func (p *TCPProxy) Handle(conn net.Conn) {
func pipe(client, server net.Conn) {
doCopy := func(s, c net.Conn, cancel chan<- bool) {
if _, err := io.Copy(s, c); err != nil {
klog.Errorf("Error copying data: %v", err)
}
//nolint:errcheck // No need to catch these errors
io.Copy(s, c)
cancel <- true
}