Re: [hybi] Framing take IV

Ian Hickson <ian@hixie.ch> Thu, 05 August 2010 03:23 UTC

Return-Path: <ian@hixie.ch>
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 6B0643A680E for <hybi@core3.amsl.com>; Wed, 4 Aug 2010 20:23:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.519
X-Spam-Level:
X-Spam-Status: No, score=-2.519 tagged_above=-999 required=5 tests=[AWL=0.080, BAYES_00=-2.599]
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 OW68UIn4Dhoi for <hybi@core3.amsl.com>; Wed, 4 Aug 2010 20:23:43 -0700 (PDT)
Received: from homiemail-a46.g.dreamhost.com (caibbdcaaaaf.dreamhost.com [208.113.200.5]) by core3.amsl.com (Postfix) with ESMTP id 301D43A67F4 for <hybi@ietf.org>; Wed, 4 Aug 2010 20:23:43 -0700 (PDT)
Received: from homiemail-a46.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a46.g.dreamhost.com (Postfix) with ESMTP id 5355A3E406A; Wed, 4 Aug 2010 20:24:12 -0700 (PDT)
DomainKey-Signature: a=rsa-sha1; c=nofws; d=hixie.ch; h=date:from:to:cc :subject:in-reply-to:message-id:references:mime-version: content-type; q=dns; s=hixie.ch; b=xf6fdImZyY0ByltB2p3040ZZPPYOo Fz3Bn8U+RGpPFdp2ulaX7ZjF9olsZ+pF+VrE/T/tZVD0KvaPH1KX1XJNz5FwtyAt 6d/1iJoXAqS2LB8fecTaYqELWi/5Wmzpb1fO95n8OfB4Zd5uZbulnAJiqEYVR+VF 9LtnaoXz1RKREU=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=hixie.ch; h=date:from:to :cc:subject:in-reply-to:message-id:references:mime-version: content-type; s=hixie.ch; bh=M9WfUlzkd4ijUSszxcOV9/tu1U4=; b=UxM AerANNxr3/snp3pFx8Lg3RMxpOJNEeXYv2Jwo1Fe8ztw46SqyCTt7NXv0Lqu8Wbd 9Rlbn3nZVmOZ8P/+/wv1AQBnlclS+znHqA8/NU4xAIoi9fRrDupTrSpkHamiIFyE 8czZXUB2IJ7QNXrgK0tCpeWawOqZ090VkbaaCyW0=
Received: from ps20323.dreamhostps.com (ps20323.dreamhost.com [69.163.222.251]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: internal@index.hixie.ch) by homiemail-a46.g.dreamhost.com (Postfix) with ESMTPSA id 4D1863E4065; Wed, 4 Aug 2010 20:24:12 -0700 (PDT)
Date: Thu, 05 Aug 2010 03:24:12 +0000
From: Ian Hickson <ian@hixie.ch>
To: Greg Wilkins <gregw@webtide.com>
In-Reply-To: <AANLkTikDX1jgjs9DekvhPzov_sqySEfnTGQR9b85W7Uc@mail.gmail.com>
Message-ID: <Pine.LNX.4.64.1008050318300.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> <AANLkTikDX1jgjs9DekvhPzov_sqySEfnTGQR9b85W7Uc@mail.gmail.com>
Content-Language: en-GB-hixie
Content-Style-Type: text/css
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset="US-ASCII"
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 03:23:44 -0000

On Thu, 5 Aug 2010, Greg Wilkins wrote:
> 
> 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.

I'm not sure I follow. A subprotocol wouldn't use "opcodes".

HTTP is a subprotocol for TCP, as is SSH, FTP, or IMAP. They all just use 
TCP as two streams of bytes (one in each direction).

Similarly, you can have subprotocols on WebSockets. They all would just 
use WebSockets as two queues of events (one in each direction).

What do we need to do to indicate how this can be used? There's no 
limitation to how it can be used. Are you saying you think the WebSockets 
spec should include protocol design advice?

Is there an equivalent for Comet-style protocols? (That is, subprotocols 
that use HTTP as the transport?)

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'