mirror of https://github.com/k3s-io/k3s
pkg/proxy: remove unnecessary io.EOF checking
parent
93d45c1e71
commit
abcbce55ce
|
@ -41,7 +41,7 @@ func CopyBytes(in, out *net.TCPConn) {
|
|||
glog.Infof("Copying from %v <-> %v <-> %v <-> %v",
|
||||
in.RemoteAddr(), in.LocalAddr(), out.LocalAddr(), out.RemoteAddr())
|
||||
_, err := io.Copy(in, out)
|
||||
if err != nil && err != io.EOF {
|
||||
if err != nil {
|
||||
glog.Errorf("I/O error: %v", err)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue