Re: [uWSGI] uwsgictl

2017-12-24 Thread Etienne Robillard
Hi, There's several issues I expect attempting to develop this: 1. libuwsgictl : Not sure if the libuwsgi.so shared library really can be useful to develop a FIFO communication channel. 2. I have no idea how to make sure a local "uwsgi" object will be imported interactively when "uwsgictl

Re: [uWSGI] uwsgictl

2017-12-21 Thread Etienne Robillard
Le 2017-12-21 à 09:17, Roberto De Ioris a écrit : You can build libuwsgi.so by using this profile https://github.com/unbit/uwsgi/blob/master/buildconf/lib.ini Thats very cool. Ok, fine. Here's what I want to do: In file libuwsgictl.pyx: import libuwsgi # Import uWSGI shared library

Re: [uWSGI] uwsgictl

2017-12-21 Thread Roberto De Ioris
> Hi Roberto, > > Is there a uWSGI shared library accessible ? I would like to use Cython > and extend uWSGI to dispatch commands via the master FIFO to the uWSGI > workers. > > Regards, > > Etienne > > You can build libuwsgi.so by using this profile

Re: [uWSGI] uwsgictl

2017-12-21 Thread Etienne Robillard
Hi Roberto, Is there a uWSGI shared library accessible ? I would like to use Cython and extend uWSGI to dispatch commands via the master FIFO to the uWSGI workers. Regards, Etienne Le 2017-12-21 à 06:03, Roberto De Ioris a écrit : Hi Roberto, Is it possible to access the master FIFO in

Re: [uWSGI] uwsgictl

2017-12-21 Thread Roberto De Ioris
> Hi Roberto, > > Is it possible to access the master FIFO in Python to get a custom > Python interactive interpreter and the "uwsgi" module ? The uwsgi module is available only for code running into uWSGI itself so i do not think is a viable approach. Maybe a master plugin (to write in c/c++)

Re: [uWSGI] uwsgictl

2017-12-20 Thread Etienne Robillard
Hi Roberto, Is it possible to access the master FIFO in Python to get a custom Python interactive interpreter and the "uwsgi" module ? If not, I would like to implement this for uwsgictl. I use uWSGI version 2.0.15 and Python 2.7.13. Lastly, I would like to make the code compatible with

Re: [uWSGI] uwsgictl

2017-12-19 Thread Roberto De Ioris
> Hi all, > > I'm planning to write a script in Python to allow controlling the master > uWSGI process and would like to get some input before attempting to code > this. > > First, I'm struggling to safely start, stop and restart the master uWSGI > process when multiple workers/threads are used.

[uWSGI] uwsgictl

2017-12-19 Thread Etienne Robillard
Hi all, I'm planning to write a script in Python to allow controlling the master uWSGI process and would like to get some input before attempting to code this. First, I'm struggling to safely start, stop and restart the master uWSGI process when multiple workers/threads are used. Thus, a