Welcome! Log In Create A New Profile


Re: advice on module design

Manlio Perillo
March 27, 2010 03:00PM
Hash: SHA1

Peter Leonov ha scritto:
> Hi Manilo,

Its Manlio ;-)

> On 27.03.2010, at 0:07, Manlio Perillo <manlio.perillo@gmail.com> wrote:
> Hi.
> As I wrote in a previous message, in an effort to improve the WSGI
> module, I have moved Python support to a separate module:
> http://hg.mperillo.ath.cx/nginx/ngx_python_module
> When the module is included in Nginx, the Python interpreter will be
> initialized unconditionally.
> [...]
> What is the best solution?
>> In ngx_http_js_module it works like the second variant, which is copied
>> from ngx_http_perl_module. Some code that knows about blablabla module
>> calls ngx_blablabla_init_interpreter() at the exact moment it going to
>> do something blablabla-related ;)

Note that Python interpreter state is global.

This is the reason why I moved Python initialization to a separate Nginx
core module.

> [...]

Thanks Manlio
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org


nginx-devel mailing list
Subject Author Views Posted

advice on module design

Manlio Perillo 2098 March 26, 2010 05:08PM

Re: advice on module design

Peter Leonov 816 March 27, 2010 07:42AM

Re: advice on module design

Manlio Perillo 827 March 27, 2010 03:00PM

Re: advice on module design

Peter Leonov 1136 March 28, 2010 07:14AM

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

Online Users

Guests: 61
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