trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bri...@apache.org
Subject trafficserver git commit: TS-4016: atscppapi Add the ability to skip the remap phase of the SM
Date Thu, 12 Nov 2015 12:49:14 GMT
Repository: trafficserver
Updated Branches:
  refs/heads/master e5fed4006 -> 906d45ac0


TS-4016: atscppapi Add the ability to skip the remap phase of the SM


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

Branch: refs/heads/master
Commit: 906d45ac0715c6f1e9c931ca476e9875234cfc41
Parents: e5fed40
Author: Boaz Reicher <boazr@yahoo-inc.com>
Authored: Thu Nov 12 04:48:47 2015 -0800
Committer: Brian Geffon <briang@apache.org>
Committed: Thu Nov 12 04:48:47 2015 -0800

----------------------------------------------------------------------
 lib/atscppapi/src/Transaction.cc                  | 6 ++++++
 lib/atscppapi/src/include/atscppapi/Transaction.h | 6 ++++++
 2 files changed, 12 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/906d45ac/lib/atscppapi/src/Transaction.cc
----------------------------------------------------------------------
diff --git a/lib/atscppapi/src/Transaction.cc b/lib/atscppapi/src/Transaction.cc
index 30b2806..b9396ef 100644
--- a/lib/atscppapi/src/Transaction.cc
+++ b/lib/atscppapi/src/Transaction.cc
@@ -288,6 +288,12 @@ Transaction::setCacheUrl(const string &cache_url)
   return (res == TS_SUCCESS);
 }
 
+void
+Transaction::setSkipRemapping(int flag)
+{
+  TSSkipRemappingSet(state_->txn_, flag);
+}
+
 const sockaddr *
 Transaction::getIncomingAddress() const
 {

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/906d45ac/lib/atscppapi/src/include/atscppapi/Transaction.h
----------------------------------------------------------------------
diff --git a/lib/atscppapi/src/include/atscppapi/Transaction.h b/lib/atscppapi/src/include/atscppapi/Transaction.h
index 805807b..02b3397 100644
--- a/lib/atscppapi/src/include/atscppapi/Transaction.h
+++ b/lib/atscppapi/src/include/atscppapi/Transaction.h
@@ -251,6 +251,12 @@ public:
   bool setCacheUrl(const std::string &);
 
   /**
+   * Ability to skip the remap phase of the State Machine
+   * This only really makes sense in TS_HTTP_READ_REQUEST_HDR_HOOK
+   */
+  void setSkipRemapping(int);
+
+  /**
    * The available types of timeouts you can set on a Transaction.
    */
   enum TimeoutType {


Mime
View raw message