Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

example from client tutorial doesn't work #242

Open
fried-sausage opened this issue Mar 13, 2018 · 0 comments
Open

example from client tutorial doesn't work #242

fried-sausage opened this issue Mar 13, 2018 · 0 comments

Comments

@fried-sausage
Copy link

fried-sausage commented Mar 13, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant