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 2019/07/12 16:10:09 UTC
[trafficserver] branch master updated: Fix client transaction stats
This is an automated email from the ASF dual-hosted git repository.
bcall pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new 4f9114b Fix client transaction stats
4f9114b is described below
commit 4f9114bc5f7c4f06419d6b14788aaf429d1956fd
Author: Masaori Koshiba <ma...@apache.org>
AuthorDate: Fri Jul 12 10:24:23 2019 +0900
Fix client transaction stats
---
proxy/ProxyTransaction.cc | 3 +++
1 file changed, 3 insertions(+)
diff --git a/proxy/ProxyTransaction.cc b/proxy/ProxyTransaction.cc
index 432497d..1ece708 100644
--- a/proxy/ProxyTransaction.cc
+++ b/proxy/ProxyTransaction.cc
@@ -49,6 +49,7 @@ ProxyTransaction::new_transaction()
current_reader->plugin_id = pi->getPluginId();
}
+ this->increment_client_transactions_stat();
current_reader->attach_client_session(this, sm_reader);
}
@@ -58,6 +59,8 @@ ProxyTransaction::release(IOBufferReader *r)
HttpTxnDebug("[%" PRId64 "] session released by sm [%" PRId64 "]", proxy_ssn ? proxy_ssn->connection_id() : 0,
current_reader ? current_reader->sm_id : 0);
+ this->decrement_client_transactions_stat();
+
// Pass along the release to the session
if (proxy_ssn) {
proxy_ssn->release(this);