You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by sh...@apache.org on 2015/08/24 21:22:02 UTC

trafficserver git commit: TS-3777: Fix regression test error.

Repository: trafficserver
Updated Branches:
  refs/heads/master 1c81f16c9 -> 1dd52052a


TS-3777: Fix regression test error.


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

Branch: refs/heads/master
Commit: 1dd52052a572fcb874c4caf0dbc89d88d3d2e586
Parents: 1c81f16
Author: shinrich <sh...@yahoo-inc.com>
Authored: Mon Aug 24 14:21:00 2015 -0500
Committer: shinrich <sh...@yahoo-inc.com>
Committed: Mon Aug 24 14:21:00 2015 -0500

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


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/1dd52052/proxy/http/HttpTransact.cc
----------------------------------------------------------------------
diff --git a/proxy/http/HttpTransact.cc b/proxy/http/HttpTransact.cc
index b2e75ca..c51dd31 100644
--- a/proxy/http/HttpTransact.cc
+++ b/proxy/http/HttpTransact.cc
@@ -5584,7 +5584,10 @@ HttpTransact::initialize_state_variables_from_request(State *s, HTTPHdr *obsolet
   }
 
   // If this is an internal request, never keep alive
-  NetVConnection *vc = s->state_machine->ua_session->get_netvc();
+  NetVConnection *vc = NULL;
+  if (s->state_machine->ua_session) {
+    vc = s->state_machine->ua_session->get_netvc();
+  }
   if (!s->txn_conf->keep_alive_enabled_in || (vc && vc->get_is_internal_request())) {
     s->client_info.keep_alive = HTTP_NO_KEEPALIVE;
   } else {