Skip to content

Commit

Permalink
Merge pull request #10690 from aslafy-z/patch-3
Browse files Browse the repository at this point in the history
fix: remove tcpproxy copy error handling
  • Loading branch information
strongjz authored Dec 1, 2023
2 parents a8decd8 + 44e550e commit 60046bf
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/tcpproxy/tcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 60046bf

Please sign in to comment.