-
-
Couldn't load subscription status.
- Fork 570
Closed
Labels
Description
I have a client program that occasionally receives an AssertionError. This occurs with both websockets 7.0 and websockets 8.0. Following is the stack trace for the latter version:
Traceback (most recent call last):
File <snip>, line 34, in connect
async for message in websocket:
File "/usr/local/lib/python3.6/dist-packages/websockets/protocol.py", line 414, in __aiter__
yield await self.recv()
File "/usr/local/lib/python3.6/dist-packages/websockets/protocol.py", line 482, in recv
assert self.state in [State.CLOSING, State.CLOSED]
AssertionError
When this occurs, self.state equals State.OPEN and self.messages equals zero. There does not appear to be any relationship between the occurrence of this AssertionError and the rate of messages received (i.e., it has occurred during times of both light and heavy message traffic).