Merge pull request #10690 from aslafy-z/patch-3
fix: remove tcpproxy copy error handling
This commit is contained in:
commit
60046bf7e1
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue