trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bri...@apache.org
Subject [1/2] git commit: TS-2892: Keep-alive post out enabled by default
Date Thu, 19 Jun 2014 01:35:39 GMT
Repository: trafficserver
Updated Branches:
  refs/heads/master aae3067e2 -> 2c9a15cec


TS-2892: Keep-alive post out enabled by default


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/9e93c0a8
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/9e93c0a8
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/9e93c0a8

Branch: refs/heads/master
Commit: 9e93c0a8d436c1df65e4890a8bbd2427673f62c5
Parents: aae3067
Author: Brian Geffon <briang@apache.org>
Authored: Wed Jun 18 18:35:11 2014 -0700
Committer: Brian Geffon <briang@apache.org>
Committed: Wed Jun 18 18:35:11 2014 -0700

----------------------------------------------------------------------
 proxy/http/HttpConfig.h         | 2 +-
 proxy/http/HttpSM.cc            | 3 +++
 proxy/http/HttpServerSession.cc | 1 +
 3 files changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/9e93c0a8/proxy/http/HttpConfig.h
----------------------------------------------------------------------
diff --git a/proxy/http/HttpConfig.h b/proxy/http/HttpConfig.h
index e30257b..288e1e8 100644
--- a/proxy/http/HttpConfig.h
+++ b/proxy/http/HttpConfig.h
@@ -398,7 +398,7 @@ struct OverridableHttpConfigParams {
   OverridableHttpConfigParams()
     : maintain_pristine_host_hdr(1), chunking_enabled(1),
       negative_caching_enabled(0), negative_revalidating_enabled(0), cache_when_to_revalidate(0),
-      keep_alive_enabled_in(1), keep_alive_enabled_out(1), keep_alive_post_out(0),
+      keep_alive_enabled_in(1), keep_alive_enabled_out(1), keep_alive_post_out(1),
       server_session_sharing_match(TS_SERVER_SESSION_SHARING_MATCH_BOTH),
       server_session_sharing_pool(TS_SERVER_SESSION_SHARING_POOL_THREAD),
       fwd_proxy_auth_to_parent(0), insert_age_in_response(1),

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/9e93c0a8/proxy/http/HttpSM.cc
----------------------------------------------------------------------
diff --git a/proxy/http/HttpSM.cc b/proxy/http/HttpSM.cc
index 2302e5d..0cdbde2 100644
--- a/proxy/http/HttpSM.cc
+++ b/proxy/http/HttpSM.cc
@@ -3295,6 +3295,7 @@ HttpSM::tunnel_handler_post_ua(int event, HttpTunnelProducer * p)
     // Completed successfully
     if (t_state.txn_conf->keep_alive_post_out == 0) {
       // don't share the session if keep-alive for post is not on
+      DebugSM("http_ss", "Setting server session to private because of keep-alive post out");
       set_server_session_private(true);
     }
 
@@ -5536,6 +5537,7 @@ HttpSM::attach_server_session(HttpServerSession * s)
   }
 
   if (plugin_tunnel_type != HTTP_NO_PLUGIN_TUNNEL) {
+    DebugSM("http_ss", "Setting server session to private");
     server_session->private_session = true;
   }
 }
@@ -5582,6 +5584,7 @@ HttpSM::setup_server_send_request()
   if (t_state.hdr_info.server_request.presence(MIME_PRESENCE_AUTHORIZATION | MIME_PRESENCE_PROXY_AUTHORIZATION
 					       | MIME_PRESENCE_WWW_AUTHENTICATE)) {
       server_session->private_session = true;
+      DebugSM("http_ss", "Setting server session to private for authorization header");
   }
   milestones.server_begin_write = ink_get_hrtime();
   server_entry->write_vio = server_entry->vc->do_io_write(this, hdr_length, buf_start);

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/9e93c0a8/proxy/http/HttpServerSession.cc
----------------------------------------------------------------------
diff --git a/proxy/http/HttpServerSession.cc b/proxy/http/HttpServerSession.cc
index 2feeeb6..78dc06c 100644
--- a/proxy/http/HttpServerSession.cc
+++ b/proxy/http/HttpServerSession.cc
@@ -162,6 +162,7 @@ HttpServerSession::reenable(VIO *vio)
 void
 HttpServerSession::release()
 {
+  Debug("http_ss", "Releasing session, private_session=%d, sharing_match=%d", private_session,
sharing_match);
   // Set our state to KA for stat issues
   state = HSS_KA_SHARED;
 


Mime
View raw message