diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2024-10-07 02:01:03 +0200 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2024-11-04 11:20:30 +0100 |
commit | 6cdfc8c9fe1e785d11c56770004a3d58e4188d21 (patch) | |
tree | 524aaff2478be5ed4dbeba2c1b20aede17bef6bf /modules/openxr/openxr_api_extension.h | |
parent | 1bffd6c73b44b85e5889f54e14b2193940cf5bb1 (diff) | |
download | redot-engine-6cdfc8c9fe1e785d11c56770004a3d58e4188d21.tar.gz |
[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.
Diffstat (limited to 'modules/openxr/openxr_api_extension.h')
0 files changed, 0 insertions, 0 deletions