Hi all,

It is common to write protocol plugins that accept a non-HTTP protocol and 
generate HTTP request using TSHttpConnectWithPluginId(). In this case, although 
the HTTP transaction is technically an internal transaction, it is logically 
external since it is generated directly on behalf of clients. To address this, 
I'd like to propose an API to allow plugins to toggle whether a transaction is 
considered internal or not.

        tsapi void TSVConnInternalSet(TSVConn connp, int internal);

The sample usage is straightforward:

        TSVConn vc = TSHttpConnectWithPluginId(addr, "plugin-name", 0);
        TSVConnInternalSet(vc, false);

The corresponding implementation is 
https://github.com/apache/trafficserver/pull/986 and the Jira ticket is 
https://issues.apache.org/jira/browse/TS-4825. I'll add a manual page before 
committing.

thanks,
James

Reply via email to