trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bri...@apache.org
Subject [03/17] git commit: Adding small check for non-zero reads
Date Wed, 18 Jun 2014 23:51:29 GMT
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 <briang@apache.org>
Authored: Mon Jun 9 16:15:41 2014 -0700
Committer: Brian Geffon <briang@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) {


Mime
View raw message