summaryrefslogtreecommitdiffstats
path: root/modules/mono/utils/path_utils.cpp
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2024-10-07 02:01:03 +0200
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2024-11-04 11:20:30 +0100
commit6cdfc8c9fe1e785d11c56770004a3d58e4188d21 (patch)
tree524aaff2478be5ed4dbeba2c1b20aede17bef6bf /modules/mono/utils/path_utils.cpp
parent1bffd6c73b44b85e5889f54e14b2193940cf5bb1 (diff)
downloadredot-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/mono/utils/path_utils.cpp')
0 files changed, 0 insertions, 0 deletions