-
Notifications
You must be signed in to change notification settings - Fork 61
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
Incomplete read error when closing connection #32
Comments
That is aiormq 2.4 but I get the same traceback on 2.5. |
I use |
Yes! It's normal in case TCP connection problems. This exception means unexpected connection close while reading frame header. |
Thanks. I guess it can be closed. |
So calling connection.close() will produce error messages on Here is a repro that causes this error message. repro.py
Dockerfile
docker-compose.yml
This produces the following error:
(As well as some other asyncio related warnings). |
Here is a branch that fixes all these warnings. |
@talwrii, did you intend to create a branch that fixes this? I also see these warnings in my code and wondering if the correct solution is to avoid them instead of ignoring them. |
@sepetnit Whoops. Yep, think I got distracted here's a pull request: #86 Not sure this is a nice approach, I set a flag when shutdown beings and then don't print this message (this is not "ignoring" the problem as such - that error messages means tha the connection has closed so it's expected behaviour) There were aslo some bugs during shutdown that this branch fixes. |
I'm getting the following traceback when stopping my connection:
I'm pretty much calling
channel.close()
and thenconnection.close()
before stopping and closing the loop. Shouldn't it close without an error?The text was updated successfully, but these errors were encountered: