You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by br...@apache.org on 2014/06/19 01:51:29 UTC

[03/17] git commit: Adding small check for non-zero reads

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/9788eedf
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/9788eedf
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/9788eedf

Branch: refs/heads/4.2.x
Commit: 9788eedfed648bade82a4c9cc478919656b85ad7
Parents: 53c7a8e
Author: Brian Geffon <br...@apache.org>
Authored: Mon Jun 9 16:15:41 2014 -0700
Committer: Brian Geffon <br...@apache.org>
Committed: Tue Jun 10 15:56:00 2014 -0700

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


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/9788eedf/iocore/net/UnixNetVConnection.cc
----------------------------------------------------------------------
diff --git a/iocore/net/UnixNetVConnection.cc b/iocore/net/UnixNetVConnection.cc
index bb361e7..2307776 100644
--- a/iocore/net/UnixNetVConnection.cc
+++ b/iocore/net/UnixNetVConnection.cc
@@ -266,7 +266,7 @@ read_from_net(NetHandler *nh, UnixNetVConnection *vc, EThread *thread)
       }
       NET_INCREMENT_DYN_STAT(net_calls_to_read_stat);
       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) {