Open fried-sausage opened 6 years ago
When using geventclient from ws4py as shown in tutorial, it blocks and doesn't let other greenlets to run. Tutorial example: https://ws4py.readthedocs.io/en/latest/sources/clienttutorial/#gevent Test to reproduce issue: https://gist.github.com/fried-sausage/0c645be0677359d70f72024b1d7a3e9b mad_printer never gets a chance to run. The solution for me was to add gevent.monkey.patch_all(). It is never mentioned in tutorial that user should monkey patch, however.
mad_printer
gevent.monkey.patch_all()
When using geventclient from ws4py as shown in tutorial, it blocks and doesn't let other greenlets to run. Tutorial example: https://ws4py.readthedocs.io/en/latest/sources/clienttutorial/#gevent Test to reproduce issue: https://gist.github.com/fried-sausage/0c645be0677359d70f72024b1d7a3e9b
mad_printer
never gets a chance to run. The solution for me was to addgevent.monkey.patch_all()
. It is never mentioned in tutorial that user should monkey patch, however.