-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Not all connections are closed (pending: 0) #523
Labels
Comments
Maybe because your web handlers are not finished in 1 second? |
Thank you for your explanation - now I see that it just right way to close websockets prior to server manually. |
Let's close the issue than |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I've receive very strange error message during usual closing connection:
loop.run_until_complete(handler.finish_connections(1.0))
like:
Can you advise how is this possible?
I've checked RequestHandlerFactory.finish_connections method and found that inside cleanup() coroutine method self._connections still exists:
But at except statement - not:
I cannot say more because I not very familiar with asyncio at this moment. But I hope this will help you someway.
I use Python 3.5.0 and pyenv. And default WebSocketResponse the same as from tutorial.
If this bug is unreasonable please sorry but I don't know another place to report it and it my first bug report.
UPD: It seems if change
timeout90 = timeout / 100 * 90
to lower one, for exampletimeout90 = timeout / 100 * 70
all works fine.The text was updated successfully, but these errors were encountered: