trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r1236723 - in /trafficserver/traffic/trunk: CHANGES proxy/InkAPI.cc proxy/api/ts/ts.h.in
Date Fri, 27 Jan 2012 15:51:27 GMT
Author: amc
Date: Fri Jan 27 15:51:27 2012
New Revision: 1236723

URL: http://svn.apache.org/viewvc?rev=1236723&view=rev
Log:
TS-1088: Add TSHttpTxnOutgoingTransparencySet to API.

Modified:
    trafficserver/traffic/trunk/CHANGES
    trafficserver/traffic/trunk/proxy/InkAPI.cc
    trafficserver/traffic/trunk/proxy/api/ts/ts.h.in

Modified: trafficserver/traffic/trunk/CHANGES
URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/CHANGES?rev=1236723&r1=1236722&r2=1236723&view=diff
==============================================================================
--- trafficserver/traffic/trunk/CHANGES (original)
+++ trafficserver/traffic/trunk/CHANGES Fri Jan 27 15:51:27 2012
@@ -1,6 +1,9 @@
                                                          -*- coding: utf-8 -*-
 Changes with Apache Traffic Server 3.1.2
 
+  *) [TS-1088] Added TSHttpTxnOutgoingTransparencySet to API to
+   control outbound transparency.
+
   *) [TS-1083] Initial SSL next protocol negotiation support.
 
   *) [TS-1082] Obey existing optimizer CXXFLAGS and CFLAGS at configure time.

Modified: trafficserver/traffic/trunk/proxy/InkAPI.cc
URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/proxy/InkAPI.cc?rev=1236723&r1=1236722&r2=1236723&view=diff
==============================================================================
--- trafficserver/traffic/trunk/proxy/InkAPI.cc (original)
+++ trafficserver/traffic/trunk/proxy/InkAPI.cc Fri Jan 27 15:51:27 2012
@@ -5384,6 +5384,20 @@ TSHttpTxnNextHopPortGet(TSHttpTxn txnp)
   return port;
 }
 
+TSReturnCode
+TSHttpTxnOutgoingTransparencySet(TSHttpTxn txnp, bool flag)
+{
+  if (TS_SUCCESS != sdk_sanity_check_txn(txnp)) return TS_ERROR;
+
+# if ! TS_USE_TPROXY
+  if (flag) return TS_ERROR; // can't enable if it's not configured.
+# endif
+
+  HttpSM *sm = reinterpret_cast<HttpSM*>(txnp);
+  sm->ua_session->f_outbound_transparent = flag;
+  return TS_SUCCESS;
+}
+
 
 void
 TSHttpTxnErrorBodySet(TSHttpTxn txnp, char *buf, int buflength, char *mimetype)

Modified: trafficserver/traffic/trunk/proxy/api/ts/ts.h.in
URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/proxy/api/ts/ts.h.in?rev=1236723&r1=1236722&r2=1236723&view=diff
==============================================================================
--- trafficserver/traffic/trunk/proxy/api/ts/ts.h.in (original)
+++ trafficserver/traffic/trunk/proxy/api/ts/ts.h.in Fri Jan 27 15:51:27 2012
@@ -2243,6 +2243,7 @@ extern "C"
 
   tsapi TSReturnCode TSHttpTxnClientFdGet(TSHttpTxn txnp, int* fdp);
   tsapi TSReturnCode TSHttpTxnOutgoingAddrSet(TSHttpTxn txnp, struct sockaddr const* addr);
+  tsapi TSReturnCode TSHttpTxnOutgoingTransparencySet(TSHttpTxn txnp, bool flag);
 
   /* TS-1008: the above TXN calls for the Client conn should work with SSN */
   tsapi struct sockaddr const* TSHttpSsnClientAddrGet(TSHttpSsn ssnp);



Mime
View raw message