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

[whatwg] Simon's WebSocket feedback

From: Ian Hickson <ian@hixie.ch>
Date: Thu, 15 Apr 2010 08:04:59 +0000 (UTC)
Message-ID: <Pine.LNX.4.64.1004150804470.751@ps20323.dreamhostps.com>
On Thu, 15 Apr 2010, Simon Pieters wrote:
> 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.

Ooh, that's genius. Done.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Thursday, 15 April 2010 01:04:59 UTC

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