Guidance developing dynamic modules which load shared libraries
Joshua O'Sullivan
joshua at firetail.io
Fri Aug 23 09:48:48 UTC 2024
Hey everyone,
We're currently developing a dynamic module which itself loads another
shared library, which we've written in Golang. It seems to be a bit off the
beaten track - I can't find any guidance in the documentation pertaining to
loading shared libraries in dynamic modules, and there's only one example
in the wild I can find of this being attempted before -
https://github.com/robinmonjo/ngx_http_l?tab=readme-ov-file#issues-encountered
.
We've got a proof-of-concept, however we're struggling with where to store
the shared library - keeping it in the main configuration seems to make
sense, but calls to `dlopen` in our create or init main configuration
functions seem to cause NGINX to hang when it handles requests. We're
currently using version 1.24.0.
Thanks,
Joshua O'Sullivan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20240823/261df561/attachment.htm>
More information about the nginx-devel
mailing list