Manlio Perillo
March 27, 2010 03:00PM
-----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@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-----

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

advice on module design

Manlio Perillo 2426 March 26, 2010 05:08PM

Re: advice on module design

Peter Leonov 962 March 27, 2010 07:42AM

Re: advice on module design

Manlio Perillo 970 March 27, 2010 03:00PM

Re: advice on module design

Peter Leonov 1332 March 28, 2010 07:14AM



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

Online Users

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