Re: [hybi] Extensibility mechanisms?

Roberto Peon <fenix@google.com> Mon, 19 April 2010 15:40 UTC

Return-Path: <fenix@google.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 6AF0F28C122 for <hybi@core3.amsl.com>; Mon, 19 Apr 2010 08:40:10 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -101.264
X-Spam-Level:
X-Spam-Status: No, score=-101.264 tagged_above=-999 required=5 tests=[AWL=0.712, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, USER_IN_WHITELIST=-100]
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 ug6cG0-gMUaO for <hybi@core3.amsl.com>; Mon, 19 Apr 2010 08:40:09 -0700 (PDT)
Received: from smtp-out.google.com (smtp-out.google.com [74.125.121.35]) by core3.amsl.com (Postfix) with ESMTP id B2DF328C2B0 for <hybi@ietf.org>; Mon, 19 Apr 2010 08:18:09 -0700 (PDT)
Received: from kpbe12.cbf.corp.google.com (kpbe12.cbf.corp.google.com [172.25.105.76]) by smtp-out.google.com with ESMTP id o3JFHjBL023727 for <hybi@ietf.org>; Mon, 19 Apr 2010 17:17:45 +0200
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1271690274; bh=N5vrTG7eAK6xMjVHWl0MFkUum+4=; h=MIME-Version:In-Reply-To:References:Date:Message-ID:Subject:From: To:Cc:Content-Type; b=tVVn6CWq3lVQOcSX3aJsYskmXqJoh75RLFDP0K/NcOgBpET8yVoxyydKl1R0mafgM 99i3wU/ebO9bnQ9DdZYaA==
DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=mime-version:in-reply-to:references:date:message-id:subject:from:to: cc:content-type:x-system-of-record; b=M/bV95KOf2CJ5qroTt+xD6v4wiS7HwtkvCZZTuacl1QrWJywVAsFkNsOPEs/cRCd1 IdaR5kRGmrr24F9F5jZ6g==
Received: from gyg8 (gyg8.prod.google.com [10.243.50.136]) by kpbe12.cbf.corp.google.com with ESMTP id o3JFHYCU030363 for <hybi@ietf.org>; Mon, 19 Apr 2010 08:17:44 -0700
Received: by gyg8 with SMTP id 8so2852741gyg.26 for <hybi@ietf.org>; Mon, 19 Apr 2010 08:17:44 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.229.191.202 with HTTP; Mon, 19 Apr 2010 08:17:40 -0700 (PDT)
In-Reply-To: <20100419091736.GA28758@shareable.org>
References: <Pine.LNX.4.64.1004161952530.751@ps20323.dreamhostps.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> <j2n5c4444771004181403o81184b00r294f3c3b878f24f6@mail.gmail.com> <20100419091736.GA28758@shareable.org>
Date: Mon, 19 Apr 2010 08:17:40 -0700
Received: by 10.229.188.212 with SMTP id db20mr6033345qcb.5.1271690260475; Mon, 19 Apr 2010 08:17:40 -0700 (PDT)
Message-ID: <m2yad99d8ce1004190817q49e6d1f6j7686b93771341e7e@mail.gmail.com>
From: Roberto Peon <fenix@google.com>
To: Jamie Lokier <jamie@shareable.org>
Content-Type: multipart/alternative; boundary="0016363b86a83e5c8204849876bc"
X-System-Of-Record: true
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: Mon, 19 Apr 2010 15:40:10 -0000

On Mon, Apr 19, 2010 at 2:17 AM, Jamie Lokier <jamie@shareable.org> wrote:

> Adam Barth wrote:
> > On Sun, Apr 18, 2010 at 1:47 PM, Greg Wilkins <gregw@webtide.com> wrote:
> > > Ian Hickson wrote:
> > > 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.
>
> More secure, but higher latency and slower.
>
> Going by the "each application on each open web page should open its
> own connection" approach, and encrypted tunnels enforcing that, as
> well as enforcing TLS setup latency for each one, *much* slower than
> HTTP.  Not to mention the torrent of idle keepalives with so many
> connections.
>

I think that opening up many sockets to one endpoint is crazy-- having to
overcome Tcp-slowstart that many times is latency suicide.

-=R


>
> Less robust - I put together an alternative to Ian's "tic tac toe"
> using long-GET HTTP.  It's a similar amount of code with a similar
> structure, and as far as I can tell fails in all the exact same
> scenarios, except for one: The HTTP version keeps working after a NAT
> or SPI router times out in the middle.  The WebSocket version breaks
> at that point, because it won't detect the broken TCP connection or
> create a new one.
>
> One of the not so obvious strengths of HTTP, which probably wasn't
> deliberate design, is it recovers well from contemporary TCP-breaking
> routers.
>
> -- Jamie
> _______________________________________________
> hybi mailing list
> hybi@ietf.org
> https://www.ietf.org/mailman/listinfo/hybi
>