trio-websocket
trio-websocket copied to clipboard
Debugging connection closed on 1006
I've got a client of an internal tool who runs into ABNORMAL_CLOSURE / code=1006; and it's providing difficult to reproduce other than on his machine.
The debug log pattern is:
- Connect to websocket
- Log prints "sending 322 bytes"
- Connection closed
- Reader task finished.
I'll continue to investigate, but it would be very useful if we could eliminate any reason-lacking 1006 codes; for example knowing if it's a broken resource error vs. a client bug.