You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2012/01/30 03:06:07 UTC
git commit: Micro-optimize for the common case,
and let me test a git commit again
Updated Branches:
refs/heads/master 972656445 -> feecb3794
Micro-optimize for the common case, and let me test a git commit again
Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/feecb379
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/feecb379
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/feecb379
Branch: refs/heads/master
Commit: feecb37947207570e5324f1e62e5fb0631f9def9
Parents: 9726564
Author: Leif Hedstrom <zw...@apache.org>
Authored: Sun Jan 29 19:05:00 2012 -0700
Committer: Leif Hedstrom <zw...@apache.org>
Committed: Sun Jan 29 19:05:00 2012 -0700
----------------------------------------------------------------------
iocore/net/UnixNetVConnection.cc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/trafficserver/blob/feecb379/iocore/net/UnixNetVConnection.cc
----------------------------------------------------------------------
diff --git a/iocore/net/UnixNetVConnection.cc b/iocore/net/UnixNetVConnection.cc
index cf6b941..5c8986a 100644
--- a/iocore/net/UnixNetVConnection.cc
+++ b/iocore/net/UnixNetVConnection.cc
@@ -327,7 +327,7 @@ read_from_net(NetHandler *nh, UnixNetVConnection *vc, EThread *thread)
}
}
// If here are is no more room, or nothing to do, disable the connection
- if (!s->enabled || !buf.writer()->write_avail() || s->vio.ntodo() <= 0) {
+ if (s->vio.ntodo() <= 0 || !s->enabled || !buf.writer()->write_avail()) {
read_disable(nh, vc);
return;
}