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

[whatwg] Simon's WebSocket feedback

From: Simon Pieters <simonp@opera.com>
Date: Thu, 15 Apr 2010 07:12:00 +0200
Message-ID: <op.va6t2a0vidj3kv@simon-pieterss-macbook.local>
On Thu, 15 Apr 2010 03:08:12 +0200, Ian Hickson <ian at hixie.ch> wrote:

> On Mon, 12 Apr 2010, Simon Pieters wrote:
>>
>> WebSocket establish a WebSocket connection:
>>
>> [[
>> 21. Insert spaces1 U+0020 SPACE characters into key1 at random  
>> positions.
>>
>> Insert spaces2 U+0020 SPACE characters into key2 at random positions.
>> ]]
>>
>> It seems a bit risky to insert spaces at the start and at the end of the
>> string; I imagine some servers would ignore them (which would be a bug
>> in the server, but hard to notice since it's random). Maybe we should
>> avoid inserting them at the start and at the end.
>
> Since key1 and key2 can be numbers in the range 1-9, I don't see how to
> avoid at least one of those two places.

You can insert the random characters before inserting the spaces.

-- 
Simon Pieters
Opera Software
Received on Wednesday, 14 April 2010 22:12:00 UTC

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