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

Message callbacks should be called in the main thread #22

Open
aalex opened this issue Dec 14, 2014 · 1 comment
Open

Message callbacks should be called in the main thread #22

aalex opened this issue Dec 14, 2014 · 1 comment

Comments

@aalex
Copy link

aalex commented Dec 14, 2014

When we receive some data, the callback is called in the web socket channel's thread. It can lead to serious issues when mixed with other non thread-safe calls.

@aalex
Copy link
Author

aalex commented Jan 27, 2015

I had severe issues when using this library within a Twisted project. I tried to handle this non-thread-safe code like this: http://twistedmatrix.com/documents/current/core/howto/threading.html - but it didn't quite work.

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