You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by bc...@apache.org on 2016/01/12 18:22:38 UTC
trafficserver git commit: TS-4125: wrong non-active conditions check
Repository: trafficserver
Updated Branches:
refs/heads/master 3a8ee6ba7 -> c26952d95
TS-4125: wrong non-active conditions check
This closes #416
Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/c26952d9
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/c26952d9
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/c26952d9
Branch: refs/heads/master
Commit: c26952d95104067d45704d6c81eb3bc038fd2282
Parents: 3a8ee6b
Author: Oknet <xu...@gmail.com>
Authored: Tue Jan 12 09:22:26 2016 -0800
Committer: Bryan Call <bc...@apache.org>
Committed: Tue Jan 12 09:22:26 2016 -0800
----------------------------------------------------------------------
iocore/net/UnixNet.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/trafficserver/blob/c26952d9/iocore/net/UnixNet.cc
----------------------------------------------------------------------
diff --git a/iocore/net/UnixNet.cc b/iocore/net/UnixNet.cc
index b3a7587..7e0948c 100644
--- a/iocore/net/UnixNet.cc
+++ b/iocore/net/UnixNet.cc
@@ -586,7 +586,7 @@ NetHandler::manage_active_queue()
int total_idle_time = 0;
int total_idle_count = 0;
for (; vc != NULL; vc = vc_next) {
- if ((vc->next_inactivity_timeout_at > now) || (vc->next_activity_timeout_at > now)) {
+ if ((vc->next_inactivity_timeout_at <= now) || (vc->next_activity_timeout_at <= now)) {
_close_vc(vc, now, handle_event, closed, total_idle_time, total_idle_count);
}
if (max_connections_active_per_thread_in > active_queue_size) {