[whatwg] WebSocket leading 0x80 bytes in length
simonp at opera.com
Wed Apr 28 01:15:13 PDT 2010
The WebSocket spec allows leading 0x80 bytes in the length of a binary
frame. Such bytes do not change the value of the length. In order to not
have to deal with ridiculous cases such as when there are 50k such bytes,
we would want to fail the connection if the first byte in length is 0x80.
Allowing it also complicates the check of the closing handshake (if we
want 0xFF 0x80 0x00 to not count as a closing handshake).
More information about the whatwg