module init hook

Cal Heldenbrand cal at fbsdata.com
Wed Jan 6 16:45:28 CET 2010


Hello,

Is there a good method to load my module in the main varnishd thread?
Currently I'm just adding some inline code to vcl_recv to open up my shared
lib and call dlsym() to load my functions.  Looking at the compiled VCL
code, is it possible to inject something in VGC_Init()?  And, would that
load my module once on startup, then still be available to each handler
thread?

Thanks!

--Cal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20100106/29bd1c16/attachment-0002.html>


More information about the varnish-dev mailing list