-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
Server does not automatically close TCP connection #115
Comments
I am receiving cases of hung CLOSE_WAIT as well. |
I suspect this bug correlates to the test suite failures reported in #147 |
So... if I add But I don't know if this change is correct. |
I found that Furthermore, corroborating the RFC cited in the original comment, the tests only seem to require closing the TCP stream on connection closed for the server case. |
I'm wondering if this early return in WebSocketConnection Because if I disable that, then the remainder of the function includes a |
(The fact that the issue doesn't come up with the trio-websocket client, while it does with asyncio and autobahn clients, implies that our client is cheating and closing down its end right after sending a CloseConnection event.) |
The RFC says:
This doesn't always happen. I noticed this while testing a trio-websocket server with an asyncio websockets client. After doing the WebSocket closing handshake, the client times out after 10 seconds waiting for the server to close the connection.
The server code:
The client code:
And a relevant section of the client's logs:
This is tangled up with #90 a bit but is a bit more urgent for me personally because I'm now using a trio websocket server with an asyncio client.
The text was updated successfully, but these errors were encountered: