[whatwg] WebSocket leading 0x80 bytes in length

On Wed, 28 Apr 2010 10:15:13 +0200, Simon Pieters <simonp at opera.com> wrote:

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

This is now sunk cost for us. Please disregard.

> 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 06:49:20 UTC