Re: [hybi] Is there a traffic jam?

"Sylvain Hellegouarch" <sh@defuze.org> Tue, 14 April 2009 10:03 UTC

Return-Path: <sh@defuze.org>
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 6DC113A6B4D for <hybi@core3.amsl.com>; Tue, 14 Apr 2009 03:03:46 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.215
X-Spam-Level:
X-Spam-Status: No, score=-2.215 tagged_above=-999 required=5 tests=[AWL=0.050, BAYES_00=-2.599, IP_NOT_FRIENDLY=0.334]
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 OcnIm-ljiMAl for <hybi@core3.amsl.com>; Tue, 14 Apr 2009 03:03:45 -0700 (PDT)
Received: from mail1.webfaction.com (mail1.webfaction.com [67.15.2.85]) by core3.amsl.com (Postfix) with ESMTP id 9440A3A6B09 for <hybi@ietf.org>; Tue, 14 Apr 2009 03:03:45 -0700 (PDT)
Received: from mail1.webfaction.com (localhost.localdomain [127.0.0.1]) by mail1.webfaction.com (8.12.11.20060308/8.13.3) with ESMTP id n3EA4uqB014370; Tue, 14 Apr 2009 05:04:56 -0500
Received: (from apache@localhost) by mail1.webfaction.com (8.12.11.20060308/8.12.11/Submit) id n3EA4usS014368; Tue, 14 Apr 2009 12:04:56 +0200
X-Authentication-Warning: mail1.webfaction.com: apache set sender to sh@defuze.org using -f
Received: from 193.253.216.132 (SquirrelMail authenticated user platom_sylvain) by mail1.webfaction.com with HTTP; Tue, 14 Apr 2009 12:04:56 +0200 (CEST)
Message-ID: <54928.193.253.216.132.1239703496.squirrel@mail1.webfaction.com>
In-Reply-To: <op.usc9z5al64w2qv@anne-van-kesterens-macbook.local>
References: <03BCE29D-7AA5-4128-9F61-446E0229479A@lindenlab.com> <E51D5B15BFDEFD448F90BDD17D41CFF105A0C46E@AHQEX1.andrew.com> <Pine.LNX.4.62.0904132352430.10339@hixie.dreamhostps.com> <E51D5B15BFDEFD448F90BDD17D41CFF105A0C476@AHQEX1.andrew.com> <Pine.LNX.4.62.0904140002360.10339@hixie.dreamhostps.com> <49E3D66C.5060002@webtide.com> <49E3D731.30305@mozilla.com> <79ea848f0904131727w5d4bc0d8kc9914d26080a01fc@mail.gmail.com> <49E3DB47.5060801@webtide.com> <49E428DD.3070803@defuze.org> <op.usc9z5al64w2qv@anne-van-kesterens-macbook.local>
Date: Tue, 14 Apr 2009 12:04:56 +0200
From: Sylvain Hellegouarch <sh@defuze.org>
To: Anne van Kesteren <annevk@opera.com>
User-Agent: SquirrelMail/1.4.8-6.el3
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
X-Priority: 3 (Normal)
Importance: Normal
Cc: hybi@ietf.org
Subject: Re: [hybi] Is there a traffic jam?
X-BeenThere: hybi@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: sh@defuze.org
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: Tue, 14 Apr 2009 10:03:46 -0000

> On Tue, 14 Apr 2009 08:10:37 +0200, Sylvain Hellegouarch <sh@defuze.org>
> wrote:
>> Indeed. I actually wonder in fact if the problem hasn't been addressed
>> the wrong way around. It seems to me that we've had to discuss so far of
>> a protocol that could basically work out for everything. But could it? I
>> guess most people here have at some point implemented various protocols
>> and feel like WS will not be good at supporting any of them without
>> major headaches and hacks.
>
> This hasn't really been demonstrated. Some people feel that what goes over
> the wire should be identifiable as an intrinsic part of the protocol, but
> I'm still out as to why this is important. (I.e. something more than just
> "string" vs "bytes" vs "...".)

I would assume for multiplexing over one single WS connection. Mind you
the protocol could also impose connections can't be shared.

>
> One concern that was raised is that library authors might not work
> together to do things in common. However, library authors already work
> together on common things, such as supporting the same query language,
> ways of allowing multiple libraries to be used by a single page, et
> cetera. There's a whole "alliance" based around this.
>
>
>> The question I have now is, what does precisely stop browsers from
>> offering a raw TCP socket API at the Javascript level?
>
> The same-origin security policy.

I can appreciate this being a serious issue but somehow I'm fuzzy as to
why the response to that is a new base protocol other protocols should
interface with. From the browser's perspective, I can see why this is so
simple when I go through the WS specification but from a server's
perspective this means adding another layer which means:

* Having to understand for each protocol (XMPP, IMAP, etc.) the best way
to channel said protocols into the WS constraints.
* Having to gauge how to scale such infrastructure.

I find it odd to throw years of experience from the server side to fix one
security issue (even such a serious one).

> The closest to raw TCP socket access we can offer is something that looks
> like Web Sockets.
>

I find that seriously limitating.

- Sylvain
-- 
Sylvain Hellegouarch
http://www.defuze.org