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 10:15:13 +0200
Message-ID: <op.vbu47ndridj3kv@simon-pieterss-macbook.local>
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

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