trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zw...@apache.org
Subject [trafficserver] branch 9.0.x updated: Fix no_activity timeout for server session reuse.
Date Fri, 30 Aug 2019 21:17:24 GMT
This is an automated email from the ASF dual-hosted git repository.

zwoop pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/9.0.x by this push:
     new 24daee0  Fix no_activity timeout for server session reuse.
24daee0 is described below

commit 24daee0b63fab4ca43501bf3c304de06bc5da6b3
Author: Susan Hinrichs <shinrich@oath.com>
AuthorDate: Fri Aug 9 20:27:49 2019 +0000

    Fix no_activity timeout for server session reuse.
    
    (cherry picked from commit 924c8f9f70a9d30d70f4b130a43af82b79c90eda)
---
 proxy/http/HttpSM.cc | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/proxy/http/HttpSM.cc b/proxy/http/HttpSM.cc
index 523feec..346eab5 100644
--- a/proxy/http/HttpSM.cc
+++ b/proxy/http/HttpSM.cc
@@ -5975,6 +5975,13 @@ HttpSM::setup_server_send_request()
 
   milestones[TS_MILESTONE_SERVER_BEGIN_WRITE] = Thread::get_hrtime();
   server_entry->write_vio                     = server_entry->vc->do_io_write(this,
hdr_length, buf_start);
+
+  // Make sure the VC is using correct timeouts.  We may be reusing a previously used server
session
+  if (t_state.api_txn_no_activity_timeout_value != -1) {
+    server_session->get_netvc()->set_inactivity_timeout(HRTIME_MSECONDS(t_state.api_txn_no_activity_timeout_value));
+  } else {
+    server_session->get_netvc()->set_inactivity_timeout(HRTIME_SECONDS(t_state.txn_conf->transaction_no_activity_timeout_out));
+  }
 }
 
 void


Mime
View raw message