Commit abcbce55 authored by Claire Li's avatar Claire Li

pkg/proxy: remove unnecessary io.EOF checking

parent 93d45c1e
...@@ -41,7 +41,7 @@ func CopyBytes(in, out *net.TCPConn) { ...@@ -41,7 +41,7 @@ func CopyBytes(in, out *net.TCPConn) {
glog.Infof("Copying from %v <-> %v <-> %v <-> %v", glog.Infof("Copying from %v <-> %v <-> %v <-> %v",
in.RemoteAddr(), in.LocalAddr(), out.LocalAddr(), out.RemoteAddr()) in.RemoteAddr(), in.LocalAddr(), out.LocalAddr(), out.RemoteAddr())
_, err := io.Copy(in, out) _, err := io.Copy(in, out)
if err != nil && err != io.EOF { if err != nil {
glog.Errorf("I/O error: %v", err) glog.Errorf("I/O error: %v", err)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment