Commit ee4ec2af authored by brendandburns's avatar brendandburns

Merge pull request #421 from claire921/proxy_checking

pkg/proxy: remove unnecessary io.EOF checking
parents cdf75c57 abcbce55
...@@ -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