Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused variables #7626

Merged
merged 1 commit into from
Mar 27, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions proxy/ProxySession.h
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,6 @@ class ProxySession : public VConnection, public PluginUserArgs<TS_USER_ARGS_SSN>

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;
Expand Down
12 changes: 5 additions & 7 deletions proxy/http/Http1ClientSession.cc
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,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) {
Expand Down Expand Up @@ -397,7 +396,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);
Expand Down