You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by sh...@apache.org on 2016/03/07 20:52:43 UTC

trafficserver git commit: TS-4187: Fix connections_currently_open stat. This closes #510.

Repository: trafficserver
Updated Branches:
  refs/heads/master d70757aca -> 91a8444a5


TS-4187: Fix connections_currently_open stat. This closes #510.


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

Branch: refs/heads/master
Commit: 91a8444a52e9d4b0308edf3357e73fa284fbcb49
Parents: d70757a
Author: shinrich <sh...@yahoo-inc.com>
Authored: Wed Mar 2 09:08:59 2016 -0600
Committer: shinrich <sh...@yahoo-inc.com>
Committed: Mon Mar 7 13:52:17 2016 -0600

----------------------------------------------------------------------
 iocore/net/UnixNetVConnection.cc | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/91a8444a/iocore/net/UnixNetVConnection.cc
----------------------------------------------------------------------
diff --git a/iocore/net/UnixNetVConnection.cc b/iocore/net/UnixNetVConnection.cc
index 56f38b9..e235bc7 100644
--- a/iocore/net/UnixNetVConnection.cc
+++ b/iocore/net/UnixNetVConnection.cc
@@ -1393,6 +1393,10 @@ UnixNetVConnection::migrateToCurrentThread(Continuation *cont, EThread *t)
   this->ep.stop();
   this->do_io_close();
 
+  // The do_io_close will decrement the current stat count but we are creating a new vc.
+  // Increment the currently open stat here so the net current count is unchanged
+  NET_SUM_GLOBAL_DYN_STAT(net_connections_currently_open_stat, 1);
+
   // Create new VC:
   if (save_ssl) {
     SSLNetVConnection *sslvc = static_cast<SSLNetVConnection *>(sslNetProcessor.allocate_vc(t));