"Roberto De Ioris" <[email protected]> wrote on Wed Mar 28 2012 at 20:25:02:
>
> Hi, can you report your vassal config ?
Here's the vassal config (app.ini):
-snip-
[uwsgi]
socket = 127.0.0.1:3031
threads = 40
processes = 5
master = 1
module = app
-snip-
And here's app.py:
-snip-
import uwsgi
def handler(sig):
pass
signum = 123
uwsgi.register_signal(signum, "worker", handler)
uwsgi.add_timer(signum, 1)
def application(environ, start_response):
status = '200 OK'
response_headers = [('Content-type','text/plain')]
start_response(status, response_headers)
return ['Hello world!\n']
-snip-
I run it like this: uwsgi --emperor $PWD
Workers start screaming pretty much instantly after start.
-- robert
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi