> On Apr 25, 2016, at 7:21 PM, Karthik Sivaraman <karthiksivara...@outlook.com> 
> wrote:
> 
> Hi
> 
> 
> I want to share a hash table among two plug-ins. I know that TSHttpTxnArgSet 
> can share transaction specific data among plugins but want to know if thats 
> the recommended way.

Yeah, that is exactly what those slots are for. Within a plugin, you have other 
options to share data, but across plugins, this is the best way. Make sure you 
register that slot with a reasonable name, and then lookup on the same name 
from both plugins to make sure both plugins are using the same slot.

Also, the number of slots is static (16 if I recall), so you should use them 
only when there are no other options (this sounds like a legitimate use case 
though).

— leif

Reply via email to