pkg/proxy: remove unnecessary io.EOF checking

pull/6/head
Claire Li 2014-07-11 21:51:24 -07:00
parent 93d45c1e71
commit abcbce55ce
1 changed files with 1 additions and 1 deletions

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