TS-3439: Chunked responses don't honor keep-alive

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

Branch: refs/heads/5.2.x
Commit: 32b46b94d0c78bbebbcddf86493efb84b8d868a8
Parents: 4222257
Author: Brian Geffon <[email protected]>
Authored: Fri Mar 13 15:52:06 2015 -0700
Committer: Leif Hedstrom <[email protected]>
Committed: Mon Mar 16 09:35:15 2015 -0600

----------------------------------------------------------------------
 proxy/http/HttpSM.cc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/32b46b94/proxy/http/HttpSM.cc
----------------------------------------------------------------------
diff --git a/proxy/http/HttpSM.cc b/proxy/http/HttpSM.cc
index f7ad2ce..1c83409 100644
--- a/proxy/http/HttpSM.cc
+++ b/proxy/http/HttpSM.cc
@@ -2877,7 +2877,8 @@ HttpSM::tunnel_handler_server(int event, 
HttpTunnelProducer * p)
   bool close_connection = false;
 
   if (t_state.current.server->keep_alive == HTTP_KEEPALIVE &&
-      server_entry->eos == false && plugin_tunnel_type == 
HTTP_NO_PLUGIN_TUNNEL) {
+      server_entry->eos == false && plugin_tunnel_type == 
HTTP_NO_PLUGIN_TUNNEL &&
+      t_state.txn_conf->keep_alive_enabled_out == 1) {
     close_connection = false;
   } else {
     close_connection = true;

Reply via email to