Re: [hybi] Extensibility mechanisms?

Adam Barth <ietf@adambarth.com> Sun, 18 April 2010 21:04 UTC

Return-Path: <ietf@adambarth.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 7151D3A6942 for <hybi@core3.amsl.com>; Sun, 18 Apr 2010 14:04:15 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.851
X-Spam-Level:
X-Spam-Status: No, score=-0.851 tagged_above=-999 required=5 tests=[AWL=1.126, 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 A25QRiDE7DXG for <hybi@core3.amsl.com>; Sun, 18 Apr 2010 14:04:14 -0700 (PDT)
Received: from mail-gy0-f172.google.com (mail-gy0-f172.google.com [209.85.160.172]) by core3.amsl.com (Postfix) with ESMTP id 047653A68B9 for <hybi@ietf.org>; Sun, 18 Apr 2010 14:04:12 -0700 (PDT)
Received: by gyh4 with SMTP id 4so2301486gyh.31 for <hybi@ietf.org>; Sun, 18 Apr 2010 14:04:01 -0700 (PDT)
Received: by 10.101.22.6 with SMTP id z6mr9433479ani.245.1271624637132; Sun, 18 Apr 2010 14:03:57 -0700 (PDT)
Received: from mail-iw0-f189.google.com (mail-iw0-f189.google.com [209.85.223.189]) by mx.google.com with ESMTPS id 22sm4285719iwn.0.2010.04.18.14.03.55 (version=SSLv3 cipher=RC4-MD5); Sun, 18 Apr 2010 14:03:56 -0700 (PDT)
Received: by iwn27 with SMTP id 27so3013914iwn.5 for <hybi@ietf.org>; Sun, 18 Apr 2010 14:03:55 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.231.146.198 with HTTP; Sun, 18 Apr 2010 14:03:35 -0700 (PDT)
In-Reply-To: <4BCB6FD0.7080003@webtide.com>
References: <h2w5c902b9e1004152345j992b815bz5f8d38f06a19181a@mail.gmail.com> <Pine.LNX.4.64.1004161952530.751@ps20323.dreamhostps.com> <4BC96A0D.4080904@webtide.com> <Pine.LNX.4.64.1004180246380.751@ps20323.dreamhostps.com> <4BCAB2C1.2000404@webtide.com> <B9DC25B0-CD21-44E7-BD9B-06D0C9440933@apple.com> <Pine.LNX.4.64.1004181812370.751@ps20323.dreamhostps.com> <4BCB6641.70408@webtide.com> <Pine.LNX.4.64.1004182010070.751@ps20323.dreamhostps.com> <4BCB6FD0.7080003@webtide.com>
From: Adam Barth <ietf@adambarth.com>
Date: Sun, 18 Apr 2010 14:03:35 -0700
Received: by 10.231.166.68 with SMTP id l4mr1606928iby.40.1271624635343; Sun, 18 Apr 2010 14:03:55 -0700 (PDT)
Message-ID: <j2n5c4444771004181403o81184b00r294f3c3b878f24f6@mail.gmail.com>
To: Greg Wilkins <gregw@webtide.com>
Content-Type: text/plain; charset="ISO-8859-1"
Cc: Hybi <hybi@ietf.org>
Subject: Re: [hybi] Extensibility mechanisms?
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: Sun, 18 Apr 2010 21:04:15 -0000

On Sun, Apr 18, 2010 at 1:47 PM, Greg Wilkins <gregw@webtide.com> wrote:
> Ian Hickson wrote:
>> If the handshake involves an optional opt-in to a non-standard
>> experimental feature, and you accept it, then you're not upgrading to Web
>> Socket, you're upgrading to a non-standard protocol influenced by Web
>> Sockets, as defined by the convention you and the client are using.
>
> My point is that an intermediary can't possible know about
> all subprotocols (experimental or otherwise), nor be expected
> to upgrade everytime a new subprotocol is invented.
>
> Intermediaries can know about websocket framing and so long as
> all sub protocols and extensions are restricted to adhere to
> websocket framing, then intermediaries can continue to work
> regardless of sub protocols.

I'm not sure I buy the premise that we want intermediaries to
understand and/or interfere with the websocket protocol.  It seems
more robust and more secure to establish a point-to-point encrypted
tunnel between the user agent and the server.

Adam