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

Alan M. Carroll closed TS-2712.
-------------------------------

    Resolution: Not a Problem

> 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
>             Fix For: 5.0.0
>
>
> 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)

Reply via email to