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
strange bug with start_subscribe #13
Comments
May be not a bug. It's just random on my project and I don't know what to do. It just doesn't receive messages from redis-cli, or receives it with incorrect order of message and channel :-/ |
Hi tumb1er. Can you somehow send me your code by mail? I can't reproduce it here... Normally, the coroutine decorator shouldn't hurt. If so, it's definitely a bug in asyncio and in that case it would be really nice if we know the reason before the release of Python 3.4. |
Fixed it. It was asyncio==0.3.1.
instead of
Very strange bug... Sergey |
It should be a bug that's recently introduced into asyncio... |
Fixed in ab03a5a Can you try again? |
Hello!
Just got some strange bug with PUB/SUB code:
In coroutine I have:
In my case all stops after yielding from redis.start_subscribe() - reactor just don't return pubsub object. But! It only happens on second script launch (after
__pycache__
dir filled with compiled code). And if I remove this directory, all works fine again until next launch.As a workaround, I replaced first yield with:
and all works without magic.
So, my proposal is to remove unnecessary @asyncio.coroutine decorator from start_subscribe and propose to use it like a synchronous method.
Sergey.
The text was updated successfully, but these errors were encountered: