Repository: trafficserver
Updated Branches:
  refs/heads/master dda3209af -> 3ccf42e6a


Adding small check for non-zero reads


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/3ccf42e6
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/3ccf42e6
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/3ccf42e6

Branch: refs/heads/master
Commit: 3ccf42e6a905d3ad1ed8aa76a74cfd67a3e5048d
Parents: dda3209
Author: Brian Geffon <[email protected]>
Authored: Mon Jun 9 16:15:41 2014 -0700
Committer: Brian Geffon <[email protected]>
Committed: Mon Jun 9 16:15:41 2014 -0700

----------------------------------------------------------------------
 iocore/net/UnixNetVConnection.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/3ccf42e6/iocore/net/UnixNetVConnection.cc
----------------------------------------------------------------------
diff --git a/iocore/net/UnixNetVConnection.cc b/iocore/net/UnixNetVConnection.cc
index 7f253e5..47406ac 100644
--- a/iocore/net/UnixNetVConnection.cc
+++ b/iocore/net/UnixNetVConnection.cc
@@ -267,7 +267,7 @@ read_from_net(NetHandler *nh, UnixNetVConnection *vc, 
EThread *thread)
       }
       NET_DEBUG_COUNT_DYN_STAT(net_calls_to_read_stat, 1);
       total_read += rattempted;
-    } while (r == rattempted && total_read < toread);
+    } while (rattempted && r == rattempted && total_read < toread);
 
     // if we have already moved some bytes successfully, summarize in r
     if (total_read != rattempted) {

Reply via email to