Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WS] Detect disconnection due to protocol errors
When wslay receives a message that is too big or cause a protocol error, it automatically sends a close request to the remote peer but it also completely stop calling the receive callback resulting in the state being "stuck" as CONNECTED (even if both client and server have disconnected). We now check if we sent a close message and reading has been disabled to manually transition to the "closed" state with the proper reason.
- Loading branch information