Closed belm0 closed 6 years ago
It looks like you're starting handle_connection
in the background, and then immediately closing the connection and cancelling it?
Yes, thank you-- this confusion resulted from observed behavior of open_websocket_url context manager hanging when I was using an older wsproto.
Intended to fix #22.
It does handle the connection close cases fine. However it somehow breaks normal communication. Before this change, here is server-side log from "send foo":
With this change, the server gets the bytes but appears to not recognize the end of the message, so never reponds: