Repository: trafficserver
Updated Branches:
  refs/heads/master 6653a9856 -> 35f787284


TS-2879: Remap errors and redirects should 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/25d8a15c
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/25d8a15c
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/25d8a15c

Branch: refs/heads/master
Commit: 25d8a15cc3066bd74182606a440f4122fd1e99ed
Parents: 6653a98
Author: Brian Geffon <[email protected]>
Authored: Thu Jun 5 12:26:29 2014 -0700
Committer: Brian Geffon <[email protected]>
Committed: Thu Jun 5 12:26:29 2014 -0700

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


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/25d8a15c/proxy/http/HttpTransact.cc
----------------------------------------------------------------------
diff --git a/proxy/http/HttpTransact.cc b/proxy/http/HttpTransact.cc
index 7d028f8..08f4146 100644
--- a/proxy/http/HttpTransact.cc
+++ b/proxy/http/HttpTransact.cc
@@ -967,6 +967,8 @@ done:
     otherwise, 502/404 the request right now. /eric
   */
   if (!s->reverse_proxy && s->state_machine->plugin_tunnel_type == 
HTTP_NO_PLUGIN_TUNNEL) {
+    // TS-2879: Let's initialize the state variables so the connection can be 
kept alive.
+    initialize_state_variables_from_request(s, &s->hdr_info.client_request);
     DebugTxn("http_trans", "END HttpTransact::EndRemapRequest");
     HTTP_INCREMENT_TRANS_STAT(http_invalid_client_requests_stat);
     TRANSACT_RETURN(SM_ACTION_SEND_ERROR_CACHE_NOOP, NULL);

Reply via email to