This is an automated email from the ASF dual-hosted git repository.
zwoop pushed a commit to branch 9.1.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/9.1.x by this push:
new be392f4 Remove unused variables (#7626)
be392f4 is described below
commit be392f45ea63c5ad46d153cb1ddef625d69de986
Author: Masakazu Kitajo <[email protected]>
AuthorDate: Sat Mar 27 14:46:45 2021 +0900
Remove unused variables (#7626)
ssn_start_time and ssn_last_txn_time are unused.
(cherry picked from commit 339045f8988e098dd8c86d05200990f8749a663d)
---
proxy/ProxySession.h | 3 ---
proxy/http/Http1ClientSession.cc | 12 +++++-------
2 files changed, 5 insertions(+), 10 deletions(-)
diff --git a/proxy/ProxySession.h b/proxy/ProxySession.h
index 350236c..17c1f69 100644
--- a/proxy/ProxySession.h
+++ b/proxy/ProxySession.h
@@ -163,9 +163,6 @@ public:
HttpSessionAccept::Options const *accept_options; ///< connection info //
L7R TODO: set in constructor
- ink_hrtime ssn_start_time = 0;
- ink_hrtime ssn_last_txn_time = 0;
-
protected:
// Hook dispatching state
HttpHookState hook_state;
diff --git a/proxy/http/Http1ClientSession.cc b/proxy/http/Http1ClientSession.cc
index 3d24918..cc28aee 100644
--- a/proxy/http/Http1ClientSession.cc
+++ b/proxy/http/Http1ClientSession.cc
@@ -127,12 +127,11 @@ Http1ClientSession::new_connection(NetVConnection
*new_vc, MIOBuffer *iobuf, IOB
{
ink_assert(new_vc != nullptr);
ink_assert(_vc == nullptr);
- _vc = new_vc;
- magic = HTTP_CS_MAGIC_ALIVE;
- mutex = new_vc->mutex;
- trans.mutex = mutex; // Share this mutex with the transaction
- ssn_start_time = Thread::get_hrtime();
- in_destroy = false;
+ _vc = new_vc;
+ magic = HTTP_CS_MAGIC_ALIVE;
+ mutex = new_vc->mutex;
+ trans.mutex = mutex; // Share this mutex with the transaction
+ in_destroy = false;
SSLNetVConnection *ssl_vc = dynamic_cast<SSLNetVConnection *>(new_vc);
if (ssl_vc != nullptr) {
@@ -396,7 +395,6 @@ Http1ClientSession::release(ProxyTransaction *trans)
set_inactivity_timeout(HRTIME_SECONDS(ka_in));
this->clear_session_active();
- this->ssn_last_txn_time = Thread::get_hrtime();
// Timeout events should be delivered to the session
this->do_io_write(this, 0, nullptr);