advice on module design
manlio.perillo at gmail.com
Sat Mar 27 21:59:22 MSK 2010
-----BEGIN PGP SIGNED MESSAGE-----
Peter Leonov ha scritto:
> Hi Manilo,
Its Manlio ;-)
> On 27.03.2010, at 0:07, Manlio Perillo <manlio.perillo at gmail.com> wrote:
> As I wrote in a previous message, in an effort to improve the WSGI
> module, I have moved Python support to a separate 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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the nginx-devel