aboutsummaryrefslogtreecommitdiffstats
path: root/test/http_handler_init_shutdown.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2013-01-14 16:20:33 +0100
committerLoïc Hoguin <[email protected]>2013-01-14 16:20:33 +0100
commit8d690995085088a9af66b898b68abc0c9580ad01 (patch)
treec98e0a9388ac64a0c374d7ec2142c4034726fda4 /test/http_handler_init_shutdown.erl
parent5dd09737d09f1a9e4b63e514e18973f174417215 (diff)
downloadcowboy-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/http_handler_init_shutdown.erl')
0 files changed, 0 insertions, 0 deletions