advice on module design

Manlio Perillo manlio.perillo at gmail.com
Sat Mar 27 21:59:22 MSK 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Peter Leonov ha scritto:
> Hi Manilo,
> 

Its Manlio ;-)

> On 27.03.2010, at 0:07, Manlio Perillo <manlio.perillo at 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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkuuVYoACgkQscQJ24LbaURgvgCeNP+0ubDLMTPNjKAMFAxv7FsW
kYYAnidma/hWk2DiaoEBBamBw8hPp3vc
=oFvC
-----END PGP SIGNATURE-----



More information about the nginx-devel mailing list