> Hi,
>
> I did use thread in my WSGI application, and I found that they doesn't
> work
> with uWSGI. It took my whole day to debug, and I eventually found that
> enable-thread doesn't work with master.
> I think this should be a bug, therefore, I posted a ticket here:
>
> http://projects.unbit.it/uwsgi/ticket/25
>
> Is there any way to workaround this problem in this moment?
Spawn the threads in a worker (the first one) using the post_fork_hook system
def spawn_my_threads():
if uwsgi.worker_id() == 1:
....
uwsgi.post_fork_hook = spawn_my_threads
>
> Thanks.
> Victor Lin.
> _______________________________________________
> uWSGI mailing list
> [email protected]
> http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
>
--
Roberto De Ioris
http://unbit.it
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi