> Hi all,
>
> I have just started looking at uwsgi for websockets and was interested
> in using async.  I ran the test from:
>
> https://github.com/unbit/uwsgi/blob/master/tests/websockets_chat_async.py
>
> And it deadlocks in PyThread_acquire_lock as soon as a second browser
> window opens.
>
> Is this the expected behaviour when running async and threads?
>
> Thanks,
> --
> Michael Graham <[email protected]>
>
>
> _______________________________________________
>


threads is an option taking the number of threads to spawn.

Very probably you want --enable-threads that will enable the GIL.

Take in account that the async api is very low-level, gevent is way more
soldi, supported and "common". On the other side if you plan to use
threads, gevent is out.


-- 
Roberto De Ioris
http://unbit.com
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to