Welcome! Log In Create A New Profile


Re: RFC for Compiling Nginx as a Library

Sinan Kaya
June 11, 2019 11:26PM
On 6/3/2019 12:04 PM, Sinan Kaya wrote:
> Hi,
> I have been using Nginx as a static library to embed into my application
> for some time.
> I'm interested in upstreaming the patches.
> I wanted to ask if there would be any interest in merging this feature.
> Sinan

I couldn't locate Maxim Dounin email but let me reply here with issues
that we have seen during testing.

There are two issues that we hit so far.

The first issue is about wait(-1) in nginx code. It prevents nginx
modules to use fork() API directly to do some external work.

I was wondering if we could replace wait(-1) with an actual list of
worker process PIDs.

The second issue that we hit is about timer_create(). Again, we are
unable to call timer_create() in our nginx module. Would it be possible
to relieve some of the nginx API enforcement.

I understand the desire to use nginx API in general but if someone
is porting an exiting code to nginx, they will most probably use POSIX
API for existing code.
nginx-devel mailing list
Subject Author Views Posted

RFC for Compiling Nginx as a Library

Sinan Kaya 165 June 03, 2019 12:06PM

Re: RFC for Compiling Nginx as a Library

Maxim Dounin 67 June 03, 2019 01:42PM

Re: RFC for Compiling Nginx as a Library

Sinan Kaya 72 June 11, 2019 11:26PM

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

Online Users

Guests: 74
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready