Re: [hybi] Framing take IV

Greg Wilkins <gregw@webtide.com> Thu, 05 August 2010 02:40 UTC

Return-Path: <gregw@webtide.com>
X-Original-To: hybi@core3.amsl.com
Delivered-To: hybi@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id A64FD3A6A0F for <hybi@core3.amsl.com>; Wed, 4 Aug 2010 19:40:03 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.735
X-Spam-Level:
X-Spam-Status: No, score=-1.735 tagged_above=-999 required=5 tests=[AWL=0.242, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id njFO8bPBc2Ic for <hybi@core3.amsl.com>; Wed, 4 Aug 2010 19:40:02 -0700 (PDT)
Received: from mail-fx0-f44.google.com (mail-fx0-f44.google.com [209.85.161.44]) by core3.amsl.com (Postfix) with ESMTP id 2172A3A6969 for <hybi@ietf.org>; Wed, 4 Aug 2010 19:40:01 -0700 (PDT)
Received: by fxm16 with SMTP id 16so1963150fxm.31 for <hybi@ietf.org>; Wed, 04 Aug 2010 19:40:31 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.223.123.79 with SMTP id o15mr9898229far.12.1280976031567; Wed, 04 Aug 2010 19:40:31 -0700 (PDT)
Received: by 10.223.57.12 with HTTP; Wed, 4 Aug 2010 19:40:31 -0700 (PDT)
In-Reply-To: <Pine.LNX.4.64.1008040139520.5947@ps20323.dreamhostps.com>
References: <AANLkTinyrDoG5d_Ur6HVRy=SgMPjLzJtpJ++Ye=1DQdj@mail.gmail.com> <Pine.LNX.4.64.1008040050040.5947@ps20323.dreamhostps.com> <28A6543A-5CA6-42B7-8D2E-F5511EE20008@apple.com> <4C58C2F6.8050608@caucho.com> <Pine.LNX.4.64.1008040132190.5947@ps20323.dreamhostps.com> <4C58C4C8.5020900@caucho.com> <Pine.LNX.4.64.1008040139520.5947@ps20323.dreamhostps.com>
Date: Thu, 05 Aug 2010 12:40:31 +1000
Message-ID: <AANLkTikDX1jgjs9DekvhPzov_sqySEfnTGQR9b85W7Uc@mail.gmail.com>
From: Greg Wilkins <gregw@webtide.com>
To: Ian Hickson <ian@hixie.ch>
Content-Type: text/plain; charset="UTF-8"
Cc: hybi@ietf.org
Subject: Re: [hybi] Framing take IV
X-BeenThere: hybi@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Server-Initiated HTTP <hybi.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/hybi>, <mailto:hybi-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/hybi>
List-Post: <mailto:hybi@ietf.org>
List-Help: <mailto:hybi-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/hybi>, <mailto:hybi-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 05 Aug 2010 02:40:03 -0000

On 4 August 2010 14:13, Ian Hickson <ian@hixie.ch> wrote:
> On Tue, 3 Aug 2010, Scott Ferguson wrote:
> If this is a rare occurence, then it's probably simplest to support this
> at the application layer - nothing stops anyone from having a subprotocol
> that defines the first byte/character of each message as being a
> "has continuation" byte.

Ian,

the thing that stops people defining subprotocols is that the concept
of a subprotocol is entirely undefined.

Currently it is exposed in the js API as a simple string.  There is no
indication how that string can be used, how capabilities can be
discovered, declared or negotiated.   There is no mechanism to
allocate op-codes in the first byte other than to come here and try to
convince you that my extension is a good idea.

If we can clearly define an extension and/or subprotocol mechanism
then I think we would be able to answer the concerns of those that
feel the need for particular features but see no way of achieving them
in the current protocol.

If we could clearly see how a browser and server could agree on
feature X extension without breaking applications using subprotocols
or intermediaries that know about ws framing, then there would not be
pressure to support feature X in the basic framing layer.

We are beyond the point that a hand waive of do it in a subprotocol is
satisfactory (specially as many see subprotocols as part of the
application space and not something that browser/servers should be
using for transparent extensions).


regards