Would this be a new config file? Or an addition to some existing config? I 
guess this feature would also be useful when different plugins needs the same 
shared library? If so, would it be most intuitive to add it somehow to 
plugin.config, so these dependencies are all in one place?

-- Leif 

On Sep 23, 2011, at 8:05 AM, Nick Kew <n...@apache.org> wrote:

> 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