trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zw...@apache.org
Subject [trafficserver] branch 7.1.x updated: YTSATS-2300: Reset the inactivity timeout to the transaction timeout when reusing connections.
Date Mon, 08 Oct 2018 23:40:20 GMT
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/7.1.x by this push:
     new 22ca42c  YTSATS-2300:  Reset the inactivity timeout to the transaction timeout when
reusing connections.
22ca42c is described below

commit 22ca42c32bb7101613e72fe6ae2667920af97a31
Author: Susan Hinrichs <shinrich@oath.com>
AuthorDate: Fri Aug 24 15:24:18 2018 +0000

    YTSATS-2300:  Reset the inactivity timeout to the transaction timeout when reusing connections.
    
    (cherry picked from commit 483b1b328de55f9f5fc403bd7814c3a298857923)
---
 proxy/http/HttpSM.cc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/proxy/http/HttpSM.cc b/proxy/http/HttpSM.cc
index 842e09b..620da6d 100644
--- a/proxy/http/HttpSM.cc
+++ b/proxy/http/HttpSM.cc
@@ -6003,6 +6003,8 @@ HttpSM::attach_server_session(HttpServerSession *s)
 void
 HttpSM::setup_server_send_request_api()
 {
+  // Make sure the VC is on the correct timeout
+  server_session->get_netvc()->set_inactivity_timeout(HRTIME_SECONDS(t_state.txn_conf->transaction_no_activity_timeout_out));
   t_state.api_next_action = HttpTransact::SM_ACTION_API_SEND_REQUEST_HDR;
   do_api_callout();
 }


Mime
View raw message