-
Notifications
You must be signed in to change notification settings - Fork 9
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
Session push hangs on reconnect #17
Comments
Hi! |
Forgot to mention: I decided to throw an exception if this situation occurs, hope that is ok, because I think it's the most viable thing. |
I've tested and it's work as expected. With an error thrown on connection lost I can handle the error and resubscribe to pushes. What about moving async with asynctnt.Connection(port=3301) as conn:
async for msg in conn.subscribe("infinite_push_loop"):
print(msg) So that there is no need to create iterator from a result of |
I'll release soon v1.2 with the fix. |
After
asynctnt
reconnected to Tarantool,PushIterator
is blocked forever on waitingasyncio.Event
.The only solution I've come up with is constantly check id of
connection._transport
and once it's changed recreatePushIterator
, eg:init.lua
push.lua
asynctnt client
Any thoughts on this?
The text was updated successfully, but these errors were encountered: