diff options
author | Loïc Hoguin <[email protected]> | 2013-01-14 16:20:33 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2013-01-14 16:20:33 +0100 |
commit | 8d690995085088a9af66b898b68abc0c9580ad01 (patch) | |
tree | c98e0a9388ac64a0c374d7ec2142c4034726fda4 /test/ws_upgrade_with_opts_handler.erl | |
parent | 5dd09737d09f1a9e4b63e514e18973f174417215 (diff) | |
download | cowboy-8d690995085088a9af66b898b68abc0c9580ad01.tar.gz cowboy-8d690995085088a9af66b898b68abc0c9580ad01.tar.bz2 cowboy-8d690995085088a9af66b898b68abc0c9580ad01.zip |
Improve websocket close handling
We now always send a failure reason (bad protocol, bad encoding, etc.)
unless the closure was initiated by the client and it didn't send a
close code.
We now check that the close frames have a payload that is valid UTF-8,
unless they don't have a payload at all.
We now do not crash the process anymore when bad opcodes are sent, or
when the opcode 0 is sent before fragmentation was initiated.
Overall this makes us closer to full compliance with the RFC.
Diffstat (limited to 'test/ws_upgrade_with_opts_handler.erl')
0 files changed, 0 insertions, 0 deletions