Github user sudheerv commented on the pull request:
https://github.com/apache/trafficserver/pull/443#issuecomment-178064049
Agree - I don't particularly like caching these either, given that there's
no guarantee offered (by the TS API) on the scope of these (the C plugins
typically acquire/release these handles within the same scope/hook).
Removing them altogether probably requires more effort, especially, if
there are existing plugins that rely on them and can cause compatibility
issues. I'll open a new jira (for 7.0?) to remove these completely, but, in the
mean time, re-initing at each hook seems reasonable to avoid holding to stale
references?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---