Welcome! Log In Create A New Profile

Advanced

Guidance developing dynamic modules which load shared libraries

Joshua O'Sullivan
August 23, 2024 05:50AM
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
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

Guidance developing dynamic modules which load shared libraries

Joshua O'Sullivan 168 August 23, 2024 05:50AM

Re: Guidance developing dynamic modules which load shared libraries

Roman Arutyunyan 33 August 26, 2024 07:36AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 163
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready