You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Leif Hedstrom (JIRA)" <ji...@apache.org> on 2014/06/07 00:10:03 UTC

[jira] [Updated] (TS-2712) Add registration for transaction user args

     [ https://issues.apache.org/jira/browse/TS-2712?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Leif Hedstrom updated TS-2712:
------------------------------

    Fix Version/s:     (was: 5.0.0)

> Add registration for transaction user args
> ------------------------------------------
>
>                 Key: TS-2712
>                 URL: https://issues.apache.org/jira/browse/TS-2712
>             Project: Traffic Server
>          Issue Type: Improvement
>          Components: TS API
>            Reporter: Alan M. Carroll
>              Labels: spring-2014-summit, summit
>
> Currently transaction args indices are used blindly because there is no way to coordinate between plugins on such use. We should add an API that allocates the transaction user arg indices for plugins.
> {code}
> int TSHttpTxnUserArgAllocate(char const* tag);
> {code}
> This would convert a string in to an index for the user args. If the string is already registered the same value would be returned as for previous calls with that string. If the string is not already registered a different value would be returned. If there are no more values available (i.e. the next value would be larger than the maximum user arg index) an error message would be generated and then the process terminated via ink_release_assert.
> As an implementation note we will use a global table of strings of the same length as the user args. The call would simply search the list and if it finds the tag, that index is returned, otherwise when it reaches an empty entry that is used for the tag and that index returned. If the search falls off the end that is the failure condition.



--
This message was sent by Atlassian JIRA
(v6.2#6252)