I'm having some serious problems loading a plugin.

The plugin loads additional dynamic modules of its own.
This fails because the plugin's modules cannot see the
symbols exported by a library linked.

Explicitly dlopening the library fixes that problem,
but leaves the library loaded twice.  The result of
this is that static variables are uninitialised
when accessed from the plugin's modules.

HTTPD has none of those problems.  The key feature HTTPD
has that trafficserver lacks is the LoadFile directive
that loads a library with RTLD_GLOBAL and without any
kind of module initialisation (like traffiserver's
TSPluginInit).

I'd like to add an equivalent function and directive
to trafficserver.  Any comments and/or objections?


-- 
Nick Kew

Reply via email to