-
Notifications
You must be signed in to change notification settings - Fork 33
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
None is passed to Client.listen callback instead of brukva.client.Message instance #10
Comments
Hmm, this may be because I don't unsubscribe before disconnecting. The bad thing is that exception occurred in Client.listen callback was printed to stderr and ignored so I haven't noticed it immediately:
|
I'm still getting None as a message sometimes (with latest master):
Don't know if it is a bug: pub/sub seems to work otherwise. Can you share some knowledge about what the problem may be? State (maybe it will help):
|
Btw,
always seems scary (as well as ExecutionContext.enable and ExecutionContext.disable) because is_active can become incorrect if exception in _call_callbacks occurs and it is not clear how this is handled. Though I've checked the code when 'enable' and 'disable' methods were introduced and they were applied carefully, with all edge cases handled. |
Sorry, i can't reproduce. Could you try 85c67d9fe and show logs for additional info. |
Yes, sure. Thanks for moving things forward! It now produces this:
|
I'm confused by (type_=GeneratorExit, value==None) in ExecutionContext.exit . And why None is not replaced with Exception?!:
Can't come up with test case to reproduce this. Could you extract example from your project? |
[E 111211 10:54:35 client:49] None Seems like this issue still holds. Here is scenerio for to reproduce it. Make a long polling for a while but if cilent move to idle state brukva fire this exception.
|
I got this problem again.
Stack trace from ipdb's 'bt' command:
The text was updated successfully, but these errors were encountered: