Merge pull request #421 from claire921/proxy_checking

pkg/proxy: remove unnecessary io.EOF checking
This commit is contained in:
brendandburns 2014-07-11 22:32:32 -07:00
commit ee4ec2af9e

View File

@ -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)
}