fix: remove tcpproxy copy error handling
This commit is contained in:
parent
eb1303da02
commit
44e550ea72
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) {
|
func pipe(client, server net.Conn) {
|
||||||
doCopy := func(s, c net.Conn, cancel chan<- bool) {
|
doCopy := func(s, c net.Conn, cancel chan<- bool) {
|
||||||
if _, err := io.Copy(s, c); err != nil {
|
//nolint:errcheck // No need to catch these errors
|
||||||
klog.Errorf("Error copying data: %v", err)
|
io.Copy(s, c)
|
||||||
}
|
|
||||||
cancel <- true
|
cancel <- true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue