[whatwg] WebSocket leading 0x80 bytes in length

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).

-- 
Simon Pieters
Opera Software

Received on Wednesday, 28 April 2010 01:15:13 UTC