W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2010

[whatwg] WebSocket leading 0x80 bytes in length

From: Simon Pieters <simonp@opera.com>
Date: Wed, 28 Apr 2010 15:49:20 +0200
Message-ID: <op.vbvkoihkidj3kv@simon-pieterss-macbook.local>
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

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:22 UTC