
From salvatore.loreto@ericsson.com  Thu Oct  1 23:54:56 2009
Return-Path: <salvatore.loreto@ericsson.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 142873A68C3 for <hybi@core3.amsl.com>; Thu,  1 Oct 2009 23:54:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.804
X-Spam-Level: 
X-Spam-Status: No, score=-5.804 tagged_above=-999 required=5 tests=[AWL=0.445,  BAYES_00=-2.599, HELO_EQ_SE=0.35, RCVD_IN_DNSWL_MED=-4]
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 cPZYknKdAIv4 for <hybi@core3.amsl.com>; Thu,  1 Oct 2009 23:54:55 -0700 (PDT)
Received: from mailgw4.ericsson.se (mailgw4.ericsson.se [193.180.251.62]) by core3.amsl.com (Postfix) with ESMTP id DAF693A689B for <hybi@ietf.org>; Thu,  1 Oct 2009 23:54:54 -0700 (PDT)
X-AuditID: c1b4fb3e-b7b81ae0000009d4-14-4ac5a414ce7c
Received: from esealmw127.eemea.ericsson.se (Unknown_Domain [153.88.253.125]) by mailgw4.ericsson.se (Symantec Mail Security) with SMTP id EF.6C.02516.414A5CA4; Fri,  2 Oct 2009 08:56:20 +0200 (CEST)
Received: from esealmw127.eemea.ericsson.se ([153.88.254.175]) by esealmw127.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.3959);  Fri, 2 Oct 2009 08:53:45 +0200
Received: from mail.lmf.ericsson.se ([131.160.11.50]) by esealmw127.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.3959);  Fri, 2 Oct 2009 08:53:45 +0200
Received: from nomadiclab.lmf.ericsson.se (nomadiclab.lmf.ericsson.se [131.160.33.3]) by mail.lmf.ericsson.se (Postfix) with ESMTP id 87C6B24EC; Fri,  2 Oct 2009 09:53:45 +0300 (EEST)
Received: from nomadiclab.lmf.ericsson.se (localhost [127.0.0.1]) by nomadiclab.lmf.ericsson.se (Postfix) with ESMTP id 502B221A1F; Fri,  2 Oct 2009 09:53:45 +0300 (EEST)
Received: from localhost.localdomain (localhost [127.0.0.1]) by nomadiclab.lmf.ericsson.se (Postfix) with ESMTP id CEA88219D4; Fri,  2 Oct 2009 09:53:44 +0300 (EEST)
Message-ID: <4AC5A378.2070207@ericsson.com>
Date: Fri, 02 Oct 2009 09:53:44 +0300
From: Salvatore Loreto <salvatore.loreto@ericsson.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090825)
MIME-Version: 1.0
To: "hybi@ietf.org" <hybi@ietf.org>, whatwg@whatwg.org,  whatwg@lists.whatwg.org
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: ClamAV using ClamSMTP
X-OriginalArrivalTime: 02 Oct 2009 06:53:45.0717 (UTC) FILETIME=[161E8A50:01CA432D]
X-Brightmail-Tracker: AAAAAA==
Subject: [hybi] HyBi BoF at next IETF approved
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: Fri, 02 Oct 2009 06:54:56 -0000

The HyBi BoF during the next IETF meeting in  Hiroshima (November 8-13, 
2009)
has been approved by IAB/IESG last Friday.

We are still working on a clean version of the Charter Proposal and on 
the Agenda so
all the proposal and comments are welcome!

best regards
Salvatore Loreto
www.sloreto.com




From gk-ietf-hybi@ninebynine.org  Sat Oct  3 04:43:33 2009
Return-Path: <gk-ietf-hybi@ninebynine.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 4980928B23E for <hybi@core3.amsl.com>; Sat,  3 Oct 2009 04:43:33 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.599
X-Spam-Level: 
X-Spam-Status: No, score=-6.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
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 YGxyVYYSO95A for <hybi@core3.amsl.com>; Sat,  3 Oct 2009 04:43:26 -0700 (PDT)
Received: from relay1.mail.ox.ac.uk (relay1.mail.ox.ac.uk [129.67.1.165]) by core3.amsl.com (Postfix) with ESMTP id 037783A6904 for <hybi@ietf.org>; Sat,  3 Oct 2009 04:43:25 -0700 (PDT)
Received: from smtp1.mail.ox.ac.uk ([129.67.1.207]) by relay1.mail.ox.ac.uk with esmtp (Exim 4.69) (envelope-from <gk-ietf-hybi@ninebynine.org>) id 1Mu32k-0007Jq-4M; Sat, 03 Oct 2009 12:44:54 +0100
Received: from gklyne.plus.com ([80.229.154.156] helo=Eskarina.local) by smtp1.mail.ox.ac.uk with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from <gk-ietf-hybi@ninebynine.org>) id 1Mu32j-0007nD-5t; Sat, 03 Oct 2009 12:44:54 +0100
Message-ID: <4AC7391F.1040707@ninebynine.org>
Date: Sat, 03 Oct 2009 12:44:31 +0100
From: Graham Klyne <gk-ietf-hybi@ninebynine.org>
User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812)
MIME-Version: 1.0
To: Ian Hickson <ian@hixie.ch>
References: <507F3682-5AAF-4AC0-88F6-10A31B12380D@mnot.net>	<Pine.LNX.4.62.0907292309330.3189@hixie.dreamhostps.com>	<20090812125653.GA1235@shareable.org>	<Pine.LNX.4.62.0908160629230.6420@hixie.dreamhostps.com>	<20090816171704.GB27122@shareable.org>	<Pine.LNX.4.62.0909040546330.6775@hixie.dreamhostps.com>	<4AA25206.9070809@webtide.com> <20090905140551.GJ24516@shareable.org>	<4AA3139E.2030908@webtide.com> <20090907125321.GG7949@shareable.org> <Pine.LNX.4.62.0909170950580.14605@hixie.dreamhostps.com>
In-Reply-To: <Pine.LNX.4.62.0909170950580.14605@hixie.dreamhostps.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Oxford-Username: zool0635
Cc: hybi@ietf.org
Subject: Re: [hybi] Feedback on thewebsocketprotocol
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: Sat, 03 Oct 2009 11:43:33 -0000

[Resending via a different SMTP relay - my previous attempts all sank without 
trace. #g]

Ian Hickson wrote:
> On Sun, 6 Sep 2009, Graham Klyne wrote:
>> I still find the abstract a bit obscure.
> 
> Could you elaborate on this? I just tried writing a new abstract and I 
> basically ended up with almost exactly what the spec already has.

If I knew enough about the proposal to elaborate, I'd have tried to suggest some
words.

The new introduction is a vast improvement, and I think I maybe now see enough
to make the attempt.

Currently, from http://tools.ietf.org/html/draft-hixie-thewebsocketprotocol-41
[[
    This protocol enables two-way communication between a user agent
    running untrusted code running in a controlled environment to a
    remote host that understands the protocol.  It is intended to fail to
    communicate with servers of pre-existing protocols like SMTP or HTTP,
    while allowing HTTP servers to opt-in to supporting this protocol if
    desired.  It is designed to be easy to implement on the server side.
]]

Suggested:
[[
The websockets protocol enables two-way communication between a user agent
running untrusted code running in a controlled environment to a remote host.  It
allows a session that starts as a normal HTTP connection to be upgraded to a
bidirectional message-oriented exchange, while gracefully failing to make this
transition when communicating with HTTP servers that do not support this
protocol.  Consisting of the initial handshake and basic message-framing, the
protocol is a minimal layer over TCP, designed to be easy to implement for
servers and clients.

The goal of the webssockets protocol is to support browser-based interactive Web
applications without having to rely on <iframe> and long-polled XMLHTTPRequest
abuses that are needed to implement them in current browsers.
]]

(I assume here that ease of implementation for the client is also a goal - as
originally phrased, there's a possible implication of trading ease of
server-side implementation for possible client complexity.  I use the term
message-oriented to explain the role of framing.)

> On Tue, 8 Sep 2009, Graham Klyne wrote:
>>>> Also, along the way, it might be worth mentioning efforts like 
>>>> cometd/bayeux and BOSH and saying how this proposal is similar 
>>>> and/or different.
>>> I'm not really sure what I would say here.
>> I think that an informative reference to 
>> http://www.ietf.org/id/draft-loreto-http-bidirectional-00.txt and a 
>> high-level comparison with the long-poll and streaming approaches 
>> described there would do it.  And mention why you are not just using 
>> COMET/BAYEUX or BOSH which are mentioned there.  You might even consider 
>> contributing a section describing your approach to the authors of that 
>> document.
> 
> I really don't feel comfortable having a specification compare itself to 
> other specifications. I always feel like this is rather presumptuous, and 
> would rather readers draw their own conclusions. (HTML5 had a number of 
> such sections a few years ago, and since then they've all been removed, 
> one by one, as various people either took offence, or asked what the point 
> was, or said they disagreed with it, etc.)
> 
> I'd rather the spec just stayed focus on what it is rather than on what it 
> is not or what else exists.

Well, if you don't feel comfortable making the comparison, an attempt to
describe and explain the protocol in high-level terms that allow others to make
the comparison would be reasonable to do.  I think your new introduction
substantially achieves this.

As for explanatory material in specs, I've been there too, and it can be hard to
get the level right.  I understand there are different viewpoints about this:  I
happen to feel that non-normative explanation really does help.  If a
specification is like the answer to some question, it really helps to also know
what that question may be:  this is the role of the explanatory and/or
compatative material.  In this, I think your new introduction works pretty well,
modulo minor nits.

>>>> 6. Provide a protocol state diagram or similar overview.
>>> I'm not sure I understand what that would look like for this protocol.
>>>
>>> Do you mean something like this?:
>>>
>>>    HANDSHAKE --> FRAME TYPE <-------------------------.
>>>                       |                               |
>>>                       +---0x00---> DATA --> 0x00 --->-+
>>>                       |                               |
>>>                       `---0x80---> LENGTH -> DATA -->-'
>> Maybe that:  if it's really that simple, then a diagram like this helps to
>> emphasize that point.  See also the state diagrams in RFC821.
> 
> Ok, I've added a diagram to the intro. Hopefully it'll help someone.

I'm not seeing that yet, so I can't comment in detail.  But I think the state
diagram should also show how the initial HTTP-like handshake transitions to the
bidirectional stream.

> On Tue, 8 Sep 2009, Graham Klyne wrote:
>> In this message, I'm going to stand back from the immediate discussion 
>> of my review, and try and present some broader points, in decreasing 
>> order of metaphysicality...
>>
>> 1. Why are we here?
>>
>> 2. Provide context for evaluation
>>
>> 3. Declarative vs procedural definitions
>>
>> ...
>>
>> 1. Why are we here?
>>
>> What I really mean is:  why are you bringing this proposal to a 
>> standards body, specifically the IETF?
> 
> Lisa asked me to. This technology was originally part of the WHATWG HTML5 
> draft, and when the W3C published it, the IETF asked the W3C if it could 
> be an RFC instead, since apparently the W3C and the IETF have some 
> agreement that they won't step on each other's toes.

This assumes you want to create a standard, which is pretty much implied if you
want browser (and server) implementers to support it.  The IETF is then the
logical place.  My point (not really made as such) was that creating a standard
is a consensus-building process, which needs considerable effort to help people
understand as well laying down the technical details.

What I'm now seeing looks like good movement in this direction.  :)

> My goal is to have browser vendors implement this (which some are already 
> doing) so that it can be used to write interactive Web apps without having 
> to rely on <iframe> and XHR hacks like today.

OK - that sounds like someting to be worked into the abstract.   I'll go back
and edit my proposal... done.


>> 2. Provide context for evaluation
>>
> 
> Yeah, the draft was lacking in introductory material and consisted 
> primarily of the implementation requirements for a while. Hopefully this 
> is significantly improved now.

Did I mention, it's much better? :)

>> Related to this is making as much use as possible of well-known base 
>> specifications (hence my comments about RFC3986 vs [WEBADDRESSES]).
> 
> [WEBADDRESSES] is pretty well known in the expected implementation circles 
> (in that it describes what is implemented by most UAs already, unlike the 
> URI specs).

Hmmm... if this works, bank on it being picked up outside "the expected
implementation circles"

>> 3. Declarative vs procedural definitions
> 
> I like using declarative approaches where possible. Unfortunately I find 
> that such an approach becomes unwieldly very fast. I don't really see to 
> make the Web Socket protocol spec more declarative at this point. If you 
> have any concrete ideas along these lines, I'm more than happy to examine 
> them.

Now that I have a clearer idea of what the protocol actually does, I think a
state diagram supported by explanatory text would work well.

(One can argue whether that's actually declarative, but that's less of an issue.
  A state diagram *can* be expressed in a matrix of events vs states, with
actions in the relevant cell elements.  Or simply as a diagram.)

Given this, I think the details in your text would be much easier to follow.

But mainly, understanding that the protocol consists of an initial connection,
an upgrade request followed by a simple framed message exchange covers most of
it.  The rest is detail(!).

#g






From salvatore.loreto@ericsson.com  Tue Oct  6 02:39:15 2009
Return-Path: <salvatore.loreto@ericsson.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 DFD7A28C11A; Tue,  6 Oct 2009 02:39:15 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.823
X-Spam-Level: 
X-Spam-Status: No, score=-5.823 tagged_above=-999 required=5 tests=[AWL=0.426,  BAYES_00=-2.599, HELO_EQ_SE=0.35, RCVD_IN_DNSWL_MED=-4]
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 1jwUMqiax+cd; Tue,  6 Oct 2009 02:39:14 -0700 (PDT)
Received: from mailgw4.ericsson.se (mailgw4.ericsson.se [193.180.251.62]) by core3.amsl.com (Postfix) with ESMTP id B5EF828C12E; Tue,  6 Oct 2009 02:39:00 -0700 (PDT)
X-AuditID: c1b4fb3e-b7b81ae0000009d4-3e-4acb109334ea
Received: from esealmw128.eemea.ericsson.se (Unknown_Domain [153.88.253.124]) by mailgw4.ericsson.se (Symantec Mail Security) with SMTP id 16.A3.02516.3901BCA4; Tue,  6 Oct 2009 11:40:36 +0200 (CEST)
Received: from esealmw126.eemea.ericsson.se ([153.88.254.170]) by esealmw128.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.3959);  Tue, 6 Oct 2009 11:40:15 +0200
Received: from mail.lmf.ericsson.se ([131.160.11.50]) by esealmw126.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.3959);  Tue, 6 Oct 2009 11:40:15 +0200
Received: from nomadiclab.lmf.ericsson.se (nomadiclab.lmf.ericsson.se [131.160.33.3]) by mail.lmf.ericsson.se (Postfix) with ESMTP id 0BA6224C0; Tue,  6 Oct 2009 12:40:15 +0300 (EEST)
Received: from nomadiclab.lmf.ericsson.se (localhost [127.0.0.1]) by nomadiclab.lmf.ericsson.se (Postfix) with ESMTP id CA2E621A1F; Tue,  6 Oct 2009 12:40:14 +0300 (EEST)
Received: from localhost.localdomain (localhost [127.0.0.1]) by nomadiclab.lmf.ericsson.se (Postfix) with ESMTP id 705DA219D4; Tue,  6 Oct 2009 12:40:14 +0300 (EEST)
Message-ID: <4ACB107E.6030209@ericsson.com>
Date: Tue, 06 Oct 2009 12:40:14 +0300
From: Salvatore Loreto <salvatore.loreto@ericsson.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090825)
MIME-Version: 1.0
To: "hybi@ietf.org" <hybi@ietf.org>, apps-discuss@ietf.org,  whatwg@lists.whatwg.org, whatwg@whatwg.org
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: ClamAV using ClamSMTP
X-OriginalArrivalTime: 06 Oct 2009 09:40:15.0189 (UTC) FILETIME=[01F60050:01CA4669]
X-Brightmail-Tracker: AAAAAA==
Subject: [hybi] HyBi BoF: on Tuesday, November 10
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: Tue, 06 Oct 2009 09:39:16 -0000

Hi there,

accordingly to the provisional IETF 76 agenda in Hiroshima 
(https://datatracker.ietf.org/meeting/76/agenda.html)
the HyBi BoF will be on TUESDAY, November 10, 2009
at 1300-1500 during the Afternoon Session I


We are now working on a clean version of the Charter Proposal that will 
be posted during the next days
and on the Agenda so all the proposal and comments are welcome!


cheers
Salvatore Loreto
www.sloreto.com
*


*

From salvatore.loreto@ericsson.com  Thu Oct  8 13:49:26 2009
Return-Path: <salvatore.loreto@ericsson.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 4AB3A3A6804 for <hybi@core3.amsl.com>; Thu,  8 Oct 2009 13:49:26 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.87
X-Spam-Level: 
X-Spam-Status: No, score=-5.87 tagged_above=-999 required=5 tests=[AWL=0.379,  BAYES_00=-2.599, HELO_EQ_SE=0.35, RCVD_IN_DNSWL_MED=-4]
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 SkP+kMCgLHXX for <hybi@core3.amsl.com>; Thu,  8 Oct 2009 13:49:25 -0700 (PDT)
Received: from mailgw3.ericsson.se (mailgw3.ericsson.se [193.180.251.60]) by core3.amsl.com (Postfix) with ESMTP id B23EE3A69FB for <hybi@ietf.org>; Thu,  8 Oct 2009 13:49:02 -0700 (PDT)
X-AuditID: c1b4fb3c-b7baeae000005f8e-41-4ace50a3bd96
Received: from esealmw127.eemea.ericsson.se (Unknown_Domain [153.88.253.124]) by mailgw3.ericsson.se (Symantec Mail Security) with SMTP id B9.95.24462.3A05ECA4; Thu,  8 Oct 2009 22:50:44 +0200 (CEST)
Received: from esealmw129.eemea.ericsson.se ([153.88.254.177]) by esealmw127.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.3959);  Thu, 8 Oct 2009 22:50:43 +0200
Received: from mail.lmf.ericsson.se ([131.160.11.50]) by esealmw129.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.3959);  Thu, 8 Oct 2009 22:50:43 +0200
Received: from nomadiclab.lmf.ericsson.se (nomadiclab.lmf.ericsson.se [131.160.33.3]) by mail.lmf.ericsson.se (Postfix) with ESMTP id 7728E2495 for <hybi@ietf.org>; Thu,  8 Oct 2009 23:50:43 +0300 (EEST)
Received: from nomadiclab.lmf.ericsson.se (localhost [127.0.0.1]) by nomadiclab.lmf.ericsson.se (Postfix) with ESMTP id 3903C21A1F for <hybi@ietf.org>; Thu,  8 Oct 2009 23:50:43 +0300 (EEST)
Received: from localhost.localdomain (localhost [127.0.0.1]) by nomadiclab.lmf.ericsson.se (Postfix) with ESMTP id BFB5D219D4 for <hybi@ietf.org>; Thu,  8 Oct 2009 23:50:42 +0300 (EEST)
Message-ID: <4ACE50A2.5070404@ericsson.com>
Date: Thu, 08 Oct 2009 23:50:42 +0300
From: Salvatore Loreto <salvatore.loreto@ericsson.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090825)
MIME-Version: 1.0
To: "hybi@ietf.org" <hybi@ietf.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: ClamAV using ClamSMTP
X-OriginalArrivalTime: 08 Oct 2009 20:50:43.0658 (UTC) FILETIME=[00D2BAA0:01CA4859]
X-Brightmail-Tracker: AAAAAA==
Subject: [hybi] HyBi Design Space
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, 08 Oct 2009 20:49:26 -0000

Hi there,

at the breakfast BoF in Stockholm it was brought up that it would have been helpful to more
clearly describe the design space, including the programming environments (client, server, 
library, etc.), deployed infrastructure (routers, proxies, etc.).

here the analysis that we have written down and we are going to insert in the 
draft-loreto-http-bidirectional.

comments, feedbacks and suggestions are very welcome

cheers
Sal
www.sloreto.com



6.  Design Space

   In order to define additions to HTTP that could enable improved
   mechanisms for bidirectional HTTP or new bidirectional protocols, it
   is important to map out the design space and potential design
   alternatives, with special attention to deployed infrastructure and
   programming environments.

   In existing HTTP-based systems, the typical semantic is client-server
   Representational State Transfer (REST), where the resources served
   are closely associated with an entity known by a URI or URL.
   However, the introduction of bidirectionality can significantly
   change the normal HTTP patterns.

   As one example, the standard roles of client and server can be
   reversed and a server can request resources from a client.
   Unfortunately, due to a lack of client addressability URL's may not
   be applicable to client entities and new addressing paradigms may be
   required.

   Furthermore, bidirectionality introduces a message passing pattern
   into the traditional REST style.

   These additional semantics will influence the design of the
   bidirecitonal protocols, addressing, and APIs.  Without a strong
   association between an identified entity and a resource, new
   mechanisms for content distribution and caching messages might need
   to be considered.

   In the next sections we analyse the design space from several
   different sides of the HTTP deployed infrastructure, including
   clients, servers, and intermediaries such as proxies, caching
   servers, and load balancers.

   The process of evaluating eventual improvements to the bidirectional
   solutions or development of new bidirection protocols should take
   into consideration the following concerns and criteria:

   Complexity:  enables ease of implementation, understanding, and
      debugging

   Capability:  addresses all/most known bidirectional use-cases

   Extensibility:  has the capacity to handle new use-cases

   Latency:  defines minimal, average, and maximal latency for message
      delivery

   Bandwidth overhead:  minimizes overhead for idle and busy usage

   Scalability:  has the ability to handle large scale usage

   Footprint:  has the ability to handle small devices and/or massive
      replication ("cloud")

   AAA:  enables proper Authentication, Authorization and Accounting

   Security:  enables strong security for integral, confidential,
      endorsed, and cross domain deployments.

   Interoperability:  can work with and/or be integrated with existing
      bidirectional implementations

   Compatibility:  can work with existing web infrastructure for
      distributing, caching, manipulating, and displaying content.

6.1.  Server side

   The server side can be decomposed into three categories:

   In-band HTTP:  Bidirectionality is part of the normal HTTP/Web server
      responsibilities.  HTTP is used for transporting server events.
      Examples include Comet and (in some deployments) BOSH.

   Out-of-band HTTP:  Here two servers are involved: bidirectionality is
      not part of the normal HTTP/Web server responsibilities, but the
      backend service is offered by a separate server that might not
      even be on the same machine of the HTTP/Web server.  HTTP is used
      for transporting server events.  When a browser is used on the
      client side, a cross-domain solution is needed to overcome the
      "same-source" web service restriction.  Examples include BOSH (in
      some deployments) and Lightstreamer.

   In-band non-HTTP:  Bidirectionality is part of the normal HTTP/Web
      server responsibilities.  However, server events are transported
      on an upgraded HTTP connection.  Examples include Bidirectional
      Web Transfer Protocol (BWTP) and WebSockets.

   Out-of-band non-HTTP:  Bidirectionality is offered by a dedicated
      server using non HTTP protocol for transport server events.
      Examples include WebSockets.

   The HTTP transport based servers (in-band and out-of-band) can work
   with existing HTTP standards or enhanced HTTP.  Enhanced HTTP would
   be a standardized set of headers and behaviours to assist with
   bidirectionality and cross domain concerns.

   At present, a protocol that interacts heavily with JavaScript on the
   client side implies some constraints also on the server side, such
   that they have to use XML or JSON encapsulation.

6.2.  Clients

   Clients can be involved in bidirectional transport in the following
   capacities:

   In browser open standards with HTTP transport:  For applications
      written in a web browser scripting language (e.g.  JavaScript)
      within a browser client.  Examples include Comet and BOSH.

   In browser open standards with enhanced HTTP transport:  For
      applications written in a web browser scripting language (e.g.
      JavaScript) within a browser client.  Examples include Comet with
      cross domain extensions.

      Browsers using either standard HTTP transport or enhanced HTTP
      transport typically use XMLHttpRequest (XHR) API
      [W3C.WD-XMLHttpRequest2-20090820] allowing scripts to perform HTTP
      client functionality.  The XHR object can be used to perform
      bidirectional HTTP using both "long polling" and "HTTP streaming"
      mechanisms.

      XHR also supports the cross domain extension
      [W3C.WD-cors-20090317], which overcomes the same-origin
      restrictions that prevent a Web application running from one
      origin from obtaining data retrieved from another origin.
      However, XHR presents some limitations on the headers that can be
      set by the user.

      An alternative to XMLHttpRequest is using the Server-Sent Events
      API [W3C.WD-eventsource-20090423].  This "EventSource: interface
      enables servers to push data to Web pages over HTTP or using
      dedicated server-push protocols.


   In browser open standards with non HTTP transport:  For applications
      written in JavaScript within a browser client.  Examples include
      BWTP and WebSockets.

   In browser with plugin:  This is not of particular interest to IETF,
      but should be noted as part of the design space.  Examples include
      BlazeDS.

   Non-browser HTTP:  A bidirectional client may be written outside of a
      browser and use bidirectional web transports.  Typically this is
      done so that a rich or minimal client can bypass firewalls to
      access public servers over HTTP transports.  Examples include the
      Comet Java client and the Second Life Viewer.

   Non browser enhanced HTTP:  [Definition and examples to follow.]

   Non browser non-HTTP:  [Definition and examples to follow.]

6.3.  Intermediaries

   Intermediaries (e.g. proxies, gateways, caching servers, load
   balancers, etc) can be involved in bidirectional transport in several
   capacities:

   Legal HTTP relay:  Transports such as long polling use intermediaries
      to carry legal HTTP requests and response.  Any capabilities that
      may interfere with bidirectional flow (e.g. caching) are
      controlled with standard headers or cookies.  The intermediary may
      be a participant in the transport (e.g., changing framing or
      encapsulation).

   Defacto HTTP relay:  Some streaming transports use the common
      behavior of HTTP intermediaries to forward content packet-by-
      packet.  This relies on intermediaries to not cache or buffer
      content.

   Enhanced HTTP relay:  Uses yet-to-be-defined HTTP headers to assist
      HTTP based bidirectional transports.  The intermediary may be a
      participant in the transport (e.g., changing framing or
      encapsulation).

   Upgraded HTTP relay:  Uses HTTP upgrade to relay a non-HTTP protocol.

   Tunneled relay:  Uses (or abuses?) the CONNECT mechanism to simulate
      an SSL connection to be used as a tunnel for a non-HTTP transport.




   [W3C.WD-XMLHttpRequest2-20090820]
              Kesteren, A., "XMLHttpRequest Level 2", World Wide Web
              Consortium WD WD-XMLHttpRequest2-20090820, August 2009,
              <http://www.w3.org/TR/2009/WD-XMLHttpRequest2-20090820>.

   [W3C.WD-cors-20090317]
              Kesteren, A., "Cross-Origin Resource Sharing", World Wide
              Web Consortium WD WD-cors-20090317, March 2009,
              <http://www.w3.org/TR/2009/WD-cors-20090317>.

   [W3C.WD-eventsource-20090423]
              Hickson, I., "Server-Sent Events", World Wide Web
              Consortium WD WD-eventsource-20090423, April 2009,
              <http://www.w3.org/TR/2009/WD-eventsource-20090423>.





From infinity@lindenlab.com  Thu Oct  8 15:58:55 2009
Return-Path: <infinity@lindenlab.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 4C0F93A68DD for <hybi@core3.amsl.com>; Thu,  8 Oct 2009 15:58:55 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.809
X-Spam-Level: 
X-Spam-Status: No, score=-1.809 tagged_above=-999 required=5 tests=[AWL=0.168,  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 DyNiKgl9rJ5k for <hybi@core3.amsl.com>; Thu,  8 Oct 2009 15:58:53 -0700 (PDT)
Received: from mail-px0-f204.google.com (mail-px0-f204.google.com [209.85.216.204]) by core3.amsl.com (Postfix) with ESMTP id A03DC3A68CD for <hybi@ietf.org>; Thu,  8 Oct 2009 15:58:48 -0700 (PDT)
Received: by pxi42 with SMTP id 42so6170407pxi.5 for <hybi@ietf.org>; Thu, 08 Oct 2009 16:00:29 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.142.248.39 with SMTP id v39mr147194wfh.227.1255042829090; Thu,  08 Oct 2009 16:00:29 -0700 (PDT)
In-Reply-To: <4ACE50A2.5070404@ericsson.com>
References: <4ACE50A2.5070404@ericsson.com>
From: "Infinity Linden (Meadhbh Hamrick)" <infinity@lindenlab.com>
Date: Thu, 8 Oct 2009 16:00:09 -0700
Message-ID: <3a880e2c0910081600v3607665dp193f6df499706810@mail.gmail.com>
To: Salvatore Loreto <salvatore.loreto@ericsson.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] HyBi Design Space
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, 08 Oct 2009 22:58:55 -0000

thx salvatore for typing this up. it looks good, but i have one very
minor nit and a comments/question.

the nit is that when we use the verbiage in section 6.2:

"Non-browser HTTP:  A bidirectional client may be written outside of a
browser and use bidirectional web transports.  Typically this is done
so that a rich or minimal client can bypass firewalls to access public
servers over HTTP transports.  Examples include the Comet Java client
and the Second Life Viewer."

it could be interpreted that the reason we use HTTP is exclusively to
move through firewalls easily. the main reason we layer some of our
protocol over HTTP is that we wanted / needed a protocol with request
/ response + metadata semantics. that it goes through firewalls is a
pleasant side-effect. i suspect that other users of HTTP as a
substrate might have come to the idea for the same reasons. could i
recommend the minor change of:

"Non-browser HTTP:  A bidirectional client may be written outside of a
browser and use bidirectional web transports.  Typically this is done
when a rich or minimal client requires a mature transport for
application protocol with request / response semantics and/or the
ability to bypass firewalls to access public servers over HTTP
transports.  Examples include the Comet Java client and the Second
Life Viewer."

and the comment/question:

1. towards the end of the breakfast bof we discussed... for lack of a
better term... "features" like message multiplexing so that when
independent components on the server want to send an unsolicited
message to independent components on the client may use the same
connection. in other words, allowing a single connection to carry
messages for multiple channels. that's still being discussed, right?

we sorta figured that it won't be an unusual case to find you have a
large number of components on the client that need to be addressable
by independent components on the server. my read of websockets seems
to imply it punts on the issue, requiring application developers to
design such a scheme for themselves. that sorta makes me a little
uneasy. when your client is a web browser that downloads a web page,
instantiates a number of javascript objects described by javascript
files on the server, i can see that this provides a great deal of
flexibility. but the SL viewer won't be downloading and executing
javascript for something as critical as server to client messaging,
and i would venture to guess that other applications that use HTTP as
a substrate will find this idea concerning.

if we were to implement messaging over websockets, i believe we would
be inclined to define a static client service that consumes the
protocol, but assumes a payload with a field that identifies a
uniquely addressable destination component in the client.

if we're going to define such a scheme and enshrine it in c++ on our
client, it would be very nice, since it's not going to change very
much, if it were vaguely standardized so we could get intermediaries
to understand the request and potentially cache them.

this is my round-about way of saying, we like rhttp and bwtp because
they allow intermediaries to reason about reverse-requests, caching
reverse responses when appropriate, routing around firewalls when
appropriate (like a bwtp aware socks stack) and allow us to use design
patterns we're familiar with (like web capabilities) in the reverse
direction.

since i've rambled, let me repeat my question.. "we're still going to
add message multiplexing, right?"

if yes, i'll just shut up now and wait to comment when the draft is publish=
ed.

if no, i'd love to chat about it a little more.

-cheers
-meadhbh / infinity

--
   infinity linden (aka meadhbh hamrick)  *  it's pronounced "maeve"
         http://wiki.secondlife.com/wiki/User:Infinity_Linden



On Thu, Oct 8, 2009 at 13:50, Salvatore Loreto
<salvatore.loreto@ericsson.com> wrote:
> Hi there,
>
> at the breakfast BoF in Stockholm it was brought up that it would have be=
en
> helpful to more
> clearly describe the design space, including the programming environments
> (client, server, library, etc.), deployed infrastructure (routers, proxie=
s,
> etc.).
>
> here the analysis that we have written down and we are going to insert in
> the draft-loreto-http-bidirectional.
>
> comments, feedbacks and suggestions are very welcome
>
> cheers
> Sal
> www.sloreto.com
>
>
>
> 6. =A0Design Space
>
> =A0In order to define additions to HTTP that could enable improved
> =A0mechanisms for bidirectional HTTP or new bidirectional protocols, it
> =A0is important to map out the design space and potential design
> =A0alternatives, with special attention to deployed infrastructure and
> =A0programming environments.
>
> =A0In existing HTTP-based systems, the typical semantic is client-server
> =A0Representational State Transfer (REST), where the resources served
> =A0are closely associated with an entity known by a URI or URL.
> =A0However, the introduction of bidirectionality can significantly
> =A0change the normal HTTP patterns.
>
> =A0As one example, the standard roles of client and server can be
> =A0reversed and a server can request resources from a client.
> =A0Unfortunately, due to a lack of client addressability URL's may not
> =A0be applicable to client entities and new addressing paradigms may be
> =A0required.
>
> =A0Furthermore, bidirectionality introduces a message passing pattern
> =A0into the traditional REST style.
>
> =A0These additional semantics will influence the design of the
> =A0bidirecitonal protocols, addressing, and APIs. =A0Without a strong
> =A0association between an identified entity and a resource, new
> =A0mechanisms for content distribution and caching messages might need
> =A0to be considered.
>
> =A0In the next sections we analyse the design space from several
> =A0different sides of the HTTP deployed infrastructure, including
> =A0clients, servers, and intermediaries such as proxies, caching
> =A0servers, and load balancers.
>
> =A0The process of evaluating eventual improvements to the bidirectional
> =A0solutions or development of new bidirection protocols should take
> =A0into consideration the following concerns and criteria:
>
> =A0Complexity: =A0enables ease of implementation, understanding, and
> =A0 =A0 debugging
>
> =A0Capability: =A0addresses all/most known bidirectional use-cases
>
> =A0Extensibility: =A0has the capacity to handle new use-cases
>
> =A0Latency: =A0defines minimal, average, and maximal latency for message
> =A0 =A0 delivery
>
> =A0Bandwidth overhead: =A0minimizes overhead for idle and busy usage
>
> =A0Scalability: =A0has the ability to handle large scale usage
>
> =A0Footprint: =A0has the ability to handle small devices and/or massive
> =A0 =A0 replication ("cloud")
>
> =A0AAA: =A0enables proper Authentication, Authorization and Accounting
>
> =A0Security: =A0enables strong security for integral, confidential,
> =A0 =A0 endorsed, and cross domain deployments.
>
> =A0Interoperability: =A0can work with and/or be integrated with existing
> =A0 =A0 bidirectional implementations
>
> =A0Compatibility: =A0can work with existing web infrastructure for
> =A0 =A0 distributing, caching, manipulating, and displaying content.
>
> 6.1. =A0Server side
>
> =A0The server side can be decomposed into three categories:
>
> =A0In-band HTTP: =A0Bidirectionality is part of the normal HTTP/Web serve=
r
> =A0 =A0 responsibilities. =A0HTTP is used for transporting server events.
> =A0 =A0 Examples include Comet and (in some deployments) BOSH.
>
> =A0Out-of-band HTTP: =A0Here two servers are involved: bidirectionality i=
s
> =A0 =A0 not part of the normal HTTP/Web server responsibilities, but the
> =A0 =A0 backend service is offered by a separate server that might not
> =A0 =A0 even be on the same machine of the HTTP/Web server. =A0HTTP is us=
ed
> =A0 =A0 for transporting server events. =A0When a browser is used on the
> =A0 =A0 client side, a cross-domain solution is needed to overcome the
> =A0 =A0 "same-source" web service restriction. =A0Examples include BOSH (=
in
> =A0 =A0 some deployments) and Lightstreamer.
>
> =A0In-band non-HTTP: =A0Bidirectionality is part of the normal HTTP/Web
> =A0 =A0 server responsibilities. =A0However, server events are transporte=
d
> =A0 =A0 on an upgraded HTTP connection. =A0Examples include Bidirectional
> =A0 =A0 Web Transfer Protocol (BWTP) and WebSockets.
>
> =A0Out-of-band non-HTTP: =A0Bidirectionality is offered by a dedicated
> =A0 =A0 server using non HTTP protocol for transport server events.
> =A0 =A0 Examples include WebSockets.
>
> =A0The HTTP transport based servers (in-band and out-of-band) can work
> =A0with existing HTTP standards or enhanced HTTP. =A0Enhanced HTTP would
> =A0be a standardized set of headers and behaviours to assist with
> =A0bidirectionality and cross domain concerns.
>
> =A0At present, a protocol that interacts heavily with JavaScript on the
> =A0client side implies some constraints also on the server side, such
> =A0that they have to use XML or JSON encapsulation.
>
> 6.2. =A0Clients
>
> =A0Clients can be involved in bidirectional transport in the following
> =A0capacities:
>
> =A0In browser open standards with HTTP transport: =A0For applications
> =A0 =A0 written in a web browser scripting language (e.g. =A0JavaScript)
> =A0 =A0 within a browser client. =A0Examples include Comet and BOSH.
>
> =A0In browser open standards with enhanced HTTP transport: =A0For
> =A0 =A0 applications written in a web browser scripting language (e.g.
> =A0 =A0 JavaScript) within a browser client. =A0Examples include Comet wi=
th
> =A0 =A0 cross domain extensions.
>
> =A0 =A0 Browsers using either standard HTTP transport or enhanced HTTP
> =A0 =A0 transport typically use XMLHttpRequest (XHR) API
> =A0 =A0 [W3C.WD-XMLHttpRequest2-20090820] allowing scripts to perform HTT=
P
> =A0 =A0 client functionality. =A0The XHR object can be used to perform
> =A0 =A0 bidirectional HTTP using both "long polling" and "HTTP streaming"
> =A0 =A0 mechanisms.
>
> =A0 =A0 XHR also supports the cross domain extension
> =A0 =A0 [W3C.WD-cors-20090317], which overcomes the same-origin
> =A0 =A0 restrictions that prevent a Web application running from one
> =A0 =A0 origin from obtaining data retrieved from another origin.
> =A0 =A0 However, XHR presents some limitations on the headers that can be
> =A0 =A0 set by the user.
>
> =A0 =A0 An alternative to XMLHttpRequest is using the Server-Sent Events
> =A0 =A0 API [W3C.WD-eventsource-20090423]. =A0This "EventSource: interfac=
e
> =A0 =A0 enables servers to push data to Web pages over HTTP or using
> =A0 =A0 dedicated server-push protocols.
>
>
> =A0In browser open standards with non HTTP transport: =A0For applications
> =A0 =A0 written in JavaScript within a browser client. =A0Examples includ=
e
> =A0 =A0 BWTP and WebSockets.
>
> =A0In browser with plugin: =A0This is not of particular interest to IETF,
> =A0 =A0 but should be noted as part of the design space. =A0Examples incl=
ude
> =A0 =A0 BlazeDS.
>
> =A0Non-browser HTTP: =A0A bidirectional client may be written outside of =
a
> =A0 =A0 browser and use bidirectional web transports. =A0Typically this i=
s
> =A0 =A0 done so that a rich or minimal client can bypass firewalls to
> =A0 =A0 access public servers over HTTP transports. =A0Examples include t=
he
> =A0 =A0 Comet Java client and the Second Life Viewer.
>
> =A0Non browser enhanced HTTP: =A0[Definition and examples to follow.]
>
> =A0Non browser non-HTTP: =A0[Definition and examples to follow.]
>
> 6.3. =A0Intermediaries
>
> =A0Intermediaries (e.g. proxies, gateways, caching servers, load
> =A0balancers, etc) can be involved in bidirectional transport in several
> =A0capacities:
>
> =A0Legal HTTP relay: =A0Transports such as long polling use intermediarie=
s
> =A0 =A0 to carry legal HTTP requests and response. =A0Any capabilities th=
at
> =A0 =A0 may interfere with bidirectional flow (e.g. caching) are
> =A0 =A0 controlled with standard headers or cookies. =A0The intermediary =
may
> =A0 =A0 be a participant in the transport (e.g., changing framing or
> =A0 =A0 encapsulation).
>
> =A0Defacto HTTP relay: =A0Some streaming transports use the common
> =A0 =A0 behavior of HTTP intermediaries to forward content packet-by-
> =A0 =A0 packet. =A0This relies on intermediaries to not cache or buffer
> =A0 =A0 content.
>
> =A0Enhanced HTTP relay: =A0Uses yet-to-be-defined HTTP headers to assist
> =A0 =A0 HTTP based bidirectional transports. =A0The intermediary may be a
> =A0 =A0 participant in the transport (e.g., changing framing or
> =A0 =A0 encapsulation).
>
> =A0Upgraded HTTP relay: =A0Uses HTTP upgrade to relay a non-HTTP protocol=
.
>
> =A0Tunneled relay: =A0Uses (or abuses?) the CONNECT mechanism to simulate
> =A0 =A0 an SSL connection to be used as a tunnel for a non-HTTP transport=
.
>
>
>
>
> =A0[W3C.WD-XMLHttpRequest2-20090820]
> =A0 =A0 =A0 =A0 =A0 =A0 Kesteren, A., "XMLHttpRequest Level 2", World Wid=
e Web
> =A0 =A0 =A0 =A0 =A0 =A0 Consortium WD WD-XMLHttpRequest2-20090820, August=
 2009,
> =A0 =A0 =A0 =A0 =A0 =A0 <http://www.w3.org/TR/2009/WD-XMLHttpRequest2-200=
90820>.
>
> =A0[W3C.WD-cors-20090317]
> =A0 =A0 =A0 =A0 =A0 =A0 Kesteren, A., "Cross-Origin Resource Sharing", Wo=
rld Wide
> =A0 =A0 =A0 =A0 =A0 =A0 Web Consortium WD WD-cors-20090317, March 2009,
> =A0 =A0 =A0 =A0 =A0 =A0 <http://www.w3.org/TR/2009/WD-cors-20090317>.
>
> =A0[W3C.WD-eventsource-20090423]
> =A0 =A0 =A0 =A0 =A0 =A0 Hickson, I., "Server-Sent Events", World Wide Web
> =A0 =A0 =A0 =A0 =A0 =A0 Consortium WD WD-eventsource-20090423, April 2009=
,
> =A0 =A0 =A0 =A0 =A0 =A0 <http://www.w3.org/TR/2009/WD-eventsource-2009042=
3>.
>
>
>
>
> _______________________________________________
> hybi mailing list
> hybi@ietf.org
> https://www.ietf.org/mailman/listinfo/hybi
>

From Martin.Thomson@andrew.com  Thu Oct  8 20:13:04 2009
Return-Path: <Martin.Thomson@andrew.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 74D7E3A694C for <hybi@core3.amsl.com>; Thu,  8 Oct 2009 20:13:04 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.472
X-Spam-Level: 
X-Spam-Status: No, score=-2.472 tagged_above=-999 required=5 tests=[AWL=0.127,  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 0R9WEfoRhkQr for <hybi@core3.amsl.com>; Thu,  8 Oct 2009 20:13:02 -0700 (PDT)
Received: from andrew.com (smtp3.andrew.com [198.135.207.235]) by core3.amsl.com (Postfix) with ESMTP id ADC753A687E for <hybi@ietf.org>; Thu,  8 Oct 2009 20:13:02 -0700 (PDT)
X-SEF-Processed: 5_0_0_910__2009_10_08_22_38_36
X-SEF-16EBA1E9-99E8-4E1D-A1CA-4971F5510AF: 1
Received: from acdcexbh1.andrew.com [10.86.20.91] by smtp3.andrew.com - SurfControl E-mail Filter (5.2.1); Thu, 08 Oct 2009 22:38:36 -0500
Received: from AHQEX1.andrew.com ([10.86.20.21]) by acdcexbh1.andrew.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 8 Oct 2009 22:14:40 -0500
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
Date: Thu, 8 Oct 2009 22:15:00 -0500
Message-ID: <E51D5B15BFDEFD448F90BDD17D41CFF1065B6142@AHQEX1.andrew.com>
In-Reply-To: <4ACE50A2.5070404@ericsson.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [hybi] HyBi Design Space
thread-index: AcpIWRPXiSdrTO/zQBmv3JnSDahykgACCY9w
References: <4ACE50A2.5070404@ericsson.com>
From: "Thomson, Martin" <Martin.Thomson@andrew.com>
To: "Salvatore Loreto" <salvatore.loreto@ericsson.com>, <hybi@ietf.org>
X-OriginalArrivalTime: 09 Oct 2009 03:14:40.0506 (UTC) FILETIME=[A3DAC5A0:01CA488E]
Subject: Re: [hybi] HyBi Design Space
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: Fri, 09 Oct 2009 03:13:04 -0000

V2hpbGUgSSBhZ3JlZSB0aGF0IGNvbnN0cmFpbmluZyB0aGUgZGVzaWduIHNwYWNlIGlzIHByb2Jh
Ymx5IGEgbmVjZXNzYXJ5IHBhcnQgb2Ygb3VyIHdvcmssIHRoZXJlIGFyZSBhc3BlY3RzIHRvIHRo
aXMgdGV4dCB0aGF0IGNvbmNlcm4gbWUuDQoNCkkgbGlrZSB0aGUgZWZmb3J0IHRoYXQgaXMgZ29p
bmcgaW50byBpZGVudGlmeWluZyB0aGUgc2VydmVycywgY2xpZW50cyBhbmQgaW50ZXJtZWRpYXJp
ZXMgdGhhdCBhcmUgaW52b2x2ZWQgYW5kIHRoZSBjb25zdHJhaW50cyB0aGF0IGFyZSBpbnZvbHZl
ZC4gIFRoYXQgcGFydCBvZiB0aGUgdGV4dCBzZWVtcyB2YWx1YWJsZS4NCg0KSG93ZXZlciwgaXQg
c2VlbXMgbGlrZSB0aGVyZSB3YXMgY29uc2Vuc3VzIHRvIGFkZHJlc3MgdHdvIHByb2JsZW1zIGlu
IHRoZSBXRzoNCg0KIEEgLSByaWdodCBoZXJlIGFuZCBub3csIEhUVFAgZXh0ZW5zaW9ucw0KIEIg
LSBzb21ldGltZSBsYXRlciwgbmV3IHByb3RvY29scyB0aGF0IGludGVyYWN0IHNvbWVob3cgd2l0
aCBIVFRQDQoNCkZyb20gdGhlIGFic3RyYWN0IGFuZCBlYXJseSBzZWN0aW9ucyBvZiB0aGUgZG9j
dW1lbnQsIHRoZSBkcmFmdCByaWdodCBub3cgc2VlbXMgdG8gYmUgY29uY2VudHJhdGVkIG9uIHRo
ZSBzaWRlIG9mIEEuDQoNClRoaXMgYW5hbHlzaXMgc2VlbXMgZGl2b3JjZWQgZnJvbSB0aGlzIGdv
YWwsIHNvIG11Y2ggc28gdGhhdCBpdCBzZWVtcyBhIGxpdHRsZSB1bmZvY3Vzc2VkLg0KDQpGb3Ig
aW5zdGFuY2UsIHRoZSB1c3VhbCBsYXVuZHJ5IGxpc3Qgb2YgZGVzaXJlcyBzdXJmYWNlczogQ29t
cGxleGl0eSwgQ2FwYWJpbGl0eSwgRXh0ZW5zaWJpbGl0eSwgTGF0ZW5jeSwgQmFuZHdpZHRoLCBT
Y2FsYWJpbGl0eSwgRm9vdHByaW50LCBBQUEsIFNlY3VyaXR5LCBJbnRlcm9wZXJhYmlsaXR5ICgh
KSwgQ29tcGF0aWJpbGl0eS4NCg0KVGhlc2UgYXJlIGNvbnN0cmFpbnRzIG9uIGFueSBkZXNpZ24g
ZXhlcmNpc2UuICBUaGV5IGRvbid0IGFkZCBhbnkgdmFsdWUgdW5sZXNzIHRoZXkgYXJlIGRpcmVj
dGx5IHJlbGF0ZWQgdG8gdGhlIHdvcmsgYXQgaGFuZC4NCg0KTXkgaW5pdGlhbCB2aWV3IG9mIHRo
aXMgZG9jdW1lbnQgd2FzIGEgcHJvYmxlbSBzdGF0ZW1lbnQgZm9yIEEuICBUbyB0aGF0IGVuZCwg
dGhpcyBjb3VsZCBhbGwgYmUgbXVjaCBtb3JlIHNwZWNpZmljLiAgRm9yIGluc3RhbmNlLCBjb21w
YXRpYmlsaXR5IGlzIGhpZ2hseSBpbXBvcnRhbnQgZm9yIHNvbHV0aW9uIEEuICBPciwgbW9yZSBz
cGVjaWZpY2FsbHkgeWV0OiBpdCBpcyBpbXBvcnRhbnQgdGhhdCBzb2x1dGlvbiBBIGNhbiBiZSBk
ZXBsb3llZCB0byB0aGUgd2ViIGluIHRoZSBzaG9ydC10ZXJtLCBzbyBjb21wYXRpYmlsaXR5IHdp
dGggZXhpc3RpbmcgaW1wbGVtZW50YXRpb25zIGlzIGNydWNpYWwuDQoNClRoZSBleGFtcGxlIG9m
ICJOb24tYnJvd3Nlciwgbm9uLUhUVFAiIGltbWVkaWF0ZWx5IGp1bXBzIG91dCBhcyBhIHByb2Js
ZW0gZm9yIHRoaXMgZG9jdW1lbnQuICBBIHJlYXNvbmFibGUgcmVhY3Rpb24gbWlnaHQgYmUgdGhh
dCB0aGlzIGlzIHdheSBvdXQgb2Ygc2NvcGUuICBCdXQgdGhlbiwgSSBrbm93IHRoYXQgaXQgaXNu
J3QgbmVjZXNzYXJpbHkgdGhlIGNhc2UuICAgSW5zdWZmaWNpZW50IGNvbnRleHQgaGFzIGJlZW4g
cHJvdmlkZWQgdG8gYXNzZXNzIHRoaXMgaXRlbSByYXRpb25hbGx5IGJlY2F1c2UgaXQncyB0YWxr
aW5nIGFib3V0IEIsIG5vdCBBLg0KDQpCZWNhdXNlIHRoZSBjb25zdHJhaW50cyBhcmUgc2lnbmlm
aWNhbnRseSBkaWZmZXJlbnQgb24gQSB2cy4gQiwgYSBzZXBhcmF0ZSBwcm9ibGVtIHN0YXRlbWVu
dCBmb3IgQiBzZWVtcyBhcHByb3ByaWF0ZS4gIFRoYXQgd291bGQgaGVscCB0aGlzIGJlIGEgbGl0
dGxlIGxlc3MgdmFndWUuDQoNCi0tTWFydGluDQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0t
LS0NCj4gRnJvbTogaHliaS1ib3VuY2VzQGlldGYub3JnIFttYWlsdG86aHliaS1ib3VuY2VzQGll
dGYub3JnXSBPbiBCZWhhbGYgT2YNCj4gU2FsdmF0b3JlIExvcmV0bw0KPiBTZW50OiBGcmlkYXks
IDkgT2N0b2JlciAyMDA5IDc6NTEgQU0NCj4gVG86IGh5YmlAaWV0Zi5vcmcNCj4gU3ViamVjdDog
W2h5YmldIEh5QmkgRGVzaWduIFNwYWNlDQo+IA0KPiBIaSB0aGVyZSwNCj4gDQo+IGF0IHRoZSBi
cmVha2Zhc3QgQm9GIGluIFN0b2NraG9sbSBpdCB3YXMgYnJvdWdodCB1cCB0aGF0IGl0IHdvdWxk
IGhhdmUNCj4gYmVlbiBoZWxwZnVsIHRvIG1vcmUNCj4gY2xlYXJseSBkZXNjcmliZSB0aGUgZGVz
aWduIHNwYWNlLCBpbmNsdWRpbmcgdGhlIHByb2dyYW1taW5nDQo+IGVudmlyb25tZW50cyAoY2xp
ZW50LCBzZXJ2ZXIsDQo+IGxpYnJhcnksIGV0Yy4pLCBkZXBsb3llZCBpbmZyYXN0cnVjdHVyZSAo
cm91dGVycywgcHJveGllcywgZXRjLikuDQo+IA0KPiBoZXJlIHRoZSBhbmFseXNpcyB0aGF0IHdl
IGhhdmUgd3JpdHRlbiBkb3duIGFuZCB3ZSBhcmUgZ29pbmcgdG8gaW5zZXJ0DQo+IGluIHRoZQ0K
PiBkcmFmdC1sb3JldG8taHR0cC1iaWRpcmVjdGlvbmFsLg0KPiANCj4gY29tbWVudHMsIGZlZWRi
YWNrcyBhbmQgc3VnZ2VzdGlvbnMgYXJlIHZlcnkgd2VsY29tZQ0KPiANCj4gY2hlZXJzDQo+IFNh
bA0KPiB3d3cuc2xvcmV0by5jb20NCj4gDQo+IA0KPiANCj4gNi4gIERlc2lnbiBTcGFjZQ0KPiAN
Cj4gICAgSW4gb3JkZXIgdG8gZGVmaW5lIGFkZGl0aW9ucyB0byBIVFRQIHRoYXQgY291bGQgZW5h
YmxlIGltcHJvdmVkDQo+ICAgIG1lY2hhbmlzbXMgZm9yIGJpZGlyZWN0aW9uYWwgSFRUUCBvciBu
ZXcgYmlkaXJlY3Rpb25hbCBwcm90b2NvbHMsIGl0DQo+ICAgIGlzIGltcG9ydGFudCB0byBtYXAg
b3V0IHRoZSBkZXNpZ24gc3BhY2UgYW5kIHBvdGVudGlhbCBkZXNpZ24NCj4gICAgYWx0ZXJuYXRp
dmVzLCB3aXRoIHNwZWNpYWwgYXR0ZW50aW9uIHRvIGRlcGxveWVkIGluZnJhc3RydWN0dXJlIGFu
ZA0KPiAgICBwcm9ncmFtbWluZyBlbnZpcm9ubWVudHMuDQo+IA0KPiAgICBJbiBleGlzdGluZyBI
VFRQLWJhc2VkIHN5c3RlbXMsIHRoZSB0eXBpY2FsIHNlbWFudGljIGlzIGNsaWVudC0NCj4gc2Vy
dmVyDQo+ICAgIFJlcHJlc2VudGF0aW9uYWwgU3RhdGUgVHJhbnNmZXIgKFJFU1QpLCB3aGVyZSB0
aGUgcmVzb3VyY2VzIHNlcnZlZA0KPiAgICBhcmUgY2xvc2VseSBhc3NvY2lhdGVkIHdpdGggYW4g
ZW50aXR5IGtub3duIGJ5IGEgVVJJIG9yIFVSTC4NCj4gICAgSG93ZXZlciwgdGhlIGludHJvZHVj
dGlvbiBvZiBiaWRpcmVjdGlvbmFsaXR5IGNhbiBzaWduaWZpY2FudGx5DQo+ICAgIGNoYW5nZSB0
aGUgbm9ybWFsIEhUVFAgcGF0dGVybnMuDQo+IA0KPiAgICBBcyBvbmUgZXhhbXBsZSwgdGhlIHN0
YW5kYXJkIHJvbGVzIG9mIGNsaWVudCBhbmQgc2VydmVyIGNhbiBiZQ0KPiAgICByZXZlcnNlZCBh
bmQgYSBzZXJ2ZXIgY2FuIHJlcXVlc3QgcmVzb3VyY2VzIGZyb20gYSBjbGllbnQuDQo+ICAgIFVu
Zm9ydHVuYXRlbHksIGR1ZSB0byBhIGxhY2sgb2YgY2xpZW50IGFkZHJlc3NhYmlsaXR5IFVSTCdz
IG1heSBub3QJDQo+ICAgIGJlIGFwcGxpY2FibGUgdG8gY2xpZW50IGVudGl0aWVzIGFuZCBuZXcg
YWRkcmVzc2luZyBwYXJhZGlnbXMgbWF5IGJlDQo+ICAgIHJlcXVpcmVkLg0KPiANCj4gICAgRnVy
dGhlcm1vcmUsIGJpZGlyZWN0aW9uYWxpdHkgaW50cm9kdWNlcyBhIG1lc3NhZ2UgcGFzc2luZyBw
YXR0ZXJuDQo+ICAgIGludG8gdGhlIHRyYWRpdGlvbmFsIFJFU1Qgc3R5bGUuDQo+IA0KPiAgICBU
aGVzZSBhZGRpdGlvbmFsIHNlbWFudGljcyB3aWxsIGluZmx1ZW5jZSB0aGUgZGVzaWduIG9mIHRo
ZQ0KPiAgICBiaWRpcmVjaXRvbmFsIHByb3RvY29scywgYWRkcmVzc2luZywgYW5kIEFQSXMuICBX
aXRob3V0IGEgc3Ryb25nDQo+ICAgIGFzc29jaWF0aW9uIGJldHdlZW4gYW4gaWRlbnRpZmllZCBl
bnRpdHkgYW5kIGEgcmVzb3VyY2UsIG5ldw0KPiAgICBtZWNoYW5pc21zIGZvciBjb250ZW50IGRp
c3RyaWJ1dGlvbiBhbmQgY2FjaGluZyBtZXNzYWdlcyBtaWdodCBuZWVkDQo+ICAgIHRvIGJlIGNv
bnNpZGVyZWQuDQo+IA0KPiAgICBJbiB0aGUgbmV4dCBzZWN0aW9ucyB3ZSBhbmFseXNlIHRoZSBk
ZXNpZ24gc3BhY2UgZnJvbSBzZXZlcmFsDQo+ICAgIGRpZmZlcmVudCBzaWRlcyBvZiB0aGUgSFRU
UCBkZXBsb3llZCBpbmZyYXN0cnVjdHVyZSwgaW5jbHVkaW5nDQo+ICAgIGNsaWVudHMsIHNlcnZl
cnMsIGFuZCBpbnRlcm1lZGlhcmllcyBzdWNoIGFzIHByb3hpZXMsIGNhY2hpbmcNCj4gICAgc2Vy
dmVycywgYW5kIGxvYWQgYmFsYW5jZXJzLg0KPiANCj4gICAgVGhlIHByb2Nlc3Mgb2YgZXZhbHVh
dGluZyBldmVudHVhbCBpbXByb3ZlbWVudHMgdG8gdGhlIGJpZGlyZWN0aW9uYWwNCj4gICAgc29s
dXRpb25zIG9yIGRldmVsb3BtZW50IG9mIG5ldyBiaWRpcmVjdGlvbiBwcm90b2NvbHMgc2hvdWxk
IHRha2UNCj4gICAgaW50byBjb25zaWRlcmF0aW9uIHRoZSBmb2xsb3dpbmcgY29uY2VybnMgYW5k
IGNyaXRlcmlhOg0KPiANCj4gICAgQ29tcGxleGl0eTogIGVuYWJsZXMgZWFzZSBvZiBpbXBsZW1l
bnRhdGlvbiwgdW5kZXJzdGFuZGluZywgYW5kDQo+ICAgICAgIGRlYnVnZ2luZw0KPiANCj4gICAg
Q2FwYWJpbGl0eTogIGFkZHJlc3NlcyBhbGwvbW9zdCBrbm93biBiaWRpcmVjdGlvbmFsIHVzZS1j
YXNlcw0KPiANCj4gICAgRXh0ZW5zaWJpbGl0eTogIGhhcyB0aGUgY2FwYWNpdHkgdG8gaGFuZGxl
IG5ldyB1c2UtY2FzZXMNCj4gCQ0KPiAgICBMYXRlbmN5OiAgZGVmaW5lcyBtaW5pbWFsLCBhdmVy
YWdlLCBhbmQgbWF4aW1hbCBsYXRlbmN5IGZvciBtZXNzYWdlDQo+ICAgICAgIGRlbGl2ZXJ5DQo+
IA0KPiAgICBCYW5kd2lkdGggb3ZlcmhlYWQ6ICBtaW5pbWl6ZXMgb3ZlcmhlYWQgZm9yIGlkbGUg
YW5kIGJ1c3kgdXNhZ2UNCj4gDQo+ICAgIFNjYWxhYmlsaXR5OiAgaGFzIHRoZSBhYmlsaXR5IHRv
IGhhbmRsZSBsYXJnZSBzY2FsZSB1c2FnZQ0KPiANCj4gICAgRm9vdHByaW50OiAgaGFzIHRoZSBh
YmlsaXR5IHRvIGhhbmRsZSBzbWFsbCBkZXZpY2VzIGFuZC9vciBtYXNzaXZlDQo+ICAgICAgIHJl
cGxpY2F0aW9uICgiY2xvdWQiKQ0KPiANCj4gICAgQUFBOiAgZW5hYmxlcyBwcm9wZXIgQXV0aGVu
dGljYXRpb24sIEF1dGhvcml6YXRpb24gYW5kIEFjY291bnRpbmcNCj4gDQo+ICAgIFNlY3VyaXR5
OiAgZW5hYmxlcyBzdHJvbmcgc2VjdXJpdHkgZm9yIGludGVncmFsLCBjb25maWRlbnRpYWwsDQo+
ICAgICAgIGVuZG9yc2VkLCBhbmQgY3Jvc3MgZG9tYWluIGRlcGxveW1lbnRzLg0KPiANCj4gICAg
SW50ZXJvcGVyYWJpbGl0eTogIGNhbiB3b3JrIHdpdGggYW5kL29yIGJlIGludGVncmF0ZWQgd2l0
aCBleGlzdGluZw0KPiAgICAgICBiaWRpcmVjdGlvbmFsIGltcGxlbWVudGF0aW9ucw0KPiANCj4g
ICAgQ29tcGF0aWJpbGl0eTogIGNhbiB3b3JrIHdpdGggZXhpc3Rpbmcgd2ViIGluZnJhc3RydWN0
dXJlIGZvcg0KPiAgICAgICBkaXN0cmlidXRpbmcsIGNhY2hpbmcsIG1hbmlwdWxhdGluZywgYW5k
IGRpc3BsYXlpbmcgY29udGVudC4NCj4gDQo+IDYuMS4gIFNlcnZlciBzaWRlDQo+IA0KPiAgICBU
aGUgc2VydmVyIHNpZGUgY2FuIGJlIGRlY29tcG9zZWQgaW50byB0aHJlZSBjYXRlZ29yaWVzOg0K
PiANCj4gICAgSW4tYmFuZCBIVFRQOiAgQmlkaXJlY3Rpb25hbGl0eSBpcyBwYXJ0IG9mIHRoZSBu
b3JtYWwgSFRUUC9XZWINCj4gc2VydmVyDQo+ICAgICAgIHJlc3BvbnNpYmlsaXRpZXMuICBIVFRQ
IGlzIHVzZWQgZm9yIHRyYW5zcG9ydGluZyBzZXJ2ZXIgZXZlbnRzLg0KPiAgICAgICBFeGFtcGxl
cyBpbmNsdWRlIENvbWV0IGFuZCAoaW4gc29tZSBkZXBsb3ltZW50cykgQk9TSC4NCj4gDQo+ICAg
IE91dC1vZi1iYW5kIEhUVFA6ICBIZXJlIHR3byBzZXJ2ZXJzIGFyZSBpbnZvbHZlZDogYmlkaXJl
Y3Rpb25hbGl0eQ0KPiBpcw0KPiAgICAgICBub3QgcGFydCBvZiB0aGUgbm9ybWFsIEhUVFAvV2Vi
IHNlcnZlciByZXNwb25zaWJpbGl0aWVzLCBidXQgdGhlDQo+ICAgICAgIGJhY2tlbmQgc2Vydmlj
ZSBpcyBvZmZlcmVkIGJ5IGEgc2VwYXJhdGUgc2VydmVyIHRoYXQgbWlnaHQgbm90DQo+ICAgICAg
IGV2ZW4gYmUgb24gdGhlIHNhbWUgbWFjaGluZSBvZiB0aGUgSFRUUC9XZWIgc2VydmVyLiAgSFRU
UCBpcyB1c2VkDQo+ICAgICAgIGZvciB0cmFuc3BvcnRpbmcgc2VydmVyIGV2ZW50cy4gIFdoZW4g
YSBicm93c2VyIGlzIHVzZWQgb24gdGhlDQo+ICAgICAgIGNsaWVudCBzaWRlLCBhIGNyb3NzLWRv
bWFpbiBzb2x1dGlvbiBpcyBuZWVkZWQgdG8gb3ZlcmNvbWUgdGhlDQo+ICAgICAgICJzYW1lLXNv
dXJjZSIgd2ViIHNlcnZpY2UgcmVzdHJpY3Rpb24uICBFeGFtcGxlcyBpbmNsdWRlIEJPU0ggKGlu
DQo+ICAgICAgIHNvbWUgZGVwbG95bWVudHMpIGFuZCBMaWdodHN0cmVhbWVyLg0KPiANCj4gICAg
SW4tYmFuZCBub24tSFRUUDogIEJpZGlyZWN0aW9uYWxpdHkgaXMgcGFydCBvZiB0aGUgbm9ybWFs
IEhUVFAvV2ViDQo+ICAgICAgIHNlcnZlciByZXNwb25zaWJpbGl0aWVzLiAgSG93ZXZlciwgc2Vy
dmVyIGV2ZW50cyBhcmUgdHJhbnNwb3J0ZWQNCj4gICAgICAgb24gYW4gdXBncmFkZWQgSFRUUCBj
b25uZWN0aW9uLiAgRXhhbXBsZXMgaW5jbHVkZSBCaWRpcmVjdGlvbmFsDQo+ICAgICAgIFdlYiBU
cmFuc2ZlciBQcm90b2NvbCAoQldUUCkgYW5kIFdlYlNvY2tldHMuDQo+IA0KPiAgICBPdXQtb2Yt
YmFuZCBub24tSFRUUDogIEJpZGlyZWN0aW9uYWxpdHkgaXMgb2ZmZXJlZCBieSBhIGRlZGljYXRl
ZA0KPiAgICAgICBzZXJ2ZXIgdXNpbmcgbm9uIEhUVFAgcHJvdG9jb2wgZm9yIHRyYW5zcG9ydCBz
ZXJ2ZXIgZXZlbnRzLg0KPiAgICAgICBFeGFtcGxlcyBpbmNsdWRlIFdlYlNvY2tldHMuDQo+IA0K
PiAgICBUaGUgSFRUUCB0cmFuc3BvcnQgYmFzZWQgc2VydmVycyAoaW4tYmFuZCBhbmQgb3V0LW9m
LWJhbmQpIGNhbiB3b3JrDQo+ICAgIHdpdGggZXhpc3RpbmcgSFRUUCBzdGFuZGFyZHMgb3IgZW5o
YW5jZWQgSFRUUC4gIEVuaGFuY2VkIEhUVFAgd291bGQNCj4gICAgYmUgYSBzdGFuZGFyZGl6ZWQg
c2V0IG9mIGhlYWRlcnMgYW5kIGJlaGF2aW91cnMgdG8gYXNzaXN0IHdpdGgNCj4gICAgYmlkaXJl
Y3Rpb25hbGl0eSBhbmQgY3Jvc3MgZG9tYWluIGNvbmNlcm5zLg0KPiANCj4gICAgQXQgcHJlc2Vu
dCwgYSBwcm90b2NvbCB0aGF0IGludGVyYWN0cyBoZWF2aWx5IHdpdGggSmF2YVNjcmlwdCBvbiB0
aGUNCj4gICAgY2xpZW50IHNpZGUgaW1wbGllcyBzb21lIGNvbnN0cmFpbnRzIGFsc28gb24gdGhl
IHNlcnZlciBzaWRlLCBzdWNoDQo+ICAgIHRoYXQgdGhleSBoYXZlIHRvIHVzZSBYTUwgb3IgSlNP
TiBlbmNhcHN1bGF0aW9uLg0KPiANCj4gNi4yLiAgQ2xpZW50cw0KPiANCj4gICAgQ2xpZW50cyBj
YW4gYmUgaW52b2x2ZWQgaW4gYmlkaXJlY3Rpb25hbCB0cmFuc3BvcnQgaW4gdGhlIGZvbGxvd2lu
Zw0KPiAgICBjYXBhY2l0aWVzOg0KPiANCj4gICAgSW4gYnJvd3NlciBvcGVuIHN0YW5kYXJkcyB3
aXRoIEhUVFAgdHJhbnNwb3J0OiAgRm9yIGFwcGxpY2F0aW9ucw0KPiAgICAgICB3cml0dGVuIGlu
IGEgd2ViIGJyb3dzZXIgc2NyaXB0aW5nIGxhbmd1YWdlIChlLmcuICBKYXZhU2NyaXB0KQ0KPiAg
ICAgICB3aXRoaW4gYSBicm93c2VyIGNsaWVudC4gIEV4YW1wbGVzIGluY2x1ZGUgQ29tZXQgYW5k
IEJPU0guDQo+IA0KPiAgICBJbiBicm93c2VyIG9wZW4gc3RhbmRhcmRzIHdpdGggZW5oYW5jZWQg
SFRUUCB0cmFuc3BvcnQ6ICBGb3INCj4gICAgICAgYXBwbGljYXRpb25zIHdyaXR0ZW4gaW4gYSB3
ZWIgYnJvd3NlciBzY3JpcHRpbmcgbGFuZ3VhZ2UgKGUuZy4NCj4gICAgICAgSmF2YVNjcmlwdCkg
d2l0aGluIGEgYnJvd3NlciBjbGllbnQuICBFeGFtcGxlcyBpbmNsdWRlIENvbWV0IHdpdGgNCj4g
ICAgICAgY3Jvc3MgZG9tYWluIGV4dGVuc2lvbnMuDQo+IA0KPiAgICAgICBCcm93c2VycyB1c2lu
ZyBlaXRoZXIgc3RhbmRhcmQgSFRUUCB0cmFuc3BvcnQgb3IgZW5oYW5jZWQgSFRUUA0KPiAgICAg
ICB0cmFuc3BvcnQgdHlwaWNhbGx5IHVzZSBYTUxIdHRwUmVxdWVzdCAoWEhSKSBBUEkNCj4gICAg
ICAgW1czQy5XRC1YTUxIdHRwUmVxdWVzdDItMjAwOTA4MjBdIGFsbG93aW5nIHNjcmlwdHMgdG8g
cGVyZm9ybQ0KPiBIVFRQDQo+ICAgICAgIGNsaWVudCBmdW5jdGlvbmFsaXR5LiAgVGhlIFhIUiBv
YmplY3QgY2FuIGJlIHVzZWQgdG8gcGVyZm9ybQ0KPiAgICAgICBiaWRpcmVjdGlvbmFsIEhUVFAg
dXNpbmcgYm90aCAibG9uZyBwb2xsaW5nIiBhbmQgIkhUVFAgc3RyZWFtaW5nIg0KPiAgICAgICBt
ZWNoYW5pc21zLg0KPiANCj4gICAgICAgWEhSIGFsc28gc3VwcG9ydHMgdGhlIGNyb3NzIGRvbWFp
biBleHRlbnNpb24NCj4gICAgICAgW1czQy5XRC1jb3JzLTIwMDkwMzE3XSwgd2hpY2ggb3ZlcmNv
bWVzIHRoZSBzYW1lLW9yaWdpbg0KPiAgICAgICByZXN0cmljdGlvbnMgdGhhdCBwcmV2ZW50IGEg
V2ViIGFwcGxpY2F0aW9uIHJ1bm5pbmcgZnJvbSBvbmUNCj4gICAgICAgb3JpZ2luIGZyb20gb2J0
YWluaW5nIGRhdGEgcmV0cmlldmVkIGZyb20gYW5vdGhlciBvcmlnaW4uDQo+ICAgICAgIEhvd2V2
ZXIsIFhIUiBwcmVzZW50cyBzb21lIGxpbWl0YXRpb25zIG9uIHRoZSBoZWFkZXJzIHRoYXQgY2Fu
IGJlDQo+ICAgICAgIHNldCBieSB0aGUgdXNlci4NCj4gDQo+ICAgICAgIEFuIGFsdGVybmF0aXZl
IHRvIFhNTEh0dHBSZXF1ZXN0IGlzIHVzaW5nIHRoZSBTZXJ2ZXItU2VudCBFdmVudHMNCj4gICAg
ICAgQVBJIFtXM0MuV0QtZXZlbnRzb3VyY2UtMjAwOTA0MjNdLiAgVGhpcyAiRXZlbnRTb3VyY2U6
IGludGVyZmFjZQ0KPiAgICAgICBlbmFibGVzIHNlcnZlcnMgdG8gcHVzaCBkYXRhIHRvIFdlYiBw
YWdlcyBvdmVyIEhUVFAgb3IgdXNpbmcNCj4gICAgICAgZGVkaWNhdGVkIHNlcnZlci1wdXNoIHBy
b3RvY29scy4NCj4gDQo+IA0KPiAgICBJbiBicm93c2VyIG9wZW4gc3RhbmRhcmRzIHdpdGggbm9u
IEhUVFAgdHJhbnNwb3J0OiAgRm9yIGFwcGxpY2F0aW9ucw0KPiAgICAgICB3cml0dGVuIGluIEph
dmFTY3JpcHQgd2l0aGluIGEgYnJvd3NlciBjbGllbnQuICBFeGFtcGxlcyBpbmNsdWRlDQo+ICAg
ICAgIEJXVFAgYW5kIFdlYlNvY2tldHMuDQo+IA0KPiAgICBJbiBicm93c2VyIHdpdGggcGx1Z2lu
OiAgVGhpcyBpcyBub3Qgb2YgcGFydGljdWxhciBpbnRlcmVzdCB0byBJRVRGLA0KPiAgICAgICBi
dXQgc2hvdWxkIGJlIG5vdGVkIGFzIHBhcnQgb2YgdGhlIGRlc2lnbiBzcGFjZS4gIEV4YW1wbGVz
DQo+IGluY2x1ZGUNCj4gICAgICAgQmxhemVEUy4NCj4gDQo+ICAgIE5vbi1icm93c2VyIEhUVFA6
ICBBIGJpZGlyZWN0aW9uYWwgY2xpZW50IG1heSBiZSB3cml0dGVuIG91dHNpZGUgb2YNCj4gYQ0K
PiAgICAgICBicm93c2VyIGFuZCB1c2UgYmlkaXJlY3Rpb25hbCB3ZWIgdHJhbnNwb3J0cy4gIFR5
cGljYWxseSB0aGlzIGlzDQo+ICAgICAgIGRvbmUgc28gdGhhdCBhIHJpY2ggb3IgbWluaW1hbCBj
bGllbnQgY2FuIGJ5cGFzcyBmaXJld2FsbHMgdG8NCj4gICAgICAgYWNjZXNzIHB1YmxpYyBzZXJ2
ZXJzIG92ZXIgSFRUUCB0cmFuc3BvcnRzLiAgRXhhbXBsZXMgaW5jbHVkZSB0aGUNCj4gICAgICAg
Q29tZXQgSmF2YSBjbGllbnQgYW5kIHRoZSBTZWNvbmQgTGlmZSBWaWV3ZXIuDQo+IA0KPiAgICBO
b24gYnJvd3NlciBlbmhhbmNlZCBIVFRQOiAgW0RlZmluaXRpb24gYW5kIGV4YW1wbGVzIHRvIGZv
bGxvdy5dDQo+IA0KPiAgICBOb24gYnJvd3NlciBub24tSFRUUDogIFtEZWZpbml0aW9uIGFuZCBl
eGFtcGxlcyB0byBmb2xsb3cuXQ0KPiANCj4gNi4zLiAgSW50ZXJtZWRpYXJpZXMNCj4gDQo+ICAg
IEludGVybWVkaWFyaWVzIChlLmcuIHByb3hpZXMsIGdhdGV3YXlzLCBjYWNoaW5nIHNlcnZlcnMs
IGxvYWQNCj4gICAgYmFsYW5jZXJzLCBldGMpIGNhbiBiZSBpbnZvbHZlZCBpbiBiaWRpcmVjdGlv
bmFsIHRyYW5zcG9ydCBpbg0KPiBzZXZlcmFsDQo+ICAgIGNhcGFjaXRpZXM6DQo+IA0KPiAgICBM
ZWdhbCBIVFRQIHJlbGF5OiAgVHJhbnNwb3J0cyBzdWNoIGFzIGxvbmcgcG9sbGluZyB1c2UNCj4g
aW50ZXJtZWRpYXJpZXMNCj4gICAgICAgdG8gY2FycnkgbGVnYWwgSFRUUCByZXF1ZXN0cyBhbmQg
cmVzcG9uc2UuICBBbnkgY2FwYWJpbGl0aWVzIHRoYXQNCj4gICAgICAgbWF5IGludGVyZmVyZSB3
aXRoIGJpZGlyZWN0aW9uYWwgZmxvdyAoZS5nLiBjYWNoaW5nKSBhcmUNCj4gICAgICAgY29udHJv
bGxlZCB3aXRoIHN0YW5kYXJkIGhlYWRlcnMgb3IgY29va2llcy4gIFRoZSBpbnRlcm1lZGlhcnkN
Cj4gbWF5DQo+ICAgICAgIGJlIGEgcGFydGljaXBhbnQgaW4gdGhlIHRyYW5zcG9ydCAoZS5nLiwg
Y2hhbmdpbmcgZnJhbWluZyBvcg0KPiAgICAgICBlbmNhcHN1bGF0aW9uKS4NCj4gDQo+ICAgIERl
ZmFjdG8gSFRUUCByZWxheTogIFNvbWUgc3RyZWFtaW5nIHRyYW5zcG9ydHMgdXNlIHRoZSBjb21t
b24NCj4gICAgICAgYmVoYXZpb3Igb2YgSFRUUCBpbnRlcm1lZGlhcmllcyB0byBmb3J3YXJkIGNv
bnRlbnQgcGFja2V0LWJ5LQ0KPiAgICAgICBwYWNrZXQuICBUaGlzIHJlbGllcyBvbiBpbnRlcm1l
ZGlhcmllcyB0byBub3QgY2FjaGUgb3IgYnVmZmVyDQo+ICAgICAgIGNvbnRlbnQuDQo+IA0KPiAg
ICBFbmhhbmNlZCBIVFRQIHJlbGF5OiAgVXNlcyB5ZXQtdG8tYmUtZGVmaW5lZCBIVFRQIGhlYWRl
cnMgdG8gYXNzaXN0DQo+ICAgICAgIEhUVFAgYmFzZWQgYmlkaXJlY3Rpb25hbCB0cmFuc3BvcnRz
LiAgVGhlIGludGVybWVkaWFyeSBtYXkgYmUgYQ0KPiAgICAgICBwYXJ0aWNpcGFudCBpbiB0aGUg
dHJhbnNwb3J0IChlLmcuLCBjaGFuZ2luZyBmcmFtaW5nIG9yDQo+ICAgICAgIGVuY2Fwc3VsYXRp
b24pLg0KPiANCj4gICAgVXBncmFkZWQgSFRUUCByZWxheTogIFVzZXMgSFRUUCB1cGdyYWRlIHRv
IHJlbGF5IGEgbm9uLUhUVFANCj4gcHJvdG9jb2wuDQo+IA0KPiAgICBUdW5uZWxlZCByZWxheTog
IFVzZXMgKG9yIGFidXNlcz8pIHRoZSBDT05ORUNUIG1lY2hhbmlzbSB0byBzaW11bGF0ZQ0KPiAg
ICAgICBhbiBTU0wgY29ubmVjdGlvbiB0byBiZSB1c2VkIGFzIGEgdHVubmVsIGZvciBhIG5vbi1I
VFRQDQo+IHRyYW5zcG9ydC4NCj4gDQo+IA0KPiANCj4gDQo+ICAgIFtXM0MuV0QtWE1MSHR0cFJl
cXVlc3QyLTIwMDkwODIwXQ0KPiAgICAgICAgICAgICAgIEtlc3RlcmVuLCBBLiwgIlhNTEh0dHBS
ZXF1ZXN0IExldmVsIDIiLCBXb3JsZCBXaWRlIFdlYg0KPiAgICAgICAgICAgICAgIENvbnNvcnRp
dW0gV0QgV0QtWE1MSHR0cFJlcXVlc3QyLTIwMDkwODIwLCBBdWd1c3QgMjAwOSwNCj4gICAgICAg
ICAgICAgICA8aHR0cDovL3d3dy53My5vcmcvVFIvMjAwOS9XRC1YTUxIdHRwUmVxdWVzdDItMjAw
OTA4MjA+Lg0KPiANCj4gICAgW1czQy5XRC1jb3JzLTIwMDkwMzE3XQ0KPiAgICAgICAgICAgICAg
IEtlc3RlcmVuLCBBLiwgIkNyb3NzLU9yaWdpbiBSZXNvdXJjZSBTaGFyaW5nIiwgV29ybGQgV2lk
ZQ0KPiAgICAgICAgICAgICAgIFdlYiBDb25zb3J0aXVtIFdEIFdELWNvcnMtMjAwOTAzMTcsIE1h
cmNoIDIwMDksDQo+ICAgICAgICAgICAgICAgPGh0dHA6Ly93d3cudzMub3JnL1RSLzIwMDkvV0Qt
Y29ycy0yMDA5MDMxNz4uDQo+IA0KPiAgICBbVzNDLldELWV2ZW50c291cmNlLTIwMDkwNDIzXQ0K
PiAgICAgICAgICAgICAgIEhpY2tzb24sIEkuLCAiU2VydmVyLVNlbnQgRXZlbnRzIiwgV29ybGQg
V2lkZSBXZWINCj4gICAgICAgICAgICAgICBDb25zb3J0aXVtIFdEIFdELWV2ZW50c291cmNlLTIw
MDkwNDIzLCBBcHJpbCAyMDA5LA0KPiAgICAgICAgICAgICAgIDxodHRwOi8vd3d3LnczLm9yZy9U
Ui8yMDA5L1dELWV2ZW50c291cmNlLTIwMDkwNDIzPi4NCj4gDQo+IA0KPiANCj4gDQo+IF9fX19f
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fDQo+IGh5YmkgbWFpbGlu
ZyBsaXN0DQo+IGh5YmlAaWV0Zi5vcmcNCj4gaHR0cHM6Ly93d3cuaWV0Zi5vcmcvbWFpbG1hbi9s
aXN0aW5mby9oeWJpDQoNCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t
LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLQ0K
VGhpcyBtZXNzYWdlIGlzIGZvciB0aGUgZGVzaWduYXRlZCByZWNpcGllbnQgb25seSBhbmQgbWF5
DQpjb250YWluIHByaXZpbGVnZWQsIHByb3ByaWV0YXJ5LCBvciBvdGhlcndpc2UgcHJpdmF0ZSBp
bmZvcm1hdGlvbi4gIA0KSWYgeW91IGhhdmUgcmVjZWl2ZWQgaXQgaW4gZXJyb3IsIHBsZWFzZSBu
b3RpZnkgdGhlIHNlbmRlcg0KaW1tZWRpYXRlbHkgYW5kIGRlbGV0ZSB0aGUgb3JpZ2luYWwuICBB
bnkgdW5hdXRob3JpemVkIHVzZSBvZg0KdGhpcyBlbWFpbCBpcyBwcm9oaWJpdGVkLg0KLS0tLS0t
LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t
LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tDQpbbWYyXQ0K


From salvatore.loreto@ericsson.com  Fri Oct  9 06:51:48 2009
Return-Path: <salvatore.loreto@ericsson.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 0425E3A6820 for <hybi@core3.amsl.com>; Fri,  9 Oct 2009 06:51:48 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.883
X-Spam-Level: 
X-Spam-Status: No, score=-5.883 tagged_above=-999 required=5 tests=[AWL=0.366,  BAYES_00=-2.599, HELO_EQ_SE=0.35, RCVD_IN_DNSWL_MED=-4]
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 dBOczQHy15dS for <hybi@core3.amsl.com>; Fri,  9 Oct 2009 06:51:46 -0700 (PDT)
Received: from mailgw3.ericsson.se (mailgw3.ericsson.se [193.180.251.60]) by core3.amsl.com (Postfix) with ESMTP id 566D83A6807 for <hybi@ietf.org>; Fri,  9 Oct 2009 06:51:44 -0700 (PDT)
X-AuditID: c1b4fb3c-b7baeae000005f8e-ae-4acf40570995
Received: from esealmw126.eemea.ericsson.se (Unknown_Domain [153.88.253.124]) by mailgw3.ericsson.se (Symantec Mail Security) with SMTP id A3.5B.24462.7504FCA4; Fri,  9 Oct 2009 15:53:27 +0200 (CEST)
Received: from esealmw126.eemea.ericsson.se ([153.88.254.174]) by esealmw126.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.3959);  Fri, 9 Oct 2009 15:53:27 +0200
Received: from mail.lmf.ericsson.se ([131.160.11.50]) by esealmw126.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.3959);  Fri, 9 Oct 2009 15:53:26 +0200
Received: from nomadiclab.lmf.ericsson.se (nomadiclab.lmf.ericsson.se [131.160.33.3]) by mail.lmf.ericsson.se (Postfix) with ESMTP id F01D724C0; Fri,  9 Oct 2009 16:53:26 +0300 (EEST)
Received: from nomadiclab.lmf.ericsson.se (localhost [127.0.0.1]) by nomadiclab.lmf.ericsson.se (Postfix) with ESMTP id B224621A1F; Fri,  9 Oct 2009 16:53:26 +0300 (EEST)
Received: from localhost.localdomain (localhost [127.0.0.1]) by nomadiclab.lmf.ericsson.se (Postfix) with ESMTP id 5BA2A219CB; Fri,  9 Oct 2009 16:53:26 +0300 (EEST)
Message-ID: <4ACF4055.6080302@ericsson.com>
Date: Fri, 09 Oct 2009 16:53:25 +0300
From: Salvatore Loreto <salvatore.loreto@ericsson.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090825)
MIME-Version: 1.0
To: "Infinity Linden (Meadhbh Hamrick)" <infinity@lindenlab.com>
References: <4ACE50A2.5070404@ericsson.com> <3a880e2c0910081600v3607665dp193f6df499706810@mail.gmail.com>
In-Reply-To: <3a880e2c0910081600v3607665dp193f6df499706810@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: ClamAV using ClamSMTP
X-OriginalArrivalTime: 09 Oct 2009 13:53:26.0950 (UTC) FILETIME=[E0320460:01CA48E7]
X-Brightmail-Tracker: AAAAAA==
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] HyBi Design Space
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: Fri, 09 Oct 2009 13:51:48 -0000

Hi Meadhbh,

see my answers in line

cheers
Sal

Infinity Linden (Meadhbh Hamrick) wrote:
> thx salvatore for typing this up. it looks good, but i have one very
> minor nit and a comments/question.
>   
the credits have to go to the right place,
the text is a collaborative work of all the authors of 
draft-loreto-http-bidirectional: Greg, Peter, Salvatore and Stefano.
> the nit is that when we use the verbiage in section 6.2:
>
> "Non-browser HTTP:  A bidirectional client may be written outside of a
> browser and use bidirectional web transports.  Typically this is done
> so that a rich or minimal client can bypass firewalls to access public
> servers over HTTP transports.  Examples include the Comet Java client
> and the Second Life Viewer."
>
> it could be interpreted that the reason we use HTTP is exclusively to
> move through firewalls easily. the main reason we layer some of our
> protocol over HTTP is that we wanted / needed a protocol with request
> / response + metadata semantics. that it goes through firewalls is a
> pleasant side-effect. i suspect that other users of HTTP as a
> substrate might have come to the idea for the same reasons. could i
> recommend the minor change of:
>
> "Non-browser HTTP:  A bidirectional client may be written outside of a
> browser and use bidirectional web transports.  Typically this is done
> when a rich or minimal client requires a mature transport for
> application protocol with request / response semantics and/or the
> ability to bypass firewalls to access public servers over HTTP
> transports.  Examples include the Comet Java client and the Second
> Life Viewer."
>   
I agree that the current text could be misleading. thanks for the 
suggestion, it will be included for sure
in the text that will be included in the draft
> and the comment/question:
>
> 1. towards the end of the breakfast bof we discussed... for lack of a
> better term... "features" like message multiplexing so that when
> independent components on the server want to send an unsolicited
> message to independent components on the client may use the same
> connection. in other words, allowing a single connection to carry
> messages for multiple channels. that's still being discussed, right?
>   
sure, at least IMO the HyBi wg should concentrate on the broad scope of 
bidirectional communication

> we sorta figured that it won't be an unusual case to find you have a
> large number of components on the client that need to be addressable
> by independent components on the server. my read of websockets seems
> to imply it punts on the issue, requiring application developers to
> design such a scheme for themselves. that sorta makes me a little
> uneasy. when your client is a web browser that downloads a web page,
> instantiates a number of javascript objects described by javascript
> files on the server, i can see that this provides a great deal of
> flexibility. but the SL viewer won't be downloading and executing
> javascript for something as critical as server to client messaging,
> and i would venture to guess that other applications that use HTTP as
> a substrate will find this idea concerning.
>
> if we were to implement messaging over websockets, i believe we would
> be inclined to define a static client service that consumes the
> protocol, but assumes a payload with a field that identifies a
> uniquely addressable destination component in the client.
>
> if we're going to define such a scheme and enshrine it in c++ on our
> client, it would be very nice, since it's not going to change very
> much, if it were vaguely standardized so we could get intermediaries
> to understand the request and potentially cache them.
>
> this is my round-about way of saying, we like rhttp and bwtp because
> they allow intermediaries to reason about reverse-requests, caching
> reverse responses when appropriate, routing around firewalls when
> appropriate (like a bwtp aware socks stack) and allow us to use design
> patterns we're familiar with (like web capabilities) in the reverse
> direction.
>
> since i've rambled, let me repeat my question.. "we're still going to
> add message multiplexing, right?"
>   
again the multipexing is something important for both server developers,
but as far I understood following the discussion in whatwg ml, also 
browser developers or at least
w3c people agree that WebSocket protocol as proposed could be improved, 
also with the help of HyBi,
to support other features and "in-protocol multiplexing sounds like one 
of the most valuable additional features"


> if yes, i'll just shut up now and wait to comment when the draft is published.
>
> if no, i'd love to chat about it a little more.
>   
I suggest you to start a different thread in the ML on the subject
> -cheers
> -meadhbh / infinity
>
> --
>    infinity linden (aka meadhbh hamrick)  *  it's pronounced "maeve"
>          http://wiki.secondlife.com/wiki/User:Infinity_Linden
>
>
>
> On Thu, Oct 8, 2009 at 13:50, Salvatore Loreto
> <salvatore.loreto@ericsson.com> wrote:
>   
>> Hi there,
>>
>> at the breakfast BoF in Stockholm it was brought up that it would have been
>> helpful to more
>> clearly describe the design space, including the programming environments
>> (client, server, library, etc.), deployed infrastructure (routers, proxies,
>> etc.).
>>
>> here the analysis that we have written down and we are going to insert in
>> the draft-loreto-http-bidirectional.
>>
>> comments, feedbacks and suggestions are very welcome
>>
>> cheers
>> Sal
>> www.sloreto.com
>>
>>
>>
>> 6.  Design Space
>>
>>  In order to define additions to HTTP that could enable improved
>>  mechanisms for bidirectional HTTP or new bidirectional protocols, it
>>  is important to map out the design space and potential design
>>  alternatives, with special attention to deployed infrastructure and
>>  programming environments.
>>
>>  In existing HTTP-based systems, the typical semantic is client-server
>>  Representational State Transfer (REST), where the resources served
>>  are closely associated with an entity known by a URI or URL.
>>  However, the introduction of bidirectionality can significantly
>>  change the normal HTTP patterns.
>>
>>  As one example, the standard roles of client and server can be
>>  reversed and a server can request resources from a client.
>>  Unfortunately, due to a lack of client addressability URL's may not
>>  be applicable to client entities and new addressing paradigms may be
>>  required.
>>
>>  Furthermore, bidirectionality introduces a message passing pattern
>>  into the traditional REST style.
>>
>>  These additional semantics will influence the design of the
>>  bidirecitonal protocols, addressing, and APIs.  Without a strong
>>  association between an identified entity and a resource, new
>>  mechanisms for content distribution and caching messages might need
>>  to be considered.
>>
>>  In the next sections we analyse the design space from several
>>  different sides of the HTTP deployed infrastructure, including
>>  clients, servers, and intermediaries such as proxies, caching
>>  servers, and load balancers.
>>
>>  The process of evaluating eventual improvements to the bidirectional
>>  solutions or development of new bidirection protocols should take
>>  into consideration the following concerns and criteria:
>>
>>  Complexity:  enables ease of implementation, understanding, and
>>     debugging
>>
>>  Capability:  addresses all/most known bidirectional use-cases
>>
>>  Extensibility:  has the capacity to handle new use-cases
>>
>>  Latency:  defines minimal, average, and maximal latency for message
>>     delivery
>>
>>  Bandwidth overhead:  minimizes overhead for idle and busy usage
>>
>>  Scalability:  has the ability to handle large scale usage
>>
>>  Footprint:  has the ability to handle small devices and/or massive
>>     replication ("cloud")
>>
>>  AAA:  enables proper Authentication, Authorization and Accounting
>>
>>  Security:  enables strong security for integral, confidential,
>>     endorsed, and cross domain deployments.
>>
>>  Interoperability:  can work with and/or be integrated with existing
>>     bidirectional implementations
>>
>>  Compatibility:  can work with existing web infrastructure for
>>     distributing, caching, manipulating, and displaying content.
>>
>> 6.1.  Server side
>>
>>  The server side can be decomposed into three categories:
>>
>>  In-band HTTP:  Bidirectionality is part of the normal HTTP/Web server
>>     responsibilities.  HTTP is used for transporting server events.
>>     Examples include Comet and (in some deployments) BOSH.
>>
>>  Out-of-band HTTP:  Here two servers are involved: bidirectionality is
>>     not part of the normal HTTP/Web server responsibilities, but the
>>     backend service is offered by a separate server that might not
>>     even be on the same machine of the HTTP/Web server.  HTTP is used
>>     for transporting server events.  When a browser is used on the
>>     client side, a cross-domain solution is needed to overcome the
>>     "same-source" web service restriction.  Examples include BOSH (in
>>     some deployments) and Lightstreamer.
>>
>>  In-band non-HTTP:  Bidirectionality is part of the normal HTTP/Web
>>     server responsibilities.  However, server events are transported
>>     on an upgraded HTTP connection.  Examples include Bidirectional
>>     Web Transfer Protocol (BWTP) and WebSockets.
>>
>>  Out-of-band non-HTTP:  Bidirectionality is offered by a dedicated
>>     server using non HTTP protocol for transport server events.
>>     Examples include WebSockets.
>>
>>  The HTTP transport based servers (in-band and out-of-band) can work
>>  with existing HTTP standards or enhanced HTTP.  Enhanced HTTP would
>>  be a standardized set of headers and behaviours to assist with
>>  bidirectionality and cross domain concerns.
>>
>>  At present, a protocol that interacts heavily with JavaScript on the
>>  client side implies some constraints also on the server side, such
>>  that they have to use XML or JSON encapsulation.
>>
>> 6.2.  Clients
>>
>>  Clients can be involved in bidirectional transport in the following
>>  capacities:
>>
>>  In browser open standards with HTTP transport:  For applications
>>     written in a web browser scripting language (e.g.  JavaScript)
>>     within a browser client.  Examples include Comet and BOSH.
>>
>>  In browser open standards with enhanced HTTP transport:  For
>>     applications written in a web browser scripting language (e.g.
>>     JavaScript) within a browser client.  Examples include Comet with
>>     cross domain extensions.
>>
>>     Browsers using either standard HTTP transport or enhanced HTTP
>>     transport typically use XMLHttpRequest (XHR) API
>>     [W3C.WD-XMLHttpRequest2-20090820] allowing scripts to perform HTTP
>>     client functionality.  The XHR object can be used to perform
>>     bidirectional HTTP using both "long polling" and "HTTP streaming"
>>     mechanisms.
>>
>>     XHR also supports the cross domain extension
>>     [W3C.WD-cors-20090317], which overcomes the same-origin
>>     restrictions that prevent a Web application running from one
>>     origin from obtaining data retrieved from another origin.
>>     However, XHR presents some limitations on the headers that can be
>>     set by the user.
>>
>>     An alternative to XMLHttpRequest is using the Server-Sent Events
>>     API [W3C.WD-eventsource-20090423].  This "EventSource: interface
>>     enables servers to push data to Web pages over HTTP or using
>>     dedicated server-push protocols.
>>
>>
>>  In browser open standards with non HTTP transport:  For applications
>>     written in JavaScript within a browser client.  Examples include
>>     BWTP and WebSockets.
>>
>>  In browser with plugin:  This is not of particular interest to IETF,
>>     but should be noted as part of the design space.  Examples include
>>     BlazeDS.
>>
>>  Non-browser HTTP:  A bidirectional client may be written outside of a
>>     browser and use bidirectional web transports.  Typically this is
>>     done so that a rich or minimal client can bypass firewalls to
>>     access public servers over HTTP transports.  Examples include the
>>     Comet Java client and the Second Life Viewer.
>>
>>  Non browser enhanced HTTP:  [Definition and examples to follow.]
>>
>>  Non browser non-HTTP:  [Definition and examples to follow.]
>>
>> 6.3.  Intermediaries
>>
>>  Intermediaries (e.g. proxies, gateways, caching servers, load
>>  balancers, etc) can be involved in bidirectional transport in several
>>  capacities:
>>
>>  Legal HTTP relay:  Transports such as long polling use intermediaries
>>     to carry legal HTTP requests and response.  Any capabilities that
>>     may interfere with bidirectional flow (e.g. caching) are
>>     controlled with standard headers or cookies.  The intermediary may
>>     be a participant in the transport (e.g., changing framing or
>>     encapsulation).
>>
>>  Defacto HTTP relay:  Some streaming transports use the common
>>     behavior of HTTP intermediaries to forward content packet-by-
>>     packet.  This relies on intermediaries to not cache or buffer
>>     content.
>>
>>  Enhanced HTTP relay:  Uses yet-to-be-defined HTTP headers to assist
>>     HTTP based bidirectional transports.  The intermediary may be a
>>     participant in the transport (e.g., changing framing or
>>     encapsulation).
>>
>>  Upgraded HTTP relay:  Uses HTTP upgrade to relay a non-HTTP protocol.
>>
>>  Tunneled relay:  Uses (or abuses?) the CONNECT mechanism to simulate
>>     an SSL connection to be used as a tunnel for a non-HTTP transport.
>>
>>
>>
>>
>>  [W3C.WD-XMLHttpRequest2-20090820]
>>             Kesteren, A., "XMLHttpRequest Level 2", World Wide Web
>>             Consortium WD WD-XMLHttpRequest2-20090820, August 2009,
>>             <http://www.w3.org/TR/2009/WD-XMLHttpRequest2-20090820>.
>>
>>  [W3C.WD-cors-20090317]
>>             Kesteren, A., "Cross-Origin Resource Sharing", World Wide
>>             Web Consortium WD WD-cors-20090317, March 2009,
>>             <http://www.w3.org/TR/2009/WD-cors-20090317>.
>>
>>  [W3C.WD-eventsource-20090423]
>>             Hickson, I., "Server-Sent Events", World Wide Web
>>             Consortium WD WD-eventsource-20090423, April 2009,
>>             <http://www.w3.org/TR/2009/WD-eventsource-20090423>.
>>
>>
>>
>>
>> _______________________________________________
>> hybi mailing list
>> hybi@ietf.org
>> https://www.ietf.org/mailman/listinfo/hybi
>>
>>     


From salvatore.loreto@ericsson.com  Fri Oct  9 07:13:25 2009
Return-Path: <salvatore.loreto@ericsson.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 57EC428C11E for <hybi@core3.amsl.com>; Fri,  9 Oct 2009 07:13:25 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.896
X-Spam-Level: 
X-Spam-Status: No, score=-5.896 tagged_above=-999 required=5 tests=[AWL=0.353,  BAYES_00=-2.599, HELO_EQ_SE=0.35, RCVD_IN_DNSWL_MED=-4]
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 4Y6bclzfoS4q for <hybi@core3.amsl.com>; Fri,  9 Oct 2009 07:13:23 -0700 (PDT)
Received: from mailgw3.ericsson.se (mailgw3.ericsson.se [193.180.251.60]) by core3.amsl.com (Postfix) with ESMTP id B94633A6820 for <hybi@ietf.org>; Fri,  9 Oct 2009 07:13:22 -0700 (PDT)
X-AuditID: c1b4fb3c-b7baeae000005f8e-93-4acf45699d62
Received: from esealmw126.eemea.ericsson.se (Unknown_Domain [153.88.253.124]) by mailgw3.ericsson.se (Symantec Mail Security) with SMTP id A5.BC.24462.9654FCA4; Fri,  9 Oct 2009 16:15:06 +0200 (CEST)
Received: from esealmw128.eemea.ericsson.se ([153.88.254.172]) by esealmw126.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.3959);  Fri, 9 Oct 2009 16:15:05 +0200
Received: from mail.lmf.ericsson.se ([131.160.11.50]) by esealmw128.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.3959);  Fri, 9 Oct 2009 16:15:05 +0200
Received: from nomadiclab.lmf.ericsson.se (nomadiclab.lmf.ericsson.se [131.160.33.3]) by mail.lmf.ericsson.se (Postfix) with ESMTP id 2381724C0; Fri,  9 Oct 2009 17:15:05 +0300 (EEST)
Received: from nomadiclab.lmf.ericsson.se (localhost [127.0.0.1]) by nomadiclab.lmf.ericsson.se (Postfix) with ESMTP id DFD7D21A1F; Fri,  9 Oct 2009 17:15:04 +0300 (EEST)
Received: from localhost.localdomain (localhost [127.0.0.1]) by nomadiclab.lmf.ericsson.se (Postfix) with ESMTP id 874AD219D4; Fri,  9 Oct 2009 17:15:04 +0300 (EEST)
Message-ID: <4ACF4567.9000005@ericsson.com>
Date: Fri, 09 Oct 2009 17:15:03 +0300
From: Salvatore Loreto <salvatore.loreto@ericsson.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090825)
MIME-Version: 1.0
To: "Thomson, Martin" <Martin.Thomson@andrew.com>
References: <4ACE50A2.5070404@ericsson.com> <E51D5B15BFDEFD448F90BDD17D41CFF1065B6142@AHQEX1.andrew.com>
In-Reply-To: <E51D5B15BFDEFD448F90BDD17D41CFF1065B6142@AHQEX1.andrew.com>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: ClamAV using ClamSMTP
X-OriginalArrivalTime: 09 Oct 2009 14:15:05.0480 (UTC) FILETIME=[E62DF880:01CA48EA]
X-Brightmail-Tracker: AAAAAA==
Cc: hybi@ietf.org
Subject: Re: [hybi] HyBi Design Space
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: Fri, 09 Oct 2009 14:13:25 -0000

Hi Martin,

see in line.

Cheers
Sal

Thomson, Martin wrote:
> While I agree that constraining the design space is probably a necessary part of our work, there are aspects to this text that concern me.
>
> I like the effort that is going into identifying the servers, clients and intermediaries that are involved and the constraints that are involved.  That part of the text seems valuable.
>   
thanks
> However, it seems like there was consensus to address two problems in the WG:
>
>  A - right here and now, HTTP extensions
>  B - sometime later, new protocols that interact somehow with HTTP
>   
right, there was consensus for both! and the HyBi will eventually work 
to address both!
> From the abstract and early sections of the document, the draft right now seems to be concentrated on the side of A.
>   
> This analysis seems divorced from this goal, so much so that it seems a little unfocussed.
>
> For instance, the usual laundry list of desires surfaces: Complexity, Capability, Extensibility, Latency, Bandwidth, Scalability, Footprint, AAA, Security, Interoperability (!), Compatibility.
>
> These are constraints on any design exercise.  They don't add any value unless they are directly related to the work at hand.
>
> My initial view of this document was a problem statement for A.  To that end, this could all be much more specific.  For instance, compatibility is highly important for solution A.  Or, more specifically yet: it is important that solution A can be deployed to the web in the short-term, so compatibility with existing implementations is crucial.
>
> The example of "Non-browser, non-HTTP" immediately jumps out as a problem for this document.  A reasonable reaction might be that this is way out of scope.  But then, I know that it isn't necessarily the case.   Insufficient context has been provided to assess this item rationally because it's talking about B, not A.
>
> Because the constraints are significantly different on A vs. B, a separate problem statement for B seems appropriate.  That would help this be a little less vague.
>   
the confusion most probably come from the fact that the draft was 
thought to address the problem -A- .
maybe instead of insert the Design Space analysis text in the existing 
draft it would be better include it in a new draft;
and then include in the existing draft (draft-loreto-http-bidirectional) 
a much more specific text for the "right here and now, HTTP extensions".
would it make sense?



> --Martin
>
>   
>> -----Original Message-----
>> From: hybi-bounces@ietf.org [mailto:hybi-bounces@ietf.org] On Behalf Of
>> Salvatore Loreto
>> Sent: Friday, 9 October 2009 7:51 AM
>> To: hybi@ietf.org
>> Subject: [hybi] HyBi Design Space
>>
>> Hi there,
>>
>> at the breakfast BoF in Stockholm it was brought up that it would have
>> been helpful to more
>> clearly describe the design space, including the programming
>> environments (client, server,
>> library, etc.), deployed infrastructure (routers, proxies, etc.).
>>
>> here the analysis that we have written down and we are going to insert
>> in the
>> draft-loreto-http-bidirectional.
>>
>> comments, feedbacks and suggestions are very welcome
>>
>> cheers
>> Sal
>> www.sloreto.com
>>
>>
>>
>> 6.  Design Space
>>
>>    In order to define additions to HTTP that could enable improved
>>    mechanisms for bidirectional HTTP or new bidirectional protocols, it
>>    is important to map out the design space and potential design
>>    alternatives, with special attention to deployed infrastructure and
>>    programming environments.
>>
>>    In existing HTTP-based systems, the typical semantic is client-
>> server
>>    Representational State Transfer (REST), where the resources served
>>    are closely associated with an entity known by a URI or URL.
>>    However, the introduction of bidirectionality can significantly
>>    change the normal HTTP patterns.
>>
>>    As one example, the standard roles of client and server can be
>>    reversed and a server can request resources from a client.
>>    Unfortunately, due to a lack of client addressability URL's may not	
>>    be applicable to client entities and new addressing paradigms may be
>>    required.
>>
>>    Furthermore, bidirectionality introduces a message passing pattern
>>    into the traditional REST style.
>>
>>    These additional semantics will influence the design of the
>>    bidirecitonal protocols, addressing, and APIs.  Without a strong
>>    association between an identified entity and a resource, new
>>    mechanisms for content distribution and caching messages might need
>>    to be considered.
>>
>>    In the next sections we analyse the design space from several
>>    different sides of the HTTP deployed infrastructure, including
>>    clients, servers, and intermediaries such as proxies, caching
>>    servers, and load balancers.
>>
>>    The process of evaluating eventual improvements to the bidirectional
>>    solutions or development of new bidirection protocols should take
>>    into consideration the following concerns and criteria:
>>
>>    Complexity:  enables ease of implementation, understanding, and
>>       debugging
>>
>>    Capability:  addresses all/most known bidirectional use-cases
>>
>>    Extensibility:  has the capacity to handle new use-cases
>> 	
>>    Latency:  defines minimal, average, and maximal latency for message
>>       delivery
>>
>>    Bandwidth overhead:  minimizes overhead for idle and busy usage
>>
>>    Scalability:  has the ability to handle large scale usage
>>
>>    Footprint:  has the ability to handle small devices and/or massive
>>       replication ("cloud")
>>
>>    AAA:  enables proper Authentication, Authorization and Accounting
>>
>>    Security:  enables strong security for integral, confidential,
>>       endorsed, and cross domain deployments.
>>
>>    Interoperability:  can work with and/or be integrated with existing
>>       bidirectional implementations
>>
>>    Compatibility:  can work with existing web infrastructure for
>>       distributing, caching, manipulating, and displaying content.
>>
>> 6.1.  Server side
>>
>>    The server side can be decomposed into three categories:
>>
>>    In-band HTTP:  Bidirectionality is part of the normal HTTP/Web
>> server
>>       responsibilities.  HTTP is used for transporting server events.
>>       Examples include Comet and (in some deployments) BOSH.
>>
>>    Out-of-band HTTP:  Here two servers are involved: bidirectionality
>> is
>>       not part of the normal HTTP/Web server responsibilities, but the
>>       backend service is offered by a separate server that might not
>>       even be on the same machine of the HTTP/Web server.  HTTP is used
>>       for transporting server events.  When a browser is used on the
>>       client side, a cross-domain solution is needed to overcome the
>>       "same-source" web service restriction.  Examples include BOSH (in
>>       some deployments) and Lightstreamer.
>>
>>    In-band non-HTTP:  Bidirectionality is part of the normal HTTP/Web
>>       server responsibilities.  However, server events are transported
>>       on an upgraded HTTP connection.  Examples include Bidirectional
>>       Web Transfer Protocol (BWTP) and WebSockets.
>>
>>    Out-of-band non-HTTP:  Bidirectionality is offered by a dedicated
>>       server using non HTTP protocol for transport server events.
>>       Examples include WebSockets.
>>
>>    The HTTP transport based servers (in-band and out-of-band) can work
>>    with existing HTTP standards or enhanced HTTP.  Enhanced HTTP would
>>    be a standardized set of headers and behaviours to assist with
>>    bidirectionality and cross domain concerns.
>>
>>    At present, a protocol that interacts heavily with JavaScript on the
>>    client side implies some constraints also on the server side, such
>>    that they have to use XML or JSON encapsulation.
>>
>> 6.2.  Clients
>>
>>    Clients can be involved in bidirectional transport in the following
>>    capacities:
>>
>>    In browser open standards with HTTP transport:  For applications
>>       written in a web browser scripting language (e.g.  JavaScript)
>>       within a browser client.  Examples include Comet and BOSH.
>>
>>    In browser open standards with enhanced HTTP transport:  For
>>       applications written in a web browser scripting language (e.g.
>>       JavaScript) within a browser client.  Examples include Comet with
>>       cross domain extensions.
>>
>>       Browsers using either standard HTTP transport or enhanced HTTP
>>       transport typically use XMLHttpRequest (XHR) API
>>       [W3C.WD-XMLHttpRequest2-20090820] allowing scripts to perform
>> HTTP
>>       client functionality.  The XHR object can be used to perform
>>       bidirectional HTTP using both "long polling" and "HTTP streaming"
>>       mechanisms.
>>
>>       XHR also supports the cross domain extension
>>       [W3C.WD-cors-20090317], which overcomes the same-origin
>>       restrictions that prevent a Web application running from one
>>       origin from obtaining data retrieved from another origin.
>>       However, XHR presents some limitations on the headers that can be
>>       set by the user.
>>
>>       An alternative to XMLHttpRequest is using the Server-Sent Events
>>       API [W3C.WD-eventsource-20090423].  This "EventSource: interface
>>       enables servers to push data to Web pages over HTTP or using
>>       dedicated server-push protocols.
>>
>>
>>    In browser open standards with non HTTP transport:  For applications
>>       written in JavaScript within a browser client.  Examples include
>>       BWTP and WebSockets.
>>
>>    In browser with plugin:  This is not of particular interest to IETF,
>>       but should be noted as part of the design space.  Examples
>> include
>>       BlazeDS.
>>
>>    Non-browser HTTP:  A bidirectional client may be written outside of
>> a
>>       browser and use bidirectional web transports.  Typically this is
>>       done so that a rich or minimal client can bypass firewalls to
>>       access public servers over HTTP transports.  Examples include the
>>       Comet Java client and the Second Life Viewer.
>>
>>    Non browser enhanced HTTP:  [Definition and examples to follow.]
>>
>>    Non browser non-HTTP:  [Definition and examples to follow.]
>>
>> 6.3.  Intermediaries
>>
>>    Intermediaries (e.g. proxies, gateways, caching servers, load
>>    balancers, etc) can be involved in bidirectional transport in
>> several
>>    capacities:
>>
>>    Legal HTTP relay:  Transports such as long polling use
>> intermediaries
>>       to carry legal HTTP requests and response.  Any capabilities that
>>       may interfere with bidirectional flow (e.g. caching) are
>>       controlled with standard headers or cookies.  The intermediary
>> may
>>       be a participant in the transport (e.g., changing framing or
>>       encapsulation).
>>
>>    Defacto HTTP relay:  Some streaming transports use the common
>>       behavior of HTTP intermediaries to forward content packet-by-
>>       packet.  This relies on intermediaries to not cache or buffer
>>       content.
>>
>>    Enhanced HTTP relay:  Uses yet-to-be-defined HTTP headers to assist
>>       HTTP based bidirectional transports.  The intermediary may be a
>>       participant in the transport (e.g., changing framing or
>>       encapsulation).
>>
>>    Upgraded HTTP relay:  Uses HTTP upgrade to relay a non-HTTP
>> protocol.
>>
>>    Tunneled relay:  Uses (or abuses?) the CONNECT mechanism to simulate
>>       an SSL connection to be used as a tunnel for a non-HTTP
>> transport.
>>
>>
>>
>>
>>    [W3C.WD-XMLHttpRequest2-20090820]
>>               Kesteren, A., "XMLHttpRequest Level 2", World Wide Web
>>               Consortium WD WD-XMLHttpRequest2-20090820, August 2009,
>>               <http://www.w3.org/TR/2009/WD-XMLHttpRequest2-20090820>.
>>
>>    [W3C.WD-cors-20090317]
>>               Kesteren, A., "Cross-Origin Resource Sharing", World Wide
>>               Web Consortium WD WD-cors-20090317, March 2009,
>>               <http://www.w3.org/TR/2009/WD-cors-20090317>.
>>
>>    [W3C.WD-eventsource-20090423]
>>               Hickson, I., "Server-Sent Events", World Wide Web
>>               Consortium WD WD-eventsource-20090423, April 2009,
>>               <http://www.w3.org/TR/2009/WD-eventsource-20090423>.
>>
>>
>>
>>
>> _______________________________________________
>> hybi mailing list
>> hybi@ietf.org
>> https://www.ietf.org/mailman/listinfo/hybi
>>     
>
> ------------------------------------------------------------------------------------------------
> This message is for the designated recipient only and may
> contain privileged, proprietary, or otherwise private information.  
> If you have received it in error, please notify the sender
> immediately and delete the original.  Any unauthorized use of
> this email is prohibited.
> ------------------------------------------------------------------------------------------------
> [mf2]
>   


From wfernandom2004@gmail.com  Fri Oct  9 14:12:06 2009
Return-Path: <wfernandom2004@gmail.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 E949C28C1AE for <hybi@core3.amsl.com>; Fri,  9 Oct 2009 14:12:06 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 1.144
X-Spam-Level: *
X-Spam-Status: No, score=1.144 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HTML_MESSAGE=0.001, MIME_HTML_ONLY=1.457, RCVD_IN_SORBS_WEB=0.619, SARE_RECV_SPAM_DOMN02=1.666]
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 nKqMdNv5taRc for <hybi@core3.amsl.com>; Fri,  9 Oct 2009 14:12:05 -0700 (PDT)
Received: from mail-pz0-f176.google.com (mail-pz0-f176.google.com [209.85.222.176]) by core3.amsl.com (Postfix) with ESMTP id 56A2B3A6951 for <hybi@ietf.org>; Fri,  9 Oct 2009 14:12:05 -0700 (PDT)
Received: by pzk6 with SMTP id 6so3050492pzk.29 for <hybi@ietf.org>; Fri, 09 Oct 2009 14:13:47 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id :disposition-notification-to:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=XPsLR/MaXrFaUKhW2OVdMLVzrYzTZv9RR5aUlTUp0/U=; b=HGOnfxEkX4/u6utDtYSE+UCPOwGxKhkacSsMEfMaMh/wmsIVd+YxlDgW9+llOJmC/V GbZatDf8pDeg5wL66L2OXQ3oKJlLA/M3iQRvtjTcUsFsUaaXjqFtz6au5lsKDETCxqwf aYX27ZWMHuGgoE+oKFAjXeMRKFPZEsZx2OjNg=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:disposition-notification-to:date:from:user-agent :mime-version:to:subject:references:in-reply-to:content-type :content-transfer-encoding; b=eTr6tuZKULeKxZJYf+UAIR/i2Zz5mbGj9K9SKQpt1o7ryI6YDgIIrchpVepGttGgOw XWvnFw2VIK09WhIAMYaErDoXPDclgC6B/HXzw1YP82iKhaF/ydv8IrrLmoNtx1TH66M5 dm/xoFPhyQ9BIhF5etHGJTzvDENGr9gAYnJQA=
Received: by 10.115.80.6 with SMTP id h6mr4097775wal.108.1255122826450; Fri, 09 Oct 2009 14:13:46 -0700 (PDT)
Received: from ?192.168.1.101? (201-92-127-86.dsl.telesp.net.br [201.92.127.86]) by mx.google.com with ESMTPS id 21sm66299pxi.15.2009.10.09.14.13.43 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 09 Oct 2009 14:13:45 -0700 (PDT)
Message-ID: <4ACFA783.9060300@gmail.com>
Date: Fri, 09 Oct 2009 18:13:39 -0300
From: Wellington Fernando de Macedo <wfernandom2004@gmail.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090817)
MIME-Version: 1.0
To: hybi@ietf.org
References: <4ACF5930.9000204@ericsson.com> <21077ff60910091053q16775c72g41f518eaaf137c98@mail.gmail.com> <4ACF96C3.4040503@ericsson.com>
In-Reply-To: <4ACF96C3.4040503@ericsson.com>
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Subject: [hybi] Mozilla's WebSocket implementation
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: Fri, 09 Oct 2009 21:16:35 -0000

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi,<br>
<br>
Salvatore asked me to&nbsp; send you the informations about the Mozilla's
WebSockets implementation.<br>
<br>
the implementation:<br>
<a class="moz-txt-link-freetext" href="https://bugzilla.mozilla.org/show_bug.cgi?id=472529">https://bugzilla.mozilla.org/show_bug.cgi?id=472529</a><br>
<br>
a demonstration.<br>
<a class="moz-txt-link-freetext" href="http://www.youtube.com/watch?v=CrV9jJQn_MA">http://www.youtube.com/watch?v=CrV9jJQn_MA</a><br>
<br>
The video description has informations about applying the patch
implementation.<br>
<br>
Salvatore Loreto escreveu:<br>
<blockquote type="cite">It would be good if (...) send some mail
describing your websocket implementation experiences and lessons
learned from that.
  <br>
</blockquote>
The implementation does what the spec says. I think technical details
aren't important in this mail list. The most important, I think, is that<br>
the protocol is (in some way) http based. It helps a lot, because it
does the protocol to work fine with existing proxies. Also only small
changes to http servers are required.<br>
<br>
The spec is really simple and practical. If you look at my video
demonstration you will see that I've used few lines of JavaScript to
implement that.<br>
<br>
Multiplexing (see the Bidirectional Web Transfer Protocol - BWTP
proposal) is something interesting. But it can bring unnecessary data
transmissions overhead to simple applications. However the protocol has
ways that allow it to configure its connections and interpret its
messages. There is the "websocket-protocol" request header. And also
there is the frame-type byte of the messages.<br>
<br>
It is all.<br>
<br>
cheers<br>
<br>
Wellington.<br>
<br>
<div class="moz-signature">---<br>
<b>Wellington Fernando de Macedo</b><br>
Engenharia de Computa&ccedil;&atilde;o<br>
Telefone: +55 (16) 8144.8607
</div>
<br>
<br>
Salvatore Loreto escreveu:
<blockquote cite="mid:4ACF96C3.4040503@ericsson.com" type="cite">Hi
again,
  <br>
  <br>
by the way, where it is possible to get your implementation?
  <br>
(it would be great if you post the information to the HyBi mailing
list)
  <br>
  <br>
cheers
  <br>
Sal
  <br>
  <br>
Wellington Fernando de Macedo wrote:
  <br>
  <blockquote type="cite">Hi Salvatore,
    <br>
    <br>
I didn't know about that. It seems interesting. Yes, I would like to
attend the meeting, but I would need to receive some funding to be
there. Well, there are two people who have reviewed my work some times,
therefore I can suggest them: Jason Duell &lt;<a class="moz-txt-link-abbreviated" href="mailto:jduell@mozilla.com">jduell@mozilla.com</a>
<a class="moz-txt-link-rfc2396E" href="mailto:jduell@mozilla.com">&lt;mailto:jduell@mozilla.com&gt;</a>&gt; and/or Olli Pettay
&lt;<a class="moz-txt-link-abbreviated" href="mailto:opettay@mozilla.com">opettay@mozilla.com</a> <a class="moz-txt-link-rfc2396E" href="mailto:opettay@mozilla.com">&lt;mailto:opettay@mozilla.com&gt;</a>&gt;.
    <br>
    <br>
cheers
    <br>
Wellington Fernando de Macedo.
    <br>
    <br>
2009/10/9 Salvatore Loreto &lt;<a class="moz-txt-link-abbreviated" href="mailto:salvatore.loreto@ericsson.com">salvatore.loreto@ericsson.com</a>
<a class="moz-txt-link-rfc2396E" href="mailto:salvatore.loreto@ericsson.com">&lt;mailto:salvatore.loreto@ericsson.com&gt;</a>&gt;
    <br>
    <br>
&nbsp;&nbsp;&nbsp; Hi Wellington,
    <br>
    <br>
&nbsp;&nbsp;&nbsp; as you probably know there will be a HyBi BoF on Tuesday 10th
    <br>
&nbsp;&nbsp;&nbsp; November, at the next IETF in Hiroshima.
    <br>
&nbsp;&nbsp;&nbsp; The Hypertext-Bidirectional (HyBI) working group will seek
    <br>
&nbsp;&nbsp;&nbsp; standardization of approaches that can be used
    <br>
&nbsp;&nbsp;&nbsp; to communicate with one another in both directions.
    <br>
&nbsp;&nbsp;&nbsp; In particular, the wg will liaison with the HTML5 / Apps W3C wg
    <br>
&nbsp;&nbsp;&nbsp; around the websocket protocol;
    <br>
&nbsp;&nbsp;&nbsp; if agreed by both parties, the HyBi wg may take over of the
    <br>
&nbsp;&nbsp;&nbsp; development of the websocket protocol.
    <br>
    <br>
    <br>
&nbsp;&nbsp;&nbsp; you can subscribe to the HyBi mailing list&nbsp; here:
    <br>
&nbsp;&nbsp;&nbsp; <a class="moz-txt-link-freetext" href="https://www.ietf.org/mailman/listinfo/hybi">https://www.ietf.org/mailman/listinfo/hybi</a>
    <br>
    <br>
&nbsp;&nbsp;&nbsp; You have written a websocket implementation for Firefox, so it
    <br>
&nbsp;&nbsp;&nbsp; would be extremely interesting hear your experience and opinion.
    <br>
&nbsp;&nbsp;&nbsp; So as a co-chair of the wg, I would like you&nbsp; to attend the
    <br>
&nbsp;&nbsp;&nbsp; meeting and provide your contribution to the discussion.
    <br>
    <br>
&nbsp;&nbsp;&nbsp; Please let me know, if you attend and if you want a time slot in
    <br>
&nbsp;&nbsp;&nbsp; the Agenda.
    <br>
&nbsp;&nbsp;&nbsp; If you can not attend I would appreciate if you can suggest people
    <br>
&nbsp;&nbsp;&nbsp; that can participate (especially from a Browser developer point of
    <br>
&nbsp;&nbsp;&nbsp; view)
    <br>
&nbsp;&nbsp;&nbsp; and contribute to the discussion
    <br>
    <br>
&nbsp;&nbsp;&nbsp; cheers
    <br>
&nbsp;&nbsp;&nbsp; Salvatore Loreto
    <br>
&nbsp;&nbsp;&nbsp; <a class="moz-txt-link-abbreviated" href="http://www.sloreto.com">www.sloreto.com</a> <a class="moz-txt-link-rfc2396E" href="http://www.sloreto.com">&lt;http://www.sloreto.com&gt;</a>
    <br>
    <br>
    <br>
  </blockquote>
  <br>
  <br>
</blockquote>
</body>
</html>

From ian@hixie.ch  Fri Oct  9 14:34:53 2009
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 D928E3A63D3 for <hybi@core3.amsl.com>; Fri,  9 Oct 2009 14:34:53 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.827
X-Spam-Level: 
X-Spam-Status: No, score=-3.827 tagged_above=-999 required=5 tests=[AWL=-1.228, 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 4lh2jQ7IUeIP for <hybi@core3.amsl.com>; Fri,  9 Oct 2009 14:34:52 -0700 (PDT)
Received: from looneymail-a1.g.dreamhost.com (caibbdcaaaaf.dreamhost.com [208.113.200.5]) by core3.amsl.com (Postfix) with ESMTP id CE9DD28C0FF for <hybi@ietf.org>; Fri,  9 Oct 2009 14:34:52 -0700 (PDT)
Received: from hixie.dreamhostps.com (hixie.dreamhost.com [208.113.210.27]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by looneymail-a1.g.dreamhost.com (Postfix) with ESMTP id 7A5B815D8C3; Fri,  9 Oct 2009 14:36:37 -0700 (PDT)
Date: Fri, 9 Oct 2009 21:47:10 +0000 (UTC)
From: Ian Hickson <ian@hixie.ch>
To: Salvatore Loreto <salvatore.loreto@ericsson.com>
In-Reply-To: <4ACF4055.6080302@ericsson.com>
Message-ID: <Pine.LNX.4.62.0910092116010.21884@hixie.dreamhostps.com>
References: <4ACE50A2.5070404@ericsson.com> <3a880e2c0910081600v3607665dp193f6df499706810@mail.gmail.com> <4ACF4055.6080302@ericsson.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" <hybi@ietf.org>
Subject: [hybi] Multiplexing in WebSocket (Was:  HyBi Design Space)
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: Fri, 09 Oct 2009 21:34:54 -0000

On Fri, 9 Oct 2009, Salvatore Loreto wrote:
>
> again the multipexing is something important for both server developers, 
> but as far I understood following the discussion in whatwg ml, also 
> browser developers or at least w3c people agree that WebSocket protocol 
> as proposed could be improved, also with the help of HyBi, to support 
> other features and "in-protocol multiplexing sounds like one of the most 
> valuable additional features"

FWIW, so far I've concluded (based on long discussions with a number of 
developers and implementors) that multiplexing would actually not be that 
great. It could probably only be used for multiplexing to a single 
websocket path, without making the handshake highly asymmetric or breaking 
the HTTP compatibility. If it's intended for per-client multiplexing, it 
can easily be implemented at the application layer, where a much better 
job can be done that could be done at the protocol layer. If it's intended 
for multiclient multiplexing, then it's only helping server load, not 
client performance, and server load isn't especially an issue here.

It's not analogous to keepalive and pipelining in HTTP. In HTTP, the cost 
is in setting up the connection, which happens a lot. Multiple resources 
on one origin incur multiple TCP round trips just to get the connections 
set up, and this can severely impact performance. However, WebSocket 
connections are long lived by design, and the cost of setting up a 
connection therefore is insignificant compared to the cost of the protocol 
itself. There's also something to be said for relying on TCP's built in 
congestion control -- if you were to open two connections to a server, 
one sending vast amounts of data, and one sending just the occasional 
critically important notification, it would be best if the latter could 
avoid getting throttled along with the first.

As with anything, though, there's always the option of changing this if 
strong arguments one way or the other are put forward. We can also 
introduce multiplexing as a new version of the protocol in a future 
version.

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

From julian.reschke@gmx.de  Sat Oct 10 02:51:16 2009
Return-Path: <julian.reschke@gmx.de>
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 E313C28C102 for <hybi@core3.amsl.com>; Sat, 10 Oct 2009 02:51:16 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.83
X-Spam-Level: 
X-Spam-Status: No, score=-3.83 tagged_above=-999 required=5 tests=[AWL=-3.090,  BAYES_20=-0.74]
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 LnWSj1DYMdVO for <hybi@core3.amsl.com>; Sat, 10 Oct 2009 02:51:16 -0700 (PDT)
Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by core3.amsl.com (Postfix) with SMTP id A754128C108 for <hybi@ietf.org>; Sat, 10 Oct 2009 02:51:15 -0700 (PDT)
Received: (qmail invoked by alias); 10 Oct 2009 09:53:00 -0000
Received: from p508FC6AB.dip.t-dialin.net (EHLO [192.168.178.33]) [80.143.198.171] by mail.gmx.net (mp070) with SMTP; 10 Oct 2009 11:53:00 +0200
X-Authenticated: #1915285
X-Provags-ID: V01U2FsdGVkX1+WdyZ+i3yWP7W13yXT/Qx79k4yKsyJ7fyJjiAA1X guTvWARpjwRHFp
Message-ID: <4AD05971.7010001@gmx.de>
Date: Sat, 10 Oct 2009 11:52:49 +0200
From: Julian Reschke <julian.reschke@gmx.de>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.0.4) Gecko/20060516 Thunderbird/1.5.0.4 Mnenhy/0.7.4.666
MIME-Version: 1.0
To: Ian Hickson <ian@hixie.ch>
References: <4ACE50A2.5070404@ericsson.com>	<3a880e2c0910081600v3607665dp193f6df499706810@mail.gmail.com>	<4ACF4055.6080302@ericsson.com> <Pine.LNX.4.62.0910092116010.21884@hixie.dreamhostps.com>
In-Reply-To: <Pine.LNX.4.62.0910092116010.21884@hixie.dreamhostps.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Y-GMX-Trusted: 0
X-FuHaFi: 0.72
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] Multiplexing in WebSocket (Was:  HyBi Design Space)
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: Sat, 10 Oct 2009 09:51:17 -0000

Ian Hickson wrote:
> ...
> FWIW, so far I've concluded (based on long discussions with a number of 
> developers and implementors) that multiplexing would actually not be that 
> great. It could probably only be used for multiplexing to a single 
> websocket path, without making the handshake highly asymmetric or breaking 
> the HTTP compatibility. If it's intended for per-client multiplexing, it 
> can easily be implemented at the application layer, where a much better 
> job can be done that could be done at the protocol layer. If it's intended 
> for multiclient multiplexing, then it's only helping server load, not 
> client performance, and server load isn't especially an issue here.
> ...

...why exactly is server load not an issue?

BR, Julian

From infinity@lindenlab.com  Sat Oct 10 08:52:33 2009
Return-Path: <infinity@lindenlab.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 E6A5328C14C for <hybi@core3.amsl.com>; Sat, 10 Oct 2009 08:52:33 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.816
X-Spam-Level: 
X-Spam-Status: No, score=-1.816 tagged_above=-999 required=5 tests=[AWL=0.161,  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 L2ba3p0BEkHz for <hybi@core3.amsl.com>; Sat, 10 Oct 2009 08:52:32 -0700 (PDT)
Received: from mail-pz0-f176.google.com (mail-pz0-f176.google.com [209.85.222.176]) by core3.amsl.com (Postfix) with ESMTP id D7E4528C148 for <hybi@ietf.org>; Sat, 10 Oct 2009 08:52:32 -0700 (PDT)
Received: by pzk6 with SMTP id 6so3714528pzk.29 for <hybi@ietf.org>; Sat, 10 Oct 2009 08:54:17 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.142.75.17 with SMTP id x17mr323018wfa.154.1255190057117; Sat,  10 Oct 2009 08:54:17 -0700 (PDT)
In-Reply-To: <Pine.LNX.4.62.0910092116010.21884@hixie.dreamhostps.com>
References: <4ACE50A2.5070404@ericsson.com> <3a880e2c0910081600v3607665dp193f6df499706810@mail.gmail.com>  <4ACF4055.6080302@ericsson.com> <Pine.LNX.4.62.0910092116010.21884@hixie.dreamhostps.com>
From: "Infinity Linden (Meadhbh Hamrick)" <infinity@lindenlab.com>
Date: Sat, 10 Oct 2009 08:53:57 -0700
Message-ID: <3a880e2c0910100853s6650d216mc53e8f70a192a896@mail.gmail.com>
To: Ian Hickson <ian@hixie.ch>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] Multiplexing in WebSocket (Was:  HyBi Design Space)
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: Sat, 10 Oct 2009 15:52:34 -0000

the problem i have with doing addressing for multiplexing channels on
a single connection in the application layer is that it effectively
disallows intermediaries from reasoning about distinct messages on
distinct channels. i do agree that doing multiplexing in the
application layer is much more flexible and for many deployments "this
is a good thing." does it make sense to have a multiplexing option in
the protocol that can be used by people who want their intermediaries
to understand this sort of thing, but not make it mandatory? that way
i could hire someone to hack squid to recognize and cache multiplexed
reverse responses and people who want to do something more flexible at
the app layer can still do it.

fwiw. i'm coming at this from a "http as a substrate" perspective,
where (i suspect) we're going to have more client -> server responses
with large payloads than might be typical in a browser app. and since
client -> server communication is slower in may broadband models, for
the few protocol transactions where we're responding to the server
with large, cacheable payloads, i would be nice if we could have a
standard protocol understandable by intermediaries.

-cheers
-meadhbh

On Fri, Oct 9, 2009 at 14:47, Ian Hickson <ian@hixie.ch> wrote:
> On Fri, 9 Oct 2009, Salvatore Loreto wrote:
>>
>> again the multipexing is something important for both server developers,
>> but as far I understood following the discussion in whatwg ml, also
>> browser developers or at least w3c people agree that WebSocket protocol
>> as proposed could be improved, also with the help of HyBi, to support
>> other features and "in-protocol multiplexing sounds like one of the most
>> valuable additional features"
>
> FWIW, so far I've concluded (based on long discussions with a number of
> developers and implementors) that multiplexing would actually not be that
> great. It could probably only be used for multiplexing to a single
> websocket path, without making the handshake highly asymmetric or breakin=
g
> the HTTP compatibility. If it's intended for per-client multiplexing, it
> can easily be implemented at the application layer, where a much better
> job can be done that could be done at the protocol layer. If it's intende=
d
> for multiclient multiplexing, then it's only helping server load, not
> client performance, and server load isn't especially an issue here.
>
> It's not analogous to keepalive and pipelining in HTTP. In HTTP, the cost
> is in setting up the connection, which happens a lot. Multiple resources
> on one origin incur multiple TCP round trips just to get the connections
> set up, and this can severely impact performance. However, WebSocket
> connections are long lived by design, and the cost of setting up a
> connection therefore is insignificant compared to the cost of the protoco=
l
> itself. There's also something to be said for relying on TCP's built in
> congestion control -- if you were to open two connections to a server,
> one sending vast amounts of data, and one sending just the occasional
> critically important notification, it would be best if the latter could
> avoid getting throttled along with the first.
>
> As with anything, though, there's always the option of changing this if
> strong arguments one way or the other are put forward. We can also
> introduce multiplexing as a new version of the protocol in a future
> version.
>
> --
> Ian Hickson =A0 =A0 =A0 =A0 =A0 =A0 =A0 U+1047E =A0 =A0 =A0 =A0 =A0 =A0 =
=A0 =A0)\._.,--....,'``. =A0 =A0fL
> http://ln.hixie.ch/ =A0 =A0 =A0 U+263A =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0/, =
=A0 _.. \ =A0 _\ =A0;`._ ,.
> Things that are impossible just take longer. =A0 `._.-(,_..'--(,_..'`-.;.=
'
>

From gregw@webtide.com  Mon Oct 12 01:13:13 2009
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 7E8423A683C for <hybi@core3.amsl.com>; Mon, 12 Oct 2009 01:13:13 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 1.241
X-Spam-Level: *
X-Spam-Status: No, score=1.241 tagged_above=-999 required=5 tests=[BAYES_50=0.001, SARE_LWSHORTT=1.24]
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 p+nUEZ6Drzk9 for <hybi@core3.amsl.com>; Mon, 12 Oct 2009 01:13:12 -0700 (PDT)
Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.25]) by core3.amsl.com (Postfix) with ESMTP id A4C013A6824 for <hybi@ietf.org>; Mon, 12 Oct 2009 01:13:12 -0700 (PDT)
Received: by qw-out-2122.google.com with SMTP id 9so467683qwb.31 for <hybi@ietf.org>; Mon, 12 Oct 2009 01:13:10 -0700 (PDT)
Received: by 10.224.46.79 with SMTP id i15mr4570109qaf.58.1255334751914; Mon, 12 Oct 2009 01:05:51 -0700 (PDT)
Received: from ?10.10.1.9? (60-242-119-126.tpgi.com.au [60.242.119.126]) by mx.google.com with ESMTPS id 2sm1050628qwi.39.2009.10.12.01.05.47 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 12 Oct 2009 01:05:50 -0700 (PDT)
Message-ID: <4AD2E353.8070609@webtide.com>
Date: Mon, 12 Oct 2009 19:05:39 +1100
From: Greg Wilkins <gregw@webtide.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090817)
MIME-Version: 1.0
To: Ian Hickson <ian@hixie.ch>, "hybi@ietf.org" <hybi@ietf.org>
References: <4ACE50A2.5070404@ericsson.com>	<3a880e2c0910081600v3607665dp193f6df499706810@mail.gmail.com>	<4ACF4055.6080302@ericsson.com> <Pine.LNX.4.62.0910092116010.21884@hixie.dreamhostps.com>
In-Reply-To: <Pine.LNX.4.62.0910092116010.21884@hixie.dreamhostps.com>
X-Enigmail-Version: 0.95.7
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Subject: Re: [hybi] Multiplexing in WebSocket (Was:  HyBi Design Space)
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, 12 Oct 2009 08:13:13 -0000

Ian Hickson wrote:

> FWIW, so far I've concluded (based on long discussions with a number of 
> developers and implementors) that multiplexing would actually not be that 
> great.

Which developers/implementors?

So far the majority of opinions I've seen on this list and the whatwg list
have been favourable to multiplexing.   Can you invite them to post their
opinions here?


> However, WebSocket
> connections are long lived by design, 

I do not believe you can anticipate websocket usage over the long
term.  Just because you think now they will only be used for long
lived connections, that may not always be the case.  It is short
sighted to build such limitations into a once-in-a-decade chance to
upgrade the protocols we use on the web.

> and the cost of setting up a
> connection therefore is insignificant compared to the cost of the protocol
> itself.

There is also a cost associated with maintaining and servicing a
connection.


> There's also something to be said for relying on TCP's built in
> congestion control -- if you were to open two connections to a server, 
> one sending vast amounts of data, and one sending just the occasional 
> critically important notification, it would be best if the latter could 
> avoid getting throttled along with the first.

Some would argue that is improperly bypassing TCP's congestion control.

I have often seen the horrid argument put that if you use 8 connections
instead of 1, then you are more likely to get better service from
a router that is fair sharing capacity among connections.   That path
leads to an irrational arms race as once everybody uses 8 connections,
somebody will use 16 to get better service etc etc.

Implementing connection policies is not something that should
be left to the application developer. It is far far better that the
browsers implement connection control policies.


> As with anything, though, there's always the option of changing this if 
> strong arguments one way or the other are put forward. We can also 
> introduce multiplexing as a new version of the protocol in a future 
> version.

Protocol versions come once maybe twice a decade.   Please consider
the future and not just short term needs of one particular interest
group.



regards


From annevk@opera.com  Mon Oct 12 04:19:18 2009
Return-Path: <annevk@opera.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 C3BC128C176 for <hybi@core3.amsl.com>; Mon, 12 Oct 2009 04:19:18 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.999
X-Spam-Level: 
X-Spam-Status: No, score=-3.999 tagged_above=-999 required=5 tests=[BAYES_50=0.001, RCVD_IN_DNSWL_MED=-4]
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 5+jhOP1DQ5Z9 for <hybi@core3.amsl.com>; Mon, 12 Oct 2009 04:19:18 -0700 (PDT)
Received: from smtp.opera.com (sam.opera.com [213.236.208.81]) by core3.amsl.com (Postfix) with ESMTP id 94DE53A68D0 for <hybi@ietf.org>; Mon, 12 Oct 2009 04:19:17 -0700 (PDT)
Received: from annevk-t60 (sgw-oslo.opera.com [213.236.208.47]) (authenticated bits=0) by smtp.opera.com (8.14.3/8.14.3/Debian-5) with ESMTP id n9CBJCeg009533 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for <hybi@ietf.org>; Mon, 12 Oct 2009 11:19:12 GMT
Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes
To: "hybi@ietf.org" <hybi@ietf.org>
Date: Mon, 12 Oct 2009 13:19:16 +0200
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
From: "Anne van Kesteren" <annevk@opera.com>
Organization: Opera Software ASA
Message-ID: <op.u1opqeu264w2qv@annevk-t60>
User-Agent: Opera Mail/10.00 (Linux)
Subject: [hybi] HyBi WG and Web Sockets support
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, 12 Oct 2009 11:19:18 -0000

Since probably nobody from Opera can attend the meeting in Hiroshima  
Salvatore asked me to outline our thoughts on the list. To keep it brief:  
Opera supports the creation of a HyBi WG and basing the work on the Web  
Sockets protocol.

I personally think we should make the use case the Web Sockets protocol  
currently supports not more complex by introducing additional features,  
but instead add those features, based on demonstrated need, as extensions  
by e.g. using different framing bytes.


-- 
Anne van Kesteren
http://annevankesteren.nl/

From gk-ietf-hybi@ninebynine.org  Mon Oct 12 11:41:55 2009
Return-Path: <gk-ietf-hybi@ninebynine.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 5147128C2AF for <hybi@core3.amsl.com>; Mon, 12 Oct 2009 11:41:55 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.431
X-Spam-Level: 
X-Spam-Status: No, score=-2.431 tagged_above=-999 required=5 tests=[BAYES_20=-0.74, DATE_IN_PAST_06_12=1.069, RCVD_IN_DNSWL_MED=-4,  SARE_LWSHORTT=1.24]
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 3OMJuLWl3i1R for <hybi@core3.amsl.com>; Mon, 12 Oct 2009 11:41:54 -0700 (PDT)
Received: from relay3.mail.ox.ac.uk (relay3.mail.ox.ac.uk [163.1.2.165]) by core3.amsl.com (Postfix) with ESMTP id 22B9728C29E for <hybi@ietf.org>; Mon, 12 Oct 2009 11:41:54 -0700 (PDT)
Received: from smtp2.mail.ox.ac.uk ([163.1.2.205]) by relay3.mail.ox.ac.uk with esmtp (Exim 4.69) (envelope-from <gk-ietf-hybi@ninebynine.org>) id 1MxPqB-0002cY-CU; Mon, 12 Oct 2009 19:41:51 +0100
Received: from gklyne.plus.com ([80.229.154.156] helo=Eskarina.local) by smtp2.mail.ox.ac.uk with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from <gk-ietf-hybi@ninebynine.org>) id 1MxPqB-0005bv-8E; Mon, 12 Oct 2009 19:41:51 +0100
Message-ID: <4AD2F43D.6030202@ninebynine.org>
Date: Mon, 12 Oct 2009 10:17:49 +0100
From: Graham Klyne <gk-ietf-hybi@ninebynine.org>
User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812)
MIME-Version: 1.0
To: Greg Wilkins <gregw@webtide.com>
References: <4ACE50A2.5070404@ericsson.com>	<3a880e2c0910081600v3607665dp193f6df499706810@mail.gmail.com>	<4ACF4055.6080302@ericsson.com>	<Pine.LNX.4.62.0910092116010.21884@hixie.dreamhostps.com> <4AD2E353.8070609@webtide.com>
In-Reply-To: <4AD2E353.8070609@webtide.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Oxford-Username: zool0635
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] Multiplexing in WebSocket (Was:  HyBi Design Space)
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, 12 Oct 2009 18:41:55 -0000

To add just one voice among many...

(1) in the use-cases that I've considered for pushing messages/requests to a 
browser, multiplexing is not a requirement.  Other's mileage may, of course, vary.

(2) Looking at a multiplexing protocol such as BEEP, multiplexing adds a *lot* 
of complexity to the protocol specification and implementation.  I would say 
that the case for multiplexing in the base protocol needs to be made to justify 
that added complexity.

(3) It seems to me that, if needed, a multiplexing layer could be specified and 
standardized over a non-multiplexing substrate.

#g
--

Greg Wilkins wrote:
> Ian Hickson wrote:
> 
>> FWIW, so far I've concluded (based on long discussions with a number of 
>> developers and implementors) that multiplexing would actually not be that 
>> great.
> 
> Which developers/implementors?
> 
> So far the majority of opinions I've seen on this list and the whatwg list
> have been favourable to multiplexing.   Can you invite them to post their
> opinions here?
> 
> 
>> However, WebSocket
>> connections are long lived by design, 
> 
> I do not believe you can anticipate websocket usage over the long
> term.  Just because you think now they will only be used for long
> lived connections, that may not always be the case.  It is short
> sighted to build such limitations into a once-in-a-decade chance to
> upgrade the protocols we use on the web.
> 
>> and the cost of setting up a
>> connection therefore is insignificant compared to the cost of the protocol
>> itself.
> 
> There is also a cost associated with maintaining and servicing a
> connection.
> 
> 
>> There's also something to be said for relying on TCP's built in
>> congestion control -- if you were to open two connections to a server, 
>> one sending vast amounts of data, and one sending just the occasional 
>> critically important notification, it would be best if the latter could 
>> avoid getting throttled along with the first.
> 
> Some would argue that is improperly bypassing TCP's congestion control.
> 
> I have often seen the horrid argument put that if you use 8 connections
> instead of 1, then you are more likely to get better service from
> a router that is fair sharing capacity among connections.   That path
> leads to an irrational arms race as once everybody uses 8 connections,
> somebody will use 16 to get better service etc etc.
> 
> Implementing connection policies is not something that should
> be left to the application developer. It is far far better that the
> browsers implement connection control policies.
> 
> 
>> As with anything, though, there's always the option of changing this if 
>> strong arguments one way or the other are put forward. We can also 
>> introduce multiplexing as a new version of the protocol in a future 
>> version.
> 
> Protocol versions come once maybe twice a decade.   Please consider
> the future and not just short term needs of one particular interest
> group.
> 
> 
> 
> regards
> 
> _______________________________________________
> hybi mailing list
> hybi@ietf.org
> https://www.ietf.org/mailman/listinfo/hybi
> 


From gregw@webtide.com  Mon Oct 12 14:07:02 2009
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 7123728C20B for <hybi@core3.amsl.com>; Mon, 12 Oct 2009 14:07:02 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.679
X-Spam-Level: 
X-Spam-Status: No, score=-0.679 tagged_above=-999 required=5 tests=[AWL=1.920,  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 ndLGJzPiQrKa for <hybi@core3.amsl.com>; Mon, 12 Oct 2009 14:07:01 -0700 (PDT)
Received: from mail-fx0-f228.google.com (mail-fx0-f228.google.com [209.85.220.228]) by core3.amsl.com (Postfix) with ESMTP id 2EB9928C1B1 for <hybi@ietf.org>; Mon, 12 Oct 2009 14:07:00 -0700 (PDT)
Received: by fxm28 with SMTP id 28so7869043fxm.42 for <hybi@ietf.org>; Mon, 12 Oct 2009 14:06:58 -0700 (PDT)
Received: by 10.86.242.15 with SMTP id p15mr5610628fgh.14.1255381618777; Mon, 12 Oct 2009 14:06:58 -0700 (PDT)
Received: from ?10.10.1.9? (60-242-119-126.tpgi.com.au [60.242.119.126]) by mx.google.com with ESMTPS id 4sm162871fge.2.2009.10.12.14.06.53 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 12 Oct 2009 14:06:57 -0700 (PDT)
Message-ID: <4AD39A64.4080405@webtide.com>
Date: Tue, 13 Oct 2009 08:06:44 +1100
From: Greg Wilkins <gregw@webtide.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090817)
MIME-Version: 1.0
To: Graham Klyne <gk-ietf-hybi@ninebynine.org>
References: <4ACE50A2.5070404@ericsson.com>	<3a880e2c0910081600v3607665dp193f6df499706810@mail.gmail.com>	<4ACF4055.6080302@ericsson.com>	<Pine.LNX.4.62.0910092116010.21884@hixie.dreamhostps.com> <4AD2E353.8070609@webtide.com> <4AD2F43D.6030202@ninebynine.org>
In-Reply-To: <4AD2F43D.6030202@ninebynine.org>
X-Enigmail-Version: 0.95.7
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] Multiplexing in WebSocket (Was:  HyBi Design Space)
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, 12 Oct 2009 21:07:02 -0000

Graham Klyne wrote:
> To add just one voice among many...
> 
> (1) in the use-cases that I've considered for pushing messages/requests
> to a browser, multiplexing is not a requirement.  Other's mileage may,
> of course, vary.

Graham, it would be great if you could briefly describe
your use-cases.

Are you sure that they will never be mashed up into a webapp made
of many parts that originally were not designed to work together?

Are you sure that they would never run behind a transparent proxy
that might aggregate multiple connections into a single connection?


> (2) Looking at a multiplexing protocol such as BEEP, multiplexing adds a
> *lot* of complexity to the protocol specification and implementation.  I
> would say that the case for multiplexing in the base protocol needs to
> be made to justify that added complexity.

I totally agree that the multiplexing of BEEP is too complex for
the level of protocol that we are considering.

But multiplexing can be much much simpler.  At it simplest,
it just needs a channel id in each frame and the channel creation
can be automatic.   In the BWTP protocol proposal, I've added
a little bit of channel creation exchange, so as to well match
the explicit life cycle events of the websocket API.

> (3) It seems to me that, if needed, a multiplexing layer could be
> specified and standardized over a non-multiplexing substrate.

Normally I do believe layering protocols like you describe would be
a good approach. But...

The difficulty is that with websocket protocol, it has a hard binding
to the application websocket API.  There is no scope provided to inject
another layer.   The API has explicit  open/close events (which I think
should be mapped to channels), but that are currently mapped to connections.
Thus applications and/or frameworks will be doing explicit connection
management.

This is analogous to the advent of XHR in the browser. Every Ajax
books then started with a chapter about how to write your own Ajax
code directly using XHR.  But XHR is a too low level API for
applications and it has taken many years to abstract the average
ajax developer away from direct XHR access.  So now we have
frameworks such as dojo, jquery, yahoo, ext etc that provide an
abstraction on top of XHR.

Probably these frameworks will be able to provide good abstractions
on top of websocket API, and this may well include multiplexing
support.   But even if the frameworks implemented to same wire
protocol for multiplexing, they would not be able to:

  + share connections between frameworks
  + share connections with code written directly to the websocket API.
  + share connections with other iframes, tabs and/or windows.
  + implement a strong origin policy for security


I believe that these desirable things can only be achieved if
it is the browser rather than the application that implements
the multi-plexing.

The fundamental problem with websocket API is that is both
a connection API (open/close) and a messaging API (send/onMessage).
The API needs to be abstracted away from any hard relationship
to TCP/IP connections.   This can be done with a simple rename
of s/connection/channel/.     Applications can then manage channels
and the browser/server can manage mapping those channels to
connections - perhaps with multiplexing or perhaps without.


cheers


































From stefano.salsano@uniroma2.it  Mon Oct 12 16:25:23 2009
Return-Path: <stefano.salsano@uniroma2.it>
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 DB1EB3A682E for <hybi@core3.amsl.com>; Mon, 12 Oct 2009 16:25:23 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 1.695
X-Spam-Level: *
X-Spam-Status: No, score=1.695 tagged_above=-999 required=5 tests=[BAYES_40=-0.185, HELO_EQ_IT=0.635, HOST_EQ_IT=1.245]
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 2Oq-MItCj4c3 for <hybi@core3.amsl.com>; Mon, 12 Oct 2009 16:25:22 -0700 (PDT)
Received: from smtp.uniroma2.it (smtp.uniroma2.it [160.80.6.16]) by core3.amsl.com (Postfix) with ESMTP id 92C843A677E for <hybi@ietf.org>; Mon, 12 Oct 2009 16:25:20 -0700 (PDT)
Received: from smtpauth0.uniroma2.it (smtpauth.uniroma2.it [160.80.1.175]) by smtp.uniroma2.it (8.13.6/8.13.6) with ESMTP id n9CNMiZr006260 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 13 Oct 2009 01:22:46 +0200
Received: from [79.30.16.247] (host247-16-dynamic.30-79-r.retail.telecomitalia.it [79.30.16.247]) (authenticated bits=0) by smtpauth0.uniroma2.it (8.13.8/8.13.8/Debian-3) with ESMTP id n9CNPB0x028407 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 13 Oct 2009 01:25:13 +0200
Message-ID: <4AD3BADC.8050306@uniroma2.it>
Date: Tue, 13 Oct 2009 01:25:16 +0200
From: Stefano Salsano <stefano.salsano@uniroma2.it>
User-Agent: Thunderbird 2.0.0.23 (Windows/20090812)
MIME-Version: 1.0
To: "Thomson, Martin" <Martin.Thomson@andrew.com>
References: <4ACE50A2.5070404@ericsson.com> <E51D5B15BFDEFD448F90BDD17D41CFF1065B6142@AHQEX1.andrew.com>
In-Reply-To: <E51D5B15BFDEFD448F90BDD17D41CFF1065B6142@AHQEX1.andrew.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-MailScanner-Information: Please contact the ISP for more information
X-MailScanner: Found to be clean
X-MailScanner-From: stefano.salsano@uniroma2.it
Cc: hybi@ietf.org
Subject: Re: [hybi] HyBi Design Space
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, 12 Oct 2009 23:25:24 -0000

Dear Martin,

I understand the concerns you have expressed and I agree with the points 
  you made.

After your comments, now I think that is is better not to include this 
analyis of design space as it is in the draft-loreto-http-bidirectional 
and to keep it as a separate document instead.

As Salvatore has proposed in his reply to your mail, may be we can try 
to extract the text and the concepts that are directly related to che 
case "A - right here and now" and propose a reduced text to be inserted 
in draft-loreto-http-bidirectional...

Best regards,
Stefano


Thomson, Martin wrote:
> While I agree that constraining the design space is probably a
> necessary part of our work, there are aspects to this text that
> concern me.
> 
> I like the effort that is going into identifying the servers, clients
> and intermediaries that are involved and the constraints that are
> involved.  That part of the text seems valuable.
> 
> However, it seems like there was consensus to address two problems in
> the WG:
> 
> A - right here and now, HTTP extensions B - sometime later, new
> protocols that interact somehow with HTTP
> 
>> From the abstract and early sections of the document, the draft
>> right now seems to be concentrated on the side of A.
> 
> This analysis seems divorced from this goal, so much so that it seems
> a little unfocussed.
> 
> For instance, the usual laundry list of desires surfaces: Complexity,
> Capability, Extensibility, Latency, Bandwidth, Scalability,
> Footprint, AAA, Security, Interoperability (!), Compatibility.
> 
> These are constraints on any design exercise.  They don't add any
> value unless they are directly related to the work at hand.
> 
> My initial view of this document was a problem statement for A.  To
> that end, this could all be much more specific.  For instance,
> compatibility is highly important for solution A.  Or, more
> specifically yet: it is important that solution A can be deployed to
> the web in the short-term, so compatibility with existing
> implementations is crucial.
> 
> The example of "Non-browser, non-HTTP" immediately jumps out as a
> problem for this document.  A reasonable reaction might be that this
> is way out of scope.  But then, I know that it isn't necessarily the
> case.   Insufficient context has been provided to assess this item
> rationally because it's talking about B, not A.
> 
> Because the constraints are significantly different on A vs. B, a
> separate problem statement for B seems appropriate.  That would help
> this be a little less vague.
> 
> --Martin
> 
>> -----Original Message----- From: hybi-bounces@ietf.org
>> [mailto:hybi-bounces@ietf.org] On Behalf Of Salvatore Loreto Sent:
>> Friday, 9 October 2009 7:51 AM To: hybi@ietf.org Subject: [hybi]
>> HyBi Design Space
>> 
>> Hi there,
>> 
>> at the breakfast BoF in Stockholm it was brought up that it would
>> have been helpful to more clearly describe the design space,
>> including the programming environments (client, server, library,
>> etc.), deployed infrastructure (routers, proxies, etc.).
>> 
>> here the analysis that we have written down and we are going to
>> insert in the draft-loreto-http-bidirectional.
>> 
>> comments, feedbacks and suggestions are very welcome
>> 
>> cheers Sal www.sloreto.com
>> 
>> 
>> 
>> 6.  Design Space
>> 
>> In order to define additions to HTTP that could enable improved 
>> mechanisms for bidirectional HTTP or new bidirectional protocols,
>> it is important to map out the design space and potential design 
>> alternatives, with special attention to deployed infrastructure and
>>  programming environments.
>> 
>> In existing HTTP-based systems, the typical semantic is client- 
>> server Representational State Transfer (REST), where the resources
>> served are closely associated with an entity known by a URI or URL.
>>  However, the introduction of bidirectionality can significantly 
>> change the normal HTTP patterns.
>> 
>> As one example, the standard roles of client and server can be 
>> reversed and a server can request resources from a client. 
>> Unfortunately, due to a lack of client addressability URL's may not
>>  be applicable to client entities and new addressing paradigms may
>> be required.
>> 
>> Furthermore, bidirectionality introduces a message passing pattern 
>> into the traditional REST style.
>> 
>> These additional semantics will influence the design of the 
>> bidirecitonal protocols, addressing, and APIs.  Without a strong 
>> association between an identified entity and a resource, new 
>> mechanisms for content distribution and caching messages might need
>>  to be considered.
>> 
>> In the next sections we analyse the design space from several 
>> different sides of the HTTP deployed infrastructure, including 
>> clients, servers, and intermediaries such as proxies, caching 
>> servers, and load balancers.
>> 
>> The process of evaluating eventual improvements to the
>> bidirectional solutions or development of new bidirection protocols
>> should take into consideration the following concerns and criteria:
>> 
>> 
>> Complexity:  enables ease of implementation, understanding, and 
>> debugging
>> 
>> Capability:  addresses all/most known bidirectional use-cases
>> 
>> Extensibility:  has the capacity to handle new use-cases  Latency:
>> defines minimal, average, and maximal latency for message delivery
>> 
>> Bandwidth overhead:  minimizes overhead for idle and busy usage
>> 
>> Scalability:  has the ability to handle large scale usage
>> 
>> Footprint:  has the ability to handle small devices and/or massive 
>> replication ("cloud")
>> 
>> AAA:  enables proper Authentication, Authorization and Accounting
>> 
>> Security:  enables strong security for integral, confidential, 
>> endorsed, and cross domain deployments.
>> 
>> Interoperability:  can work with and/or be integrated with existing
>>  bidirectional implementations
>> 
>> Compatibility:  can work with existing web infrastructure for 
>> distributing, caching, manipulating, and displaying content.
>> 
>> 6.1.  Server side
>> 
>> The server side can be decomposed into three categories:
>> 
>> In-band HTTP:  Bidirectionality is part of the normal HTTP/Web 
>> server responsibilities.  HTTP is used for transporting server
>> events. Examples include Comet and (in some deployments) BOSH.
>> 
>> Out-of-band HTTP:  Here two servers are involved: bidirectionality 
>> is not part of the normal HTTP/Web server responsibilities, but the
>>  backend service is offered by a separate server that might not 
>> even be on the same machine of the HTTP/Web server.  HTTP is used 
>> for transporting server events.  When a browser is used on the 
>> client side, a cross-domain solution is needed to overcome the 
>> "same-source" web service restriction.  Examples include BOSH (in 
>> some deployments) and Lightstreamer.
>> 
>> In-band non-HTTP:  Bidirectionality is part of the normal HTTP/Web 
>> server responsibilities.  However, server events are transported on
>> an upgraded HTTP connection.  Examples include Bidirectional Web
>> Transfer Protocol (BWTP) and WebSockets.
>> 
>> Out-of-band non-HTTP:  Bidirectionality is offered by a dedicated 
>> server using non HTTP protocol for transport server events. 
>> Examples include WebSockets.
>> 
>> The HTTP transport based servers (in-band and out-of-band) can work
>>  with existing HTTP standards or enhanced HTTP.  Enhanced HTTP
>> would be a standardized set of headers and behaviours to assist
>> with bidirectionality and cross domain concerns.
>> 
>> At present, a protocol that interacts heavily with JavaScript on
>> the client side implies some constraints also on the server side,
>> such that they have to use XML or JSON encapsulation.
>> 
>> 6.2.  Clients
>> 
>> Clients can be involved in bidirectional transport in the following
>>  capacities:
>> 
>> In browser open standards with HTTP transport:  For applications 
>> written in a web browser scripting language (e.g.  JavaScript) 
>> within a browser client.  Examples include Comet and BOSH.
>> 
>> In browser open standards with enhanced HTTP transport:  For 
>> applications written in a web browser scripting language (e.g. 
>> JavaScript) within a browser client.  Examples include Comet with 
>> cross domain extensions.
>> 
>> Browsers using either standard HTTP transport or enhanced HTTP 
>> transport typically use XMLHttpRequest (XHR) API 
>> [W3C.WD-XMLHttpRequest2-20090820] allowing scripts to perform HTTP 
>> client functionality.  The XHR object can be used to perform 
>> bidirectional HTTP using both "long polling" and "HTTP streaming" 
>> mechanisms.
>> 
>> XHR also supports the cross domain extension 
>> [W3C.WD-cors-20090317], which overcomes the same-origin 
>> restrictions that prevent a Web application running from one origin
>> from obtaining data retrieved from another origin. However, XHR
>> presents some limitations on the headers that can be set by the
>> user.
>> 
>> An alternative to XMLHttpRequest is using the Server-Sent Events 
>> API [W3C.WD-eventsource-20090423].  This "EventSource: interface 
>> enables servers to push data to Web pages over HTTP or using 
>> dedicated server-push protocols.
>> 
>> 
>> In browser open standards with non HTTP transport:  For
>> applications written in JavaScript within a browser client.
>> Examples include BWTP and WebSockets.
>> 
>> In browser with plugin:  This is not of particular interest to
>> IETF, but should be noted as part of the design space.  Examples 
>> include BlazeDS.
>> 
>> Non-browser HTTP:  A bidirectional client may be written outside of
>>  a browser and use bidirectional web transports.  Typically this is
>>  done so that a rich or minimal client can bypass firewalls to 
>> access public servers over HTTP transports.  Examples include the 
>> Comet Java client and the Second Life Viewer.
>> 
>> Non browser enhanced HTTP:  [Definition and examples to follow.]
>> 
>> Non browser non-HTTP:  [Definition and examples to follow.]
>> 
>> 6.3.  Intermediaries
>> 
>> Intermediaries (e.g. proxies, gateways, caching servers, load 
>> balancers, etc) can be involved in bidirectional transport in 
>> several capacities:
>> 
>> Legal HTTP relay:  Transports such as long polling use 
>> intermediaries to carry legal HTTP requests and response.  Any
>> capabilities that may interfere with bidirectional flow (e.g.
>> caching) are controlled with standard headers or cookies.  The
>> intermediary may be a participant in the transport (e.g., changing
>> framing or encapsulation).
>> 
>> Defacto HTTP relay:  Some streaming transports use the common 
>> behavior of HTTP intermediaries to forward content packet-by- 
>> packet.  This relies on intermediaries to not cache or buffer 
>> content.
>> 
>> Enhanced HTTP relay:  Uses yet-to-be-defined HTTP headers to assist
>>  HTTP based bidirectional transports.  The intermediary may be a 
>> participant in the transport (e.g., changing framing or 
>> encapsulation).
>> 
>> Upgraded HTTP relay:  Uses HTTP upgrade to relay a non-HTTP 
>> protocol.
>> 
>> Tunneled relay:  Uses (or abuses?) the CONNECT mechanism to
>> simulate an SSL connection to be used as a tunnel for a non-HTTP 
>> transport.
>> 
>> 
>> 
>> 
>> [W3C.WD-XMLHttpRequest2-20090820] Kesteren, A., "XMLHttpRequest
>> Level 2", World Wide Web Consortium WD WD-XMLHttpRequest2-20090820,
>> August 2009, 
>> <http://www.w3.org/TR/2009/WD-XMLHttpRequest2-20090820>.
>> 
>> [W3C.WD-cors-20090317] Kesteren, A., "Cross-Origin Resource
>> Sharing", World Wide Web Consortium WD WD-cors-20090317, March
>> 2009, <http://www.w3.org/TR/2009/WD-cors-20090317>.
>> 
>> [W3C.WD-eventsource-20090423] Hickson, I., "Server-Sent Events",
>> World Wide Web Consortium WD WD-eventsource-20090423, April 2009, 
>> <http://www.w3.org/TR/2009/WD-eventsource-20090423>.
>> 
>> 


-- 
*******************************************************************
Stefano Salsano
Dipartimento Ingegneria Elettronica
Universita' di Roma "Tor Vergata"
Via del Politecnico, 1 - 00133 Roma - ITALY

http://netgroup.uniroma2.it/Stefano_Salsano/

E-mail  : stefano.salsano@uniroma2.it
Cell.   : +39 320 4307310
Office  : (Tel.) +39 06 72597770  (Fax.) +39 06 72597435
*******************************************************************

From Martin.Thomson@andrew.com  Mon Oct 12 16:42:39 2009
Return-Path: <Martin.Thomson@andrew.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 2A70D3A6997 for <hybi@core3.amsl.com>; Mon, 12 Oct 2009 16:42:39 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.227
X-Spam-Level: 
X-Spam-Status: No, score=-2.227 tagged_above=-999 required=5 tests=[AWL=0.372,  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 gPXbflztFPBo for <hybi@core3.amsl.com>; Mon, 12 Oct 2009 16:42:38 -0700 (PDT)
Received: from andrew.com (smtp3.andrew.com [198.135.207.235]) by core3.amsl.com (Postfix) with ESMTP id 5F8413A6918 for <hybi@ietf.org>; Mon, 12 Oct 2009 16:42:38 -0700 (PDT)
X-SEF-Processed: 5_0_0_910__2009_10_12_19_06_39
X-SEF-16EBA1E9-99E8-4E1D-A1CA-4971F5510AF: 1
Received: from acdcexbh1.andrew.com [10.86.20.91] by smtp3.andrew.com - SurfControl E-mail Filter (5.2.1); Mon, 12 Oct 2009 19:06:39 -0500
Received: from AHQEX1.andrew.com ([10.86.20.21]) by acdcexbh1.andrew.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 12 Oct 2009 18:42:38 -0500
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
Date: Mon, 12 Oct 2009 18:43:03 -0500
Message-ID: <E51D5B15BFDEFD448F90BDD17D41CFF1066188EA@AHQEX1.andrew.com>
In-Reply-To: <4ACF4567.9000005@ericsson.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [hybi] HyBi Design Space
thread-index: AcpI6ukYaiXOJQe4S9SjQk6mlDtkagCqoBig
References: <4ACE50A2.5070404@ericsson.com> <E51D5B15BFDEFD448F90BDD17D41CFF1065B6142@AHQEX1.andrew.com> <4ACF4567.9000005@ericsson.com>
From: "Thomson, Martin" <Martin.Thomson@andrew.com>
To: "Salvatore Loreto" <salvatore.loreto@ericsson.com>
X-OriginalArrivalTime: 12 Oct 2009 23:42:38.0927 (UTC) FILETIME=[AEDADDF0:01CA4B95]
Cc: hybi@ietf.org
Subject: Re: [hybi] HyBi Design Space
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, 12 Oct 2009 23:42:39 -0000

SGkgU2FsLA0KDQo+IG1heWJlIGluc3RlYWQgb2YgaW5zZXJ0IHRoZSBEZXNpZ24gU3BhY2UgYW5h
bHlzaXMgdGV4dCBpbiB0aGUgZXhpc3RpbmcNCj4gZHJhZnQgaXQgd291bGQgYmUgYmV0dGVyIGlu
Y2x1ZGUgaXQgaW4gYSBuZXcgZHJhZnQ7DQo+IGFuZCB0aGVuIGluY2x1ZGUgaW4gdGhlIGV4aXN0
aW5nIGRyYWZ0IChkcmFmdC1sb3JldG8taHR0cC0NCj4gYmlkaXJlY3Rpb25hbCkNCj4gYSBtdWNo
IG1vcmUgc3BlY2lmaWMgdGV4dCBmb3IgdGhlICJyaWdodCBoZXJlIGFuZCBub3csIEhUVFANCj4g
ZXh0ZW5zaW9ucyIuDQo+IHdvdWxkIGl0IG1ha2Ugc2Vuc2U/DQoNClRoYXQgd291bGQgbWFrZSBt
b3JlIHNlbnNlLiAgVGhhdCB3aWxsIGhlbHAgdXMgbW92ZSBvbiB0aGUgcHJvYmxlbSB0aGF0IGhh
cyBncmVhdGVyIHVyZ2VuY3kuICANCg0KT2J2aW91c2x5LCBpdCB3aWxsIHRha2Ugc29tZSB0aW1l
IGZvciB1cyB0byByZWFjaCBjb25zZW5zdXMgb24gY2VydGFpbiBhc3BlY3RzIG9mIHRoZSBsb25n
IHRlcm0gc29sdXRpb24gW2MuZi4gbXVsdGlwbGV4aW5nIGRpc2N1c3Npb25dLg0KDQotLU1hcnRp
bg0KLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t
LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tDQpUaGlzIG1lc3NhZ2Ug
aXMgZm9yIHRoZSBkZXNpZ25hdGVkIHJlY2lwaWVudCBvbmx5IGFuZCBtYXkNCmNvbnRhaW4gcHJp
dmlsZWdlZCwgcHJvcHJpZXRhcnksIG9yIG90aGVyd2lzZSBwcml2YXRlIGluZm9ybWF0aW9uLiAg
DQpJZiB5b3UgaGF2ZSByZWNlaXZlZCBpdCBpbiBlcnJvciwgcGxlYXNlIG5vdGlmeSB0aGUgc2Vu
ZGVyDQppbW1lZGlhdGVseSBhbmQgZGVsZXRlIHRoZSBvcmlnaW5hbC4gIEFueSB1bmF1dGhvcml6
ZWQgdXNlIG9mDQp0aGlzIGVtYWlsIGlzIHByb2hpYml0ZWQuDQotLS0tLS0tLS0tLS0tLS0tLS0t
LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t
LS0tLS0tLS0tLS0tLS0tLS0tLS0NClttZjJdDQo=


From ian@hixie.ch  Tue Oct 13 04:51:30 2009
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 52AD228C14B; Tue, 13 Oct 2009 04:51:30 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level: 
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[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 h6qRpzI0yfmb; Tue, 13 Oct 2009 04:51:29 -0700 (PDT)
Received: from looneymail-a2.g.dreamhost.com (caibbdcaaaaf.dreamhost.com [208.113.200.5]) by core3.amsl.com (Postfix) with ESMTP id 614F93A67E5; Tue, 13 Oct 2009 04:51:29 -0700 (PDT)
Received: from hixie.dreamhostps.com (hixie.dreamhost.com [208.113.210.27]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by looneymail-a2.g.dreamhost.com (Postfix) with ESMTP id 68C0A16D3D5; Tue, 13 Oct 2009 04:51:30 -0700 (PDT)
Date: Tue, 13 Oct 2009 12:02:47 +0000 (UTC)
From: Ian Hickson <ian@hixie.ch>
To: URI <uri@w3.org>
In-Reply-To: <4AB3507A.7050802@it.aoyama.ac.jp>
Message-ID: <Pine.LNX.4.62.0910131143010.25383@hixie.dreamhostps.com>
References: <Pine.LNX.4.62.0908070531430.28566@hixie.dreamhostps.com> <1249651007.25446.8934.camel@dbooth-laptop> <0B450D619CC0486E8BD51C31FBA214AD@POCZTOWIEC> <20090812021926.GC19298@shareable.org> <AB9A0CF094F04D39BC7DC5DEAFF7FC1C@POCZTOWIEC> <4AA8A2CE.3000801@it.aoyama.ac.jp> <34660A8503164BE88641374ADF2BF1A3@POCZTOWIEC> <20090910124618.GB32178@shareable.org> <11DFA16908CB4B7D8AF0F45975DE425A@POCZTOWIEC> <20090910224151.GA17387@shareable.org> <Pine.LNX.4.62.0909170834040.14605@hixie.dreamhostps.com> <4AB21FD6.3070008@gmx.de> <4AB3507A.7050802@it.aoyama.ac.jp>
Content-Language: en-GB-hixie
Content-Style-Type: text/css
MIME-Version: 1.0
Content-Type: MULTIPART/MIXED; BOUNDARY="1909464018-372218033-1255435367=:25383"
Cc: "public-iri@w3.org" <public-iri@w3.org>, uri-review@ietf.org, hybi@ietf.org, "public-i18n-core@w3.org" <public-i18n-core@w3.org>
Subject: Re: [hybi] ws: and wss: schemes
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: Tue, 13 Oct 2009 11:51:30 -0000

  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

--1909464018-372218033-1255435367=:25383
Content-Type: TEXT/PLAIN; charset=UTF-8
Content-Transfer-Encoding: QUOTED-PRINTABLE

On Thu, 17 Sep 2009, Julian Reschke wrote:
>=20
> It now says:
>=20
> >    Encoding considerations.
> >       Characters in the host component that are excluded by the syntax
> >       defined above must be converted from Unicode to ASCII by applying
> >       the IDNA ToASCII algorithm to the Unicode host name, with both th=
e
> >       AllowUnassigned and UseSTD3ASCIIRules flags set, and using the
> >       result of this algorithm as the host in the URI.
> >=20
> >       Characters in other components that are excluded by the syntax
> >       defined above must be converted from Unicode to ASCII by first
> >       encoding the characters as UTF-8 and then replacing the
> >       corresponding bytes using their percent-encoded form as defined i=
n
> >       the URI and IRI specification.  [RFC3986] [RFC3987]
>=20
> I think that's good, except that the mention of IRI in the last sentence=
=20
> seems to be superfluous. RFC3986 already defines everything that is=20
> needed here. Or is there something specific from the IRI spec you think=
=20
> is relevant? (In which case it should state that more clearly).

I think referencing IRI for the paragraph that talks about how to process=
=20
IRIs is helpful, even if not strictly necessary. (As Martin later pointed=
=20
out, though, in general, how to convert Unicode to UTF-8 to percent=20
escapes appears to be defined in 3987, not 3986.)


On Fri, 18 Sep 2009, "Martin J. D=FCrst" wrote:
>
> I think this has various problems.
>=20
> First, it is fixed to IDNA 2003 (I think I may have said this already).=
=20
> IDNA 2008 is around the door. It doesn't use terms such as "ToASCII" or=
=20
> "AllowUnassigned".

What are the magic terms that we should use instead? (This will affect=20
HTML5 also; any advice on how to fix the terminology there would be very=20
welcome also.)


> Second, if this is about resolution (rather than about generic=20
> conversion), and because this is a new scheme, it should not exclude the=
=20
> case that some part of a domain name (reg-name) is percent-encoded,=20
> because both RFC 3986 and 3987 allow this.

Not sure what you mean here.


> Third, wording this as "characters" seems to say that this is a=20
> character-by-character operation, or that it might be applied to=20
> subsequent non-ASCII characters in groups, but ToASCII, when used, has=20
> to be applied to whole labels, not characters.

The paragraph applies it to the whole hostname.


> Fourth, as http://tools.ietf.org/html/draft-iab-idn-encoding-00 shows in=
=20
> more detail, assuming that DNS is always used for resolution of=20
> reg-names, and the technology will never be used e.g. on intranets with=
=20
> other resolution services seems to be unnecessarily restrictive.

Not sure what you mean here.


> Ideally, all the above points should be addressed by some work on the=20
> IRI front (public-iri@w3.org cc'ed), but that work isn't done yet.

That would indeed be ideal.

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

From ian@hixie.ch  Tue Oct 13 05:04:21 2009
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 305DA28C16C for <hybi@core3.amsl.com>; Tue, 13 Oct 2009 05:04:21 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level: 
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[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 l04sl6ljAnWO for <hybi@core3.amsl.com>; Tue, 13 Oct 2009 05:04:20 -0700 (PDT)
Received: from looneymail-a1.g.dreamhost.com (caibbdcaaaaf.dreamhost.com [208.113.200.5]) by core3.amsl.com (Postfix) with ESMTP id 5B95628C159 for <hybi@ietf.org>; Tue, 13 Oct 2009 05:04:20 -0700 (PDT)
Received: from hixie.dreamhostps.com (hixie.dreamhost.com [208.113.210.27]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by looneymail-a1.g.dreamhost.com (Postfix) with ESMTP id 5E1FC15D570; Tue, 13 Oct 2009 05:04:19 -0700 (PDT)
Date: Tue, 13 Oct 2009 12:15:36 +0000 (UTC)
From: Ian Hickson <ian@hixie.ch>
To: SM <sm@resistor.net>
In-Reply-To: <6.2.5.6.2.20090917130335.03226138@resistor.net>
Message-ID: <Pine.LNX.4.62.0910131212000.25383@hixie.dreamhostps.com>
References: <507F3682-5AAF-4AC0-88F6-10A31B12380D@mnot.net> <Pine.LNX.4.62.0907292309330.3189@hixie.dreamhostps.com> <20090812125653.GA1235@shareable.org> <Pine.LNX.4.62.0908160629230.6420@hixie.dreamhostps.com> <20090816171704.GB27122@shareable.org> <Pine.LNX.4.62.0909040546330.6775@hixie.dreamhostps.com> <4AA25206.9070809@webtide.com> <20090905140551.GJ24516@shareable.org> <4AA3139E.2030908@webtide.com> <20090907125321.GG7949@shareable.org> <Pine.LNX.4.62.0909170950580.14605@hixie.dreamhostps.com> <6.2.5.6.2.20090917130335.03226138@resistor.net>
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] Feedback on thewebsocketprotocol
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: Tue, 13 Oct 2009 12:04:21 -0000

On Thu, 17 Sep 2009, SM wrote:
> At 03:36 17-09-2009, Ian Hickson wrote:
> > That is part of what it is about. Could you elaborate on why that sentence
> > isn't useful? What else should the abstract say, if not that?
> 
>   "The Abstract section should provide a concise and comprehensive
>    overview of the purpose and contents of the entire document, to give
>    a technically knowledgeable reader a general overview of the function
>    of the document."
> 
> You are telling me what the specification is not intended to do instead of
> what the document is supposed to be about.

Fair enough. I've changed where the bit about the security model is given.


> > Is this a rhetorical question? Is the paragraph not clear?
> 
> It is not clear as I do not know what you mean by "constraints of the Web".

I think explaining the constraints of defining protocols compatible with 
the Web's legacy environment is somewhat out of scope of an RFC like this 
one. I mean, one could go on for pages and pages about this topic.


> > Could you elaborate?
> 
> I assume that you have already settled on the structure and main content as
> the latest version is draft-hixie-thewebsocketprotocol-41.  You are asking the
> community to put in time and effort to comment on your proposal.  The numerous
> iterations do not encourage that.  In my opinion, the draft is not ready for
> community review.  I suggest that you read Graham Klyne's message [1] again.
> There's also a message from Julian Reschke [2].

I always welcome community review. This text has been getting review since 
about 2004, and has gone through hundreds of iterations in this time, and 
will likely go through many more in the future. I'm a firm believer in the 
"release early, release often" philosophy, and welcome anyone who wants to 
participate in this technology's development. However, if you do not think 
it is yet ready, you are welcome to wait for a later version to review.

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

From gk-ietf-hybi@ninebynine.org  Tue Oct 13 11:03:46 2009
Return-Path: <gk-ietf-hybi@ninebynine.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 1D15E3A68ED for <hybi@core3.amsl.com>; Tue, 13 Oct 2009 11:03:46 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.936
X-Spam-Level: 
X-Spam-Status: No, score=-2.936 tagged_above=-999 required=5 tests=[AWL=0.505,  BAYES_05=-1.11, DATE_IN_PAST_06_12=1.069, J_CHICKENPOX_31=0.6,  RCVD_IN_DNSWL_MED=-4]
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 WYsKn94oa1Le for <hybi@core3.amsl.com>; Tue, 13 Oct 2009 11:03:44 -0700 (PDT)
Received: from relay9.mail.ox.ac.uk (relay9.mail.ox.ac.uk [163.1.2.169]) by core3.amsl.com (Postfix) with ESMTP id 5DD9428C0E1 for <hybi@ietf.org>; Tue, 13 Oct 2009 11:03:44 -0700 (PDT)
Received: from smtp2.mail.ox.ac.uk ([163.1.2.205]) by relay9.mail.ox.ac.uk with esmtp (Exim 4.69) (envelope-from <gk-ietf-hybi@ninebynine.org>) id 1Mxlip-000478-TN; Tue, 13 Oct 2009 19:03:43 +0100
Received: from gklyne.plus.com ([80.229.154.156] helo=Eskarina.local) by smtp2.mail.ox.ac.uk with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from <gk-ietf-hybi@ninebynine.org>) id 1Mxlio-0004SW-8i; Tue, 13 Oct 2009 19:03:43 +0100
Message-ID: <4AD4482B.3030705@ninebynine.org>
Date: Tue, 13 Oct 2009 10:28:11 +0100
From: Graham Klyne <gk-ietf-hybi@ninebynine.org>
User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812)
MIME-Version: 1.0
To: Greg Wilkins <gregw@webtide.com>
References: <4ACE50A2.5070404@ericsson.com>	<3a880e2c0910081600v3607665dp193f6df499706810@mail.gmail.com>	<4ACF4055.6080302@ericsson.com>	<Pine.LNX.4.62.0910092116010.21884@hixie.dreamhostps.com> <4AD2E353.8070609@webtide.com> <4AD2F43D.6030202@ninebynine.org> <4AD39A64.4080405@webtide.com>
In-Reply-To: <4AD39A64.4080405@webtide.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Oxford-Username: zool0635
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] Multiplexing in WebSocket (Was:  HyBi Design Space)
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: Tue, 13 Oct 2009 18:03:46 -0000

Greg Wilkins wrote:
> Graham Klyne wrote:
>> To add just one voice among many...
>>
>> (1) in the use-cases that I've considered for pushing messages/requests
>> to a browser, multiplexing is not a requirement.  Other's mileage may,
>> of course, vary.
> 
> Graham, it would be great if you could briefly describe
> your use-cases.

Primarily event delivery for real-time control and monitoring.  A few more notes 
are here: http://code.google.com/p/webbrick-events/wiki/EventModel.

Also, as noted there, providing notification that data has changed so that web 
pages can refresh themselves.

These applications are essentially channel-free, being more 
datagram/message/event oriented than session oriented, using some kind of global 
identifier space (e.g. URIs) for disambiguation where needed.

I'm also in conversation with the Wookie Widgets team 
(http://getwookie.org/Welcome.html) for another project I'm working on 
(http://code.google.com/p/shuffl/).

> Are you sure that they will never be mashed up into a webapp made
> of many parts that originally were not designed to work together?

No, I'm not, but I'm also prepared to consider using multiple TCP connections in 
such circumstances.  Typically, I've seen requirements to put up to about 5 
different semi-independent widgets on a page.

I fully accept that your mileage may vary here.

Also, I seem to recall there was some IETF work on congestion control that could 
  reduce some of the problems with running multiple TCP channels ...

[Googling...]
http://tools.ietf.org/html/rfc2914
http://tools.ietf.org/html/rfc2481
http://tools.ietf.org/html/rfc4336
http://tools.ietf.org/html/rfc3124

I think the last one is the one I recall.

> Are you sure that they would never run behind a transparent proxy
> that might aggregate multiple connections into a single connection?

No I'm not, but any transparent proxy that does that must surely ensure that 
multiple connections still appear to the application as independent connections, 
or it's fundamentally broken.  I think that such multiple connection tunneling 
might be the right way to go.  I could imagine server-to-server BEEP being used 
to tunnel multiple WebSocket sessions over a single connection - and here, the 
complexity of BEEP might be justified.

>> (2) Looking at a multiplexing protocol such as BEEP, multiplexing adds a
>> *lot* of complexity to the protocol specification and implementation.  I
>> would say that the case for multiplexing in the base protocol needs to
>> be made to justify that added complexity.
> 
> I totally agree that the multiplexing of BEEP is too complex for
> the level of protocol that we are considering.
> 
> But multiplexing can be much much simpler.  At it simplest,
> it just needs a channel id in each frame and the channel creation
> can be automatic.   In the BWTP protocol proposal, I've added
> a little bit of channel creation exchange, so as to well match
> the explicit life cycle events of the websocket API.

I guess that I'm not convinced that you can make multiplexing much simpler than 
BEEP and not end up being broken.  When I reviewed BEEP a few years back, I 
thought about trying to avoid the complexities of per-channel flow control, but 
in the end I couldn't see any way of doing that without running the risk that 
one channel could starve all the others.  But with per-channel flow control 
comes the need for some quite complex buffering arrangements.

>> (3) It seems to me that, if needed, a multiplexing layer could be
>> specified and standardized over a non-multiplexing substrate.
> 
> Normally I do believe layering protocols like you describe would be
> a good approach. But...
> 
> The difficulty is that with websocket protocol, it has a hard binding
> to the application websocket API.  There is no scope provided to inject
> another layer.   The API has explicit  open/close events (which I think
> should be mapped to channels), but that are currently mapped to connections.
> Thus applications and/or frameworks will be doing explicit connection
> management.

Hmmm... in principle, I understand that HTTP can be run over any full-duplex 
connection.  I see nothing in WebSockets that prevents similar behaviour.

> This is analogous to the advent of XHR in the browser. Every Ajax
> books then started with a chapter about how to write your own Ajax
> code directly using XHR.  But XHR is a too low level API for
> applications and it has taken many years to abstract the average
> ajax developer away from direct XHR access.  So now we have
> frameworks such as dojo, jquery, yahoo, ext etc that provide an
> abstraction on top of XHR.

While I can agree that the XHR interface is too low-level, and that there are 
better abstractions, and I could agree that the API makes it harder to multiplex 
on a connection, I don;t see anything in the API that actually makes such 
multiplexing impossible.

Also, I haven't really studied a WebSocket API as such - I have looked at a 
protocol spec.  I might agree that an API design should not make it hard to 
multiplex, but that's a different question to what I understood to be under 
discussion here.

> Probably these frameworks will be able to provide good abstractions
> on top of websocket API, and this may well include multiplexing
> support.   But even if the frameworks implemented to same wire
> protocol for multiplexing, they would not be able to:
> 
>   + share connections between frameworks
>   + share connections with code written directly to the websocket API.
>   + share connections with other iframes, tabs and/or windows.
>   + implement a strong origin policy for security
> 
> 
> I believe that these desirable things can only be achieved if
> it is the browser rather than the application that implements
> the multi-plexing.
> 
> The fundamental problem with websocket API is that is both
> a connection API (open/close) and a messaging API (send/onMessage).
> The API needs to be abstracted away from any hard relationship
> to TCP/IP connections.   This can be done with a simple rename
> of s/connection/channel/.     Applications can then manage channels
> and the browser/server can manage mapping those channels to
> connections - perhaps with multiplexing or perhaps without.

These are reasonable points, but see above my comments of API vs protocols.

I can also see that there may be aspects of the protocol I've not noticed that 
make such abstraction harder, and which can be fixed relatively cheaply.  (I'm 
thinking of examples like the original FTP protocol being hard to run through 
NAT - not that I claim that's a good example of desirability).

#g




From ian@hixie.ch  Tue Oct 13 16:20:08 2009
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 0DC2B3A6861 for <hybi@core3.amsl.com>; Tue, 13 Oct 2009 16:20:08 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level: 
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[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 5hgrDS7AN6l6 for <hybi@core3.amsl.com>; Tue, 13 Oct 2009 16:20:06 -0700 (PDT)
Received: from looneymail-a3.g.dreamhost.com (caibbdcaaaaf.dreamhost.com [208.113.200.5]) by core3.amsl.com (Postfix) with ESMTP id D84113A684C for <hybi@ietf.org>; Tue, 13 Oct 2009 16:20:06 -0700 (PDT)
Received: from hixie.dreamhostps.com (hixie.dreamhost.com [208.113.210.27]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by looneymail-a3.g.dreamhost.com (Postfix) with ESMTP id C9E4127B8A; Tue, 13 Oct 2009 16:20:07 -0700 (PDT)
Date: Tue, 13 Oct 2009 23:31:30 +0000 (UTC)
From: Ian Hickson <ian@hixie.ch>
To: Graham Klyne <GK@ninebynine.org>
In-Reply-To: <4AB4961B.3080507@ninebynine.org>
Message-ID: <Pine.LNX.4.62.0910132300300.25383@hixie.dreamhostps.com>
References: <507F3682-5AAF-4AC0-88F6-10A31B12380D@mnot.net> <Pine.LNX.4.62.0907292309330.3189@hixie.dreamhostps.com> <20090812125653.GA1235@shareable.org> <Pine.LNX.4.62.0908160629230.6420@hixie.dreamhostps.com> <20090816171704.GB27122@shareable.org> <Pine.LNX.4.62.0909040546330.6775@hixie.dreamhostps.com> <4AA25206.9070809@webtide.com> <20090905140551.GJ24516@shareable.org> <4AA3139E.2030908@webtide.com> <20090907125321.GG7949@shareable.org> <Pine.LNX.4.62.0909170950580.14605@hixie.dreamhostps.com> <4AB4961B.3080507@ninebynine.org>
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] Feedback on thewebsocketprotocol
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: Tue, 13 Oct 2009 23:20:08 -0000

On Sat, 19 Sep 2009, Graham Klyne wrote:
> Ian Hickson wrote:
> > On Sun, 6 Sep 2009, Graham Klyne wrote:
> > > I still find the abstract a bit obscure.
> > 
> > Could you elaborate on this? I just tried writing a new abstract and I 
> > basically ended up with almost exactly what the spec already has.
> 
> If I knew enough about the proposal to elaborate, I'd have tried to 
> suggest some words.
> 
> The new introduction is a vast improvement, and I think I maybe now see 
> enough to make the attempt.
> 
> Currently, from http://tools.ietf.org/html/draft-hixie-thewebsocketprotocol-41
> [[
>    This protocol enables two-way communication between a user agent
>    running untrusted code running in a controlled environment to a
>    remote host that understands the protocol.  It is intended to fail to
>    communicate with servers of pre-existing protocols like SMTP or HTTP,
>    while allowing HTTP servers to opt-in to supporting this protocol if
>    desired.  It is designed to be easy to implement on the server side.
> ]]
> 
> Suggested:
> [[
> The websockets protocol enables two-way communication between a user agent
> running untrusted code running in a controlled environment to a remote host.
> It allows a session that starts as a normal HTTP connection to be upgraded to
> a bidirectional message-oriented exchange, while gracefully failing to make
> this transition when communicating with HTTP servers that do not support this
> protocol.  Consisting of the initial handshake and basic message-framing, the
> protocol is a minimal layer over TCP, designed to be easy to implement for
> servers and clients.
> 
> The goal of the webssockets protocol is to support browser-based interactive
> Web applications without having to rely on <iframe> and long-polled
> XMLHTTPRequest abuses that are needed to implement them in current browsers.
> ]]

To summarise the proposed changes and how I applied them:

 * Change "This protocol" to "The websockets protocol". Done.

 * Remove the caveat that it only allows communications to a server that 
   understands Web Sockets. I haven't made this change, though I have 
   clarified the text a little.

 * Remove this:

   > It is intended to fail to communicate with servers of
   > pre-existing protocols like SMTP or HTTP, while allowing HTTP
   > servers to opt-in to supporting this protocol if desired.

   I removed this yesterday in response to other feedback.

 * Add this:

   > It allows a session that starts as a normal HTTP connection to be
   > upgraded to a bidirectional message-oriented exchange, while
   > gracefully failing to make this transition when communicating
   > with HTTP servers that do not support this protocol.

   I haven't bothered to include this detail, as the HTTP upgrade needs 
   more caveats than I'd like to mention in the abstract (e.g. it's not 
   just any HTTP session; you can't upgrade from a pipelined connection).

 * Add a vague description of the protocol and its relationship to TCP.
   Done.

 * Add that it's intended for ease of implementation on clients. I've 
   removed the mention of who it's easy to be implemented by. Implementors 
   can work out for themselves if it's easy. :-)

 * Mention the reason for the protocol compared to XHR or similar techniques.
   I've added something along these lines.

I hope you like the new text.


> I assume here that ease of implementation for the client is also a goal 
> - as originally phrased, there's a possible implication of trading ease 
> of server-side implementation for possible client complexity.

Ease of client implementation wasn't particularly a goal, no (there are 
far fewer clients expected than servers).


> > > > > 6. Provide a protocol state diagram or similar overview.
> > > > I'm not sure I understand what that would look like for this 
> > > > protocol.
> > > > 
> > > > Do you mean something like this?:
> > > > 
> > > >    HANDSHAKE --> FRAME TYPE <-------------------------.
> > > >                       |                               |
> > > >                       +---0x00---> DATA --> 0x00 --->-+
> > > >                       |                               |
> > > >                       `---0x80---> LENGTH -> DATA -->-'
> > > Maybe that:  if it's really that simple, then a diagram like this 
> > > helps to emphasize that point.  See also the state diagrams in 
> > > RFC821.
> > 
> > Ok, I've added a diagram to the intro. Hopefully it'll help someone.
> 
> I'm not seeing that yet, so I can't comment in detail.  But I think the 
> state diagram should also show how the initial HTTP-like handshake 
> transitions to the bidirectional stream.

I'm not sure what you mean. Could you show an example?

The diagram is in "Protocol overview" section of the spec, for what it's 
worth.


> > Yeah, the draft was lacking in introductory material and consisted 
> > primarily of the implementation requirements for a while. Hopefully 
> > this is significantly improved now.
> 
> Did I mention, it's much better? :)

Excellent. :-)


> > > Related to this is making as much use as possible of well-known base 
> > > specifications (hence my comments about RFC3986 vs [WEBADDRESSES]).
> > 
> > [WEBADDRESSES] is pretty well known in the expected implementation 
> > circles (in that it describes what is implemented by most UAs already, 
> > unlike the URI specs).
> 
> Hmmm... if this works, bank on it being picked up outside "the expected 
> implementation circles"

It's just a temporary reference until Larry updates the IRI specs.

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

From ian@hixie.ch  Tue Oct 13 16:22:06 2009
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 E64D23A6972 for <hybi@core3.amsl.com>; Tue, 13 Oct 2009 16:22:06 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level: 
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[AWL=0.000,  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 Y2Oj6lhPCiBb for <hybi@core3.amsl.com>; Tue, 13 Oct 2009 16:22:06 -0700 (PDT)
Received: from looneymail-a3.g.dreamhost.com (caibbdcaaaaf.dreamhost.com [208.113.200.5]) by core3.amsl.com (Postfix) with ESMTP id 498863A684C for <hybi@ietf.org>; Tue, 13 Oct 2009 16:22:06 -0700 (PDT)
Received: from hixie.dreamhostps.com (hixie.dreamhost.com [208.113.210.27]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by looneymail-a3.g.dreamhost.com (Postfix) with ESMTP id 4D3E427B7B; Tue, 13 Oct 2009 16:22:08 -0700 (PDT)
Date: Tue, 13 Oct 2009 23:33:31 +0000 (UTC)
From: Ian Hickson <ian@hixie.ch>
To: Julian Reschke <julian.reschke@gmx.de>
In-Reply-To: <4AD05971.7010001@gmx.de>
Message-ID: <Pine.LNX.4.62.0910132332320.25383@hixie.dreamhostps.com>
References: <4ACE50A2.5070404@ericsson.com> <3a880e2c0910081600v3607665dp193f6df499706810@mail.gmail.com> <4ACF4055.6080302@ericsson.com> <Pine.LNX.4.62.0910092116010.21884@hixie.dreamhostps.com> <4AD05971.7010001@gmx.de>
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" <hybi@ietf.org>
Subject: Re: [hybi] Multiplexing in WebSocket (Was:  HyBi Design Space)
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: Tue, 13 Oct 2009 23:22:07 -0000

On Sat, 10 Oct 2009, Julian Reschke wrote:
> Ian Hickson wrote:
> >
> > FWIW, so far I've concluded (based on long discussions with a number 
> > of developers and implementors) that multiplexing would actually not 
> > be that great. It could probably only be used for multiplexing to a 
> > single websocket path, without making the handshake highly asymmetric 
> > or breaking the HTTP compatibility. If it's intended for per-client 
> > multiplexing, it can easily be implemented at the application layer, 
> > where a much better job can be done that could be done at the protocol 
> > layer. If it's intended for multiclient multiplexing, then it's only 
> > helping server load, not client performance, and server load isn't 
> > especially an issue here.
> 
> ...why exactly is server load not an issue?

Why would it be an issue? Anyone who is expecting high levels of load 
would presumably just use a platform on which TCP connections are cheap, 
just as they do today with HTTP.

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

From ian@hixie.ch  Tue Oct 13 16:24:08 2009
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 D05803A684C for <hybi@core3.amsl.com>; Tue, 13 Oct 2009 16:24:08 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level: 
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[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 G4KLsQ4I-OWJ for <hybi@core3.amsl.com>; Tue, 13 Oct 2009 16:24:08 -0700 (PDT)
Received: from looneymail-a3.g.dreamhost.com (caibbdcaaaaf.dreamhost.com [208.113.200.5]) by core3.amsl.com (Postfix) with ESMTP id F06653A67EA for <hybi@ietf.org>; Tue, 13 Oct 2009 16:24:07 -0700 (PDT)
Received: from hixie.dreamhostps.com (hixie.dreamhost.com [208.113.210.27]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by looneymail-a3.g.dreamhost.com (Postfix) with ESMTP id 0A8B927B8F; Tue, 13 Oct 2009 16:24:10 -0700 (PDT)
Date: Tue, 13 Oct 2009 23:35:32 +0000 (UTC)
From: Ian Hickson <ian@hixie.ch>
To: "Infinity Linden (Meadhbh Hamrick)" <infinity@lindenlab.com>
In-Reply-To: <3a880e2c0910100853s6650d216mc53e8f70a192a896@mail.gmail.com>
Message-ID: <Pine.LNX.4.62.0910132333430.25383@hixie.dreamhostps.com>
References: <4ACE50A2.5070404@ericsson.com> <3a880e2c0910081600v3607665dp193f6df499706810@mail.gmail.com> <4ACF4055.6080302@ericsson.com> <Pine.LNX.4.62.0910092116010.21884@hixie.dreamhostps.com> <3a880e2c0910100853s6650d216mc53e8f70a192a896@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" <hybi@ietf.org>
Subject: Re: [hybi] Multiplexing in WebSocket (Was:  HyBi Design Space)
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: Tue, 13 Oct 2009 23:24:08 -0000

On Sat, 10 Oct 2009, Infinity Linden (Meadhbh Hamrick) wrote:
>
> the problem i have with doing addressing for multiplexing channels on a 
> single connection in the application layer is that it effectively 
> disallows intermediaries from reasoning about distinct messages on 
> distinct channels. i do agree that doing multiplexing in the application 
> layer is much more flexible and for many deployments "this is a good 
> thing." does it make sense to have a multiplexing option in the protocol 
> that can be used by people who want their intermediaries to understand 
> this sort of thing, but not make it mandatory? that way i could hire 
> someone to hack squid to recognize and cache multiplexed reverse 
> responses and people who want to do something more flexible at the app 
> layer can still do it.

I don't understand the use case wherein one would ever want caching at the 
Web Socket layer. Could you expand on this?

If there are specific application level protocols layered on top of Web 
Socket that could benefit from caching, then nothing stops intermediaries 
from understanding that sub-protocol, including any multiplexing it might 
itself support.

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

From gregw@webtide.com  Tue Oct 13 16:44:47 2009
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 89A353A6947 for <hybi@core3.amsl.com>; Tue, 13 Oct 2009 16:44:47 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.71
X-Spam-Level: 
X-Spam-Status: No, score=-0.71 tagged_above=-999 required=5 tests=[AWL=0.030,  BAYES_20=-0.74]
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 NxALMaMfvMSb for <hybi@core3.amsl.com>; Tue, 13 Oct 2009 16:44:46 -0700 (PDT)
Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.159]) by core3.amsl.com (Postfix) with ESMTP id 8758B3A68F3 for <hybi@ietf.org>; Tue, 13 Oct 2009 16:44:46 -0700 (PDT)
Received: by fg-out-1718.google.com with SMTP id 22so85552fge.13 for <hybi@ietf.org>; Tue, 13 Oct 2009 16:44:41 -0700 (PDT)
Received: by 10.86.22.12 with SMTP id 12mr7057563fgv.69.1255477481788; Tue, 13 Oct 2009 16:44:41 -0700 (PDT)
Received: from ?10.10.1.9? (60-242-119-126.tpgi.com.au [60.242.119.126]) by mx.google.com with ESMTPS id 4sm861980fge.7.2009.10.13.16.44.35 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 13 Oct 2009 16:44:40 -0700 (PDT)
Message-ID: <4AD510D7.3050405@webtide.com>
Date: Wed, 14 Oct 2009 10:44:23 +1100
From: Greg Wilkins <gregw@webtide.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090817)
MIME-Version: 1.0
To: Ian Hickson <ian@hixie.ch>
References: <4ACE50A2.5070404@ericsson.com>	<3a880e2c0910081600v3607665dp193f6df499706810@mail.gmail.com>	<4ACF4055.6080302@ericsson.com>	<Pine.LNX.4.62.0910092116010.21884@hixie.dreamhostps.com>	<3a880e2c0910100853s6650d216mc53e8f70a192a896@mail.gmail.com> <Pine.LNX.4.62.0910132333430.25383@hixie.dreamhostps.com>
In-Reply-To: <Pine.LNX.4.62.0910132333430.25383@hixie.dreamhostps.com>
X-Enigmail-Version: 0.95.7
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] Multiplexing in WebSocket (Was:  HyBi Design Space)
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: Tue, 13 Oct 2009 23:44:47 -0000

Ian Hickson wrote:
> If there are specific application level protocols layered on top of Web 
> Socket that could benefit from caching, then nothing stops intermediaries 
> from understanding that sub-protocol, including any multiplexing it might 
> itself support.


Ian,

you often cite "protocols layered on top of Web Socket" as a panacea.

While layered protocols are theoretically possible (and even
desirable), I do not see that websocket is being setup in a way
to make this practically possible.

So can you describe how you foresee such protocols being layered
on top?

If you think this can be done in javascript libraries, then how
do you see multiple frames, tabs and windows being handled in
a secure way?

If your vision of the server side occurs - where developers write
websocket implementations themselves (like CGI scripts), then
are they going to have to all write these layered protocols as well?

regards




From ian@hixie.ch  Tue Oct 13 16:49:22 2009
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 2DC8028C0E0 for <hybi@core3.amsl.com>; Tue, 13 Oct 2009 16:49:22 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.914
X-Spam-Level: 
X-Spam-Status: No, score=-1.914 tagged_above=-999 required=5 tests=[AWL=-0.685, BAYES_00=-2.599, SARE_LWSHORTT=1.24, SARE_RMML_Stock10=0.13]
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 F02LaFaTZjAM for <hybi@core3.amsl.com>; Tue, 13 Oct 2009 16:49:21 -0700 (PDT)
Received: from looneymail-a3.g.dreamhost.com (caibbdcaaaaf.dreamhost.com [208.113.200.5]) by core3.amsl.com (Postfix) with ESMTP id EB4A63A697F for <hybi@ietf.org>; Tue, 13 Oct 2009 16:49:20 -0700 (PDT)
Received: from hixie.dreamhostps.com (hixie.dreamhost.com [208.113.210.27]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by looneymail-a3.g.dreamhost.com (Postfix) with ESMTP id 07EB127B8A; Tue, 13 Oct 2009 16:49:23 -0700 (PDT)
Date: Wed, 14 Oct 2009 00:00:45 +0000 (UTC)
From: Ian Hickson <ian@hixie.ch>
To: Greg Wilkins <gregw@webtide.com>, Graham Klyne <gk-ietf-hybi@ninebynine.org>
In-Reply-To: <4AD39A64.4080405@webtide.com>
Message-ID: <Pine.LNX.4.62.0910132335390.25383@hixie.dreamhostps.com>
References: <4ACE50A2.5070404@ericsson.com> <3a880e2c0910081600v3607665dp193f6df499706810@mail.gmail.com> <4ACF4055.6080302@ericsson.com> <Pine.LNX.4.62.0910092116010.21884@hixie.dreamhostps.com> <4AD2E353.8070609@webtide.com> <4AD2F43D.6030202@ninebynine.org> <4AD39A64.4080405@webtide.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" <hybi@ietf.org>
Subject: Re: [hybi] Multiplexing in WebSocket (Was:  HyBi Design Space)
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: Tue, 13 Oct 2009 23:49:22 -0000

On Mon, 12 Oct 2009, Greg Wilkins wrote:
> Ian Hickson wrote:
> 
> > FWIW, so far I've concluded (based on long discussions with a number 
> > of developers and implementors) that multiplexing would actually not 
> > be that great.
> 
> Which developers/implementors?

A number of people from various teams at Google and Mozilla in person, and 
also on IRC with people from other browser vendors and Web authors who 
participate in the WHATWG work.


> So far the majority of opinions I've seen on this list and the whatwg 
> list have been favourable to multiplexing.

I don't think that's entirely accurate. Don't forget, also, that since the 
spec doesn't have multiplexing, people who don't want multiplexing aren't 
likely to post... Just like you haven't been posting in favour of the spec 
not supporting DRM.


> Can you invite them to post their opinions here?

I do so, yes. That they don't is why I go and seek them out. :-)


> > However, WebSocket connections are long lived by design,
> 
> I do not believe you can anticipate websocket usage over the long term.  
> Just because you think now they will only be used for long lived 
> connections, that may not always be the case.

Well using Web Socket for a short request-response burst would be pretty 
stupid (given HTTP)... What other uses do you have in mind?

While we can't know what the protocol will be used for, we _can_ know what 
it is _intended_ to be used for, and that's what we should optimise for. 
We don't have to preclude other uses, but we also don't have to optimise 
for them... especially at the cost of the intended uses.


> It is short sighted to build such limitations into a once-in-a-decade 
> chance to upgrade the protocols we use on the web.

This is not a once-in-a-decade chance.


> > and the cost of setting up a connection therefore is insignificant 
> > compared to the cost of the protocol itself.
> 
> There is also a cost associated with maintaining and servicing a 
> connection.

This would be the same cost associated with maintaining and servicing a 
channel in a multiplexed connection.


> > There's also something to be said for relying on TCP's built in 
> > congestion control -- if you were to open two connections to a server, 
> > one sending vast amounts of data, and one sending just the occasional 
> > critically important notification, it would be best if the latter 
> > could avoid getting throttled along with the first.
> 
> Some would argue that is improperly bypassing TCP's congestion control.
> 
> I have often seen the horrid argument put that if you use 8 connections 
> instead of 1, then you are more likely to get better service from a 
> router that is fair sharing capacity among connections.  That path leads 
> to an irrational arms race as once everybody uses 8 connections, 
> somebody will use 16 to get better service etc etc.
> 
> Implementing connection policies is not something that should be left to 
> the application developer. It is far far better that the browsers 
> implement connection control policies.

I disagree. I think it's far better that the _server_ decide the 
connection control policies. That's the model Web Sockets follows (as an 
author you'll do whatever the server expects).


> > As with anything, though, there's always the option of changing this 
> > if strong arguments one way or the other are put forward. We can also 
> > introduce multiplexing as a new version of the protocol in a future 
> > version.
> 
> Protocol versions come once maybe twice a decade.  Please consider the 
> future and not just short term needs of one particular interest group.

I see no reason why we can't rev it more often. If you are basing this on 
the stagnation of 1998-2008, then I think you are misinterpreting the 
events.


On Tue, 13 Oct 2009, Greg Wilkins wrote:
> 
> But multiplexing can be much much simpler.  At it simplest,
> it just needs a channel id in each frame and the channel creation
> can be automatic.

Multiplexing at the per-path level would be of extremely limited use, 
IMHO. If there really are multiple widgets talking back to the same 
_server_, they certainly won't be talking back to the same _path_.


> The difficulty is that with websocket protocol, it has a hard binding to 
> the application websocket API.  There is no scope provided to inject 
> another layer.  The API has explicit open/close events (which I think 
> should be mapped to channels), but that are currently mapped to 
> connections. Thus applications and/or frameworks will be doing explicit 
> connection management.

Sure. You just build a library on top of this. It's not a problem as far 
as I can tell.


> But even if the frameworks implemented to same wire protocol for 
> multiplexing, they would not be able to:
> 
>   + share connections between frameworks

Even with multiplexing we wouldn't be able to share connections between 
server-side frameworks -- why would someone use two client-side frameworks 
but the same server-side framework?


>   + share connections with code written directly to the websocket API.

That's basically just another framework.


>   + share connections with other iframes, tabs and/or windows.

This seems far too infrequent an occurrance to really optimise for.


>   + implement a strong origin policy for security

I don't understand what situation would lead to multiple channels having 
different origins but talking to the same server with the same 
authentication cookies and the same path.


> The fundamental problem with websocket API is that is both a connection 
> API (open/close) and a messaging API (send/onMessage). The API needs to 
> be abstracted away from any hard relationship to TCP/IP connections.  
> This can be done with a simple rename of s/connection/channel/.  
> Applications can then manage channels and the browser/server can manage 
> mapping those channels to connections - perhaps with multiplexing or 
> perhaps without.

This seems far too abstract, frankly.


At this stage my recommendation if you think multiplexing is important 
would be to propose an alternative protocol and get browser vendor buy-in 
for that protocol. Browsers haven't committed to implementing Web Sockets 
yet (though some are experimenting with it), so now would be the best time 
to see if you can convince them that it is preferable to have that support 
in the protocol rather than layered on top of it.

Personally the more I think about what one would have to do to implement 
multiplexing at the Web Sockets level the more I am convinced that it's 
simply not worth it. It would easily double or even triple the complexity 
of the wire protocol, and it would add very little for authors.

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

From jamie@shareable.org  Tue Oct 13 17:15:33 2009
Return-Path: <jamie@shareable.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 7D46828C12B for <hybi@core3.amsl.com>; Tue, 13 Oct 2009 17:15:33 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level: 
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, J_CHICKENPOX_31=0.6]
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 ZQRwNcNTvVk8 for <hybi@core3.amsl.com>; Tue, 13 Oct 2009 17:15:32 -0700 (PDT)
Received: from mail2.shareable.org (mail2.shareable.org [80.68.89.115]) by core3.amsl.com (Postfix) with ESMTP id 5723E28C129 for <hybi@ietf.org>; Tue, 13 Oct 2009 17:15:32 -0700 (PDT)
Received: from jamie by mail2.shareable.org with local (Exim 4.63) (envelope-from <jamie@shareable.org>) id 1MxrWc-0007OP-J6; Wed, 14 Oct 2009 01:15:30 +0100
Date: Wed, 14 Oct 2009 01:15:30 +0100
From: Jamie Lokier <jamie@shareable.org>
To: Graham Klyne <gk-ietf-hybi@ninebynine.org>
Message-ID: <20091014001530.GB22806@shareable.org>
References: <4ACE50A2.5070404@ericsson.com> <3a880e2c0910081600v3607665dp193f6df499706810@mail.gmail.com> <4ACF4055.6080302@ericsson.com> <Pine.LNX.4.62.0910092116010.21884@hixie.dreamhostps.com> <4AD2E353.8070609@webtide.com> <4AD2F43D.6030202@ninebynine.org> <4AD39A64.4080405@webtide.com> <4AD4482B.3030705@ninebynine.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4AD4482B.3030705@ninebynine.org>
User-Agent: Mutt/1.5.13 (2006-08-11)
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] Multiplexing in WebSocket (Was:  HyBi Design Space)
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: Wed, 14 Oct 2009 00:15:33 -0000

Graham Klyne wrote:
> These applications are essentially channel-free, being more 
> datagram/message/event oriented than session oriented, using some kind of 
> global identifier space (e.g. URIs) for disambiguation where needed.

That *is* multiplexing.

There is some confusion about what multiplexing is about.  It
has nothing much to do with sessions.

I think this is what multiplexing (in BWTP etc.) is about:

  - Multiplexing is about delivering messages to addressable targets.

  - Messages that cannot be received or processed immediately should
    not block reception of other messages which _can_ be received
    immediately.

  - Large messages should be usable, without blocking small messages
    for a long time.

  - So that multiple message sources and targets can share TCP/IP
    connections efficiently and easily.  (And eventually, to do the
    same over SCTP/IP which is theoretically a better fit).

Multiplexing is *not* about:

  - Establishing lots of byte sessions or channels (whatever you want
    to call them), although that could be an optional additional feature.

The reason multiplexing protocols talk about channels is:

  - So that messages can be transmitted without blocking all
    other messages.  The protocol creates a channel for *every*
    (unordered) message, so they can be transmitted in parallel
    according to optimal transport strategies.

The reasons for parallelism are:

  - To allow large messages alongside smaller messages without blocking
    everything.

  - To allow message sinks (receivers) to continue receiving messages
    while other sinks are not in a state ready to receive or process
    more messages.

I think that's confusing matters, because channels of a kind are
involved in the protocol, but they are used primarily to allow
independent messages to flow efficiently, and don't need to be visible
above the protocol layer.

There are uses for channels visible to applications too, but
multiplexing is not especially about that.

> No, I'm not, but I'm also prepared to consider using multiple TCP 
> connections in such circumstances.  Typically, I've seen requirements to 
> put up to about 5 different semi-independent widgets on a page.

I've seen 3000. :-) Of course it's always possible to rewrite code so
it works differently.  But that seems opposite to one of the design
goals: to make it easy for independent application implementor tbo
send messages between their components.

> I could imagine server-to-server BEEP being used to tunnel multiple
> WebSocket sessions over a single connection - and here, the
> complexity of BEEP might be justified.

BEEP is a poor fit for this.  We've looked at the details.

It appears to be faster to multiplex messages over HTTP long-polling
than over BEEP under some circumstances.

BEEP is connection-oriented, and has expensive connection setup, which
makes it quite unsuitable for sending independent messages to
independent targets without blocking.

> >But multiplexing can be much much simpler.  At it simplest,
> >it just needs a channel id in each frame and the channel creation
> >can be automatic.   In the BWTP protocol proposal, I've added
> >a little bit of channel creation exchange, so as to well match
> >the explicit life cycle events of the websocket API.
> 
> I guess that I'm not convinced that you can make multiplexing much simpler 
> than BEEP and not end up being broken.  When I reviewed BEEP a few years 
> back, I thought about trying to avoid the complexities of per-channel flow 
> control, but in the end I couldn't see any way of doing that without 
> running the risk that one channel could starve all the others.  But with 
> per-channel flow control comes the need for some quite complex buffering 
> arrangements.

You do need flow control, and yes buffering can be tricky.

I would say per-message flow control, rather than using pre-assigned
channels, if you have no need of channels.  I regard BWTP's channel
creation exchange as a weakness if you must use it.

But here's the mistake: If there isn't flow control in the protocol,
you _must_ implement flow control and buffering in another layer
instead - or get the problems you'd expect.

In WebSockets discussions, flow control tends to be *hidden* in things
like unspecified DOM event queue behaviour's relationship with the
TCP/IP socket.

For example, if a web browser receives hundreds of WebSocket frames of
different sizes before the Javascript can process the corresponding
DOM events, at what point does the browser stop reading from the
TCP/IP socket?  Does it ever stop reading, or does it lead to
out-of-memory conditions on some clients if the server is transmitting
faster than the client script is reading?

If a browser implementation of WebSockets _does_ make use of TCP/IP
flow control by stopping reading from a socket when it has too many
queued DOM events, what happens when a Javascript target is ready for
events to most targets, but cannot process events to one addressable
target right away because that target is busy?  Does it freeze the
whole web page until that single target can process the messages
queued to it, or does it use unbounded memory reading messages for
that single target so that other targets can receive messages?

That is more pertinent now that events can be sent to background
threads in web pages in modern browsers, but it's always been an issue
when some events cause large, slow page updates, while others are
small and should be processed at speed.  The current situation does
not handle that very well.

Generally, at the present time as far as I can tell, typically every
message must be fully processed as soon as it's available, before
moving to the next message.  The concept of targets which aren't ready
to receive a message hardly exists in current web applications, but
it's common in other applications.

In other words - _someone_ implements flow control, or there is no
flow control and memory usage is unbounded in clients, or flow control
is very coarse: every message must be processed fully before the next
message, even to independent targets.

There is no escape from that.

> Hmmm... in principle, I understand that HTTP can be run over any 
> full-duplex connection.  I see nothing in WebSockets that prevents similar 
> behaviour.

WebSockets cannot carry binary frames in any current or anticipated
implementation, so implementing HTTP over it isn't possible at
present, without first encoding the content into UTF-8 (plus escaping
NUL bytes).

> While I can agree that the XHR interface is too low-level, and that there 
> are better abstractions, and I could agree that the API makes it harder to 
> multiplex on a connection, I don;t see anything in the API that actually 
> makes such multiplexing impossible.

Not impossible, but somewhat tricky to do well.  See above - flow
control has to go somewhere, although it's easy to ignore the need and
just get unreliable or tighly-coupled behaviour.

-- Jamie

From ian@hixie.ch  Tue Oct 13 17:28:46 2009
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 CBED73A693B for <hybi@core3.amsl.com>; Tue, 13 Oct 2009 17:28:46 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.485
X-Spam-Level: 
X-Spam-Status: No, score=-2.485 tagged_above=-999 required=5 tests=[AWL=0.114,  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 99TAmogDct4w for <hybi@core3.amsl.com>; Tue, 13 Oct 2009 17:28:45 -0700 (PDT)
Received: from looneymail-a3.g.dreamhost.com (caibbdcaaaaf.dreamhost.com [208.113.200.5]) by core3.amsl.com (Postfix) with ESMTP id E598A3A68C4 for <hybi@ietf.org>; Tue, 13 Oct 2009 17:28:45 -0700 (PDT)
Received: from hixie.dreamhostps.com (hixie.dreamhost.com [208.113.210.27]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by looneymail-a3.g.dreamhost.com (Postfix) with ESMTP id F37EA27B2E; Tue, 13 Oct 2009 17:28:47 -0700 (PDT)
Date: Wed, 14 Oct 2009 00:40:11 +0000 (UTC)
From: Ian Hickson <ian@hixie.ch>
To: Greg Wilkins <gregw@webtide.com>
In-Reply-To: <4AD510D7.3050405@webtide.com>
Message-ID: <Pine.LNX.4.62.0910140030320.6803@hixie.dreamhostps.com>
References: <4ACE50A2.5070404@ericsson.com> <3a880e2c0910081600v3607665dp193f6df499706810@mail.gmail.com> <4ACF4055.6080302@ericsson.com> <Pine.LNX.4.62.0910092116010.21884@hixie.dreamhostps.com> <3a880e2c0910100853s6650d216mc53e8f70a192a896@mail.gmail.com> <Pine.LNX.4.62.0910132333430.25383@hixie.dreamhostps.com> <4AD510D7.3050405@webtide.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" <hybi@ietf.org>
Subject: Re: [hybi] Multiplexing in WebSocket (Was:  HyBi Design Space)
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: Wed, 14 Oct 2009 00:28:46 -0000

On Wed, 14 Oct 2009, Greg Wilkins wrote:
> 
> you often cite "protocols layered on top of Web Socket" as a panacea.
> 
> While layered protocols are theoretically possible (and even desirable), 
> I do not see that websocket is being setup in a way to make this 
> practically possible.
>
> So can you describe how you foresee such protocols being layered on top?

I don't really see any way to use WebSockets _except_ by layering a 
protocol on top of it.

Now for many people such protocols would be trivial, e.g. just a "you have 
new mail" notification, but that's still a protocol. For some, e.g. a chat 
program, one could imagine a huge protocol on the order of complexity of 
Jabber -- in fact, it could be Jabber itself, ported to Web Sockets.


> If you think this can be done in javascript libraries, then how do you 
> see multiple frames, tabs and windows being handled in a secure way?

Using Shared Workers, if that is really desired. Frankly though I don't 
think that multiple frames, tabs and windows are likely to all be 
connecting to the same Web Socket service on the same host, at least not 
enough to justify worrying about multiplexing, so it's not high on my list 
of concerns.


> If your vision of the server side occurs - where developers write 
> websocket implementations themselves (like CGI scripts), then are they 
> going to have to all write these layered protocols as well?

How else can you use Web Sockets?

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

From gregw@webtide.com  Tue Oct 13 19:56:33 2009
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 D0C5028C0D6 for <hybi@core3.amsl.com>; Tue, 13 Oct 2009 19:56:33 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.469
X-Spam-Level: 
X-Spam-Status: No, score=-2.469 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, SARE_RMML_Stock10=0.13]
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 NYEXdtiXapYH for <hybi@core3.amsl.com>; Tue, 13 Oct 2009 19:56:32 -0700 (PDT)
Received: from mail-pz0-f204.google.com (mail-pz0-f204.google.com [209.85.222.204]) by core3.amsl.com (Postfix) with ESMTP id D1F8D3A6877 for <hybi@ietf.org>; Tue, 13 Oct 2009 19:56:32 -0700 (PDT)
Received: by pzk42 with SMTP id 42so362935pzk.31 for <hybi@ietf.org>; Tue, 13 Oct 2009 19:56:31 -0700 (PDT)
Received: by 10.115.151.5 with SMTP id d5mr13888070wao.204.1255488991034; Tue, 13 Oct 2009 19:56:31 -0700 (PDT)
Received: from ?58.163.111.4? ([58.163.111.4]) by mx.google.com with ESMTPS id 21sm184713pzk.7.2009.10.13.19.56.24 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 13 Oct 2009 19:56:30 -0700 (PDT)
Message-ID: <4AD53DCA.6050304@webtide.com>
Date: Wed, 14 Oct 2009 13:56:10 +1100
From: Greg Wilkins <gregw@webtide.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090817)
MIME-Version: 1.0
To: Ian Hickson <ian@hixie.ch>
References: <4ACE50A2.5070404@ericsson.com> <3a880e2c0910081600v3607665dp193f6df499706810@mail.gmail.com> <4ACF4055.6080302@ericsson.com> <Pine.LNX.4.62.0910092116010.21884@hixie.dreamhostps.com> <4AD2E353.8070609@webtide.com> <4AD2F43D.6030202@ninebynine.org> <4AD39A64.4080405@webtide.com> <Pine.LNX.4.62.0910132335390.25383@hixie.dreamhostps.com>
In-Reply-To: <Pine.LNX.4.62.0910132335390.25383@hixie.dreamhostps.com>
X-Enigmail-Version: 0.95.7
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] Multiplexing in WebSocket (Was:  HyBi Design Space)
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: Wed, 14 Oct 2009 02:56:33 -0000

Ian Hickson wrote:


> At this stage my recommendation if you think multiplexing is important
> would be to propose an alternative protocol and get browser vendor buy-in
> for that protocol.

which is exactly what I'm trying to do with BWTP.

but I do wish to understand your view point and what has influenced
your design decisions with websocket.     So while I appear to
disagree with you on many things, I do appreciate you taking the
time to argue your point of view and explain your reasoning.

As a result or your comments and others, the BWTP proposal has
already been greatly improved and hugely simplified.


I am entirely convinced that either a reasonable simple extension
to websocket or something like a refined BWTP is possible as a reasonable
compromise between the different points of view.



>>> However, WebSocket connections are long lived by design,
>> I do not believe you can anticipate websocket usage over the long term.  
>> Just because you think now they will only be used for long lived 
>> connections, that may not always be the case.
> 
> Well using Web Socket for a short request-response burst would be pretty 
> stupid (given HTTP)... What other uses do you have in mind?


Which is why having a websocket be associated with 1 and only 1
server side resource is a problem.    A client may be interested
in many event sources from a server, but each might only exist
(or be of interest) for a short period of time.

Sure it is possible to create an aggregating resource to avoid
having to have multiple short lived connections to each real
resource as it comes and goes.... but only if all the resources
are from the same application/framework/development.

Making multiplexing a transport concern means that applications
and frameworks do not need to consider connection efficiency
when designing their event streams.



>> It is short sighted to build such limitations into a once-in-a-decade 
>> chance to upgrade the protocols we use on the web.
> 
> This is not a once-in-a-decade chance.

I hope you a right.  But still no reason to not try to get it
right as possible in the next iteration.

>>> and the cost of setting up a connection therefore is insignificant 
>>> compared to the cost of the protocol itself.
>> There is also a cost associated with maintaining and servicing a 
>> connection.
> 
> This would be the same cost associated with maintaining and servicing a 
> channel in a multiplexed connection.

Sorry but this is just wrong.

Both approaches need the application end point for the channel
and all its associated resources.

But only the multiple TCP/IP connection approach needs additional
kernel space buffers, file descriptors and larger select sets etc.

The key difference is that with multiple TCP/IP connections, the
server has to undertake to read a windows worth of data on each
of those connections.   With a multiplexed solution, only a single
window needs to be read before back pressure is asserted and
the flow of additional data slowed to match the rate of consumption.



>> Implementing connection policies is not something that should be left to 
>> the application developer. It is far far better that the browsers 
>> implement connection control policies.
> 
> I disagree. I think it's far better that the _server_ decide the 
> connection control policies. That's the model Web Sockets follows (as an 
> author you'll do whatever the server expects).

How can a server influence the connections that a client opens, other
than to refuse excess ones.   That is pretty course grained "control"



> 
> On Tue, 13 Oct 2009, Greg Wilkins wrote:
>> But multiplexing can be much much simpler.  At it simplest,
>> it just needs a channel id in each frame and the channel creation
>> can be automatic.
> 
> Multiplexing at the per-path level would be of extremely limited use, 
> IMHO. If there really are multiple widgets talking back to the same 
> _server_, they certainly won't be talking back to the same _path_.

If by path, you mean server side resource or URI, then I'm definitely
saying that we should be able to multiplex multiple paths over the
same TCP/IP connection.

HTTP is not limited to get the same URI over the same connection, so
why should websocket or similar?

> 
>> But even if the frameworks implemented to same wire protocol for 
>> multiplexing, they would not be able to:
>>
>>   + share connections between frameworks
> 
> Even with multiplexing we wouldn't be able to share connections between 
> server-side frameworks -- why would someone use two client-side frameworks 
> but the same server-side framework?

Because multiplexing should be built into the transport and will not
rely on a server side framework.

Currently HTTP requests get delivered to the appropriate server side
resource without the server-side framework or developer being at
all aware of what connection(s) were used.

why must routing of messages between client side components
and server side components be tied to a TCP/IP connection.  The
path is identified by a URL and neither the client nor server
should care if a dedicated or shared TCP/IP connection is used.


>>   + share connections with code written directly to the websocket API.
> 
> That's basically just another framework.

except that it is one that you into which cannot easily insert
additional layered protocols.    Let's say RFC66666 comes out which
is the universally agreed best way to multiplex messages on top
of your proposed websocket protocol. How are you going to get
an implementation of that inserted into every direct usage of
the websocket API?


>>   + share connections with other iframes, tabs and/or windows.
> 
> This seems far too infrequent an occurrance to really optimise for.

Hello????  Do you ever use a browser????   Are you telling me you
have never opened two tabs/windows to the same website either
accidentally or on purpose???

One of the keen users of this technology that I have encountered
is traders, who habitually have 3 huge screens on their desks with
umpteen windows to their trading applications, all with slightly
different view.


> 
>>   + implement a strong origin policy for security
> 
> I don't understand what situation would lead to multiple channels having 
> different origins but talking to the same server with the same 
> authentication cookies and the same path.

It is entirely plausible that a service might publish events, some
of which are only for code from the same origin and others are either
for code from any origin or from a specific set of origins.



regards

From gregw@webtide.com  Tue Oct 13 20:01:32 2009
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 B5C4C3A6994 for <hybi@core3.amsl.com>; Tue, 13 Oct 2009 20:01:32 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.534
X-Spam-Level: 
X-Spam-Status: No, score=-2.534 tagged_above=-999 required=5 tests=[AWL=0.065,  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 bTLGdBmuvBeP for <hybi@core3.amsl.com>; Tue, 13 Oct 2009 20:01:32 -0700 (PDT)
Received: from mail-pz0-f204.google.com (mail-pz0-f204.google.com [209.85.222.204]) by core3.amsl.com (Postfix) with ESMTP id EE4393A6951 for <hybi@ietf.org>; Tue, 13 Oct 2009 20:01:31 -0700 (PDT)
Received: by pzk42 with SMTP id 42so366508pzk.31 for <hybi@ietf.org>; Tue, 13 Oct 2009 20:01:30 -0700 (PDT)
Received: by 10.114.164.17 with SMTP id m17mr14149495wae.3.1255489290199; Tue, 13 Oct 2009 20:01:30 -0700 (PDT)
Received: from ?58.163.111.4? ([58.163.111.4]) by mx.google.com with ESMTPS id 22sm186982pzk.2.2009.10.13.20.01.26 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 13 Oct 2009 20:01:29 -0700 (PDT)
Message-ID: <4AD53EFA.1070907@webtide.com>
Date: Wed, 14 Oct 2009 14:01:14 +1100
From: Greg Wilkins <gregw@webtide.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090817)
MIME-Version: 1.0
To: Ian Hickson <ian@hixie.ch>
References: <4ACE50A2.5070404@ericsson.com> <3a880e2c0910081600v3607665dp193f6df499706810@mail.gmail.com> <4ACF4055.6080302@ericsson.com> <Pine.LNX.4.62.0910092116010.21884@hixie.dreamhostps.com> <3a880e2c0910100853s6650d216mc53e8f70a192a896@mail.gmail.com> <Pine.LNX.4.62.0910132333430.25383@hixie.dreamhostps.com> <4AD510D7.3050405@webtide.com> <Pine.LNX.4.62.0910140030320.6803@hixie.dreamhostps.com>
In-Reply-To: <Pine.LNX.4.62.0910140030320.6803@hixie.dreamhostps.com>
X-Enigmail-Version: 0.95.7
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] Multiplexing in WebSocket (Was:  HyBi Design Space)
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: Wed, 14 Oct 2009 03:01:32 -0000

Ian Hickson wrote:

>> If you think this can be done in javascript libraries, then how do you 
>> see multiple frames, tabs and windows being handled in a secure way?
> 
> Using Shared Workers, if that is really desired. Frankly though I don't 
> think that multiple frames, tabs and windows are likely to all be 
> connecting to the same Web Socket service on the same host, at least not 
> enough to justify worrying about multiplexing, so it's not high on my list 
> of concerns.


Ian,

if multiplexing is supported, then sharing a TCP/IP connection does not
mean they are connected to the same service on the same host.

It only means they are connected to the same host (or proxy).

But imagine that you have a share trading application and that you
have multiple portfolios.   It is entirely plausible that you want
to watch each live portfolio in it's own window/tab/frame.

These may or may not talk to the same server resource (depending on
design, as each portfolio may be given it's own resource).  Why
shouldn't these windows share a TCP/IP connection?  They do so
for their normal content.

regards




From julian.reschke@gmx.de  Wed Oct 14 00:14:15 2009
Return-Path: <julian.reschke@gmx.de>
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 AF3B93A6863 for <hybi@core3.amsl.com>; Wed, 14 Oct 2009 00:14:15 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level: 
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[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 5JB+DNG-52lN for <hybi@core3.amsl.com>; Wed, 14 Oct 2009 00:14:15 -0700 (PDT)
Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by core3.amsl.com (Postfix) with SMTP id 7D0C828C0F8 for <hybi@ietf.org>; Wed, 14 Oct 2009 00:14:14 -0700 (PDT)
Received: (qmail invoked by alias); 14 Oct 2009 07:14:14 -0000
Received: from p508FCBA5.dip.t-dialin.net (EHLO [192.168.178.33]) [80.143.203.165] by mail.gmx.net (mp064) with SMTP; 14 Oct 2009 09:14:14 +0200
X-Authenticated: #1915285
X-Provags-ID: V01U2FsdGVkX1/tFaUEXQPtCQPCjnkojEqr8e3b4vb/ojUL8dQ/Ce Tk42r6mvgGS2N2
Message-ID: <4AD57A41.9070503@gmx.de>
Date: Wed, 14 Oct 2009 09:14:09 +0200
From: Julian Reschke <julian.reschke@gmx.de>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.0.4) Gecko/20060516 Thunderbird/1.5.0.4 Mnenhy/0.7.4.666
MIME-Version: 1.0
To: Ian Hickson <ian@hixie.ch>
References: <4ACE50A2.5070404@ericsson.com> <3a880e2c0910081600v3607665dp193f6df499706810@mail.gmail.com> <4ACF4055.6080302@ericsson.com> <Pine.LNX.4.62.0910092116010.21884@hixie.dreamhostps.com> <4AD05971.7010001@gmx.de> <Pine.LNX.4.62.0910132332320.25383@hixie.dreamhostps.com>
In-Reply-To: <Pine.LNX.4.62.0910132332320.25383@hixie.dreamhostps.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Y-GMX-Trusted: 0
X-FuHaFi: 0.63
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] Multiplexing in WebSocket (Was:  HyBi Design Space)
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: Wed, 14 Oct 2009 07:14:15 -0000

Ian Hickson wrote:
> On Sat, 10 Oct 2009, Julian Reschke wrote:
>> Ian Hickson wrote:
>>> FWIW, so far I've concluded (based on long discussions with a number 
>>> of developers and implementors) that multiplexing would actually not 
>>> be that great. It could probably only be used for multiplexing to a 
>>> single websocket path, without making the handshake highly asymmetric 
>>> or breaking the HTTP compatibility. If it's intended for per-client 
>>> multiplexing, it can easily be implemented at the application layer, 
>>> where a much better job can be done that could be done at the protocol 
>>> layer. If it's intended for multiclient multiplexing, then it's only 
>>> helping server load, not client performance, and server load isn't 
>>> especially an issue here.
>> ...why exactly is server load not an issue?
> 
> Why would it be an issue? Anyone who is expecting high levels of load 
> would presumably just use a platform on which TCP connections are cheap, 
> just as they do today with HTTP.

My feeling is that whatever the server architecture is, many connections 
per user are always worse than a single one.

I also doubt that, in case the choice of platform *is* relevant here, 
all server developers always will actually have the choice.

So, for clarity, it would probably be good to state in the draft that 
this question was considered not to be an issue.

BR, Julian

From julian.reschke@gmx.de  Wed Oct 14 03:08:02 2009
Return-Path: <julian.reschke@gmx.de>
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 3D00B3A68D3 for <hybi@core3.amsl.com>; Wed, 14 Oct 2009 03:08:02 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.017
X-Spam-Level: 
X-Spam-Status: No, score=-5.017 tagged_above=-999 required=5 tests=[AWL=-2.418, 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 6Va2STpulCt3 for <hybi@core3.amsl.com>; Wed, 14 Oct 2009 03:08:01 -0700 (PDT)
Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by core3.amsl.com (Postfix) with SMTP id 32FC43A6884 for <hybi@ietf.org>; Wed, 14 Oct 2009 03:07:59 -0700 (PDT)
Received: (qmail invoked by alias); 14 Oct 2009 10:08:01 -0000
Received: from mail.greenbytes.de (EHLO [192.168.1.117]) [217.91.35.233] by mail.gmx.net (mp020) with SMTP; 14 Oct 2009 12:08:01 +0200
X-Authenticated: #1915285
X-Provags-ID: V01U2FsdGVkX19Cs2gGlCNCiwulKvBRlYrMDWYuLYiF/hAwQarJD/ Yz5COmSpcYwE6K
Message-ID: <4AD5A2FA.5030805@gmx.de>
Date: Wed, 14 Oct 2009 12:07:54 +0200
From: Julian Reschke <julian.reschke@gmx.de>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.0.4) Gecko/20060516 Thunderbird/1.5.0.4 Mnenhy/0.7.4.666
MIME-Version: 1.0
To: Ian Hickson <ian@hixie.ch>
References: <4ACE50A2.5070404@ericsson.com>	<3a880e2c0910081600v3607665dp193f6df499706810@mail.gmail.com>	<4ACF4055.6080302@ericsson.com>	<Pine.LNX.4.62.0910092116010.21884@hixie.dreamhostps.com>	<4AD2E353.8070609@webtide.com> <4AD2F43D.6030202@ninebynine.org>	<4AD39A64.4080405@webtide.com> <Pine.LNX.4.62.0910132335390.25383@hixie.dreamhostps.com>
In-Reply-To: <Pine.LNX.4.62.0910132335390.25383@hixie.dreamhostps.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Y-GMX-Trusted: 0
X-FuHaFi: 0.7
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] Multiplexing in WebSocket (Was:  HyBi Design Space)
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: Wed, 14 Oct 2009 10:08:02 -0000

Ian Hickson wrote:
> ...
>>> FWIW, so far I've concluded (based on long discussions with a number 
>>> of developers and implementors) that multiplexing would actually not 
>>> be that great.
>> Which developers/implementors?
> 
> A number of people from various teams at Google and Mozilla in person, and 
> also on IRC with people from other browser vendors and Web authors who 
> participate in the WHATWG work.
> ...

If those people do not plan to participate over here, but *do* influence 
the spec, then it appears this is a candidate for an Informational RFC, 
not the standards track.

BR, Julian

From mike@jay.w3.org  Wed Oct 14 03:21:12 2009
Return-Path: <mike@jay.w3.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 87DB128C14F for <hybi@core3.amsl.com>; Wed, 14 Oct 2009 03:21:12 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level: 
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
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 vMBu1xeh+bNJ for <hybi@core3.amsl.com>; Wed, 14 Oct 2009 03:21:11 -0700 (PDT)
Received: from jay.w3.org (ssh.w3.org [128.30.52.60]) by core3.amsl.com (Postfix) with ESMTP id D32B63A68DF for <hybi@ietf.org>; Wed, 14 Oct 2009 03:21:11 -0700 (PDT)
Received: from localhost ([127.0.0.1] helo=yarukinai) by jay.w3.org with esmtp (Exim 4.69) (envelope-from <mike@jay.w3.org>) id 1My0yl-0007sm-16; Wed, 14 Oct 2009 06:21:12 -0400
Date: Wed, 14 Oct 2009 19:21:05 +0900
From: "Michael(tm) Smith" <mike@w3.org>
To: Julian Reschke <julian.reschke@gmx.de>
Message-ID: <20091014102102.GH29862@sideshowbarker>
References: <4ACE50A2.5070404@ericsson.com> <3a880e2c0910081600v3607665dp193f6df499706810@mail.gmail.com> <4ACF4055.6080302@ericsson.com> <Pine.LNX.4.62.0910092116010.21884@hixie.dreamhostps.com> <4AD2E353.8070609@webtide.com> <4AD2F43D.6030202@ninebynine.org> <4AD39A64.4080405@webtide.com> <Pine.LNX.4.62.0910132335390.25383@hixie.dreamhostps.com> <4AD5A2FA.5030805@gmx.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4AD5A2FA.5030805@gmx.de>
User-Agent: Mutt/r6027+poontang (2009-09-22 23:29:11+09:00)
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] Multiplexing in WebSocket (Was:  HyBi Design Space)
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: Wed, 14 Oct 2009 10:23:09 -0000

Julian Reschke <julian.reschke@gmx.de>, 2009-10-14 12:07 +0200:

>  Ian Hickson wrote:
> > ...
> >>> FWIW, so far I've concluded (based on long discussions with a number of 
> >>> developers and implementors) that multiplexing would actually not be that 
> >>> great.
> >> Which developers/implementors?
> > A number of people from various teams at Google and Mozilla in person, and 
> > also on IRC with people from other browser vendors and Web authors who 
> > participate in the WHATWG work.
> > ...
> 
>  If those people do not plan to participate over here, but *do* influence the 
>  spec, then it appears this is a candidate for an Informational RFC, not the 
>  standards track.

Could you elaborate on bit on why that's the case? And/or provide
a URL for the relevant process document where it's explained?

  --Mike

-- 
Michael(tm) Smith
http://people.w3.org/mike/

From julian.reschke@gmx.de  Wed Oct 14 04:10:36 2009
Return-Path: <julian.reschke@gmx.de>
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 06E7B28C14B for <hybi@core3.amsl.com>; Wed, 14 Oct 2009 04:10:36 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.413
X-Spam-Level: 
X-Spam-Status: No, score=-4.413 tagged_above=-999 required=5 tests=[AWL=-1.814, 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 2s3vKS529N1d for <hybi@core3.amsl.com>; Wed, 14 Oct 2009 04:10:35 -0700 (PDT)
Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by core3.amsl.com (Postfix) with SMTP id C4D9C28C141 for <hybi@ietf.org>; Wed, 14 Oct 2009 04:10:34 -0700 (PDT)
Received: (qmail invoked by alias); 14 Oct 2009 11:10:35 -0000
Received: from mail.greenbytes.de (EHLO [192.168.1.117]) [217.91.35.233] by mail.gmx.net (mp064) with SMTP; 14 Oct 2009 13:10:35 +0200
X-Authenticated: #1915285
X-Provags-ID: V01U2FsdGVkX18TYwpmxlkTvzC5SpqdaV8xWj72DEAdjerf0eGE2F Siz2lcckqrjCCA
Message-ID: <4AD5B1A6.8020107@gmx.de>
Date: Wed, 14 Oct 2009 13:10:30 +0200
From: Julian Reschke <julian.reschke@gmx.de>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.0.4) Gecko/20060516 Thunderbird/1.5.0.4 Mnenhy/0.7.4.666
MIME-Version: 1.0
To: "Michael(tm) Smith" <mike@w3.org>
References: <4ACE50A2.5070404@ericsson.com> <3a880e2c0910081600v3607665dp193f6df499706810@mail.gmail.com> <4ACF4055.6080302@ericsson.com> <Pine.LNX.4.62.0910092116010.21884@hixie.dreamhostps.com> <4AD2E353.8070609@webtide.com> <4AD2F43D.6030202@ninebynine.org> <4AD39A64.4080405@webtide.com> <Pine.LNX.4.62.0910132335390.25383@hixie.dreamhostps.com> <4AD5A2FA.5030805@gmx.de> <20091014102102.GH29862@sideshowbarker>
In-Reply-To: <20091014102102.GH29862@sideshowbarker>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Y-GMX-Trusted: 0
X-FuHaFi: 0.67
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] Multiplexing in WebSocket (Was:  HyBi Design Space)
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: Wed, 14 Oct 2009 11:10:36 -0000

Michael(tm) Smith wrote:
>>  If those people do not plan to participate over here, but *do* influence the 
>>  spec, then it appears this is a candidate for an Informational RFC, not the 
>>  standards track.
> 
> Could you elaborate on bit on why that's the case? And/or provide
> a URL for the relevant process document where it's explained?

The process document is RFC 2026.

What I wanted to point out is that if there's a desire to make web 
sockets a deliverable of this WG-to-be, the discussions about it should 
actually take place on the WG's mailing list.

BR, Julian

From derhoermi@gmx.net  Wed Oct 14 04:50:40 2009
Return-Path: <derhoermi@gmx.net>
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 3A3B33A685C for <hybi@core3.amsl.com>; Wed, 14 Oct 2009 04:50:40 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.185
X-Spam-Level: 
X-Spam-Status: No, score=-0.185 tagged_above=-999 required=5 tests=[BAYES_40=-0.185]
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 H1BE0DO0aZSd for <hybi@core3.amsl.com>; Wed, 14 Oct 2009 04:50:39 -0700 (PDT)
Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by core3.amsl.com (Postfix) with SMTP id 992213A681E for <hybi@ietf.org>; Wed, 14 Oct 2009 04:50:38 -0700 (PDT)
Received: (qmail invoked by alias); 14 Oct 2009 11:50:39 -0000
Received: from dslb-094-223-146-144.pools.arcor-ip.net (EHLO hive) [94.223.146.144] by mail.gmx.net (mp062) with SMTP; 14 Oct 2009 13:50:39 +0200
X-Authenticated: #723575
X-Provags-ID: V01U2FsdGVkX1/TK5YJem3TW7LO/YzJATA1Y/zpVG/RZwlViGEfYF yDMGTOBe4T72C1
From: Bjoern Hoehrmann <derhoermi@gmx.net>
To: "Michael(tm) Smith" <mike@w3.org>
Date: Wed, 14 Oct 2009 13:50:44 +0200
Message-ID: <1ldbd5p1pb7idm4bc5palo2ur9jhtp1tqs@hive.bjoern.hoehrmann.de>
References: <4ACE50A2.5070404@ericsson.com> <3a880e2c0910081600v3607665dp193f6df499706810@mail.gmail.com> <4ACF4055.6080302@ericsson.com> <Pine.LNX.4.62.0910092116010.21884@hixie.dreamhostps.com> <4AD2E353.8070609@webtide.com> <4AD2F43D.6030202@ninebynine.org> <4AD39A64.4080405@webtide.com> <Pine.LNX.4.62.0910132335390.25383@hixie.dreamhostps.com> <4AD5A2FA.5030805@gmx.de> <20091014102102.GH29862@sideshowbarker>
In-Reply-To: <20091014102102.GH29862@sideshowbarker>
X-Mailer: Forte Agent 3.3/32.846
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Y-GMX-Trusted: 0
X-FuHaFi: 0.6
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] Multiplexing in WebSocket (Was:  HyBi Design Space)
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: Wed, 14 Oct 2009 11:50:40 -0000

* Michael(tm) Smith wrote:
>Could you elaborate on bit on why that's the case? And/or provide
>a URL for the relevant process document where it's explained?

In addition to The Internet Standards Process (BCP 0009, RFC 2026,
http://tools.ietf.org/html/rfc2026) you are looking for The Tao of
IETF (FYI 0017, RFC 4677, http://tools.ietf.org/html/rfc4677) and
there in particular section five, and their references like IETF
Working Group Guidelines and Procedures (BCP 0025, RFC 2418). They
won't answer your question, but help you understand why you asked it.
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Am Badedeich 7 · Telefon: +49(0)160/4415681 · http://www.bjoernsworld.de
25899 Dagebüll · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 

From ian@hixie.ch  Wed Oct 14 04:52:27 2009
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 152DB3A681E for <hybi@core3.amsl.com>; Wed, 14 Oct 2009 04:52:27 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.501
X-Spam-Level: 
X-Spam-Status: No, score=-2.501 tagged_above=-999 required=5 tests=[AWL=0.098,  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 FUuuR+5scqyn for <hybi@core3.amsl.com>; Wed, 14 Oct 2009 04:52:26 -0700 (PDT)
Received: from looneymail-a1.g.dreamhost.com (caibbdcaaaaf.dreamhost.com [208.113.200.5]) by core3.amsl.com (Postfix) with ESMTP id 6807F3A680B for <hybi@ietf.org>; Wed, 14 Oct 2009 04:52:26 -0700 (PDT)
Received: from hixie.dreamhostps.com (hixie.dreamhost.com [208.113.210.27]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by looneymail-a1.g.dreamhost.com (Postfix) with ESMTP id AB2F215D7E8; Wed, 14 Oct 2009 04:52:27 -0700 (PDT)
Date: Wed, 14 Oct 2009 12:03:56 +0000 (UTC)
From: Ian Hickson <ian@hixie.ch>
To: Julian Reschke <julian.reschke@gmx.de>
In-Reply-To: <4AD5B1A6.8020107@gmx.de>
Message-ID: <Pine.LNX.4.62.0910141202490.3716@hixie.dreamhostps.com>
References: <4ACE50A2.5070404@ericsson.com> <3a880e2c0910081600v3607665dp193f6df499706810@mail.gmail.com> <4ACF4055.6080302@ericsson.com> <Pine.LNX.4.62.0910092116010.21884@hixie.dreamhostps.com> <4AD2E353.8070609@webtide.com> <4AD2F43D.6030202@ninebynine.org> <4AD39A64.4080405@webtide.com> <Pine.LNX.4.62.0910132335390.25383@hixie.dreamhostps.com> <4AD5A2FA.5030805@gmx.de> <20091014102102.GH29862@sideshowbarker> <4AD5B1A6.8020107@gmx.de>
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" <hybi@ietf.org>
Subject: Re: [hybi] Multiplexing in WebSocket (Was:  HyBi Design Space)
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: Wed, 14 Oct 2009 11:52:27 -0000

On Wed, 14 Oct 2009, Julian Reschke wrote:
> Michael(tm) Smith wrote:
> > >  If those people do not plan to participate over here, but *do* influence
> > > the  spec, then it appears this is a candidate for an Informational RFC,
> > > not the  standards track.
> > 
> > Could you elaborate on bit on why that's the case? And/or provide
> > a URL for the relevant process document where it's explained?
> 
> The process document is RFC 2026.
> 
> What I wanted to point out is that if there's a desire to make web sockets a
> deliverable of this WG-to-be, the discussions about it should actually take
> place on the WG's mailing list.

The Web Sockets API and protocol is a joint effort of the Web Apps WG in 
the W3C, the WHATWG, and this mailing list. Input is going to come from 
many places, including all those, as well as blogs, IRC, etc.

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

From julian.reschke@gmx.de  Wed Oct 14 05:02:37 2009
Return-Path: <julian.reschke@gmx.de>
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 7337528C0F6 for <hybi@core3.amsl.com>; Wed, 14 Oct 2009 05:02:37 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.475
X-Spam-Level: 
X-Spam-Status: No, score=-4.475 tagged_above=-999 required=5 tests=[AWL=-1.876, 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 FXn8GnfbFjiM for <hybi@core3.amsl.com>; Wed, 14 Oct 2009 05:02:36 -0700 (PDT)
Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by core3.amsl.com (Postfix) with SMTP id 4658D28C0ED for <hybi@ietf.org>; Wed, 14 Oct 2009 05:02:35 -0700 (PDT)
Received: (qmail invoked by alias); 14 Oct 2009 12:02:36 -0000
Received: from mail.greenbytes.de (EHLO [192.168.1.117]) [217.91.35.233] by mail.gmx.net (mp013) with SMTP; 14 Oct 2009 14:02:36 +0200
X-Authenticated: #1915285
X-Provags-ID: V01U2FsdGVkX1/81zsQa/T8O2NG+boNNQNEGmxURrITAHcZnwNw/7 Jf/v7q6mR7gR+D
Message-ID: <4AD5BDD7.70805@gmx.de>
Date: Wed, 14 Oct 2009 14:02:31 +0200
From: Julian Reschke <julian.reschke@gmx.de>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.0.4) Gecko/20060516 Thunderbird/1.5.0.4 Mnenhy/0.7.4.666
MIME-Version: 1.0
To: Ian Hickson <ian@hixie.ch>
References: <4ACE50A2.5070404@ericsson.com> <3a880e2c0910081600v3607665dp193f6df499706810@mail.gmail.com> <4ACF4055.6080302@ericsson.com> <Pine.LNX.4.62.0910092116010.21884@hixie.dreamhostps.com> <4AD2E353.8070609@webtide.com> <4AD2F43D.6030202@ninebynine.org> <4AD39A64.4080405@webtide.com> <Pine.LNX.4.62.0910132335390.25383@hixie.dreamhostps.com> <4AD5A2FA.5030805@gmx.de> <20091014102102.GH29862@sideshowbarker> <4AD5B1A6.8020107@gmx.de> <Pine.LNX.4.62.0910141202490.3716@hixie.dreamhostps.com>
In-Reply-To: <Pine.LNX.4.62.0910141202490.3716@hixie.dreamhostps.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Y-GMX-Trusted: 0
X-FuHaFi: 0.59
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] Multiplexing in WebSocket (Was:  HyBi Design Space)
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: Wed, 14 Oct 2009 12:02:37 -0000

Ian Hickson wrote:
> On Wed, 14 Oct 2009, Julian Reschke wrote:
>> Michael(tm) Smith wrote:
>>>>  If those people do not plan to participate over here, but *do* influence
>>>> the  spec, then it appears this is a candidate for an Informational RFC,
>>>> not the  standards track.
>>> Could you elaborate on bit on why that's the case? And/or provide
>>> a URL for the relevant process document where it's explained?
>> The process document is RFC 2026.
>>
>> What I wanted to point out is that if there's a desire to make web sockets a
>> deliverable of this WG-to-be, the discussions about it should actually take
>> place on the WG's mailing list.
> 
> The Web Sockets API and protocol is a joint effort of the Web Apps WG in 
> the W3C, the WHATWG, and this mailing list. Input is going to come from 
> many places, including all those, as well as blogs, IRC, etc.

So how do you guarantee that all input that you take follows the IETF 
IPR rules? <http://www.ietf.org/about/note-well.html>

BR, Julian


From ian@hixie.ch  Wed Oct 14 05:17:45 2009
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 B19E03A69BD for <hybi@core3.amsl.com>; Wed, 14 Oct 2009 05:17:45 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.513
X-Spam-Level: 
X-Spam-Status: No, score=-2.513 tagged_above=-999 required=5 tests=[AWL=0.086,  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 JnRzjO3l4Z8K for <hybi@core3.amsl.com>; Wed, 14 Oct 2009 05:17:44 -0700 (PDT)
Received: from looneymail-a2.g.dreamhost.com (caibbdcaaaaf.dreamhost.com [208.113.200.5]) by core3.amsl.com (Postfix) with ESMTP id D77493A69BC for <hybi@ietf.org>; Wed, 14 Oct 2009 05:17:44 -0700 (PDT)
Received: from hixie.dreamhostps.com (hixie.dreamhost.com [208.113.210.27]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by looneymail-a2.g.dreamhost.com (Postfix) with ESMTP id DB97516D3CA; Wed, 14 Oct 2009 05:17:46 -0700 (PDT)
Date: Wed, 14 Oct 2009 12:29:16 +0000 (UTC)
From: Ian Hickson <ian@hixie.ch>
To: Julian Reschke <julian.reschke@gmx.de>
In-Reply-To: <4AD5BDD7.70805@gmx.de>
Message-ID: <Pine.LNX.4.62.0910141226080.3716@hixie.dreamhostps.com>
References: <4ACE50A2.5070404@ericsson.com> <3a880e2c0910081600v3607665dp193f6df499706810@mail.gmail.com> <4ACF4055.6080302@ericsson.com> <Pine.LNX.4.62.0910092116010.21884@hixie.dreamhostps.com> <4AD2E353.8070609@webtide.com> <4AD2F43D.6030202@ninebynine.org> <4AD39A64.4080405@webtide.com> <Pine.LNX.4.62.0910132335390.25383@hixie.dreamhostps.com> <4AD5A2FA.5030805@gmx.de> <20091014102102.GH29862@sideshowbarker> <4AD5B1A6.8020107@gmx.de> <Pine.LNX.4.62.0910141202490.3716@hixie.dreamhostps.com> <4AD5BDD7.70805@gmx.de>
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" <hybi@ietf.org>
Subject: Re: [hybi] Multiplexing in WebSocket (Was:  HyBi Design Space)
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: Wed, 14 Oct 2009 12:17:45 -0000

On Wed, 14 Oct 2009, Julian Reschke wrote:
> > 
> > The Web Sockets API and protocol is a joint effort of the Web Apps WG 
> > in the W3C, the WHATWG, and this mailing list. Input is going to come 
> > from many places, including all those, as well as blogs, IRC, etc.
> 
> So how do you guarantee that all input that you take follows the IETF 
> IPR rules? <http://www.ietf.org/about/note-well.html>

Unless I'm mistaken, the IETF does not have a policy of ignoring feedback 
that comes from outside the IETF, so I don't see why the above would make 
this difficult. Did you have a specific rule in mind?

(It would be pretty stupid to ignore outside feedback!)

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

From julian.reschke@gmx.de  Wed Oct 14 05:49:13 2009
Return-Path: <julian.reschke@gmx.de>
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 8614E28C149 for <hybi@core3.amsl.com>; Wed, 14 Oct 2009 05:49:13 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.207
X-Spam-Level: 
X-Spam-Status: No, score=-4.207 tagged_above=-999 required=5 tests=[AWL=-1.608, 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 BG5iaS6aYfd5 for <hybi@core3.amsl.com>; Wed, 14 Oct 2009 05:49:12 -0700 (PDT)
Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by core3.amsl.com (Postfix) with SMTP id 4966F3A68E2 for <hybi@ietf.org>; Wed, 14 Oct 2009 05:49:11 -0700 (PDT)
Received: (qmail invoked by alias); 14 Oct 2009 12:49:13 -0000
Received: from mail.greenbytes.de (EHLO [192.168.1.117]) [217.91.35.233] by mail.gmx.net (mp036) with SMTP; 14 Oct 2009 14:49:13 +0200
X-Authenticated: #1915285
X-Provags-ID: V01U2FsdGVkX1/DGZZK/LnDGTbgXYbEGR1VGQ472Ba8imWOmxogvF zOqPqILofCLEuO
Message-ID: <4AD5C8C3.5080400@gmx.de>
Date: Wed, 14 Oct 2009 14:49:07 +0200
From: Julian Reschke <julian.reschke@gmx.de>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.0.4) Gecko/20060516 Thunderbird/1.5.0.4 Mnenhy/0.7.4.666
MIME-Version: 1.0
To: Ian Hickson <ian@hixie.ch>
References: <4ACE50A2.5070404@ericsson.com> <3a880e2c0910081600v3607665dp193f6df499706810@mail.gmail.com> <4ACF4055.6080302@ericsson.com> <Pine.LNX.4.62.0910092116010.21884@hixie.dreamhostps.com> <4AD2E353.8070609@webtide.com> <4AD2F43D.6030202@ninebynine.org> <4AD39A64.4080405@webtide.com> <Pine.LNX.4.62.0910132335390.25383@hixie.dreamhostps.com> <4AD5A2FA.5030805@gmx.de> <20091014102102.GH29862@sideshowbarker> <4AD5B1A6.8020107@gmx.de> <Pine.LNX.4.62.0910141202490.3716@hixie.dreamhostps.com> <4AD5BDD7.70805@gmx.de> <Pine.LNX.4.62.0910141226080.3716@hixie.dreamhostps.com>
In-Reply-To: <Pine.LNX.4.62.0910141226080.3716@hixie.dreamhostps.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Y-GMX-Trusted: 0
X-FuHaFi: 0.6
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] Multiplexing in WebSocket (Was:  HyBi Design Space)
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: Wed, 14 Oct 2009 12:49:13 -0000

Ian Hickson wrote:
> On Wed, 14 Oct 2009, Julian Reschke wrote:
>>> The Web Sockets API and protocol is a joint effort of the Web Apps WG 
>>> in the W3C, the WHATWG, and this mailing list. Input is going to come 
>>> from many places, including all those, as well as blogs, IRC, etc.
>> So how do you guarantee that all input that you take follows the IETF 
>> IPR rules? <http://www.ietf.org/about/note-well.html>
> 
> Unless I'm mistaken, the IETF does not have a policy of ignoring feedback 
> that comes from outside the IETF, so I don't see why the above would make 
> this difficult. Did you have a specific rule in mind?
> 
> (It would be pretty stupid to ignore outside feedback!)

Yes it would.

One good compromise is to report the outside feedback on the WG's 
mailing list, and to continue to discuss over there.

A bad approach is to say "I got outside feedback to do it that way, and 
that's what I'm doing. Take it or leave it". (Note: I'm not saying you did)

BR, Julian

From salvatore.loreto@ericsson.com  Wed Oct 14 10:19:07 2009
Return-Path: <salvatore.loreto@ericsson.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 70F053A68A9 for <hybi@core3.amsl.com>; Wed, 14 Oct 2009 10:19:07 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.329
X-Spam-Level: 
X-Spam-Status: No, score=-4.329 tagged_above=-999 required=5 tests=[AWL=0.680,  BAYES_00=-2.599, HELO_EQ_SE=0.35, RCVD_IN_DNSWL_MED=-4, SARE_LWSHORTT=1.24]
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 VwnL6UI5vKJr for <hybi@core3.amsl.com>; Wed, 14 Oct 2009 10:19:06 -0700 (PDT)
Received: from mailgw5.ericsson.se (mailgw5.ericsson.se [193.180.251.36]) by core3.amsl.com (Postfix) with ESMTP id 3B8FB3A6816 for <hybi@ietf.org>; Wed, 14 Oct 2009 10:19:05 -0700 (PDT)
X-AuditID: c1b4fb24-b7bd7ae000002270-91-4ad6080b62ba
Received: from esealmw129.eemea.ericsson.se (Unknown_Domain [153.88.253.125]) by mailgw5.ericsson.se (Symantec Mail Security) with SMTP id 9C.10.08816.B0806DA4; Wed, 14 Oct 2009 19:19:07 +0200 (CEST)
Received: from esealmw127.eemea.ericsson.se ([153.88.254.171]) by esealmw129.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.3959);  Wed, 14 Oct 2009 19:19:06 +0200
Received: from mail.lmf.ericsson.se ([131.160.11.50]) by esealmw127.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.3959);  Wed, 14 Oct 2009 19:19:06 +0200
Received: from nomadiclab.lmf.ericsson.se (nomadiclab.lmf.ericsson.se [131.160.33.3]) by mail.lmf.ericsson.se (Postfix) with ESMTP id 8960824C0 for <hybi@ietf.org>; Wed, 14 Oct 2009 20:19:06 +0300 (EEST)
Received: from nomadiclab.lmf.ericsson.se (localhost [127.0.0.1]) by nomadiclab.lmf.ericsson.se (Postfix) with ESMTP id 4DB9121A22 for <hybi@ietf.org>; Wed, 14 Oct 2009 20:19:06 +0300 (EEST)
Received: from localhost.localdomain (localhost [127.0.0.1]) by nomadiclab.lmf.ericsson.se (Postfix) with ESMTP id DF45E21A1F for <hybi@ietf.org>; Wed, 14 Oct 2009 20:19:05 +0300 (EEST)
Message-ID: <4AD60809.8070404@ericsson.com>
Date: Wed, 14 Oct 2009 20:19:05 +0300
From: Salvatore Loreto <salvatore.loreto@ericsson.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090825)
MIME-Version: 1.0
To: "hybi@ietf.org" <hybi@ietf.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: ClamAV using ClamSMTP
X-OriginalArrivalTime: 14 Oct 2009 17:19:06.0482 (UTC) FILETIME=[6F31ED20:01CA4CF2]
X-Brightmail-Tracker: AAAAAA==
Subject: [hybi] draft HyBi BoF Agenda
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: Wed, 14 Oct 2009 17:19:07 -0000

Hi there,

here a first HyBi BoF Agenda draft :

Tuesday, November 10, 2009
1300-1500 Afternoon Session I
Cattleya 1   APP   hybi   BiDirectional or Server-Initiated HTTP BOF

5min    -    agenda bash (chairs)
5min    -    goal and purpose of the BoF (chairs)
15min    -    Design space (Peter Saint-Andre)
10min    - charter proposal overview (chairs)
             - technical contribution so far:
10min        - short term and requirements input (Greg Wilkins)
                - long term and requirements input :
15min        - W3C / WebSocket prospective (Michael Smith)
15min        - alternative prospectives e.g. BWTP (Greg Wilkins)
35min    - charter proposal & open discussion
10min    - calling the question (chairs)



any comments, suggestions and proposals are very welcome!


Cheers
Salvatore Loreto
www.sloreto.com

From sm@resistor.net  Thu Oct 15 10:53:45 2009
Return-Path: <sm@resistor.net>
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 44D763A67FF for <hybi@core3.amsl.com>; Thu, 15 Oct 2009 10:53:45 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.274
X-Spam-Level: 
X-Spam-Status: No, score=-2.274 tagged_above=-999 required=5 tests=[AWL=0.325,  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 vONsweFjVbV2 for <hybi@core3.amsl.com>; Thu, 15 Oct 2009 10:53:44 -0700 (PDT)
Received: from ns1.qubic.net (ns1.qubic.net [208.69.177.116]) by core3.amsl.com (Postfix) with ESMTP id 66D1F3A659A for <hybi@ietf.org>; Thu, 15 Oct 2009 10:53:44 -0700 (PDT)
Received: from subman.resistor.net ([10.0.0.1]) (authenticated bits=0) by ns1.qubic.net (8.14.4.Beta0/8.14.4.Beta0) with ESMTP id n9FHraZR020336 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 15 Oct 2009 10:53:43 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=resistor.net; s=mail; t=1255629226; x=1255715626; bh=CD+o8LW2IJHaBHTeRiff7XOuTWthT3XAq8j+lkMSSPE=; h=Message-Id:Date:To:From:Subject:Cc:In-Reply-To:References: Mime-Version:Content-Type; b=RDEgn3FxlgjM6hnYECPOnL1Ztnf9v5yTuZ4bhrdqO2fV08z7ji9RTeJL/35WcHbkH WUPYn6LKenfGz23rZ0ytAWqUKIrCn8z4Ffv13wdt8creC8w4lGkKMm8b+Lo8DejD9l h1+sGwI2D/r65L4qaKu1rrjNOpjxsihqAxTnE4fA=
DomainKey-Signature: a=rsa-sha1; s=mail; d=resistor.net; c=simple; q=dns; b=09Oe+lgYttmTx001Hb9t39hdbiEgFLp6G+Wc1dz4v3GqIp2PClw8E61NsJxGFNqau cd9o90PtAo9BqFb+amZIkmSPfA182AT7QSB7/FES3Zu4PvvZWP0ck+kRyrN1vnwTykd qyZ63inuEdTOSEgbBr97w7LaIHn+FfJCdCZQd2Q=
Message-Id: <6.2.5.6.2.20091015104641.045dbcf0@resistor.net>
X-Mailer: QUALCOMM Windows Eudora Version 6.2.5.6
Date: Thu, 15 Oct 2009 10:53:18 -0700
To: Ian Hickson <ian@hixie.ch>
From: SM <sm@resistor.net>
In-Reply-To: <Pine.LNX.4.62.0910131212000.25383@hixie.dreamhostps.com>
References: <507F3682-5AAF-4AC0-88F6-10A31B12380D@mnot.net> <Pine.LNX.4.62.0907292309330.3189@hixie.dreamhostps.com> <20090812125653.GA1235@shareable.org> <Pine.LNX.4.62.0908160629230.6420@hixie.dreamhostps.com> <20090816171704.GB27122@shareable.org> <Pine.LNX.4.62.0909040546330.6775@hixie.dreamhostps.com> <4AA25206.9070809@webtide.com> <20090905140551.GJ24516@shareable.org> <4AA3139E.2030908@webtide.com> <20090907125321.GG7949@shareable.org> <Pine.LNX.4.62.0909170950580.14605@hixie.dreamhostps.com> <6.2.5.6.2.20090917130335.03226138@resistor.net> <Pine.LNX.4.62.0910131212000.25383@hixie.dreamhostps.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; format=flowed
Cc: hybi@ietf.org
Subject: Re: [hybi] Feedback on thewebsocketprotocol
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, 15 Oct 2009 17:53:45 -0000

At 05:15 13-10-2009, Ian Hickson wrote:
>Fair enough. I've changed where the bit about the security model is given.

I took a quick look.  That's much better.

>I think explaining the constraints of defining protocols compatible with
>the Web's legacy environment is somewhat out of scope of an RFC like this
>one. I mean, one could go on for pages and pages about this topic.

You don't have to explain the constraints in your I-D.  You could 
provide a reference.

Regards,
-sm 


From sm@resistor.net  Thu Oct 15 11:12:43 2009
Return-Path: <sm@resistor.net>
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 3081128C17C for <hybi@core3.amsl.com>; Thu, 15 Oct 2009 11:12:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.339
X-Spam-Level: 
X-Spam-Status: No, score=-2.339 tagged_above=-999 required=5 tests=[AWL=0.260,  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 uyBZ3F3i3jKZ for <hybi@core3.amsl.com>; Thu, 15 Oct 2009 11:12:41 -0700 (PDT)
Received: from ns1.qubic.net (ns1.qubic.net [208.69.177.116]) by core3.amsl.com (Postfix) with ESMTP id 5B3F128C165 for <hybi@ietf.org>; Thu, 15 Oct 2009 11:12:41 -0700 (PDT)
Received: from subman.resistor.net ([10.0.0.1]) (authenticated bits=0) by ns1.qubic.net (8.14.4.Beta0/8.14.4.Beta0) with ESMTP id n9FICZZn026443 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for <hybi@ietf.org>; Thu, 15 Oct 2009 11:12:41 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=resistor.net; s=mail; t=1255630363; x=1255716763; bh=QZouMdDLnUoSfGS54DWEanT9b+VyW32IdhQUNAL/zmc=; h=Message-Id:Date:To:From:Subject:In-Reply-To:References: Mime-Version:Content-Type:Cc; b=tW8V4KJBC1CMnxAlRxR/pZ07QOl5p88iCQXZd1nB50lDGVRq5mqUhyPc1wYmE1Mb5 aZwi+yz96QnyRXmw772Z1+zhF5X/LIdSbHBy8cBOpX9EkgM4VjMIdgmZnfPSoft0eU 13/BhvoRStLITY8O1qJv6K5cKsGpt0iTozrpIAj4=
DomainKey-Signature: a=rsa-sha1; s=mail; d=resistor.net; c=simple; q=dns; b=bAuAf9DAntEEWbgt1hvEwDK/tNYShsPREo95hrwqnbxpYWMuC4qhdxgQy0w9gi+20 0ZFywqjgpC+arWT/34kI/C+FJCkQf/3bFQyO1605PsORbpn3nrpYRRqkJzYTMXUht3b tLE5Nl4XyButP4fAj6fcef4LY37NaQ46ldiyylQ=
Message-Id: <6.2.5.6.2.20091015105341.045fddf0@resistor.net>
X-Mailer: QUALCOMM Windows Eudora Version 6.2.5.6
Date: Thu, 15 Oct 2009 11:10:25 -0700
To: hybi@ietf.org
From: SM <sm@resistor.net>
In-Reply-To: <Pine.LNX.4.62.0910141226080.3716@hixie.dreamhostps.com>
References: <4ACE50A2.5070404@ericsson.com> <3a880e2c0910081600v3607665dp193f6df499706810@mail.gmail.com> <4ACF4055.6080302@ericsson.com> <Pine.LNX.4.62.0910092116010.21884@hixie.dreamhostps.com> <4AD2E353.8070609@webtide.com> <4AD2F43D.6030202@ninebynine.org> <4AD39A64.4080405@webtide.com> <Pine.LNX.4.62.0910132335390.25383@hixie.dreamhostps.com> <4AD5A2FA.5030805@gmx.de> <20091014102102.GH29862@sideshowbarker> <4AD5B1A6.8020107@gmx.de> <Pine.LNX.4.62.0910141202490.3716@hixie.dreamhostps.com> <4AD5BDD7.70805@gmx.de> <Pine.LNX.4.62.0910141226080.3716@hixie.dreamhostps.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; format=flowed
Subject: Re: [hybi] Multiplexing in WebSocket (Was:  HyBi Design Space)
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, 15 Oct 2009 18:12:43 -0000

At 05:29 14-10-2009, Ian Hickson wrote:
>Unless I'm mistaken, the IETF does not have a policy of ignoring feedback
>that comes from outside the IETF, so I don't see why the above would make
>this difficult. Did you have a specific rule in mind?
>
>(It would be pretty stupid to ignore outside feedback!)

You are missing the point of Julian Reschke's message.  The contents 
of this message should not be considered as legal advice.

The process is covered by BCP 9 and a few other 
RFCs.  "Contributions" posted to the IETF mailing lists are subject 
to BCP 78 and BCP 79.  It is up to the authors to see that their 
Internet-Drafts are in full conformance with the provisions of BCP 78 
and BCP 79.

Regards,
-sm 


From ian@hixie.ch  Thu Oct 15 14:13:39 2009
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 AFF473A68ED for <hybi@core3.amsl.com>; Thu, 15 Oct 2009 14:13:39 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.523
X-Spam-Level: 
X-Spam-Status: No, score=-2.523 tagged_above=-999 required=5 tests=[AWL=0.076,  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 5h141wvYi-f0 for <hybi@core3.amsl.com>; Thu, 15 Oct 2009 14:13:38 -0700 (PDT)
Received: from looneymail-a2.g.dreamhost.com (caibbdcaaaaf.dreamhost.com [208.113.200.5]) by core3.amsl.com (Postfix) with ESMTP id CDD2E3A68C0 for <hybi@ietf.org>; Thu, 15 Oct 2009 14:13:38 -0700 (PDT)
Received: from hixie.dreamhostps.com (hixie.dreamhost.com [208.113.210.27]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by looneymail-a2.g.dreamhost.com (Postfix) with ESMTP id 24F5016D40C; Thu, 15 Oct 2009 14:13:40 -0700 (PDT)
Date: Thu, 15 Oct 2009 21:25:26 +0000 (UTC)
From: Ian Hickson <ian@hixie.ch>
To: SM <sm@resistor.net>
In-Reply-To: <6.2.5.6.2.20091015104641.045dbcf0@resistor.net>
Message-ID: <Pine.LNX.4.62.0910152125020.6803@hixie.dreamhostps.com>
References: <507F3682-5AAF-4AC0-88F6-10A31B12380D@mnot.net> <Pine.LNX.4.62.0907292309330.3189@hixie.dreamhostps.com> <20090812125653.GA1235@shareable.org> <Pine.LNX.4.62.0908160629230.6420@hixie.dreamhostps.com> <20090816171704.GB27122@shareable.org> <Pine.LNX.4.62.0909040546330.6775@hixie.dreamhostps.com> <4AA25206.9070809@webtide.com> <20090905140551.GJ24516@shareable.org> <4AA3139E.2030908@webtide.com> <20090907125321.GG7949@shareable.org> <Pine.LNX.4.62.0909170950580.14605@hixie.dreamhostps.com> <6.2.5.6.2.20090917130335.03226138@resistor.net> <Pine.LNX.4.62.0910131212000.25383@hixie.dreamhostps.com> <6.2.5.6.2.20091015104641.045dbcf0@resistor.net>
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] Feedback on thewebsocketprotocol
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, 15 Oct 2009 21:13:39 -0000

On Thu, 15 Oct 2009, SM wrote:
> At 05:15 13-10-2009, Ian Hickson wrote:
> > Fair enough. I've changed where the bit about the security model is given.
> 
> I took a quick look.  That's much better.
> 
> > I think explaining the constraints of defining protocols compatible with
> > the Web's legacy environment is somewhat out of scope of an RFC like this
> > one. I mean, one could go on for pages and pages about this topic.
> 
> You don't have to explain the constraints in your I-D.  You could provide a
> reference.

I don't know of one, unfortunately. If anyone has any suggestions, I'd be 
more than happy to include such a reference.

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

From salvatore.loreto@ericsson.com  Fri Oct 16 09:15:03 2009
Return-Path: <salvatore.loreto@ericsson.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 24EA628C22B for <hybi@core3.amsl.com>; Fri, 16 Oct 2009 09:15:03 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.669
X-Spam-Level: 
X-Spam-Status: No, score=-4.669 tagged_above=-999 required=5 tests=[AWL=0.340,  BAYES_00=-2.599, HELO_EQ_SE=0.35, RCVD_IN_DNSWL_MED=-4, SARE_LWSHORTT=1.24]
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 7aaxRqA8YfSy for <hybi@core3.amsl.com>; Fri, 16 Oct 2009 09:15:02 -0700 (PDT)
Received: from mailgw5.ericsson.se (mailgw5.ericsson.se [193.180.251.36]) by core3.amsl.com (Postfix) with ESMTP id C60E028C132 for <hybi@ietf.org>; Fri, 16 Oct 2009 09:15:01 -0700 (PDT)
X-AuditID: c1b4fb24-b7bd7ae000002270-97-4ad89c084fa5
Received: from esealmw126.eemea.ericsson.se (Unknown_Domain [153.88.253.125]) by mailgw5.ericsson.se (Symantec Mail Security) with SMTP id 50.D5.08816.80C98DA4; Fri, 16 Oct 2009 18:15:04 +0200 (CEST)
Received: from esealmw126.eemea.ericsson.se ([153.88.254.174]) by esealmw126.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.3959);  Fri, 16 Oct 2009 18:15:04 +0200
Received: from mail.lmf.ericsson.se ([131.160.11.50]) by esealmw126.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.3959);  Fri, 16 Oct 2009 18:15:04 +0200
Received: from nomadiclab.lmf.ericsson.se (nomadiclab.lmf.ericsson.se [131.160.33.3]) by mail.lmf.ericsson.se (Postfix) with ESMTP id 63C872946 for <hybi@ietf.org>; Fri, 16 Oct 2009 19:15:04 +0300 (EEST)
Received: from nomadiclab.lmf.ericsson.se (localhost [127.0.0.1]) by nomadiclab.lmf.ericsson.se (Postfix) with ESMTP id 2EA9521A22 for <hybi@ietf.org>; Fri, 16 Oct 2009 19:15:04 +0300 (EEST)
Received: from localhost.localdomain (localhost [127.0.0.1]) by nomadiclab.lmf.ericsson.se (Postfix) with ESMTP id DD51521A21 for <hybi@ietf.org>; Fri, 16 Oct 2009 19:15:03 +0300 (EEST)
Message-ID: <4AD89C07.8060500@ericsson.com>
Date: Fri, 16 Oct 2009 19:15:03 +0300
From: Salvatore Loreto <salvatore.loreto@ericsson.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090825)
MIME-Version: 1.0
To: "hybi@ietf.org" <hybi@ietf.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: ClamAV using ClamSMTP
X-OriginalArrivalTime: 16 Oct 2009 16:15:04.0477 (UTC) FILETIME=[D201FCD0:01CA4E7B]
X-Brightmail-Tracker: AAAAAA==
Subject: [hybi] short term requirements
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: Fri, 16 Oct 2009 16:15:03 -0000

Hi there,

as you may have read on the Agenda draft,
during the BoF meeting we will discuss, among other stuff, requirements 
for Short Term solution.

This is a call to collect requirements that you think a Short Term 
solution should meet.

Draft-loreto-http-bidirectional 
(http://www.ietf.org/id/draft-loreto-http-bidirectional-00.txt)
is a tentative to describe best practices for bidirectional HTTP in the 
context of HTTP as it exists today.
In order to design additions (section 6 of the draft to see some 
example) that could enable improved mechanisms
for bidirectional HTTP  (short term solution) we have to identify the 
requirements that those additions have to meet
in order to improve interoperability and such to provide an improved 
experience.

Here a first rough list of requirements collected from the bar BoF in 
Stockholm and from the HyBi mail discussion.
It is just a list to start the discussion

Req.   possibility for the intermediaries to access and modify it
Req.   it must be usable from multiple (existing) browser
Req.   it must be easily to use and accessible from different protocols 
(e.g. Bayeux, Bosh etc)
Req.   it must be easy to deploy in the existing infrastructure
Req.   it has really improve the bi-directional communication (not just 
push from a server to a client)
Req.   it has not introduce any security hole


please provide comments, opinions, suggestion.

best regards
Salvatore Loreto


From ian@hixie.ch  Fri Oct 16 19:22:43 2009
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 10F533A6958 for <hybi@core3.amsl.com>; Fri, 16 Oct 2009 19:22:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.53
X-Spam-Level: 
X-Spam-Status: No, score=-2.53 tagged_above=-999 required=5 tests=[AWL=0.069,  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 cCvjzy4mM4hG for <hybi@core3.amsl.com>; Fri, 16 Oct 2009 19:22:41 -0700 (PDT)
Received: from looneymail-a2.g.dreamhost.com (caibbdcaaaaf.dreamhost.com [208.113.200.5]) by core3.amsl.com (Postfix) with ESMTP id B4E0D3A684A for <hybi@ietf.org>; Fri, 16 Oct 2009 19:22:41 -0700 (PDT)
Received: from hixie.dreamhostps.com (hixie.dreamhost.com [208.113.210.27]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by looneymail-a2.g.dreamhost.com (Postfix) with ESMTP id 6A81D16D3F7; Fri, 16 Oct 2009 19:22:46 -0700 (PDT)
Date: Sat, 17 Oct 2009 02:34:47 +0000 (UTC)
From: Ian Hickson <ian@hixie.ch>
To: Greg Wilkins <gregw@webtide.com>
In-Reply-To: <4AD53DCA.6050304@webtide.com>
Message-ID: <Pine.LNX.4.62.0910170203460.9145@hixie.dreamhostps.com>
References: <4ACE50A2.5070404@ericsson.com> <3a880e2c0910081600v3607665dp193f6df499706810@mail.gmail.com> <4ACF4055.6080302@ericsson.com> <Pine.LNX.4.62.0910092116010.21884@hixie.dreamhostps.com> <4AD2E353.8070609@webtide.com> <4AD2F43D.6030202@ninebynine.org> <4AD39A64.4080405@webtide.com> <Pine.LNX.4.62.0910132335390.25383@hixie.dreamhostps.com> <4AD53DCA.6050304@webtide.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" <hybi@ietf.org>
Subject: Re: [hybi] Multiplexing in WebSocket (Was:  HyBi Design Space)
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: Sat, 17 Oct 2009 02:22:43 -0000

On Wed, 14 Oct 2009, Greg Wilkins wrote:
> >>> 
> >>> However, WebSocket connections are long lived by design,
> >>
> >> I do not believe you can anticipate websocket usage over the long 
> >> term.  Just because you think now they will only be used for long 
> >> lived connections, that may not always be the case.
> > 
> > Well using Web Socket for a short request-response burst would be 
> > pretty stupid (given HTTP)... What other uses do you have in mind?
> 
> Which is why having a websocket be associated with 1 and only 1 server 
> side resource is a problem.  A client may be interested in many event 
> sources from a server, but each might only exist (or be of interest) for 
> a short period of time.

Then the author really should just combine the event sources into one (or 
use the EventSource feature, which is probably more appropriate for this 
use case anyway). I certainly don't think we should be optimising this 
protocol for brief sessions, that would just encourage people to use it 
for that purpose. It performs much better with long-lived sessions.


> Sure it is possible to create an aggregating resource to avoid having to 
> have multiple short lived connections to each real resource as it comes 
> and goes.... but only if all the resources are from the same 
> application/framework/development.

Could you describe the scenario in which you imagine an application 
needing multiple two-way communication channels one after the other, each 
for short periods of time, each with a different server-side development 
team? I'm not really seeing the use case here.


> >> But even if the frameworks implemented to same wire protocol for 
> >> multiplexing, they would not be able to:
> >>
> >>   + share connections between frameworks
> > 
> > Even with multiplexing we wouldn't be able to share connections 
> > between server-side frameworks -- why would someone use two 
> > client-side frameworks but the same server-side framework?
> 
> Because multiplexing should be built into the transport and will not 
> rely on a server side framework.

You are assuming monolithic servers like Apache, with multiple frameworks 
plugged into those servers. I'm imagining 100-line perl scripts. While we 
have such differing goals, I don't think we can come to an agreement on 
this. I want the protocol to be so simple that the frameworks are 
unnecessary; that if they are used, they would be the ones implementing 
the entire protocol on the server-side. In this world, there is no server 
to handle the multiplexing across multiple frameworks.


> Making multiplexing a transport concern means that applications and 
> frameworks do not need to consider connection efficiency when designing 
> their event streams.

If the channels are multiplexed, then we're assuming that the server-side 
is an "aggregating resource" as you put it. If it's possible to use an 
aggregating resource with a multiplexed connection, then why would it not 
be possible to do it with a Web Socket connection? I don't understand.


> >> It is short sighted to build such limitations into a once-in-a-decade 
> >> chance to upgrade the protocols we use on the web.
> > 
> > This is not a once-in-a-decade chance.
> 
> I hope you a right.  But still no reason to not try to get it right as 
> possible in the next iteration.

Sure, so long as we don't sacrifice something else for perfection (such as 
time-to-market or simplicity of implementation).


> >>> and the cost of setting up a connection therefore is insignificant 
> >>> compared to the cost of the protocol itself.
> >>
> >> There is also a cost associated with maintaining and servicing a 
> >> connection.
> > 
> > This would be the same cost associated with maintaining and servicing 
> > a channel in a multiplexed connection.
> 
> Sorry but this is just wrong.
> 
> Both approaches need the application end point for the channel
> and all its associated resources.
> 
> But only the multiple TCP/IP connection approach needs additional
> kernel space buffers, file descriptors and larger select sets etc.
> 
> The key difference is that with multiple TCP/IP connections, the server 
> has to undertake to read a windows worth of data on each of those 
> connections.  With a multiplexed solution, only a single window needs to 
> be read before back pressure is asserted and the flow of additional data 
> slowed to match the rate of consumption.

Servers already have to deal with multiple connections per user, for HTTP. 
I do not see how WebSocket makes things worse.

If your OS' kernel is badly optimised such that multiple connections are 
expensive, then instead of changing the protocol, fix the kernel. That way 
it'll also work better for multiple IMAP connections, multiple Jabber 
connections, multiple HTTP connections, etc.


> >> Implementing connection policies is not something that should be left 
> >> to the application developer. It is far far better that the browsers 
> >> implement connection control policies.
> > 
> > I disagree. I think it's far better that the _server_ decide the 
> > connection control policies. That's the model Web Sockets follows (as 
> > an author you'll do whatever the server expects).
> 
> How can a server influence the connections that a client opens, other 
> than to refuse excess ones.  That is pretty course grained "control"

You don't need any finer grain control. You provide a service, and you 
provide the terms of service. If an author violates those terms of service 
(e.g. opening multiple connections instead of using a shared worker), then 
you terminate his connection, so that his app fails. His users will then 
exert pressure on the author to fix his app. There is no greater pressure.


> >> But multiplexing can be much much simpler.  At it simplest, it just 
> >> needs a channel id in each frame and the channel creation can be 
> >> automatic.
> > 
> > Multiplexing at the per-path level would be of extremely limited use, 
> > IMHO. If there really are multiple widgets talking back to the same 
> > _server_, they certainly won't be talking back to the same _path_.
> 
> If by path, you mean server side resource or URI, then I'm definitely 
> saying that we should be able to multiplex multiple paths over the same 
> TCP/IP connection.

That would be incompatible with the goal of sharing the port with an HTTP 
server, since that requires the path name to be given up front.


> HTTP is not limited to get the same URI over the same connection, so why 
> should websocket or similar?

I assume it is a given that you would want a protocol to have the property 
that connecting with path A, then opening a channel for path B, should 
result in a connection with the same internal state as connecting with 
path B, then opening a channel for path A.

Given the HTTP Upgrade mechanism whereby an HTTP server can have a 
WebSocket script assigned to each path, you can end up in a situation 
where connecting to A and connecting to B establish connections with 
different server-side scripts.

Then, opening the other channel would not have the desired effect, as the 
HTTP process wouldn't be involved anymore.



> why must routing of messages between client side components and server 
> side components be tied to a TCP/IP connection.  The path is identified 
> by a URL and neither the client nor server should care if a dedicated or 
> shared TCP/IP connection is used.

The entire purpose of Web Socket is to provide a TCP connection to 
JavaScript. That's the goal.


> >>   + share connections with code written directly to the websocket API.
> > 
> > That's basically just another framework.
> 
> except that it is one that you into which cannot easily insert 
> additional layered protocols.  Let's say RFC66666 comes out which is the 
> universally agreed best way to multiplex messages on top of your 
> proposed websocket protocol. How are you going to get an implementation 
> of that inserted into every direct usage of the websocket API?

The same way you got Web Socket use in the first place -- by writing it. 
Unless RFC66666 is more complicated than Web Sockets itself, it wouldn't 
be much of a burden.


> >>   + share connections with other iframes, tabs and/or windows.
> > 
> > This seems far too infrequent an occurrance to really optimise for.
> 
> Hello????  Do you ever use a browser????  Are you telling me you have 
> never opened two tabs/windows to the same website either accidentally or 
> on purpose???

For sites that want to support this use case, we have shared workers.


> One of the keen users of this technology that I have encountered is 
> traders, who habitually have 3 huge screens on their desks with umpteen 
> windows to their trading applications, all with slightly different view.

Sure, and such systems would use shared workers. There's far more state 
that they'll want to share here than just the TCP connection -- common 
client-side database backends, common UI state, etc.


> >>   + implement a strong origin policy for security
> > 
> > I don't understand what situation would lead to multiple channels 
> > having different origins but talking to the same server with the same 
> > authentication cookies and the same path.
> 
> It is entirely plausible that a service might publish events, some of 
> which are only for code from the same origin and others are either for 
> code from any origin or from a specific set of origins.

Given the sensitivity of this kind of thing, I would feel _very_ 
uncomfortable relying on authors getting the server-side of this right, 
and even less comfortable relying on proxy implementings getting the proxy 
side of this right. I'd much rather have different connections for each 
origin, so that we can rely on the user agent to get this right. There are 
far fewer of them and they get more QA.

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

From martin.tyler@boo.org  Sat Oct 17 01:54:33 2009
Return-Path: <martin.tyler@boo.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 C8DF73A6935 for <hybi@core3.amsl.com>; Sat, 17 Oct 2009 01:54:33 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.976
X-Spam-Level: 
X-Spam-Status: No, score=-1.976 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001]
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 eOTwIU5bPI8Y for <hybi@core3.amsl.com>; Sat, 17 Oct 2009 01:54:33 -0700 (PDT)
Received: from mail-yx0-f192.google.com (mail-yx0-f192.google.com [209.85.210.192]) by core3.amsl.com (Postfix) with ESMTP id A5D733A6862 for <hybi@ietf.org>; Sat, 17 Oct 2009 01:54:32 -0700 (PDT)
Received: by yxe30 with SMTP id 30so3577858yxe.29 for <hybi@ietf.org>; Sat, 17 Oct 2009 01:54:35 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.101.170.11 with SMTP id x11mr2845888ano.103.1255769674907;  Sat, 17 Oct 2009 01:54:34 -0700 (PDT)
In-Reply-To: <Pine.LNX.4.62.0910170203460.9145@hixie.dreamhostps.com>
References: <4ACE50A2.5070404@ericsson.com> <3a880e2c0910081600v3607665dp193f6df499706810@mail.gmail.com> <4ACF4055.6080302@ericsson.com> <Pine.LNX.4.62.0910092116010.21884@hixie.dreamhostps.com> <4AD2E353.8070609@webtide.com> <4AD2F43D.6030202@ninebynine.org> <4AD39A64.4080405@webtide.com> <Pine.LNX.4.62.0910132335390.25383@hixie.dreamhostps.com> <4AD53DCA.6050304@webtide.com> <Pine.LNX.4.62.0910170203460.9145@hixie.dreamhostps.com>
Date: Sat, 17 Oct 2009 09:54:34 +0100
Message-ID: <44abafb90910170154l22bd0892p2ba34a295b0c563d@mail.gmail.com>
From: Martin Tyler <martin.tyler@boo.org>
To: Ian Hickson <ian@hixie.ch>
Content-Type: multipart/alternative; boundary=001636c92b0164813104761da902
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] Multiplexing in WebSocket (Was: HyBi Design Space)
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: Sat, 17 Oct 2009 08:54:33 -0000

--001636c92b0164813104761da902
Content-Type: text/plain; charset=ISO-8859-1

On Sat, Oct 17, 2009 at 3:34 AM, Ian Hickson <ian@hixie.ch> wrote:

> You are assuming monolithic servers like Apache, with multiple frameworks
> plugged into those servers. I'm imagining 100-line perl scripts. While we
> have such differing goals, I don't think we can come to an agreement on
> this. I want the protocol to be so simple that the frameworks are
> unnecessary; that if they are used, they would be the ones implementing
> the entire protocol on the server-side. In this world, there is no server
> to handle the multiplexing across multiple frameworks.
>
>
>
Could you explain why you are 'imagining' this? It's not how things are done
now, so why do you think server side development is going to suddenly
totally change just because WebSocket is available?

Are these multiple 100 line scripts all going to be separate processes
listening on separate ports on the same server? This just doesn't sound
likely at all.


I'm imagining server side APIs that wrap this up for you, handling the
multiplexing if we go down Gregs route, but even if not you still want
something to handle the protocol for you. It would be nice if there could be
a single server side API, but that is unlikely due to the number of server
side technologies and frameworks - but something fairly consistent could be
developed.

I really don't get this 11 year olds writing perl scripts idea - have you
explained the reasons, use cases, benefits etc of this?

--001636c92b0164813104761da902
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<br><div class=3D"gmail_quote">On Sat, Oct 17, 2009 at 3:34 AM, Ian Hickson=
 <span dir=3D"ltr">&lt;<a href=3D"mailto:ian@hixie.ch">ian@hixie.ch</a>&gt;=
</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"border-left: 1=
px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"=
>
You are assuming monolithic servers like Apache, with multiple frameworks<b=
r>
plugged into those servers. I&#39;m imagining 100-line perl scripts. While =
we<br>
have such differing goals, I don&#39;t think we can come to an agreement on=
<br>
this. I want the protocol to be so simple that the frameworks are<br>
unnecessary; that if they are used, they would be the ones implementing<br>
the entire protocol on the server-side. In this world, there is no server<b=
r>
to handle the multiplexing across multiple frameworks.<br>
<div class=3D"im"><br>
<br></div></blockquote><div><br>Could you explain why you are &#39;imaginin=
g&#39; this? It&#39;s not how things are done now, so why do you think serv=
er side development is going to suddenly totally change just because WebSoc=
ket is available?<br>
<br>Are these multiple 100 line scripts all going to be separate processes =
listening on separate ports on the same server? This just doesn&#39;t sound=
 likely at all.<br><br><br>I&#39;m imagining server side APIs that wrap thi=
s up for you, handling the multiplexing if we go down Gregs route, but even=
 if not you still want something to handle the protocol for you. It would b=
e nice if there could be a single server side API, but that is unlikely due=
 to the number of server side technologies and frameworks - but something f=
airly consistent could be developed.<br>
<br>I really don&#39;t get this 11 year olds writing perl scripts idea - ha=
ve you explained the reasons, use cases, benefits etc of this?<br></div></d=
iv>

--001636c92b0164813104761da902--

From ian@hixie.ch  Sat Oct 17 02:25:32 2009
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 E96ED3A659B for <hybi@core3.amsl.com>; Sat, 17 Oct 2009 02:25:32 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.537
X-Spam-Level: 
X-Spam-Status: No, score=-2.537 tagged_above=-999 required=5 tests=[AWL=0.062,  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 2zmG+pi7koYS for <hybi@core3.amsl.com>; Sat, 17 Oct 2009 02:25:32 -0700 (PDT)
Received: from looneymail-a1.g.dreamhost.com (caibbdcaaaaf.dreamhost.com [208.113.200.5]) by core3.amsl.com (Postfix) with ESMTP id 3A06D3A67E9 for <hybi@ietf.org>; Sat, 17 Oct 2009 02:25:32 -0700 (PDT)
Received: from hixie.dreamhostps.com (hixie.dreamhost.com [208.113.210.27]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by looneymail-a1.g.dreamhost.com (Postfix) with ESMTP id 0575515D580; Sat, 17 Oct 2009 02:25:36 -0700 (PDT)
Date: Sat, 17 Oct 2009 09:37:40 +0000 (UTC)
From: Ian Hickson <ian@hixie.ch>
To: Julian Reschke <julian.reschke@gmx.de>
In-Reply-To: <4AD57A41.9070503@gmx.de>
Message-ID: <Pine.LNX.4.62.0910170936520.9145@hixie.dreamhostps.com>
References: <4ACE50A2.5070404@ericsson.com> <3a880e2c0910081600v3607665dp193f6df499706810@mail.gmail.com> <4ACF4055.6080302@ericsson.com> <Pine.LNX.4.62.0910092116010.21884@hixie.dreamhostps.com> <4AD05971.7010001@gmx.de> <Pine.LNX.4.62.0910132332320.25383@hixie.dreamhostps.com> <4AD57A41.9070503@gmx.de>
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" <hybi@ietf.org>
Subject: Re: [hybi] Multiplexing in WebSocket (Was:  HyBi Design Space)
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: Sat, 17 Oct 2009 09:25:33 -0000

On Wed, 14 Oct 2009, Julian Reschke wrote:
> 
> So, for clarity, it would probably be good to state in the draft that 
> this question was considered not to be an issue.

I don't think it's not an issue. It's an issue like many others. I'm not 
going to start listing all the things that were considered in the design 
of the protocol, that'd just be a massive list of things.

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

From julian.reschke@gmx.de  Sat Oct 17 02:39:02 2009
Return-Path: <julian.reschke@gmx.de>
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 227703A686D for <hybi@core3.amsl.com>; Sat, 17 Oct 2009 02:39:02 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.53
X-Spam-Level: 
X-Spam-Status: No, score=-3.53 tagged_above=-999 required=5 tests=[AWL=-0.931,  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 spPQ+P8dTuCV for <hybi@core3.amsl.com>; Sat, 17 Oct 2009 02:39:01 -0700 (PDT)
Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by core3.amsl.com (Postfix) with SMTP id E99623A659C for <hybi@ietf.org>; Sat, 17 Oct 2009 02:39:00 -0700 (PDT)
Received: (qmail invoked by alias); 17 Oct 2009 09:39:02 -0000
Received: from p508FF6DD.dip.t-dialin.net (EHLO [192.168.178.33]) [80.143.246.221] by mail.gmx.net (mp007) with SMTP; 17 Oct 2009 11:39:02 +0200
X-Authenticated: #1915285
X-Provags-ID: V01U2FsdGVkX1/7Re03jSD7AZxhuSAIDtwpE4RBkK3EEhAwWM7wPW mgNXJr7Ub+NlUI
Message-ID: <4AD990AA.6030306@gmx.de>
Date: Sat, 17 Oct 2009 11:38:50 +0200
From: Julian Reschke <julian.reschke@gmx.de>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.0.4) Gecko/20060516 Thunderbird/1.5.0.4 Mnenhy/0.7.4.666
MIME-Version: 1.0
To: Ian Hickson <ian@hixie.ch>
References: <4ACE50A2.5070404@ericsson.com> <3a880e2c0910081600v3607665dp193f6df499706810@mail.gmail.com> <4ACF4055.6080302@ericsson.com> <Pine.LNX.4.62.0910092116010.21884@hixie.dreamhostps.com> <4AD05971.7010001@gmx.de> <Pine.LNX.4.62.0910132332320.25383@hixie.dreamhostps.com> <4AD57A41.9070503@gmx.de> <Pine.LNX.4.62.0910170936520.9145@hixie.dreamhostps.com>
In-Reply-To: <Pine.LNX.4.62.0910170936520.9145@hixie.dreamhostps.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Y-GMX-Trusted: 0
X-FuHaFi: 0.68
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] Multiplexing in WebSocket (Was:  HyBi Design Space)
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: Sat, 17 Oct 2009 09:39:02 -0000

Ian Hickson wrote:
> On Wed, 14 Oct 2009, Julian Reschke wrote:
>> So, for clarity, it would probably be good to state in the draft that 
>> this question was considered not to be an issue.
> 
> I don't think it's not an issue. It's an issue like many others. I'm not 
> going to start listing all the things that were considered in the design 
> of the protocol, that'd just be a massive list of things.

Well, earlier on you said:

> FWIW, so far I've concluded (based on long discussions with a number of 
> developers and implementors) that multiplexing would actually not be that 
> great. It could probably only be used for multiplexing to a single 
> websocket path, without making the handshake highly asymmetric or breaking 
> the HTTP compatibility. If it's intended for per-client multiplexing, it 
> can easily be implemented at the application layer, where a much better 
> job can be done that could be done at the protocol layer. If it's intended 
> for multiclient multiplexing, then it's only helping server load, not 
> client performance, and server load isn't especially an issue here.

So it appears that you aware of that drawback, but chose not to address 
this. I still think it would be helpful to document that.

BR, Julian


From gregw@webtide.com  Sat Oct 17 19:39:24 2009
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 8C5BA3A6765 for <hybi@core3.amsl.com>; Sat, 17 Oct 2009 19:39:24 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 1.541
X-Spam-Level: *
X-Spam-Status: No, score=1.541 tagged_above=-999 required=5 tests=[BAYES_50=0.001, SARE_RMML_Stock4=1.54]
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 A4jTb4PhKMYp for <hybi@core3.amsl.com>; Sat, 17 Oct 2009 19:39:23 -0700 (PDT)
Received: from mail-ew0-f208.google.com (mail-ew0-f208.google.com [209.85.219.208]) by core3.amsl.com (Postfix) with ESMTP id 0FB763A6407 for <hybi@ietf.org>; Sat, 17 Oct 2009 19:39:22 -0700 (PDT)
Received: by ewy4 with SMTP id 4so515561ewy.37 for <hybi@ietf.org>; Sat, 17 Oct 2009 19:39:25 -0700 (PDT)
Received: by 10.211.155.20 with SMTP id h20mr3733368ebo.30.1255833565059; Sat, 17 Oct 2009 19:39:25 -0700 (PDT)
Received: from ?10.71.0.61? (216.112.110.2.ptr.us.xo.net [216.112.110.2]) by mx.google.com with ESMTPS id 10sm1341386eyd.42.2009.10.17.19.39.19 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 17 Oct 2009 19:39:22 -0700 (PDT)
Message-ID: <4ADA7FD4.9010406@webtide.com>
Date: Sat, 17 Oct 2009 19:39:16 -0700
From: Greg Wilkins <gregw@webtide.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090817)
MIME-Version: 1.0
To: Ian Hickson <ian@hixie.ch>
References: <4ACE50A2.5070404@ericsson.com> <3a880e2c0910081600v3607665dp193f6df499706810@mail.gmail.com> <4ACF4055.6080302@ericsson.com> <Pine.LNX.4.62.0910092116010.21884@hixie.dreamhostps.com> <4AD2E353.8070609@webtide.com> <4AD2F43D.6030202@ninebynine.org> <4AD39A64.4080405@webtide.com> <Pine.LNX.4.62.0910132335390.25383@hixie.dreamhostps.com> <4AD53DCA.6050304@webtide.com> <Pine.LNX.4.62.0910170203460.9145@hixie.dreamhostps.com>
In-Reply-To: <Pine.LNX.4.62.0910170203460.9145@hixie.dreamhostps.com>
X-Enigmail-Version: 0.95.7
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] Multiplexing in WebSocket (Was:  HyBi Design Space)
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 Oct 2009 02:39:24 -0000

Ian Hickson wrote:


> Then the author really should just combine the event sources into one (or 
> use the EventSource feature

But there might not be 1 author!   Mash-ups and portals and such things
will combine the work of many authors unknowingly onto the same page.
We want to encourage reuse of components and not require every webapp
to be rewritten from scratch with a shared messaging infrastructure.


> Could you describe the scenario in which you imagine an application 
> needing multiple two-way communication channels one after the other, each 
> for short periods of time, each with a different server-side development 
> team? I'm not really seeing the use case here.


Consider the google home page.  This can be customized with lots
of widgets from third parties.

Imagine the same sort of site, but fronting an organization with
lots of real time data. A stock trading site for example.

They may allow a user to populate their pages with widgets supplied
by third parties that may perform all sorts of trading analysis,
monitoring and trading.   I widget may establish "connections" to:

    + receive live price information
    + monitor the state of orders placed
    + interact with others in a process to create a
      complex instrument, swap etc.

These "connections" may be short or long lived (who
knows how long an order might take to complete).

For scalability of the service, you don't want every
widget to be given it's own TCP/IP connection.  Even
if you can handle the load, it is an unfair allocation
of server resources to give more to those with more
widgets on their desktops

These widgets should all multiplex onto the same
TCP/IP connection per user.


Of course the organization could provide a js framework that
did that multiplexing - but widget developers would be highly
unlikely to use it.

If they use websocket directly, then the code they write can
access the service both in the portal site and from other sites
that don't have the framework. Plus if they don't use the framework,
they get their own dedicated TCP/IP connection and they will get
some latency/performance benefits of other widgets that are sharing
a connection.  Of course this creates an arms race as it only
works if everbody else is sharing. Soon all widgets will be
using their own dedicated connection, then each widget would
start opening multiple dedicated connections (eg 1 per share),
trying to get more and more resources allocated.

Developers and resources are like 3 years olds and toys!
There is no such thing as optional sharing!



> You are assuming monolithic servers like Apache, with multiple frameworks 
> plugged into those servers. I'm imagining 100-line perl scripts. While we 
> have such differing goals, 
> ...
> In this world, there is no server
> to handle the multiplexing across multiple frameworks.


I really do not think you should be using your influence over the
websocket protocol to drive some agenda to revolutionize
server side development.

We cannot design a protocol that is only suitable for some
imagined future scenario.

Trying to enforce this future by making future protocols badly
support monolithic servers strikes me as some Orwellian mind
control exercise!



> If the channels are multiplexed, then we're assuming that the server-side 
> is an "aggregating resource" as you put it. If it's possible to use an 
> aggregating resource with a multiplexed connection, then why would it not 
> be possible to do it with a Web Socket connection? I don't understand.

Because in the real world, we have one set of developers writing
servers and user-agents and another set of developers writing
applications that run on them.

The infrastructure developers impose all sorts of restrictions on
the application developers:

  + sharing CPU and memory with other users/processes.
  + sharing connection and network infrastructure
  + enforcing origin policies, security sand boxes etc.
  etc. etc.


In your brave new world,  there are no infrastructure developers,
only application developers.

In this world, the application developers will throw off the
infrastructure shackles imposed on them, because indeed a
dedicated TCP/IP connections is better than a shared one.
Cross domain development is so much easier without security
models etc. Better let them run as root as well, because
then they can open any port and up their priority to
stop sharing CPU.

There are really really good reasons why infrastructure
is developed for application developers.    Infrastructure
is not only to enable applications, but it is to constrain
them and to force them to share resources fairly and to
respect security models.

But there is absolutely no way that any responsible organisation
is going to deploy a system where sockets opened by applications
programmers are exposed directly to the internet and run
with ad-hoc protocol implementations.


> Servers already have to deal with multiple connections per user, for HTTP. 
> I do not see how WebSocket makes things worse.

Multiple connections are allowed for HTTP as a necessary evil to get
around the intrinsic latency of the request/response protocol that
does not support message fragmentation or out of order responses.

Even then HTTP is meant to restricted to 2 connections.
Stupidly Recent user-agents have engaged in exactly the sort of
arms race I have describe above... lets have 8 connections and we
are faster than the other guys... doh! they have 8 too, ok lets
have 16.... doh! 32!  ... doh!


> If your OS' kernel is badly optimised such that multiple connections are 
> expensive, then instead of changing the protocol, fix the kernel. 

it's not bad optimization.   If you have 1 connection, you need 1 set
of buffers and when it is full you give back pressure on that
TCP connection.

If you have 10 connections, you need 10 sets of buffers and you have to
wait until you have received 10x the data from one user before you
apply back pressure.

The optimization you are looking for is to make that user share 1
connection instead of using 10!   There is no other way to optimize
away the buffer requirements!




> I assume it is a given that you would want a protocol to have the property 
> that connecting with path A, then opening a channel for path B, should 
> result in a connection with the same internal state as connecting with 
> path B, then opening a channel for path A.
> 
> Given the HTTP Upgrade mechanism whereby an HTTP server can have a 
> WebSocket script assigned to each path, you can end up in a situation 
> where connecting to A and connecting to B establish connections with 
> different server-side scripts.

How so.

I'm advocating abstracting developers away from connections.
Handler A will send/receive messages for path A
Handler B will send/receive messages for path B

Neither handler has any need to know if a shared connection was
used or not.


> The entire purpose of Web Socket is to provide a TCP connection to 
> JavaScript. That's the goal.

Really?  If it was, then why not just expose the real socket API?

Surely the aim is to establish bidirectional communication with the
server.  Whose to say that TCP/IP will be the favoured transport for
the entire life span of the applications using the websocket API?


In any case,  if the IETF is to endorse a new web protocol, I believe
that their charter is to consider more than just the needs of
javascript developers.


regards
















From gregw@webtide.com  Sat Oct 17 21:58:05 2009
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 300133A680B for <hybi@core3.amsl.com>; Sat, 17 Oct 2009 21:58:05 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 1.02
X-Spam-Level: *
X-Spam-Status: No, score=1.02 tagged_above=-999 required=5 tests=[AWL=0.520, BAYES_20=-0.74, SARE_LWSHORTT=1.24]
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 iytnyfXSeJhi for <hybi@core3.amsl.com>; Sat, 17 Oct 2009 21:58:04 -0700 (PDT)
Received: from mail-yx0-f192.google.com (mail-yx0-f192.google.com [209.85.210.192]) by core3.amsl.com (Postfix) with ESMTP id 6E8A33A67AB for <hybi@ietf.org>; Sat, 17 Oct 2009 21:58:04 -0700 (PDT)
Received: by yxe30 with SMTP id 30so4407607yxe.29 for <hybi@ietf.org>; Sat, 17 Oct 2009 21:58:06 -0700 (PDT)
Received: by 10.150.68.25 with SMTP id q25mr5542800yba.256.1255841886329; Sat, 17 Oct 2009 21:58:06 -0700 (PDT)
Received: from ?10.71.0.61? (216.112.110.2.ptr.us.xo.net [216.112.110.2]) by mx.google.com with ESMTPS id 21sm1873747ywh.9.2009.10.17.21.58.04 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 17 Oct 2009 21:58:05 -0700 (PDT)
Message-ID: <4ADAA05A.4050301@webtide.com>
Date: Sat, 17 Oct 2009 21:58:02 -0700
From: Greg Wilkins <gregw@webtide.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090817)
MIME-Version: 1.0
To: Salvatore Loreto <salvatore.loreto@ericsson.com>
References: <4AD89C07.8060500@ericsson.com>
In-Reply-To: <4AD89C07.8060500@ericsson.com>
X-Enigmail-Version: 0.95.7
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] short term requirements
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 Oct 2009 04:58:05 -0000

Salvatore Loreto wrote:
> This is a call to collect requirements that you think a Short Term
> solution should meet.
>
> Req.   possibility for the intermediaries to access and modify it
> Req.   it must be usable from multiple (existing) browser
> Req.   it must be easily to use and accessible from different protocols
> (e.g. Bayeux, Bosh etc)
> Req.   it must be easy to deploy in the existing infrastructure
> Req.   it has really improve the bi-directional communication (not just
> push from a server to a client)
> Req.   it has not introduce any security hole
> 
> please provide comments, opinions, suggestion.


I would like to add

Req.   That there must be a standard way to indicate that a HTTP request is
       being used for bidirectional purposes, preferably distinguishing
       streaming and long polling uses.

This will allow HTTP implementations to avoid pitfalls such as pipelining behind
long polls, and to warn if limited thread pools are exhausted by long held requests.


I also think there needs to be something about improving cross domain, or
RBPs for using optional XD mechanisms and well used hacks.


regards

From jamie@shareable.org  Sat Oct 17 21:59:40 2009
Return-Path: <jamie@shareable.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 734F23A67E7 for <hybi@core3.amsl.com>; Sat, 17 Oct 2009 21:59:40 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.379
X-Spam-Level: 
X-Spam-Status: No, score=-0.379 tagged_above=-999 required=5 tests=[AWL=-1.620, BAYES_50=0.001, SARE_LWSHORTT=1.24]
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 BbWEGyhvnCCm for <hybi@core3.amsl.com>; Sat, 17 Oct 2009 21:59:39 -0700 (PDT)
Received: from mail2.shareable.org (mail2.shareable.org [80.68.89.115]) by core3.amsl.com (Postfix) with ESMTP id 9B2FC3A67AB for <hybi@ietf.org>; Sat, 17 Oct 2009 21:59:39 -0700 (PDT)
Received: from jamie by mail2.shareable.org with local (Exim 4.63) (envelope-from <jamie@shareable.org>) id 1MzNrr-0004kB-Lg; Sun, 18 Oct 2009 05:59:43 +0100
Date: Sun, 18 Oct 2009 05:59:43 +0100
From: Jamie Lokier <jamie@shareable.org>
To: Salvatore Loreto <salvatore.loreto@ericsson.com>
Message-ID: <20091018045943.GK15656@shareable.org>
References: <4AD89C07.8060500@ericsson.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4AD89C07.8060500@ericsson.com>
User-Agent: Mutt/1.5.13 (2006-08-11)
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] short term requirements
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 Oct 2009 04:59:40 -0000

Salvatore Loreto wrote:
> Req.   it has really improve the bi-directional communication (not just 
> push from a server to a client)

Among the talk about multiplexing and/or spawning parallel connection,
one valuable thing that's not mentioned enough: learn from the
mistakes of HTTP pipelining.  Don't repeat them.  There's no point in
protocol features that can't be used because of design flaws.

Specifically, real clients *can't* use pipelining in a lot of
situations because it's either unsafe (can't be used for POST, or
anything that's not idempotent; messy idle timeout uncertainties;
messy behaviour on network errors), or can make performance a lot
worse (fast response delayed by a slow one; second response dropped
because first response had an error during generation so connection
had to be closed), or is just plain buggy (due to being added to the
HTTP spec and tested too long after servers existed which couldn't
handle it).

All the protocols under consideration resemble HTTP pipelining in some
respects.  WebSockets has all of those problems for some applications,
and requires the application layer to solve them.  Imho, expect mixed
results depending on application developer experience.  BWTP attempts
to solve them; I haven't looked into how well it succeeds.

A protocol which gives the benefits of HTTP pipelining for
client-originated requests without the known problems would be an
improvment, even for applications which aren't pushing from the server.

Notable, AJAX frameworks could use such a protocol in a way that is
invisible to users of those frameworks, and AJAX frameworks are
extremely popular in current web apps.

I don't know if that's a short term requirement but it's worth
examining.  It might turn out to be the most widespread use.

-- Jamie

From jamie@shareable.org  Sat Oct 17 22:03:06 2009
Return-Path: <jamie@shareable.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 0690D3A680B for <hybi@core3.amsl.com>; Sat, 17 Oct 2009 22:03:06 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.338
X-Spam-Level: 
X-Spam-Status: No, score=0.338 tagged_above=-999 required=5 tests=[AWL=-0.717,  BAYES_40=-0.185, SARE_LWSHORTT=1.24]
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 4ZPlOuh2qPxR for <hybi@core3.amsl.com>; Sat, 17 Oct 2009 22:03:05 -0700 (PDT)
Received: from mail2.shareable.org (mail2.shareable.org [80.68.89.115]) by core3.amsl.com (Postfix) with ESMTP id 23CF63A67E7 for <hybi@ietf.org>; Sat, 17 Oct 2009 22:03:05 -0700 (PDT)
Received: from jamie by mail2.shareable.org with local (Exim 4.63) (envelope-from <jamie@shareable.org>) id 1MzNv9-0004l0-Ju; Sun, 18 Oct 2009 06:03:07 +0100
Date: Sun, 18 Oct 2009 06:03:07 +0100
From: Jamie Lokier <jamie@shareable.org>
To: Greg Wilkins <gregw@webtide.com>
Message-ID: <20091018050307.GL15656@shareable.org>
References: <4AD89C07.8060500@ericsson.com> <4ADAA05A.4050301@webtide.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4ADAA05A.4050301@webtide.com>
User-Agent: Mutt/1.5.13 (2006-08-11)
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] short term requirements
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 Oct 2009 05:03:06 -0000

Greg Wilkins wrote:
> Salvatore Loreto wrote:
> > This is a call to collect requirements that you think a Short Term
> > solution should meet.
> >
> > Req.   possibility for the intermediaries to access and modify it
> > Req.   it must be usable from multiple (existing) browser
> > Req.   it must be easily to use and accessible from different protocols
> > (e.g. Bayeux, Bosh etc)
> > Req.   it must be easy to deploy in the existing infrastructure
> > Req.   it has really improve the bi-directional communication (not just
> > push from a server to a client)
> > Req.   it has not introduce any security hole
> > 
> > please provide comments, opinions, suggestion.
> 
> 
> I would like to add
> 
> Req.   That there must be a standard way to indicate that a HTTP request is
>        being used for bidirectional purposes, preferably distinguishing
>        streaming and long polling uses.
> 
> This will allow HTTP implementations to avoid pitfalls such as
> pipelining behind long polls, and to warn if limited thread pools
> are exhausted by long held requests.

I agree with Greg, and would like to add that I'm not sure if
"Connection: close" is adequate for that purpose.  It's not as
descriptive, but is it (a) enough for all existing proxies and servers
to behave well; (b) is something more specific to streaming and long
polling useful?

-- Jamie

From wfernandom2004@gmail.com  Sun Oct 18 12:39:53 2009
Return-Path: <wfernandom2004@gmail.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 DF2DF3A67B0 for <hybi@core3.amsl.com>; Sun, 18 Oct 2009 12:39:53 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 4.665
X-Spam-Level: ****
X-Spam-Status: No, score=4.665 tagged_above=-999 required=5 tests=[BAYES_50=0.001, HTML_MESSAGE=0.001, MIME_HTML_ONLY=1.457, SARE_RECV_SPAM_DOMN02=1.666, SARE_RMML_Stock4=1.54]
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 93x3nr7YG5TO for <hybi@core3.amsl.com>; Sun, 18 Oct 2009 12:39:52 -0700 (PDT)
Received: from mail-qy0-f191.google.com (mail-qy0-f191.google.com [209.85.221.191]) by core3.amsl.com (Postfix) with ESMTP id 5B4673A67F2 for <hybi@ietf.org>; Sun, 18 Oct 2009 12:39:52 -0700 (PDT)
Received: by qyk29 with SMTP id 29so2737061qyk.32 for <hybi@ietf.org>; Sun, 18 Oct 2009 12:39:53 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id :disposition-notification-to:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=ZN2b75a/mMwVKrHIjPI3tOz/D8dDhnYln1QzKwK/W/U=; b=TJkS72oLvbo4S63PKDbbS5ETITj1cgCYhHSQsKUz3G+TZldOzMtp7BwAvf7a2ic6Dp NqA4gbeIOXMIP459M+4l8Rq3udIMUokKz8KB/3X7aSMzJ1qkFdS4348ChwI6oSzTFjah TLKjklVd5wdtBRLjRFNzfj0eDLx5H4u5H1Omw=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:disposition-notification-to:date:from:user-agent :mime-version:to:subject:references:in-reply-to:content-type :content-transfer-encoding; b=DYgkEizmiis6+z02L5hToC6aFnHB3eY1OmxXhTo1hePOJeIZqN2bqpSPt6rK0OqErV ffZwavDurC2PN7ktaeqGdTTYnD+KvIl32rSdoDlCdq6Fqy0waJITn0EoZZhlc5JoOx6y BJsWCgB7Dw+qJoUNpWwclmag5ugvcRz7TpL20=
Received: by 10.224.4.131 with SMTP id 3mr2219458qar.141.1255894793507; Sun, 18 Oct 2009 12:39:53 -0700 (PDT)
Received: from ?192.168.1.101? (201-92-95-217.dsl.telesp.net.br [201.92.95.217]) by mx.google.com with ESMTPS id 23sm2914503qyk.11.2009.10.18.12.39.50 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 18 Oct 2009 12:39:52 -0700 (PDT)
Message-ID: <4ADB6F0B.4000004@gmail.com>
Date: Sun, 18 Oct 2009 17:39:55 -0200
From: Wellington Fernando de Macedo <wfernandom2004@gmail.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090817)
MIME-Version: 1.0
To: Ian Hickson <ian@hixie.ch>, hybi@ietf.org
References: <4ACE50A2.5070404@ericsson.com>	<3a880e2c0910081600v3607665dp193f6df499706810@mail.gmail.com>	<4ACF4055.6080302@ericsson.com>	<Pine.LNX.4.62.0910092116010.21884@hixie.dreamhostps.com>	<4AD2E353.8070609@webtide.com> <4AD2F43D.6030202@ninebynine.org>	<4AD39A64.4080405@webtide.com>	<Pine.LNX.4.62.0910132335390.25383@hixie.dreamhostps.com>	<4AD53DCA.6050304@webtide.com>	<Pine.LNX.4.62.0910170203460.9145@hixie.dreamhostps.com> <4ADA7FD4.9010406@webtide.com>
In-Reply-To: <4ADA7FD4.9010406@webtide.com>
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Subject: Re: [hybi] Multiplexing in WebSocket (Was:  HyBi Design Space)
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 Oct 2009 19:39:54 -0000

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="-1"><big>Hi,<br>
<br>
I would like to make a contribution to this discussion. I think the ws
protocol is good as it is right now. But I think multiplexing is a
valuable feature. I don't like the BWTP proposal because I think it is
expensive. Considering the current protocol, I suggest we introduce
"channel handshakes", using another frame type. Each WebSocket object
instance would be associated with one channel. I don't intend to make
another proposal, so I will illustrate what I'm thinking using an
example and I hope it can be useful someway :)<br>
<br>
1. Suppose there is already a established connection:<br>
<br>
User agent<br>
-------------<br>
GET /ws/script1.php HTTP/1.1<br>
Upgrade: WebSocket<br>
Connection: Upgrade<br>
Host: <a class="moz-txt-link-abbreviated" href="http://www.myhost.com">www.myhost.com</a><br>
Origin: <a class="moz-txt-link-freetext" href="file://">file://</a><br>
CR LF<br>
<br>
Server<br>
-------------<br>
HTTP/1.1 101 Web Socket Protocol Handshake<br>
Upgrade: WebSocket<br>
Connection: Upgrade<br>
websocket-origin: <a class="moz-txt-link-freetext" href="file://">file://</a><br>
websocket-location: ws://www.myhost.com/ws/script1.php<br>
CR LF<br>
<br>
2. A normal exchange of data.<br>
<br>
User Agent<br>
--------------<br>
0x00 ping 0xff<br>
<br>
Server<br>
--------------<br>
0x00 pong 0xff<br>
<br>
3. In the meanwhile the user agent has to open
ws://www.myhost.com/ws/script2.php. Then, using the same connection,
the user agent could use the 0x01 frame type as a way to perform the
"channel handshake". Also, the request must have a websocket-channel-id
header (containing a two bytes number value) which would identity the
channel.<br>
<br>
User Agent<br>
--------------<br>
0x01 GET /ws/script2.php HTTP/1.1<br>
Upgrade: WebSocket<br>
Connection: Upgrade<br>
Host: <a class="moz-txt-link-abbreviated" href="http://www.myhost.com">www.myhost.com</a><br>
Origin: <a class="moz-txt-link-freetext" href="file://">file://</a><br>
websocket-channel-id: 1<br>
CR LF 0xff<br>
<br>
Server<br>
-------------<br>
0x01 HTTP/1.1 101 Web Socket Protocol Handshake<br>
Upgrade: WebSocket<br>
Connection: Upgrade<br>
websocket-origin: <a class="moz-txt-link-freetext" href="file://">file://</a><br>
websocket-location: ws://www.myhost.com/ws/script2.php<br>
websocket-channel-id: 1<br>
CR LF 0xff<br>
<br>
4. Since that, both channels could exchange data using a third frame
type (0x02), followed by the channel id. The initial channel could
still use the 0x00 frame type, however. For instance, a exchange of
data on the initial channel would be:<br>
<br>
User Agent<br>
--------------<br>
0x00 ping 0xff<br>
<br>
Server<br>
--------------<br>
0x00 pong 0xff<br>
<br>
or<br>
<br>
User Agent<br>
--------------<br>
0x02 0x00 0x00 ping 0xff<br>
<br>
Server<br>
--------------<br>
0x02 0x00 0x00 pong 0xff<br>
<br>
4. And a exchange of data on the new channel:<br>
User Agent<br>
--------------<br>
0x02 0x00 0x01 ping 0xff<br>
<br>
Server<br>
--------------<br>
0x02 0x00 0x01 pong 0xff<br>
<br>
It is all.<br>
<br>
Wellington.<br>
</big><br>
</font>
<div class="moz-signature">---<br>
<b>Wellington Fernando de Macedo</b><br>
Engenharia de Computa&ccedil;&atilde;o<br>
Telefone: +55 (16) 8144.8607
</div>
<br>
<br>
Greg Wilkins escreveu:
<blockquote cite="mid:4ADA7FD4.9010406@webtide.com" type="cite">
  <pre wrap="">Ian Hickson wrote:


  </pre>
  <blockquote type="cite">
    <pre wrap="">Then the author really should just combine the event sources into one (or 
use the EventSource feature
    </pre>
  </blockquote>
  <pre wrap=""><!---->
But there might not be 1 author!   Mash-ups and portals and such things
will combine the work of many authors unknowingly onto the same page.
We want to encourage reuse of components and not require every webapp
to be rewritten from scratch with a shared messaging infrastructure.


  </pre>
  <blockquote type="cite">
    <pre wrap="">Could you describe the scenario in which you imagine an application 
needing multiple two-way communication channels one after the other, each 
for short periods of time, each with a different server-side development 
team? I'm not really seeing the use case here.
    </pre>
  </blockquote>
  <pre wrap=""><!---->

Consider the google home page.  This can be customized with lots
of widgets from third parties.

Imagine the same sort of site, but fronting an organization with
lots of real time data. A stock trading site for example.

They may allow a user to populate their pages with widgets supplied
by third parties that may perform all sorts of trading analysis,
monitoring and trading.   I widget may establish "connections" to:

    + receive live price information
    + monitor the state of orders placed
    + interact with others in a process to create a
      complex instrument, swap etc.

These "connections" may be short or long lived (who
knows how long an order might take to complete).

For scalability of the service, you don't want every
widget to be given it's own TCP/IP connection.  Even
if you can handle the load, it is an unfair allocation
of server resources to give more to those with more
widgets on their desktops

These widgets should all multiplex onto the same
TCP/IP connection per user.


Of course the organization could provide a js framework that
did that multiplexing - but widget developers would be highly
unlikely to use it.

If they use websocket directly, then the code they write can
access the service both in the portal site and from other sites
that don't have the framework. Plus if they don't use the framework,
they get their own dedicated TCP/IP connection and they will get
some latency/performance benefits of other widgets that are sharing
a connection.  Of course this creates an arms race as it only
works if everbody else is sharing. Soon all widgets will be
using their own dedicated connection, then each widget would
start opening multiple dedicated connections (eg 1 per share),
trying to get more and more resources allocated.

Developers and resources are like 3 years olds and toys!
There is no such thing as optional sharing!



  </pre>
  <blockquote type="cite">
    <pre wrap="">You are assuming monolithic servers like Apache, with multiple frameworks 
plugged into those servers. I'm imagining 100-line perl scripts. While we 
have such differing goals, 
...
In this world, there is no server
to handle the multiplexing across multiple frameworks.
    </pre>
  </blockquote>
  <pre wrap=""><!---->

I really do not think you should be using your influence over the
websocket protocol to drive some agenda to revolutionize
server side development.

We cannot design a protocol that is only suitable for some
imagined future scenario.

Trying to enforce this future by making future protocols badly
support monolithic servers strikes me as some Orwellian mind
control exercise!



  </pre>
  <blockquote type="cite">
    <pre wrap="">If the channels are multiplexed, then we're assuming that the server-side 
is an "aggregating resource" as you put it. If it's possible to use an 
aggregating resource with a multiplexed connection, then why would it not 
be possible to do it with a Web Socket connection? I don't understand.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Because in the real world, we have one set of developers writing
servers and user-agents and another set of developers writing
applications that run on them.

The infrastructure developers impose all sorts of restrictions on
the application developers:

  + sharing CPU and memory with other users/processes.
  + sharing connection and network infrastructure
  + enforcing origin policies, security sand boxes etc.
  etc. etc.


In your brave new world,  there are no infrastructure developers,
only application developers.

In this world, the application developers will throw off the
infrastructure shackles imposed on them, because indeed a
dedicated TCP/IP connections is better than a shared one.
Cross domain development is so much easier without security
models etc. Better let them run as root as well, because
then they can open any port and up their priority to
stop sharing CPU.

There are really really good reasons why infrastructure
is developed for application developers.    Infrastructure
is not only to enable applications, but it is to constrain
them and to force them to share resources fairly and to
respect security models.

But there is absolutely no way that any responsible organisation
is going to deploy a system where sockets opened by applications
programmers are exposed directly to the internet and run
with ad-hoc protocol implementations.


  </pre>
  <blockquote type="cite">
    <pre wrap="">Servers already have to deal with multiple connections per user, for HTTP. 
I do not see how WebSocket makes things worse.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Multiple connections are allowed for HTTP as a necessary evil to get
around the intrinsic latency of the request/response protocol that
does not support message fragmentation or out of order responses.

Even then HTTP is meant to restricted to 2 connections.
Stupidly Recent user-agents have engaged in exactly the sort of
arms race I have describe above... lets have 8 connections and we
are faster than the other guys... doh! they have 8 too, ok lets
have 16.... doh! 32!  ... doh!


  </pre>
  <blockquote type="cite">
    <pre wrap="">If your OS' kernel is badly optimised such that multiple connections are 
expensive, then instead of changing the protocol, fix the kernel. 
    </pre>
  </blockquote>
  <pre wrap=""><!---->
it's not bad optimization.   If you have 1 connection, you need 1 set
of buffers and when it is full you give back pressure on that
TCP connection.

If you have 10 connections, you need 10 sets of buffers and you have to
wait until you have received 10x the data from one user before you
apply back pressure.

The optimization you are looking for is to make that user share 1
connection instead of using 10!   There is no other way to optimize
away the buffer requirements!




  </pre>
  <blockquote type="cite">
    <pre wrap="">I assume it is a given that you would want a protocol to have the property 
that connecting with path A, then opening a channel for path B, should 
result in a connection with the same internal state as connecting with 
path B, then opening a channel for path A.

Given the HTTP Upgrade mechanism whereby an HTTP server can have a 
WebSocket script assigned to each path, you can end up in a situation 
where connecting to A and connecting to B establish connections with 
different server-side scripts.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
How so.

I'm advocating abstracting developers away from connections.
Handler A will send/receive messages for path A
Handler B will send/receive messages for path B

Neither handler has any need to know if a shared connection was
used or not.


  </pre>
  <blockquote type="cite">
    <pre wrap="">The entire purpose of Web Socket is to provide a TCP connection to 
JavaScript. That's the goal.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Really?  If it was, then why not just expose the real socket API?

Surely the aim is to establish bidirectional communication with the
server.  Whose to say that TCP/IP will be the favoured transport for
the entire life span of the applications using the websocket API?


In any case,  if the IETF is to endorse a new web protocol, I believe
that their charter is to consider more than just the needs of
javascript developers.


regards















_______________________________________________
hybi mailing list
<a class="moz-txt-link-abbreviated" href="mailto:hybi@ietf.org">hybi@ietf.org</a>
<a class="moz-txt-link-freetext" href="https://www.ietf.org/mailman/listinfo/hybi">https://www.ietf.org/mailman/listinfo/hybi</a>

  </pre>
</blockquote>
</body>
</html>

From salvatore.loreto@ericsson.com  Mon Oct 19 11:56:37 2009
Return-Path: <salvatore.loreto@ericsson.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 9A5913A69D1 for <hybi@core3.amsl.com>; Mon, 19 Oct 2009 11:56:37 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.402
X-Spam-Level: 
X-Spam-Status: No, score=-5.402 tagged_above=-999 required=5 tests=[AWL=0.847,  BAYES_00=-2.599, HELO_EQ_SE=0.35, RCVD_IN_DNSWL_MED=-4]
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 F4NfA5ty8NC8 for <hybi@core3.amsl.com>; Mon, 19 Oct 2009 11:56:36 -0700 (PDT)
Received: from mailgw4.ericsson.se (mailgw4.ericsson.se [193.180.251.62]) by core3.amsl.com (Postfix) with ESMTP id 4F5083A697F for <hybi@ietf.org>; Mon, 19 Oct 2009 11:56:33 -0700 (PDT)
X-AuditID: c1b4fb3e-b7bf6ae000005dda-98-4adcb6660265
Received: from esealmw126.eemea.ericsson.se (Unknown_Domain [153.88.253.125]) by mailgw4.ericsson.se (Symantec Mail Security) with SMTP id 83.61.24026.666BCDA4; Mon, 19 Oct 2009 20:56:38 +0200 (CEST)
Received: from esealmw126.eemea.ericsson.se ([153.88.254.174]) by esealmw126.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.3959);  Mon, 19 Oct 2009 20:56:38 +0200
Received: from mail.lmf.ericsson.se ([131.160.11.50]) by esealmw126.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.3959);  Mon, 19 Oct 2009 20:56:37 +0200
Received: from nomadiclab.lmf.ericsson.se (nomadiclab.lmf.ericsson.se [131.160.33.3]) by mail.lmf.ericsson.se (Postfix) with ESMTP id 34EB224D8 for <hybi@ietf.org>; Mon, 19 Oct 2009 21:56:38 +0300 (EEST)
Received: from nomadiclab.lmf.ericsson.se (localhost [127.0.0.1]) by nomadiclab.lmf.ericsson.se (Postfix) with ESMTP id EE3E321A22 for <hybi@ietf.org>; Mon, 19 Oct 2009 21:56:37 +0300 (EEST)
Received: from localhost.localdomain (localhost [127.0.0.1]) by nomadiclab.lmf.ericsson.se (Postfix) with ESMTP id 94A2721A1F for <hybi@ietf.org>; Mon, 19 Oct 2009 21:56:37 +0300 (EEST)
Message-ID: <4ADCB665.4090906@ericsson.com>
Date: Mon, 19 Oct 2009 21:56:37 +0300
From: Salvatore Loreto <salvatore.loreto@ericsson.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090825)
MIME-Version: 1.0
To: "hybi@ietf.org" <hybi@ietf.org>
References: <4ACE50A2.5070404@ericsson.com>
In-Reply-To: <4ACE50A2.5070404@ericsson.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: ClamAV using ClamSMTP
X-OriginalArrivalTime: 19 Oct 2009 18:56:38.0107 (UTC) FILETIME=[E319CAB0:01CA50ED]
X-Brightmail-Tracker: AAAAAA==
Subject: [hybi] new drat design-space-bidirectional
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 Oct 2009 18:56:37 -0000

we have just submit the "Design Space for Bidirectional protocols" draft

Abstract

   As technologies that enable bidirectional communication over HTTP
   have become more pervasive, interest has grown in (1) defining
   improved mechanisms for support of existing technologies (short-term
   solutions such as new HTTP headers) and (2) laying the foundation for
   development of new bidirectional protocols (long-term solutions such
   as WebSocket, Bidirectional Web Transfer Protocol, and Reverse HTTP).
   In order to provide context for such work, this document provides a
   first tentative map of the design space for bidirectional HTTP, with
   special attention to deployed infrastructure (e.g. web clients,
   intermediaries, firewalls, NATs, web servers) and programming
   environments.

you can find the draft here
http://www.ietf.org/id/draft-loreto-design-space-bidirectional-00.txt

comments, feedbacks and suggestions are very welcome

cheers
Sal
www.sloreto.com


From gregw@webtide.com  Mon Oct 19 15:48:21 2009
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 893D528C1E7 for <hybi@core3.amsl.com>; Mon, 19 Oct 2009 15:48:21 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level: 
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[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 3CJVZS0rYB+c for <hybi@core3.amsl.com>; Mon, 19 Oct 2009 15:48:20 -0700 (PDT)
Received: from mail-fx0-f218.google.com (mail-fx0-f218.google.com [209.85.220.218]) by core3.amsl.com (Postfix) with ESMTP id 9198828C1C2 for <hybi@ietf.org>; Mon, 19 Oct 2009 15:48:20 -0700 (PDT)
Received: by fxm18 with SMTP id 18so5694839fxm.37 for <hybi@ietf.org>; Mon, 19 Oct 2009 15:48:23 -0700 (PDT)
Received: by 10.204.5.138 with SMTP id 10mr5516719bkv.110.1255992503423; Mon, 19 Oct 2009 15:48:23 -0700 (PDT)
Received: from ?192.168.1.117? (dsl081-052-134.sfo1.dsl.speakeasy.net [64.81.52.134]) by mx.google.com with ESMTPS id d6sm77970fga.5.2009.10.19.15.48.17 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 19 Oct 2009 15:48:22 -0700 (PDT)
Message-ID: <4ADCECA3.5000405@webtide.com>
Date: Mon, 19 Oct 2009 15:48:03 -0700
From: Greg Wilkins <gregw@webtide.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090817)
MIME-Version: 1.0
To: "hybi@ietf.org" <hybi@ietf.org>, whatwg@lists.whatwg.org,  dev <dev@webtide.com>
X-Enigmail-Version: 0.95.7
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Subject: [hybi] IETF draft for BWTP
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 Oct 2009 22:48:21 -0000

An IETF draft has been submitted for the BWTP protocol
for discussion at the upcoming hybi BOF.

https://datatracker.ietf.org/drafts/draft-wilkins-hybi-bwtp/

BWTP is a proposed transport protocol that could well support
the websocket API among other uses.

regards

From gregw@webtide.com  Mon Oct 19 20:34:08 2009
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 E80603A68FB for <hybi@core3.amsl.com>; Mon, 19 Oct 2009 20:34:08 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level: 
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[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 cy18-m4ZXsbM for <hybi@core3.amsl.com>; Mon, 19 Oct 2009 20:34:08 -0700 (PDT)
Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.154]) by core3.amsl.com (Postfix) with ESMTP id CBE4A3A67E2 for <hybi@ietf.org>; Mon, 19 Oct 2009 20:34:07 -0700 (PDT)
Received: by fg-out-1718.google.com with SMTP id d23so2199160fga.13 for <hybi@ietf.org>; Mon, 19 Oct 2009 20:34:12 -0700 (PDT)
Received: by 10.86.17.4 with SMTP id 4mr3460011fgq.13.1256009651103; Mon, 19 Oct 2009 20:34:11 -0700 (PDT)
Received: from ?192.168.1.117? (dsl081-052-134.sfo1.dsl.speakeasy.net [64.81.52.134]) by mx.google.com with ESMTPS id d4sm425839fga.21.2009.10.19.20.34.08 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 19 Oct 2009 20:34:10 -0700 (PDT)
Message-ID: <4ADD2FAC.9050902@webtide.com>
Date: Mon, 19 Oct 2009 20:34:04 -0700
From: Greg Wilkins <gregw@webtide.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090817)
MIME-Version: 1.0
To: "hybi@ietf.org" <hybi@ietf.org>
X-Enigmail-Version: 0.95.7
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Subject: [hybi] how to improve websocket
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: Tue, 20 Oct 2009 03:34:09 -0000

http://blogs.webtide.com/gregw/entry/how_to_improve_websocket

cheers

From mjs@apple.com  Tue Oct 20 18:50:25 2009
Return-Path: <mjs@apple.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 3BAB128C0FC for <hybi@core3.amsl.com>; Tue, 20 Oct 2009 18:50:25 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -106.599
X-Spam-Level: 
X-Spam-Status: No, score=-106.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4, 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 suKMDET2ttoZ for <hybi@core3.amsl.com>; Tue, 20 Oct 2009 18:50:24 -0700 (PDT)
Received: from mail-out3.apple.com (mail-out3.apple.com [17.254.13.22]) by core3.amsl.com (Postfix) with ESMTP id EF1683A689F for <hybi@ietf.org>; Tue, 20 Oct 2009 18:50:22 -0700 (PDT)
Received: from relay13.apple.com (relay13.apple.com [17.128.113.29]) by mail-out3.apple.com (Postfix) with ESMTP id 8A24676F60D4 for <hybi@ietf.org>; Tue, 20 Oct 2009 18:50:31 -0700 (PDT)
X-AuditID: 1180711d-b7ca1ae00000600b-ff-4ade68e787f4
Received: from elliott.apple.com (elliott.apple.com [17.151.62.13]) by relay13.apple.com (Apple SCV relay) with SMTP id 13.79.24587.7E86EDA4; Tue, 20 Oct 2009 18:50:31 -0700 (PDT)
MIME-version: 1.0
Content-transfer-encoding: 7BIT
Content-type: text/plain; charset=US-ASCII; format=flowed; delsp=yes
Received: from il0301e-dhcp188.apple.com (il0301e-dhcp188.apple.com [17.203.15.188]) by elliott.apple.com (Sun Java(tm) System Messaging Server 6.3-7.04 (built Sep 26 2008; 32bit)) with ESMTPSA id <0KRU007X6D47EB20@elliott.apple.com> for hybi@ietf.org; Tue, 20 Oct 2009 18:50:31 -0700 (PDT)
Message-id: <ADF34FA2-A0AE-48E0-B103-263CEBD15586@apple.com>
From: Maciej Stachowiak <mjs@apple.com>
To: Anne van Kesteren <annevk@opera.com>
In-reply-to: <op.u1opqeu264w2qv@annevk-t60>
Date: Tue, 20 Oct 2009 18:50:30 -0700
References: <op.u1opqeu264w2qv@annevk-t60>
X-Mailer: Apple Mail (2.936)
X-Brightmail-Tracker: AAAAAQAAAZE=
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] HyBi WG and Web Sockets support
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: Wed, 21 Oct 2009 01:50:25 -0000

On Oct 12, 2009, at 4:19 AM, Anne van Kesteren wrote:

> Since probably nobody from Opera can attend the meeting in Hiroshima  
> Salvatore asked me to outline our thoughts on the list. To keep it  
> brief: Opera supports the creation of a HyBi WG and basing the work  
> on the Web Sockets protocol.
>
> I personally think we should make the use case the Web Sockets  
> protocol currently supports not more complex by introducing  
> additional features, but instead add those features, based on  
> demonstrated need, as extensions by e.g. using different framing  
> bytes.

Apple also supports the creation of a HyBi WG and basing the work on  
the Web Sockets protocol. We will likely not have any attendees at the  
Hiroshima IETF.

Some specific thoughts on technical matters:

- We have a WebSocket implementation in progress in WebKit.
- We think the WebSocket protocol draft is a good starting point and  
covers most of the important use cases.
- We think it's plausible that some additional features (such as  
multiplexing) may be valuable, and do not oppose extending the  
WebSocket protocol beyond what is currently proposed.
- We are eager to participate in a potential WG, and expect to give  
detailed feedback.

Regards,
Maciej


From Martin.Thomson@andrew.com  Tue Oct 20 19:20:40 2009
Return-Path: <Martin.Thomson@andrew.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 5EA613A6937 for <hybi@core3.amsl.com>; Tue, 20 Oct 2009 19:20:40 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.524
X-Spam-Level: 
X-Spam-Status: No, score=-2.524 tagged_above=-999 required=5 tests=[AWL=0.075,  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 ALYgL0UV684G for <hybi@core3.amsl.com>; Tue, 20 Oct 2009 19:20:39 -0700 (PDT)
Received: from csmailgw1.commscope.com (csmailgw1.commscope.com [198.135.207.243]) by core3.amsl.com (Postfix) with ESMTP id 64B1C3A68ED for <hybi@ietf.org>; Tue, 20 Oct 2009 19:20:39 -0700 (PDT)
Received: from [10.86.20.103] ([10.86.20.103]:39762 "EHLO ACDCE7HC2.commscope.com") by csmailgw1.commscope.com with ESMTP id S4639363AbZJUCUr (ORCPT <rfc822;hybi@ietf.org>); Tue, 20 Oct 2009 21:20:47 -0500
Received: from SISPE7HC2.commscope.com (10.97.4.13) by ACDCE7HC2.commscope.com (10.86.20.103) with Microsoft SMTP Server (TLS) id 8.1.393.1; Tue, 20 Oct 2009 21:20:47 -0500
Received: from SISPE7MB1.commscope.com ([fe80::9d82:a492:85e3:a293]) by SISPE7HC2.commscope.com ([fe80::58c3:2447:f977:57c3%10]) with mapi; Wed, 21 Oct 2009 10:20:44 +0800
From: "Thomson, Martin" <Martin.Thomson@andrew.com>
To: "hybi@ietf.org" <hybi@ietf.org>
Date: Wed, 21 Oct 2009 10:21:08 +0800
Thread-Topic: ws and bwtp thoughts
Thread-Index: AcpR9SX7t6OrTeQ/T2+ytdLVkuGLFg==
Message-ID: <8B0A9FCBB9832F43971E38010638454F0F1EA1D4@SISPE7MB1.commscope.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-BCN: Meridius 1000 Version 3.4 on csmailgw1.commscope.com
X-BCN-Sender: Martin.Thomson@andrew.com
Subject: [hybi] ws and bwtp thoughts
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: Wed, 21 Oct 2009 02:20:40 -0000

SSd2ZSBiZWVuIGZvbGxvd2luZyB0aGUgZGlzY3Vzc2lvbnMgb24gV1MgYW5kIEJXVFAgKGF3ZnVs
IG5hbWUsIEJUVykgd2l0aCBzb21lIGludGVyZXN0Lg0KDQpUaGUgZGlmZmVyZW5jZXMgYXJlIG1h
bnksIGJ1dCBhc2lkZSBmcm9tIGEgZmV3IHRoZXkgcHJvYmFibHkgbWFrZSBsaXR0bGUgZGlmZmVy
ZW5jZSBmcm9tIGEgdGVjaG5pY2FsIHN0YW5kcG9pbnQuDQoNCk15IGN1cnJlbnQgdGhvdWdodHMs
IGZyb20gdGhlIGVhc3kgb25lcyB0byB0aGUgaGFyZCBvbmVzLg0KDQo9PVVwZ3JhZGUgZnJvbSBI
VFRQDQoNCkl0IHNlZW1zIHRvIG1lIHRoYXQgdGhpcyBpcyBzb21ldGhpbmcgdGhhdCBjb3VsZCBi
ZSBhZGRyZXNzZWQgaW5kZXBlbmRlbnQgb2YgZWl0aGVyIHN1Ym1pc3Npb24uICBJIGdldCB0aGUg
aW1wcmVzc2lvbiB0aGF0IHRoZSBkaWZmZXJlbmNlcyBiZXR3ZWVuIGNhbXBzIGFyZW4ndCBzbyBm
ZXJ2ZW50Lg0KDQpNYXliZSBpZiB0aGlzIHdhcyBtYWRlIGEgZGlmZmVyZW50IGRvY3VtZW50LCBk
aXNjdXNzaW5nIHRoZSBpbXBsaWNhdGlvbnMgb24gKGFuZCBvZikgaW50ZXJtZWRpYXJpZXMsIGRp
c2N1c3NpbmcgdGhlIHNlY3VyaXR5IG1vZGVsIHRoYXQgaXQgZW5hYmxlcywgc2V0dGluZyBndWlk
ZWxpbmVzIGZvciBpdHMgdXNlLCB0aGVuIGFueSBvdGhlciBzdWJtaXNzaW9uIG5lZWQgb25seSBy
ZWdpc3RlciBhIHByb3RvY29sIHRhZy4NCg0KPT1SZWFkYWJpbGl0eQ0KDQpUaGUgc2F2aW5ncyBp
biBzcGFjZSAoYW5kIHBlcmZvcm1hbmNlKSBnYWluZWQgYnkgaGF2aW5nIGEgYmluYXJ5IGhlYWRl
ciAod3MpIGFyZSBvdXR3ZWlnaGVkIGJ5IHRoZSBjb3N0IGluIGNvbnN0cnVjdGluZyBhbmQgcmVh
ZGluZyBtZXNzYWdlcy4gIERlYnVnZ2luZyBhIGJpbmFyeSBwcm90b2NvbCBpcyBsZXNzIGVhc3kg
dGhhbiBhIHRleHR1YWwgb25lLg0KDQo9PU1JTUUNCg0KVGhlcmUncyBwb3RlbnRpYWwgZ2FpbiBm
cm9tIHVzaW5nIGFsbCB0aGUgZXhpc3RpbmcgYmFzZSBoZXJlLiAgVGFrZSBhIGxlYWYgZnJvbSBC
RUVQIGFuZCBzZXQgYSBkZWZhdWx0IHRoYXQgbWVhbnMgdGhhdCBiYXNpYyBpbXBsZW1lbnRhdGlv
bnMgZG9uJ3QgbmVlZCB0byBiZSBib3RoZXJlZCBieSB0aGUgZXhpc3RlbmNlIG9mIHRoZSBvcHRp
b24uICBUaHVzLCBhdCBtb3N0IHlvdSBoYXZlIG1heWJlIGZvdXIgY2hhcmFjdGVycyAoXHJcblxy
XG4pIHNlcGFyYXRpbmcgcHJvdG9jb2wgaGVhZGVyIGZyb20gYm9keS4NCg0KTUlNRSBhbHNvIHBy
b3ZpZGVzIGEgY2hhbm5lbCBmb3IgZXh0ZW5zaW9uLg0KDQo9PUNoYW5uZWxzDQoNClRoaXMgc2Vl
bXMgYSByYXRoZXIgZnVuZGFtZW50YWwgZGlmZmVyZW5jZS4gIEkgd2FzIGluIHR3byBtaW5kcyBv
biB0aGlzIGlzc3VlIHVudGlsIEkgcmVhbGl6ZWQgc29tZXRoaW5nLiAgQ2hhbm5lbHMgYXJlIG5v
dCB0aGUgaXNzdWUgLSBpdCdzIGRvaW5nIG11bHRpcGxlIHRoaW5ncyB3aXRoIHRoZSBvbmUgc2Vz
c2lvbi4gIENoYW5uZWxzIGFyZSBqdXN0IG9uZSB3YXkgb2YgYWRkcmVzc2luZyB0aGUgcHJvYmxl
bS4gIERlbGVnYXRpbmcgYW55IHJlc3BvbnNpYmlsaXR5IHRvIGEgaGlnaGVyIGxheWVyIGlzIGFu
b3RoZXIgd2F5Lg0KDQpIVFRQIGRvZXNuJ3QgaGF2ZSBjaGFubmVscy4gIFRoZXJlJ3Mgbm8gbXVs
dGlwbGV4aW5nLiAgSWYgeW91IG5lZWQgbXVsdGlwbGV4aW5nLCB5b3Ugb3BlbiBhIG5ldyBjb25u
ZWN0aW9uLiAgV2UncmUgc29tZWhvdyBtYW5hZ2luZy4gIA0KDQpXaGF0IGRvZXMgSFRUUCBwcm92
aWRlIGluIHRoaXMgcmVnYXJkIHRoYXQgKGYncmluc3RhbmNlKSBUQ1AgZG9lcyBub3Q/ICBNZXNz
YWdlcyBhcmUgYWRkcmVzc2VkIHRvIHNwZWNpZmljIGRlc3RpbmF0aW9ucy4gIFNvIEkgaGF2ZSBh
IChoYWxmLWJha2VkKSBzdWdnZXN0aW9uOiBVc2UgTUlNRSBhbmQgYWxsb3cgcmVxdWVzdHMgdG8g
YmUgYWRkcmVzc2VkLg0KDQpBIHNlcnZlciBoYXMgYWRkcmVzc2FibGUgZW50aXRpZXMuICBFYWNo
IG9mIHRob3NlIGVudGl0aWVzIG1pZ2h0IGJlIHRoZSBzb3VyY2Ugb2YgZXZlbnRzLiAgQSBzZXJ2
ZXIgbWlnaHQgaWRlbnRpZnkgYW4gb3JpZ2luYXRpbmcgcmVzb3VyY2UgaW4gYSBNSU1FICJGcm9t
OiIgaGVhZGVyLiAgRWFjaCBvZiB0aG9zZSBlbnRpdGllcyBtaWdodCBhbHNvIHRoZSB0YXJnZXQg
b2YgYW4gZXZlbnQuICBBIGNsaWVudCBtaWdodCBpZGVudGlmeSBhIHRhcmdldCByZXNvdXJjZSB3
aXRoIGEgIlRvOiIgaGVhZGVyLg0KDQpUaGUgaW5pdGlhbCBjb25jZXJuIGhlcmUgaXMgdGhhdCBh
IGNsaWVudCBkb2VzIG5vdCBoYXZlIGFuIGlkZW50aXR5LCBub3IgZG9lcyBpdCBjb25jZWl2YWJs
eSBoYXZlIGFkZHJlc3NhYmxlIHJlc291cmNlcy4gIElmIGFuIGFwcGxpY2F0aW9uIHdpc2hlcyB0
byBlc3RhYmxpc2ggdGhlIGlkZWEgdGhhdCBtdWx0aXBsZSBlbnRpdGllcyBleGlzdCBhdCBhIGNs
aWVudCwgdGhlbiAiRnJvbToiIGFuZCAiVG86IiBoZWFkZXJzIGNhbiBhbHNvIGJlIHVzZWQgaW4g
dGhlIHJldmVyc2UuDQoNCk5vdywgZm9yIHRob3NlIGFwcGxpY2F0aW9ucyB0aGF0IGRvbid0IGNh
cmUsIG1ha2UgYWRkcmVzc2luZyBvcHRpb25hbC4gIERvbid0IGZvcmNlIHRoZW0gdG8gZG8gYW55
dGhpbmcuICBBZnRlciBhbGwsIGZvciB0aG9zZSB3aG8gdHJ1bHkgY2FyZSwgdGhlcmUgaXMgYW4g
YWRkcmVzcyBlc3RhYmxpc2hlZCBvbiB0aGUgc2VydmVyIGVuZCB3aGVuIHRoZSB1cGdyYWRlIGlz
IG1hZGUgKHVubGVzcyB0aGUgdXBncmFkZSBpcyBtYWRlIHdpdGggYSByZXNvdXJjZSBVUkkgb2Yg
IioiKTsgYW5kIHdlIGNhbiBhc3N1bWUgYSBkZWZhdWx0ICgiKiI/KSBvbiB0aGUgY2xpZW50Lg0K
DQo9PVVSSQ0KDQpXaGVuIGRlYWxpbmcgd2l0aCB0aGlzIHNhbWUgcHJvYmxlbSBpbiBHZW9wcml2
LCB3ZSBmbGlwLWZsb3BwZWQgb24gdGhlIGlzc3VlIGEgbnVtYmVyIG9mIHRpbWVzLiAgV2hldGhl
ciBvciBub3QgYSBVUkkgaXMgbmVjZXNzYXJ5IGlzIGEgdHJhZGUtb2ZmIHRoYXQgY2FuIGJlIGhh
cHBpbHkgbWFkZSBpbiBlaXRoZXIgZGlyZWN0aW9uLg0KDQpCV1RQIGRvZXNuJ3QgZGVmaW5lIGEg
VVJJIHNjaGVtZS4gIEl0IHJlbGllcyBvbiBhIGNsaWVudCBoYXZpbmcgY29udGV4dHVhbCBpbmZv
cm1hdGlvbi9wcmlvciBrbm93bGVkZ2UgdG8gZGV0ZXJtaW5lIHRoYXQgYSBnaXZlbiBVUkkgYWN0
dWFsbHkgcG9pbnRzIHRvIGEgQldUUCBzZXNzaW9uLiAgU3VyZSwgdGhlcmUgYXJlIHRob3NlIHdo
byBjaG9vc2UgdG8gYXNzaWduIHNlbWFudGljcyB0byBVUklzLCBidXQgdGhhdCBkb2Vzbid0IGhl
bHAgYSBnZW5lcmljIHByb2Nlc3NvciwgbGlrZSBhIGJyb3dzZXIgbWFrZSBhbnkgc2Vuc2libGUg
ZGVjaXNpb24gb24gaG93IHRvIHVzZSBpdC4NCg0KVG8gc29tZSBleHRlbnQsIHdoZXRoZXIgYSBV
UkkgaXMgdXNlZnVsIGRlcGVuZHMgb24gd2hldGhlciB0aGVyZSBpcyBhbnkgYmVuZWZpdCB0byBi
ZSBoYWQgZnJvbSBlc3RhYmxpc2hpbmcgYSBzZXNzaW9uIHdpdGhvdXQgc29tZSBzb3J0IG9mIHBy
ZS1leGlzdGluZyBjb250ZXh0LiAgSG93IG5lY2Vzc2FyeSBpcyB0aGUgY29udGV4dHVhbCBpbmZv
cm1hdGlvbiBzcGVjaWZpYyB0byB0aGUgYXBwbGljYXRpb24/DQoNCkJhc2VkIG9uIHRoaXMgc29y
dCBvZiBhbmFseXNpcywgdGhlIGNob2ljZXMgbWFkZSBpbiBCV1RQIGFuZCBXUyBhcmUgb3Bwb3Np
dGUgdG8gd2hhdCB0aGVpciBwcm90b2NvbCBkZWZpbml0aW9ucyBmYWNpbGl0YXRlLiAgV1MgcmVs
aWVzIG9uIGFwcGxpY2F0aW9uIGNvbnRleHQgdG8gYSBncmVhdGVyIGV4dGVudCwgd2hlcmUgQldU
UCBhbGxvd3MgZm9yIHRoZSB1c2Ugb2YgbWV0YS1kYXRhLiAgSXQgd291bGQgc2VlbSB0aGF0IEJX
VFAgaXMgYmV0dGVyIGVxdWlwcGVkIHRvIHByb3ZpZGluZyBhbnkgY29udGV4dHVhbCBpbmZvcm1h
dGlvbiB0aHJvdWdoIE1JTUUgaGVhZGVyczsgdGhlcmVmb3JlLCBCV1RQIGlzIG1vcmUgc3VpdGVk
IHRvIGhhdmluZyBpdHMgb3duIHNjaGVtZS4gIEJlY2F1c2UgV1MgZG9lc24ndCBwcm92aWRlIGFu
eSBpbi1wcm90b2NvbCBpbmZvcm1hdGlvbiB0byBhIGdlbmVyaWMgcHJvY2Vzc29yIHRoYXQgd291
bGQgYWxsb3cgaXQgdG8gbWFrZSB1c2Ugb2YgYSBXUyBjb25uZWN0aW9uIHdpdGhvdXQgcHJpb3Ig
a25vd2xlZGdlLCBhIFVSSSBzY2hlbWUgaXMgb2YgbGVzcyBiZW5lZml0IGZvciBXUy4NCg0KT2Yg
Y291cnNlLCBoYXZpbmcgYSB1bmlxdWUgbmFtZXNwYWNlIGZvciBpZGVudGlmaWVycyBoYXMgaXRz
IG93biB2YWx1ZS4NCg0KPT1NYXJ0aW4NCg==

From gregw@webtide.com  Tue Oct 20 23:26:36 2009
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 501383A697A for <hybi@core3.amsl.com>; Tue, 20 Oct 2009 23:26:36 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.394
X-Spam-Level: 
X-Spam-Status: No, score=-1.394 tagged_above=-999 required=5 tests=[AWL=1.205,  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 OLxEfF8mRIef for <hybi@core3.amsl.com>; Tue, 20 Oct 2009 23:26:35 -0700 (PDT)
Received: from mail-ew0-f228.google.com (mail-ew0-f228.google.com [209.85.219.228]) by core3.amsl.com (Postfix) with ESMTP id AE5423A69CC for <hybi@ietf.org>; Tue, 20 Oct 2009 23:26:34 -0700 (PDT)
Received: by ewy28 with SMTP id 28so7377205ewy.42 for <hybi@ietf.org>; Tue, 20 Oct 2009 23:26:40 -0700 (PDT)
Received: by 10.216.89.6 with SMTP id b6mr2731714wef.100.1256106398968; Tue, 20 Oct 2009 23:26:38 -0700 (PDT)
Received: from ?10.71.0.129? (216.112.110.2.ptr.us.xo.net [216.112.110.2]) by mx.google.com with ESMTPS id x6sm1934375gvf.1.2009.10.20.23.26.35 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 20 Oct 2009 23:26:37 -0700 (PDT)
Message-ID: <4ADEA997.10705@webtide.com>
Date: Tue, 20 Oct 2009 23:26:31 -0700
From: Greg Wilkins <gregw@webtide.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090817)
MIME-Version: 1.0
To: "Thomson, Martin" <Martin.Thomson@andrew.com>
References: <8B0A9FCBB9832F43971E38010638454F0F1EA1D4@SISPE7MB1.commscope.com>
In-Reply-To: <8B0A9FCBB9832F43971E38010638454F0F1EA1D4@SISPE7MB1.commscope.com>
X-Enigmail-Version: 0.95.7
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] ws and bwtp thoughts
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: Wed, 21 Oct 2009 06:26:36 -0000

Martin,

Thomson, Martin wrote:
> I've been following the discussions on WS and BWTP (awful name, BTW) with some interest.
> 
> The differences are many, but aside from a few they probably make little difference from a technical standpoint.

I totally agree.

Most differences between BWTP and Websocket a non-semantic

For example websocket encodes length in a binary integer of arbitrary
length, while BWTP uses a ascii decimal number of arbitrary length.
The difference is pretty much just a style choice.

I think websocket can be improved to have the capabilities
I'm advocating and the other differences are not important.
See my blog on this exact subject:

   http://blogs.webtide.com/gregw/entry/how_to_improve_websocket



> ==Channels
> Channels are not the issue - ...
> Channels are just one way of addressing the problem.

+1

Channels are just a means to an end and not an end in
themselves.


> Delegating any responsibility to a higher layer is
> another way.

That depends what you think is "the problem". :)

I consider the problem is that applications should
not have to manage TCP/IP connections nor have the
ability to directly request them.

I don't think delegating to a higher layer solves
this problem.


> HTTP doesn't have channels.  There's no multiplexing.  
> If you need multiplexing, you open a new connection.

HTTP does support multiplexing - but not with channels.

If you open another XHR in js, the browser will look
for an idle connection, which may have been opened
by another application in another frame/tab/window
(or in same frame, but previous page).

Also there are proxies and other intermediaries that
multiplex many clients onto shared connections.


> So I have a (half-baked) suggestion: Use MIME and 
> allow requests to be addressed.

If by "request" you mean "message", that is indeed
another possible solution abstract away from the
actual TCP/IP connections - and is probably simpler
than channels.

However, like HTTP, you would need some meta data
with each and every message.

If you are concerned about reducing data usage,
then channels (or at least BWTPs implementation of them)
allows meta data to be sent only once per channel
and then each message can be just data and no meta
data.

If you are less concerned about data usage, then
meta-data per message works ok for HTTP



But your  point is well taken.  There is more
than one way to skin a cat - and we should be
prepared compromise on the means we use to
achieve the outcomes that we want.

cheers







From salvatore.loreto@ericsson.com  Wed Oct 21 01:38:37 2009
Return-Path: <salvatore.loreto@ericsson.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 94D0B3A6860 for <hybi@core3.amsl.com>; Wed, 21 Oct 2009 01:38:37 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.994
X-Spam-Level: 
X-Spam-Status: No, score=-4.994 tagged_above=-999 required=5 tests=[AWL=0.015,  BAYES_00=-2.599, HELO_EQ_SE=0.35, RCVD_IN_DNSWL_MED=-4, SARE_LWSHORTT=1.24]
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 Dqv4F4N0DzdS for <hybi@core3.amsl.com>; Wed, 21 Oct 2009 01:38:36 -0700 (PDT)
Received: from mailgw5.ericsson.se (mailgw5.ericsson.se [193.180.251.36]) by core3.amsl.com (Postfix) with ESMTP id 36DEE3A67EB for <hybi@ietf.org>; Wed, 21 Oct 2009 01:38:36 -0700 (PDT)
X-AuditID: c1b4fb24-b7bd7ae000002270-8b-4adec8938778
Received: from esealmw129.eemea.ericsson.se (Unknown_Domain [153.88.253.125]) by mailgw5.ericsson.se (Symantec Mail Security) with SMTP id CE.08.08816.398CEDA4; Wed, 21 Oct 2009 10:38:43 +0200 (CEST)
Received: from esealmw127.eemea.ericsson.se ([153.88.254.171]) by esealmw129.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.3959);  Wed, 21 Oct 2009 10:34:43 +0200
Received: from mail.lmf.ericsson.se ([131.160.11.50]) by esealmw127.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.3959);  Wed, 21 Oct 2009 10:34:41 +0200
Received: from nomadiclab.lmf.ericsson.se (nomadiclab.lmf.ericsson.se [131.160.33.3]) by mail.lmf.ericsson.se (Postfix) with ESMTP id 736312870 for <hybi@ietf.org>; Wed, 21 Oct 2009 11:34:41 +0300 (EEST)
Received: from nomadiclab.lmf.ericsson.se (localhost [127.0.0.1]) by nomadiclab.lmf.ericsson.se (Postfix) with ESMTP id 3F20921A22 for <hybi@ietf.org>; Wed, 21 Oct 2009 11:34:41 +0300 (EEST)
Received: from localhost.localdomain (localhost [127.0.0.1]) by nomadiclab.lmf.ericsson.se (Postfix) with ESMTP id E810221A21 for <hybi@ietf.org>; Wed, 21 Oct 2009 11:34:40 +0300 (EEST)
Message-ID: <4ADEC7A0.7040307@ericsson.com>
Date: Wed, 21 Oct 2009 11:34:40 +0300
From: Salvatore Loreto <salvatore.loreto@ericsson.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090825)
MIME-Version: 1.0
To: "hybi@ietf.org" <hybi@ietf.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: ClamAV using ClamSMTP
X-OriginalArrivalTime: 21 Oct 2009 08:34:41.0697 (UTC) FILETIME=[559D0110:01CA5229]
X-Brightmail-Tracker: AAAAAA==
Subject: [hybi] updated Charter proposal
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: Wed, 21 Oct 2009 08:38:37 -0000

Hi there,

here a new/updated version of the charter proposal for HyBi wg.
This version includes all the suggestions and comments received in the 
the list discussion.

please provide comments!

Best Regards
Salvatore Loreto



Proposed Charter for HyBi WG (rev.2)
Last Updated: 2009-10-21
-----------------------------------------------

Chairs:
* TBD
* TBD

Applications Area Director(s):
* Lisa Dusseault <lisa.dusseault@gmail.com>
* Alexey Melnikov <alexey.melnikov@isode.com>

Applications Area Advisor:
* Lisa Dusseault <lisa.dusseault@gmail.com>

Mailing Lists:
General Discussion: hybi@ietf.org
To Subscribe: https://www.ietf.org/mailman/listinfo/hybi
Archive: http://www.ietf.org/mail-archive/web/hybi/current/maillist.html

Description of Working Group:
HTTP has in the past been used as a request/response protocol most often,
leading to clients polling for new data or users hitting the refresh button
in their browsers.  Newer web applications are finding ways to push data
from the server to the client as soon as it is available, through a variety
of mechanisms.  The Hypertext-Bidirectional (HyBi) working group will seek
standardization of approaches that HTTP clients, servers, and intermediate
boxes can use to communicate with one another in both directions.

Since any modification of the web infrastructure may take a good amount of
time to be deployed, outputs of the working group will include both short
and long term solutions.  The existing web being much more complicated than
it seems, the working group will prioritize the characterization of the
design space, including the web clients, intermediaries, firewalls, NATs,
web servers, etc. into which both solutions will need to be deployed.

For both short and long term work items, a general approach is preferred,
with abstract semantics that can apply to a large number of applications.

The short term approach will be deployable on today's Internet, across
whichever current or historical web browsers the working group decides 
upon.
Although wide browser support is a goal, lack of support on any single
browser version will not be a sufficient cause to block consensus.  The
short term approach may also define hints to allow newer intermediaries to
optimize traffic.

In the long term, new features will be required of clients, servers, or
intermediaries allowing a more scalable and robust end-to-end experience.

Although multiple protocols exist as starting points for both the short and
long term, backward compatibility with these protocols is not a 
requirement.
In particular, the working group will liaison with the WebApps working 
group
of the W3C around the Websockets protocol; if agreed by both parties, the
HyBi working group may take over the development of the Websockets 
protocol.

Wide browser support is a goal for long term solution, however the solution
should also be suitable for clients other than Web Browser. The Working 
Group
will work to standardize a generic solution that can work in all the 
environments
and elements of the web infrastructure (e.g. web browser, generic HTTP 
client,
web server, intermediaries, etc.) and it is not specific for just one.

The Working Group should consider:
* Implementer experience
* Impact on existing implementations and deployments
* Ability to achieve broad implementation
* Ability to address broader use cases than may be contemplated by the
original authors

The Working Group will produce one or more documents suitable for
consideration as Proposed Standard that will:
* Define requirements for short- and long-term solutions, including
characterization of the design space
* Define a short-term solution for the bi-directional web, deployable on
today's Internet
* Define a long-term solution for the bi-directional web, which will likely
require modifications to the web infrastructure


Goals and Milestones:
---------------------
Mar-2010:  WGLC on the Design Space characterization (Informational)
Mar-2010:  WGLC on Requirements document on Short term solution
Mar-2010:  WGLC on Requirements document on Long term solution
May-2010:  Requirements to IESG
Mar-2011:  WGLC on Short term solution improvements
May-2011:  WGLC on Long term solution protocol

From salvatore.loreto@ericsson.com  Wed Oct 21 02:48:53 2009
Return-Path: <salvatore.loreto@ericsson.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 296BD3A6936 for <hybi@core3.amsl.com>; Wed, 21 Oct 2009 02:48:53 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.617
X-Spam-Level: 
X-Spam-Status: No, score=-5.617 tagged_above=-999 required=5 tests=[AWL=0.632,  BAYES_00=-2.599, HELO_EQ_SE=0.35, RCVD_IN_DNSWL_MED=-4]
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 iRp+LX6h1dYt for <hybi@core3.amsl.com>; Wed, 21 Oct 2009 02:48:52 -0700 (PDT)
Received: from mailgw4.ericsson.se (mailgw4.ericsson.se [193.180.251.62]) by core3.amsl.com (Postfix) with ESMTP id 38A0C3A68A7 for <hybi@ietf.org>; Wed, 21 Oct 2009 02:48:52 -0700 (PDT)
X-AuditID: c1b4fb3e-b7bf6ae000005dda-19-4aded90bd201
Received: from esealmw129.eemea.ericsson.se (Unknown_Domain [153.88.253.125]) by mailgw4.ericsson.se (Symantec Mail Security) with SMTP id 15.6A.24026.B09DEDA4; Wed, 21 Oct 2009 11:48:59 +0200 (CEST)
Received: from esealmw127.eemea.ericsson.se ([153.88.254.171]) by esealmw129.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.3959);  Wed, 21 Oct 2009 11:48:48 +0200
Received: from mail.lmf.ericsson.se ([131.160.11.50]) by esealmw127.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.3959);  Wed, 21 Oct 2009 11:48:48 +0200
Received: from nomadiclab.lmf.ericsson.se (nomadiclab.lmf.ericsson.se [131.160.33.3]) by mail.lmf.ericsson.se (Postfix) with ESMTP id 4B70629C1 for <hybi@ietf.org>; Wed, 21 Oct 2009 12:48:48 +0300 (EEST)
Received: from nomadiclab.lmf.ericsson.se (localhost [127.0.0.1]) by nomadiclab.lmf.ericsson.se (Postfix) with ESMTP id E8DB521A22 for <hybi@ietf.org>; Wed, 21 Oct 2009 12:48:47 +0300 (EEST)
Received: from localhost.localdomain (localhost [127.0.0.1]) by nomadiclab.lmf.ericsson.se (Postfix) with ESMTP id A1E6C21A21 for <hybi@ietf.org>; Wed, 21 Oct 2009 12:48:47 +0300 (EEST)
Message-ID: <4ADED8FF.1060602@ericsson.com>
Date: Wed, 21 Oct 2009 12:48:47 +0300
From: Salvatore Loreto <salvatore.loreto@ericsson.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090825)
MIME-Version: 1.0
To: "hybi@ietf.org" <hybi@ietf.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: ClamAV using ClamSMTP
X-OriginalArrivalTime: 21 Oct 2009 09:48:48.0408 (UTC) FILETIME=[B00F4180:01CA5233]
X-Brightmail-Tracker: AAAAAA==
Subject: [hybi] updated wiki page
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: Wed, 21 Oct 2009 09:48:53 -0000

Hi there,

I have just updated the wiki with links to all the drafts of the 
interest. Hope this makes it easier to find them all.
The wiki also contains the BoF Agenda and the last Charter proposal.

http://trac.tools.ietf.org/bof/trac/wiki/HyBi

If I missed something that should be listed there, just let me know.


cheers
Salvatore Loreto




From stpeter@stpeter.im  Wed Oct 21 08:04:18 2009
Return-Path: <stpeter@stpeter.im>
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 1BCCD3A689A for <hybi@core3.amsl.com>; Wed, 21 Oct 2009 08:04:18 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.963
X-Spam-Level: 
X-Spam-Status: No, score=-1.963 tagged_above=-999 required=5 tests=[AWL=-0.604, BAYES_00=-2.599, SARE_LWSHORTT=1.24]
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 gmXUOKz-rNuB for <hybi@core3.amsl.com>; Wed, 21 Oct 2009 08:04:17 -0700 (PDT)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id 241783A6980 for <hybi@ietf.org>; Wed, 21 Oct 2009 08:04:17 -0700 (PDT)
Received: from dhcp-64-101-72-247.cisco.com (dhcp-64-101-72-247.cisco.com [64.101.72.247]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id BA7CC40D0B; Wed, 21 Oct 2009 09:04:25 -0600 (MDT)
Message-ID: <4ADF20C7.9030601@stpeter.im>
Date: Wed, 21 Oct 2009 08:55:03 -0600
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812)
MIME-Version: 1.0
To: Salvatore Loreto <salvatore.loreto@ericsson.com>
References: <4ADEC7A0.7040307@ericsson.com>
In-Reply-To: <4ADEC7A0.7040307@ericsson.com>
X-Enigmail-Version: 0.96.0
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] updated Charter proposal
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: Wed, 21 Oct 2009 15:04:18 -0000

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Sal, thanks for this. Comments inline.

On 10/21/09 2:34 AM, Salvatore Loreto wrote:

> Proposed Charter for HyBi WG (rev.2)
> Last Updated: 2009-10-21
> -----------------------------------------------
> 
> Chairs:
> * TBD
> * TBD
> 
> Applications Area Director(s):
> * Lisa Dusseault <lisa.dusseault@gmail.com>
> * Alexey Melnikov <alexey.melnikov@isode.com>
> 
> Applications Area Advisor:
> * Lisa Dusseault <lisa.dusseault@gmail.com>
> 
> Mailing Lists:
> General Discussion: hybi@ietf.org
> To Subscribe: https://www.ietf.org/mailman/listinfo/hybi
> Archive: http://www.ietf.org/mail-archive/web/hybi/current/maillist.html
> 
> Description of Working Group:
> HTTP has in the past been used as a request/response protocol most often,
> leading to clients polling for new data or users hitting the refresh button
> in their browsers.  Newer web applications are finding ways to push data
> from the server to the client as soon as it is available, through a variety
> of mechanisms.  The Hypertext-Bidirectional (HyBi) working group will seek
> standardization of approaches that HTTP clients, servers, and intermediate
> boxes can use to communicate with one another in both directions.

I'd prefer "entities" to "boxes".

Somewhere in the text we need to make it clear what kind of intermediate
entities we're talking about -- does that include entities which are in
some sense HTTP-aware or HTTP-optimized (proxies, load balancers,
caches, etc.) or also entities that are in some sense more generalized
(firewalls, network address translators, etc.).

> Since any modification of the web infrastructure may take a good amount of
> time to be deployed, outputs of the working group will include both short
> and long term solutions.  The existing web being much more complicated than
> it seems, the working group will prioritize the characterization of the
> design space, including the web clients, intermediaries, firewalls, NATs,
> web servers, etc. into which both solutions will need to be deployed.
> 
> For both short and long term work items, a general approach is preferred,
> with abstract semantics that can apply to a large number of applications.
> 
> The short term approach will be deployable on today's Internet, across
> whichever current or historical web browsers the working group decides
> upon.
> Although wide browser support is a goal, lack of support on any single
> browser version will not be a sufficient cause to block consensus.  The
> short term approach may also define hints to allow newer intermediaries to
> optimize traffic.

There's no mention of servers here.

> In the long term, new features will be required of clients, servers, or
> intermediaries allowing a more scalable and robust end-to-end experience.
> 
> Although multiple protocols exist as starting points for both the short and
> long term, backward compatibility with these protocols is not a
> requirement.
> In particular, the working group will liaison with the WebApps working
> group
> of the W3C around the Websockets protocol; if agreed by both parties, the
> HyBi working group may take over the development of the Websockets
> protocol.

I think "take on" is a bit less aggressive than "take over". :)

> Wide browser support is a goal for long term solution, however the solution
> should also be suitable for clients other than Web Browser. The Working
> Group
> will work to standardize a generic solution that can work in all the
> environments
> and elements of the web infrastructure (e.g. web browser, generic HTTP
> client,
> web server, intermediaries, etc.) and it is not specific for just one.
> 
> The Working Group should consider:
> * Implementer experience
> * Impact on existing implementations and deployments
> * Ability to achieve broad implementation
> * Ability to address broader use cases than may be contemplated by the
> original authors
> 
> The Working Group will produce one or more documents suitable for
> consideration as Proposed Standard that will:
> * Define requirements for short- and long-term solutions, including
> characterization of the design space
> * Define a short-term solution for the bi-directional web, deployable on
> today's Internet
> * Define a long-term solution for the bi-directional web, which will likely
> require modifications to the web infrastructure
> 
> 
> Goals and Milestones:
> ---------------------
> Mar-2010:  WGLC on the Design Space characterization (Informational)
> Mar-2010:  WGLC on Requirements document on Short term solution
> Mar-2010:  WGLC on Requirements document on Long term solution

Doing all of the last calls at the same time might not be a good idea.
I'd suggest spacing them out over two or three months.

> May-2010:  Requirements to IESG
> Mar-2011:  WGLC on Short term solution improvements
> May-2011:  WGLC on Long term solution protocol

Ambitious but not unreasonable, I think.

Peter

- --
Peter Saint-Andre
https://stpeter.im/


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkrfIMcACgkQNL8k5A2w/vy0MwCfSYklY1vpsNRg32PlizkF/+rw
IskAoJ6GpGZUe06MUpUaCgDNq8BC7nqa
=Vr14
-----END PGP SIGNATURE-----


From Martin.Thomson@andrew.com  Wed Oct 21 15:23:41 2009
Return-Path: <Martin.Thomson@andrew.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 D04033A6857 for <hybi@core3.amsl.com>; Wed, 21 Oct 2009 15:23:41 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.534
X-Spam-Level: 
X-Spam-Status: No, score=-2.534 tagged_above=-999 required=5 tests=[AWL=0.065,  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 bYJ2SKQlagat for <hybi@core3.amsl.com>; Wed, 21 Oct 2009 15:23:41 -0700 (PDT)
Received: from csmailgw2.commscope.com (csmailgw2.commscope.com [198.135.207.244]) by core3.amsl.com (Postfix) with ESMTP id DA9483A6816 for <hybi@ietf.org>; Wed, 21 Oct 2009 15:23:40 -0700 (PDT)
Received: from [10.86.20.103] ([10.86.20.103]:62115 "EHLO ACDCE7HC2.commscope.com") by csmailgw2.commscope.com with ESMTP id S68342AbZJUWXt (ORCPT <rfc822;hybi@ietf.org>); Wed, 21 Oct 2009 17:23:49 -0500
Received: from SISPE7HC2.commscope.com (10.97.4.13) by ACDCE7HC2.commscope.com (10.86.20.103) with Microsoft SMTP Server (TLS) id 8.1.393.1; Wed, 21 Oct 2009 17:23:49 -0500
Received: from SISPE7MB1.commscope.com ([fe80::9d82:a492:85e3:a293]) by SISPE7HC2.commscope.com ([fe80::58c3:2447:f977:57c3%10]) with mapi; Thu, 22 Oct 2009 06:23:45 +0800
From: "Thomson, Martin" <Martin.Thomson@andrew.com>
To: Greg Wilkins <gregw@webtide.com>
Date: Thu, 22 Oct 2009 06:24:09 +0800
Thread-Topic: [hybi] ws and bwtp thoughts
Thread-Index: AcpSF3YETLOotBnDRMGEK4WmOL9NQAAhKt9A
Message-ID: <8B0A9FCBB9832F43971E38010638454F0F1EA281@SISPE7MB1.commscope.com>
References: <8B0A9FCBB9832F43971E38010638454F0F1EA1D4@SISPE7MB1.commscope.com> <4ADEA997.10705@webtide.com>
In-Reply-To: <4ADEA997.10705@webtide.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-BCN: Meridius 1000 Version 3.4 on csmailgw2.commscope.com
X-BCN-Sender: Martin.Thomson@andrew.com
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] ws and bwtp thoughts
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: Wed, 21 Oct 2009 22:23:41 -0000

VGhhbmtzIEdyZWcsDQoNCkp1c3QgdGhyb3dpbmcgb3V0IHNvbWUgb3RoZXIgY2F0IHNraW5uaW5n
IHRvb2xzLi4uIHRyeWluZyB0byBiZSB2YWx1ZS1uZXV0cmFsIGluIHRoZSBwcm9jZXNzLg0KDQo+
IEkgdGhpbmsgd2Vic29ja2V0IGNhbiBiZSBpbXByb3ZlZCB0byBoYXZlIHRoZSBjYXBhYmlsaXRp
ZXMNCj4gSSdtIGFkdm9jYXRpbmcgYW5kIHRoZSBvdGhlciBkaWZmZXJlbmNlcyBhcmUgbm90IGlt
cG9ydGFudC4NCj4gU2VlIG15IGJsb2cgb24gdGhpcyBleGFjdCBzdWJqZWN0Og0KPiANCj4gICAg
aHR0cDovL2Jsb2dzLndlYnRpZGUuY29tL2dyZWd3L2VudHJ5L2hvd190b19pbXByb3ZlX3dlYnNv
Y2tldA0KDQpUaGlzIHBvc3Qgd2FzIHRoZSBpbXBldHVzIGZvciBteSBlbWFpbC4gIFlvdSBtYWtl
IHNvbWUgZ29vZCBwb2ludHMgdGhlcmUsIGJ1dCB0aGVuIHVzZSB0aGF0IGFzIGEgdmVoaWNsZSBm
b3IgZXhwcmVzc2luZyB5b3VyIG9waW5pb24uICBUaGF0J3MgYSB2YWx1YWJsZSBjb250cmlidXRp
b24gdG8gdGhlIGRlYmF0ZSwgYnV0IEkgd2FudGVkIHRvIGFwcHJvYWNoIHRoaXMgYSBsaXR0bGUg
bW9yZSBvYmplY3RpdmVseTsgYXBwcm9hY2ggZnJvbSBhIGRpZmZlcmVudCBhbmdsZS4NCg0KPiBJ
ZiB5b3UgYXJlIGNvbmNlcm5lZCBhYm91dCByZWR1Y2luZyBkYXRhIHVzYWdlLA0KDQpUaGF0J3Mg
YW5vdGhlciB2YXJpYWJsZSBpbiB0aGUgbWl4LiAgSSBwZXJzb25hbGx5IHRlbmQgdG8gdmFsdWUg
YXNwZWN0cyBsaWtlIG1haW50YWluYWJpbGl0eSBtb3JlIGhpZ2hseS4NCg0KU3VyZSwgbWV0YWRh
dGEgb3ZlcmhlYWRzIGFyZSBoaWdoLCByZWxhdGl2ZSB0byBvdXIgZXhwZWN0ZWQgcGF5bG9hZCwg
YnV0IGdpdmVuIHRoZSBuYXR1cmUgb2YgdGhlIHByb2JsZW0gc3BhY2UsIEkgYmVsaWV2ZSB0aGF0
IHRoZXJlIGFyZSBiZXR0ZXIgd2F5cyB0byBzcGVuZCBvdXIgc3BlY2lmaWNhdGlvbi9pbXBsZW1l
bnRhdGlvbiBjb21wbGV4aXR5IGJ1ZGdldCB0aGFuIG9uIHN1Y2ggb3B0aW1pemF0aW9ucy4NCg0K
LS1NYXJ0aW4NCg0KDQo=

From gregw@webtide.com  Wed Oct 21 17:17:34 2009
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 205E93A681A for <hybi@core3.amsl.com>; Wed, 21 Oct 2009 17:17:34 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level: 
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[AWL=0.000,  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 96F42LUtWAi2 for <hybi@core3.amsl.com>; Wed, 21 Oct 2009 17:17:33 -0700 (PDT)
Received: from mail-fx0-f218.google.com (mail-fx0-f218.google.com [209.85.220.218]) by core3.amsl.com (Postfix) with ESMTP id EB2693A66B4 for <hybi@ietf.org>; Wed, 21 Oct 2009 17:17:32 -0700 (PDT)
Received: by fxm18 with SMTP id 18so8451727fxm.37 for <hybi@ietf.org>; Wed, 21 Oct 2009 17:17:36 -0700 (PDT)
Received: by 10.103.125.17 with SMTP id c17mr3695658mun.16.1256170656397; Wed, 21 Oct 2009 17:17:36 -0700 (PDT)
Received: from ?192.168.1.117? (dsl081-052-134.sfo1.dsl.speakeasy.net [64.81.52.134]) by mx.google.com with ESMTPS id s11sm1463151mue.11.2009.10.21.17.17.33 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 21 Oct 2009 17:17:35 -0700 (PDT)
Message-ID: <4ADFA49A.8060604@webtide.com>
Date: Wed, 21 Oct 2009 17:17:30 -0700
From: Greg Wilkins <gregw@webtide.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090817)
MIME-Version: 1.0
To: "Thomson, Martin" <Martin.Thomson@andrew.com>
References: <8B0A9FCBB9832F43971E38010638454F0F1EA1D4@SISPE7MB1.commscope.com> <4ADEA997.10705@webtide.com> <8B0A9FCBB9832F43971E38010638454F0F1EA281@SISPE7MB1.commscope.com>
In-Reply-To: <8B0A9FCBB9832F43971E38010638454F0F1EA281@SISPE7MB1.commscope.com>
X-Enigmail-Version: 0.95.7
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] ws and bwtp thoughts
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, 22 Oct 2009 00:17:34 -0000

Thomson, Martin wrote:
> You make some good points there, but then use that as a 
> vehicle for expressing your opinion.

can't help myself :)


>> If you are concerned about reducing data usage,
> 
> That's another variable in the mix.  I personally tend to 
> value aspects like maintainability more highly.
> 
> Sure, metadata overheads are high, relative to our 
> expected payload, but given the nature of the
> problem space, I believe that there are better ways to
> spend our specification/implementation complexity budget
> than on such optimizations.

I can see both sides of this.

Needless to say that even with per message meta-data, I think we
can do a lot better than HTTP which has a lot of request/response
baggage in the accept-xyz headers.

So I don't think that we should immediately conclude that if
per message meta-data is supported, then we are going to see
hundreds of extra bytes per message.

One suggestion I have made previously is to simply define
another type byte for websocket that would mean the content
is mime encoded content with standard headers terminated by
CRLFCRLF.     To put that into my simplified websocket BNF
without channels is:

    ws1-frame           = frame-length
                          frame-type
                          octet-data

    frame-type          = 0x00    ; utf8 frame
                        / 0x01    ; mime encoded frame
                        / 0x02-FF ; undefined binary frame

    frame-length        = unlimited-integer

    unlimited-integer   = *( %x80-FF ) %x00-7F
                        ; concatenate 7 low order bits from each octet
                        ; to form a binary integer

    octet-data          = *( %x00-FF )
                        ; the number of octets is exactly the length determined
                        ; by the frame-length

But this would probably need either some websocket API changes
or some serious extra header conventions to allow transparent
sharing  of TCP/IP connections between websocket "connections",
but it at least opens the possibility.

In fact, header conventions could also be used to
implement channels and other protocol extensions without
needing to put them into the framing.

I think the cat is feeling very nervous about all
the different types of knives that can be used !

However, transporting mime encoded content is such an
obvious thing to do, that the strenuous rejection of
defining a type value for it made me even more concerned
about the non extensible nature of a fixed type byte
mapping.


cheers








From jamie@shareable.org  Wed Oct 21 18:08:13 2009
Return-Path: <jamie@shareable.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 8D9E13A68D6 for <hybi@core3.amsl.com>; Wed, 21 Oct 2009 18:08:13 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.587
X-Spam-Level: 
X-Spam-Status: No, score=-2.587 tagged_above=-999 required=5 tests=[AWL=0.012,  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 YmZU5VBBTHm7 for <hybi@core3.amsl.com>; Wed, 21 Oct 2009 18:08:12 -0700 (PDT)
Received: from mail2.shareable.org (mail2.shareable.org [80.68.89.115]) by core3.amsl.com (Postfix) with ESMTP id B3A6B3A6876 for <hybi@ietf.org>; Wed, 21 Oct 2009 18:08:12 -0700 (PDT)
Received: from jamie by mail2.shareable.org with local (Exim 4.63) (envelope-from <jamie@shareable.org>) id 1N0mA5-0000pd-LM; Thu, 22 Oct 2009 02:08:17 +0100
Date: Thu, 22 Oct 2009 02:08:17 +0100
From: Jamie Lokier <jamie@shareable.org>
To: Peter Saint-Andre <stpeter@stpeter.im>
Message-ID: <20091022010817.GD27677@shareable.org>
References: <4ADEC7A0.7040307@ericsson.com> <4ADF20C7.9030601@stpeter.im>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4ADF20C7.9030601@stpeter.im>
User-Agent: Mutt/1.5.13 (2006-08-11)
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] updated Charter proposal
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, 22 Oct 2009 01:08:13 -0000

Peter Saint-Andre wrote:
> Somewhere in the text we need to make it clear what kind of intermediate
> entities we're talking about -- does that include entities which are in
> some sense HTTP-aware or HTTP-optimized (proxies, load balancers,
> caches, etc.) or also entities that are in some sense more generalized
> (firewalls, network address translators, etc.).

Firewalls and NATs are quite important to HyBi.  Because the server
can't initiate connections, it's necessary for connections to be kept
open as long as the client wishes to receive messages.  Firewalls and
NATs need enough keepalive packets to stop them blocking a connection
in mid use.  And "ping" requests with responses from one side are
not the most efficient way to do that.

HyBi may also need a strategy to cope when a firewall or NAT
spontaneously blocks a connection in the middle of it's use too.  That
might be deferred to the application (bet lots of them will get it
wrong if so), but it should at least be addressed.

-- Jamie

From Martin.Thomson@andrew.com  Wed Oct 21 19:28:23 2009
Return-Path: <Martin.Thomson@andrew.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 355283A68C2 for <hybi@core3.amsl.com>; Wed, 21 Oct 2009 19:28:23 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.541
X-Spam-Level: 
X-Spam-Status: No, score=-2.541 tagged_above=-999 required=5 tests=[AWL=0.058,  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 YYCo3NR+eYJr for <hybi@core3.amsl.com>; Wed, 21 Oct 2009 19:28:22 -0700 (PDT)
Received: from csmailgw2.commscope.com (csmailgw2.commscope.com [198.135.207.244]) by core3.amsl.com (Postfix) with ESMTP id 5C05B3A68B5 for <hybi@ietf.org>; Wed, 21 Oct 2009 19:28:22 -0700 (PDT)
Received: from [10.86.20.103] ([10.86.20.103]:36719 "EHLO ACDCE7HC2.commscope.com") by csmailgw2.commscope.com with ESMTP id S69701AbZJVC2b (ORCPT <rfc822;hybi@ietf.org>); Wed, 21 Oct 2009 21:28:31 -0500
Received: from SISPE7HC1.commscope.com (10.97.4.12) by ACDCE7HC2.commscope.com (10.86.20.103) with Microsoft SMTP Server (TLS) id 8.1.393.1; Wed, 21 Oct 2009 21:28:31 -0500
Received: from SISPE7MB1.commscope.com ([fe80::9d82:a492:85e3:a293]) by SISPE7HC1.commscope.com ([fe80::8a9:4724:f6bb:3cdf%10]) with mapi; Thu, 22 Oct 2009 10:28:28 +0800
From: "Thomson, Martin" <Martin.Thomson@andrew.com>
To: Greg Wilkins <gregw@webtide.com>
Date: Thu, 22 Oct 2009 10:28:52 +0800
Thread-Topic: [hybi] ws and bwtp thoughts
Thread-Index: AcpSrRGFiXhJMuKtSH+PbTzw1kY9SQAAre4g
Message-ID: <8B0A9FCBB9832F43971E38010638454F0F1EA2C1@SISPE7MB1.commscope.com>
References: <8B0A9FCBB9832F43971E38010638454F0F1EA1D4@SISPE7MB1.commscope.com> <4ADEA997.10705@webtide.com> <8B0A9FCBB9832F43971E38010638454F0F1EA281@SISPE7MB1.commscope.com> <4ADFA49A.8060604@webtide.com>
In-Reply-To: <4ADFA49A.8060604@webtide.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-BCN: Meridius 1000 Version 3.4 on csmailgw2.commscope.com
X-BCN-Sender: Martin.Thomson@andrew.com
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] ws and bwtp thoughts
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, 22 Oct 2009 02:28:23 -0000

SGkgR3JlZywNCg0KPiBOZWVkbGVzcyB0byBzYXkgdGhhdCBldmVuIHdpdGggcGVyIG1lc3NhZ2Ug
bWV0YS1kYXRhLCBJIHRoaW5rIHdlDQo+IGNhbiBkbyBhIGxvdCBiZXR0ZXIgdGhhbiBIVFRQIHdo
aWNoIGhhcyBhIGxvdCBvZiByZXF1ZXN0L3Jlc3BvbnNlDQo+IGJhZ2dhZ2UgaW4gdGhlIGFjY2Vw
dC14eXogaGVhZGVycy4NCj4NCj4gU28gSSBkb24ndCB0aGluayB0aGF0IHdlIHNob3VsZCBpbW1l
ZGlhdGVseSBjb25jbHVkZSB0aGF0IGlmDQo+IHBlciBtZXNzYWdlIG1ldGEtZGF0YSBpcyBzdXBw
b3J0ZWQsIHRoZW4gd2UgYXJlIGdvaW5nIHRvIHNlZQ0KPiBodW5kcmVkcyBvZiBleHRyYSBieXRl
cyBwZXIgbWVzc2FnZS4NCg0KSW4gbWFueSBjYXNlcyBubyBwYXJhbWV0ZXJzIHdpbGwgYmUgbmVl
ZGVkLiAgVGh1cywgYXBwbGljYXRpb25zIGdldCB0aGUgYmVzdCBvZiBib3RoIHdvcmxkcy4NCg0K
Rm9yIG1hbnkgV1MtbGlrZSB1c2UgY2FzZXMsIEkgY2FuIHRoaW5rIG9mIG5vIHJlYWwgYmVuZWZp
dCB0aGF0IGlzIGdhaW5lZCBieSBhZGRpbmcgYWRkaXRpb25hbCBwYXJhbWV0ZXJzLiAgV2UndmUg
Z290IGZvbGtzIGxvb2tpbmcgZm9yIG1vcmUgdGhhbiB0aGF0IHRob3VnaC4NCg0KPiBPbmUgc3Vn
Z2VzdGlvbiBJIGhhdmUgbWFkZSBwcmV2aW91c2x5IGlzIHRvIHNpbXBseSBkZWZpbmUNCj4gYW5v
dGhlciB0eXBlIGJ5dGUgZm9yIHdlYnNvY2tldCB0aGF0IHdvdWxkIG1lYW4gdGhlIGNvbnRlbnQN
Cj4gaXMgbWltZSBlbmNvZGVkIGNvbnRlbnQgd2l0aCBzdGFuZGFyZCBoZWFkZXJzIHRlcm1pbmF0
ZWQgYnkNCj4gQ1JMRkNSTEYuDQoNCkkgd291bGQgZ28gZnVydGhlciBhbmQgbWFrZSBldmVyeW9u
ZSBwYXkgdGhlIDQgYnl0ZSBjb3N0Lg0KDQo+IEJ1dCB0aGlzIHdvdWxkIHByb2JhYmx5IG5lZWQg
ZWl0aGVyIHNvbWUgd2Vic29ja2V0IEFQSSBjaGFuZ2VzDQo+IG9yIHNvbWUgc2VyaW91cyBleHRy
YSBoZWFkZXIgY29udmVudGlvbnMgdG8gYWxsb3cgdHJhbnNwYXJlbnQNCj4gc2hhcmluZyAgb2Yg
VENQL0lQIGNvbm5lY3Rpb25zIGJldHdlZW4gd2Vic29ja2V0ICJjb25uZWN0aW9ucyIsDQo+IGJ1
dCBpdCBhdCBsZWFzdCBvcGVucyB0aGUgcG9zc2liaWxpdHkuDQoNCldlIHNob3VsZCBub3QgbmVj
ZXNzYXJpbHkgbWFrZSBwcm90b2NvbCBkZWNpc2lvbnMgYmFzZWQgb24gYSBkcmFmdCBBUEkgZm9y
IHRoYXQgcHJvdG9jb2wuICBCdXQgdGhlbiwgeW91IGtuZXcgdGhhdCA7KQ0KDQo+IEluIGZhY3Qs
IGhlYWRlciBjb252ZW50aW9ucyBjb3VsZCBhbHNvIGJlIHVzZWQgdG8NCj4gaW1wbGVtZW50IGNo
YW5uZWxzIGFuZCBvdGhlciBwcm90b2NvbCBleHRlbnNpb25zIHdpdGhvdXQNCj4gbmVlZGluZyB0
byBwdXQgdGhlbSBpbnRvIHRoZSBmcmFtaW5nLg0KDQpUaGF0IHdhcyB0aGUgZXNzZW5jZSBvZiBt
eSBlbWFpbC4uLiAgVGhhdCBoYXMgY2VydGFpbiBhZHZhbnRhZ2VzIGZyb20gYSBjb21wbGV4aXR5
L2ZsZXhpYmlsaXR5IHN0YW5kcG9pbnQuDQoNCj4gSSB0aGluayB0aGUgY2F0IGlzIGZlZWxpbmcg
dmVyeSBuZXJ2b3VzIGFib3V0IGFsbA0KPiB0aGUgZGlmZmVyZW50IHR5cGVzIG9mIGtuaXZlcyB0
aGF0IGNhbiBiZSB1c2VkICENCg0KVGhlcmUgaGFzIHRvIGJlIGEgbG9sY2F0cyBwaWMgZm9yIHRo
YXQuICBHb29nbGUgZmFpbHMgbWUuDQoNCg==

From ian@hixie.ch  Thu Oct 22 04:47:50 2009
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 86A4E28C137 for <hybi@core3.amsl.com>; Thu, 22 Oct 2009 04:47:50 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.245
X-Spam-Level: 
X-Spam-Status: No, score=-0.245 tagged_above=-999 required=5 tests=[AWL=-2.240, BAYES_40=-0.185, SARE_RMML_Stock17=0.64, SARE_RMML_Stock4=1.54]
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 B4zhSkQR5-iD for <hybi@core3.amsl.com>; Thu, 22 Oct 2009 04:47:48 -0700 (PDT)
Received: from looneymail-a2.g.dreamhost.com (caibbdcaaaaf.dreamhost.com [208.113.200.5]) by core3.amsl.com (Postfix) with ESMTP id 97C943A69C9 for <hybi@ietf.org>; Thu, 22 Oct 2009 04:47:48 -0700 (PDT)
Received: from hixie.dreamhostps.com (hixie.dreamhost.com [208.113.210.27]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by looneymail-a2.g.dreamhost.com (Postfix) with ESMTP id 4540716D330; Thu, 22 Oct 2009 04:47:58 -0700 (PDT)
Date: Thu, 22 Oct 2009 12:01:04 +0000 (UTC)
From: Ian Hickson <ian@hixie.ch>
To: Martin Tyler <martin.tyler@boo.org>, Julian Reschke <julian.reschke@gmx.de>, Greg Wilkins <gregw@webtide.com>, Wellington Fernando de Macedo <wfernandom2004@gmail.com>
In-Reply-To: <4ADB6F0B.4000004@gmail.com>
Message-ID: <Pine.LNX.4.62.0910221120380.9145@hixie.dreamhostps.com>
References: <4ACE50A2.5070404@ericsson.com> <3a880e2c0910081600v3607665dp193f6df499706810@mail.gmail.com> <4ACF4055.6080302@ericsson.com> <Pine.LNX.4.62.0910092116010.21884@hixie.dreamhostps.com> <4AD2E353.8070609@webtide.com> <4AD2F43D.6030202@ninebynine.org> <4AD39A64.4080405@webtide.com> <Pine.LNX.4.62.0910132335390.25383@hixie.dreamhostps.com> <4AD53DCA.6050304@webtide.com> <Pine.LNX.4.62.0910170203460.9145@hixie.dreamhostps.com> <4ADA7FD4.9010406@webtide.com> <4ADB6F0B.4000004@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] Multiplexing in WebSocket
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, 22 Oct 2009 11:47:50 -0000

On Sat, 17 Oct 2009, Martin Tyler wrote:
> On Sat, Oct 17, 2009 at 3:34 AM, Ian Hickson <ian@hixie.ch> wrote:
> > 
> > You are assuming monolithic servers like Apache, with multiple 
> > frameworks plugged into those servers. I'm imagining 100-line perl 
> > scripts. While we have such differing goals, I don't think we can come 
> > to an agreement on this. I want the protocol to be so simple that the 
> > frameworks are unnecessary; that if they are used, they would be the 
> > ones implementing the entire protocol on the server-side. In this 
> > world, there is no server to handle the multiplexing across multiple 
> > frameworks.
>
> Could you explain why you are 'imagining' this?

Because I think that it would result in a healthier ecosystem.


> It's not how things are done now, so why do you think server side 
> development is going to suddenly totally change just because WebSocket 
> is available?

It is how things are done now, for CGI scripts. It's not how things are 
done for HTTP servers.

I don't think server-side development will totally change, but I think 
that it will enable a class of development that simply isn't possible 
today. Imagine how the world might be different if instead of having to 
twist Apache to do your bidding, you could just as easily write your own 
fully-conforming replacement HTTP server in a weekend. Some of the world's 
biggest Web sites have a competitive advantage because they can afford to 
roll their own HTTP server highly optimised for their own setup. By having 
a simpler protocol, with Web Socket, that advantage will be available to 
anyone, not just those who can afford a development team dedicated to 
implementing the big spec.


> Are these multiple 100 line scripts all going to be separate processes 
> listening on separate ports on the same server? This just doesn't sound 
> likely at all.

That depends on what the author wants to do. I expect most sites will only 
need one Web Socket server, which might service multiple URLs.


> I'm imagining server side APIs that wrap this up for you, handling the 
> multiplexing if we go down Gregs route, but even if not you still want 
> something to handle the protocol for you. It would be nice if there 
> could be a single server side API, but that is unlikely due to the 
> number of server side technologies and frameworks - but something fairly 
> consistent could be developed.

Having a simple protocol doesn't preclude this.

Having a complex protocol requires it.


> I really don't get this 11 year olds writing perl scripts idea - have 
> you explained the reasons, use cases, benefits etc of this?

Simplicity is its own benefit.


On Sat, 17 Oct 2009, Julian Reschke wrote:
> Ian Hickson wrote:
> > On Wed, 14 Oct 2009, Julian Reschke wrote:
> > > So, for clarity, it would probably be good to state in the draft 
> > > that this question was considered not to be an issue.
> > 
> > I don't think it's not an issue. It's an issue like many others. I'm 
> > not going to start listing all the things that were considered in the 
> > design of the protocol, that'd just be a massive list of things.
> 
> Well, earlier on you said:
> 
> > FWIW, so far I've concluded (based on long discussions with a number 
> > of developers and implementors) that multiplexing would actually not 
> > be that great. It could probably only be used for multiplexing to a 
> > single websocket path, without making the handshake highly asymmetric 
> > or breaking the HTTP compatibility. If it's intended for per-client 
> > multiplexing, it can easily be implemented at the application layer, 
> > where a much better job can be done that could be done at the protocol 
> > layer. If it's intended for multiclient multiplexing, then it's only 
> > helping server load, not client performance, and server load isn't 
> > especially an issue here.
> 
> So it appears that you aware of that drawback, but chose not to address 
> this. I still think it would be helpful to document that.

I also chose not to support per-message addressing, per-message 
out-of-band metadata, priority channels, compression, connection close 
handshakes, and Gopher compatibility. However, I don't think it's valuable 
for the spec to have a section discussing all the things it doesn't 
support, since that list is infinite.


On Sat, 17 Oct 2009, Greg Wilkins wrote:
> Ian Hickson wrote:
> 
> > Then the author really should just combine the event sources into one 
> > (or use the EventSource feature
> 
> But there might not be 1 author!  Mash-ups and portals and such things 
> will combine the work of many authors unknowingly onto the same page. We 
> want to encourage reuse of components and not require every webapp to be 
> rewritten from scratch with a shared messaging infrastructure.

I don't buy that these widgets will all be communicating with the same 
backend.


> > Could you describe the scenario in which you imagine an application 
> > needing multiple two-way communication channels one after the other, 
> > each for short periods of time, each with a different server-side 
> > development team? I'm not really seeing the use case here.
> 
> Consider the google home page.  This can be customized with lots of 
> widgets from third parties.

If the widgets are from third parties, then they wouldn't all talk back to 
the same server.

If the widgets are all talking back to the same server, then the server 
provider can also provide a common library that channels all communication 
over a single socket. Consider widgets used on sites like Yahoo! and 
MySpace, based on Caja -- they wouldn't allow direct access to WebSocket 
at all, and would channel everything through a single socket. This allows 
them to control the multiplexing.


> Imagine the same sort of site, but fronting an organization with lots of 
> real time data. A stock trading site for example.
> 
> They may allow a user to populate their pages with widgets supplied by 
> third parties that may perform all sorts of trading analysis, monitoring 
> and trading.  I widget may establish "connections" to:
> 
>     + receive live price information
>     + monitor the state of orders placed
>     + interact with others in a process to create a
>       complex instrument, swap etc.
> 
> These "connections" may be short or long lived (who knows how long an 
> order might take to complete).
> 
> For scalability of the service, you don't want every widget to be given 
> it's own TCP/IP connection.

Indeed -- and you wouldn't. You'd provide a shared worker that handled the 
connection management and which multiplexed all your messages for you, in 
a manner that makes the most sense for this site.


> Of course the organization could provide a js framework that did that 
> multiplexing - but widget developers would be highly unlikely to use it.

I don't see why. I think it's in fact far more likely that they'd use a 
provided library than try to reverse-engineer the site's protocol.


> If they use websocket directly, then the code they write can access the 
> service both in the portal site and from other sites that don't have the 
> framework. Plus if they don't use the framework, they get their own 
> dedicated TCP/IP connection and they will get some latency/performance 
> benefits of other widgets that are sharing a connection. Of course this 
> creates an arms race as it only works if everbody else is sharing. Soon 
> all widgets will be using their own dedicated connection, then each 
> widget would start opening multiple dedicated connections (eg 1 per 
> share), trying to get more and more resources allocated.
>
> Developers and resources are like 3 years olds and toys! There is no 
> such thing as optional sharing!

I disagree with your pessimism here. I think there is ample evidence that 
people are happy to use JS libraries to talk to services. Consider 
Google's GData API. Do you know anyone who uses this API without using the 
GData JS library?


> I really do not think you should be using your influence over the 
> websocket protocol to drive some agenda to revolutionize server side 
> development.
> 
> We cannot design a protocol that is only suitable for some imagined 
> future scenario.
> 
> Trying to enforce this future by making future protocols badly support 
> monolithic servers strikes me as some Orwellian mind control exercise!

Web Sockets supports monolithic servers fine, it just doesn't require 
them.

I don't think you should be using _your_ influence by continuing the trend 
of over-engineered protocols that require monolithic servers. :-)


> > If the channels are multiplexed, then we're assuming that the 
> > server-side is an "aggregating resource" as you put it. If it's 
> > possible to use an aggregating resource with a multiplexed connection, 
> > then why would it not be possible to do it with a Web Socket 
> > connection? I don't understand.
> 
> Because in the real world, we have one set of developers writing servers 
> and user-agents and another set of developers writing applications that 
> run on them.

That can still happen. I just think we shouldn't artificially create a 
market for the server developers by making them necessary to application 
development. That's unhealthy.


> The infrastructure developers impose all sorts of restrictions on the 
> application developers

That pretty much summarises the problem with complex protocols.


> In this world, the application developers will throw off the 
> infrastructure shackles imposed on them, because indeed a dedicated 
> TCP/IP connections is better than a shared one. Cross domain development 
> is so much easier without security models etc. Better let them run as 
> root as well, because then they can open any port and up their priority 
> to stop sharing CPU.

The Web Socket protocol has a built-in security model. The rest of your 
comment is a wild exaggeration of what I'm saying.


> There are really really good reasons why infrastructure is developed for 
> application developers.  Infrastructure is not only to enable 
> applications, but it is to constrain them and to force them to share 
> resources fairly and to respect security models.
>
> But there is absolutely no way that any responsible organisation is 
> going to deploy a system where sockets opened by applications 
> programmers are exposed directly to the internet and run with ad-hoc 
> protocol implementations.

Web Sockets doesn't require this. It allows you to be as constraining as 
you like.


> > I assume it is a given that you would want a protocol to have the 
> > property that connecting with path A, then opening a channel for path 
> > B, should result in a connection with the same internal state as 
> > connecting with path B, then opening a channel for path A.
> > 
> > Given the HTTP Upgrade mechanism whereby an HTTP server can have a 
> > WebSocket script assigned to each path, you can end up in a situation 
> > where connecting to A and connecting to B establish connections with 
> > different server-side scripts.
> 
> How so.
> 
> I'm advocating abstracting developers away from connections.
> Handler A will send/receive messages for path A
> Handler B will send/receive messages for path B
> 
> Neither handler has any need to know if a shared connection was
> used or not.

The model you describe is incompatible with light-weight self-contained 
servers without a monolithic controlling server. I'm not interested in 
artificially supporting such monolithic server development when we don't 
have to.


> > The entire purpose of Web Socket is to provide a TCP connection to 
> > JavaScript. That's the goal.
> 
> Really?  If it was, then why not just expose the real socket API?

Because that wouldn't be Web-safe, and it wouldn't be compatible with the 
Web browser quantised event model.

Web Socket is the smallest delta I could find from TCP to be Web-safe and 
quantised. It adds a handshake to prevent connection to WebSocket-unaware 
servers; it adds a security layer to prevent XSS- and CSRF-like attacks; 
and it adds framing to change TCP from a stream model to a packet model. 
Other than that, it adds nothing.


> Surely the aim is to establish bidirectional communication with the 
> server.  Whose to say that TCP/IP will be the favoured transport for the 
> entire life span of the applications using the websocket API?

If something else becomes better, then let's introduce a new protocol. For 
now, though, that's not a problem.


> In any case, if the IETF is to endorse a new web protocol, I believe 
> that their charter is to consider more than just the needs of javascript 
> developers.

The IETF is welcome to do whatever it likes. The only reason Web Sockets 
is here is that the IETF wanted it here.

Web Sockets has as its goal to safely expose TCP to JS developers. If 
there are other goals that need to be met, then other protocols should be 
developed. We shouldn't artificially try to jam multiple goals into one 
protocol just because we happen to be on one mailing list together.


On Sun, 18 Oct 2009, Wellington Fernando de Macedo wrote:
>
> I would like to make a contribution to this discussion. I think the ws 
> protocol is good as it is right now. But I think multiplexing is a 
> valuable feature. I don't like the BWTP proposal because I think it is 
> expensive. Considering the current protocol, I suggest we introduce 
> "channel handshakes", using another frame type. Each WebSocket object 
> instance would be associated with one channel. I don't intend to make 
> another proposal, so I will illustrate what I'm thinking using an 
> example and I hope it can be useful someway :)
> 
> 1. Suppose there is already a established connection:
> 
> User agent
> -------------
> GET /ws/script1.php HTTP/1.1
> Upgrade: WebSocket
> Connection: Upgrade
> Host: www.myhost.com
> Origin: file://
> CR LF
> 
> Server
> -------------
> HTTP/1.1 101 Web Socket Protocol Handshake
> Upgrade: WebSocket
> Connection: Upgrade
> websocket-origin: file://
> websocket-location: ws://www.myhost.com/ws/script1.php
> CR LF
> 
> 2. A normal exchange of data.
> 
> User Agent
> --------------
> 0x00 ping 0xff
> 
> Server
> --------------
> 0x00 pong 0xff
> 
> 3. In the meanwhile the user agent has to open 
> ws://www.myhost.com/ws/script2.php. Then, using the same connection, the 
> user agent could use the 0x01 frame type as a way to perform the 
> "channel handshake". Also, the request must have a websocket-channel-id 
> header (containing a two bytes number value) which would identity the 
> channel.
> 
> User Agent
> --------------
> 0x01 GET /ws/script2.php HTTP/1.1
> Upgrade: WebSocket
> Connection: Upgrade
> Host: www.myhost.com
> Origin: file://
> websocket-channel-id: 1
> CR LF 0xff
> 
> Server
> -------------
> 0x01 HTTP/1.1 101 Web Socket Protocol Handshake
> Upgrade: WebSocket
> Connection: Upgrade
> websocket-origin: file://
> websocket-location: ws://www.myhost.com/ws/script2.php
> websocket-channel-id: 1
> CR LF 0xff
> 
> 4. Since that, both channels could exchange data using a third frame 
> type (0x02), followed by the channel id. The initial channel could still 
> use the 0x00 frame type, however. For instance, a exchange of data on 
> the initial channel would be:
> 
> User Agent
> --------------
> 0x00 ping 0xff
> 
> Server
> --------------
> 0x00 pong 0xff
> 
> or
> 
> User Agent
> --------------
> 0x02 0x00 0x00 ping 0xff
> 
> Server
> --------------
> 0x02 0x00 0x00 pong 0xff
> 
> 4. And a exchange of data on the new channel:
> User Agent
> --------------
> 0x02 0x00 0x01 ping 0xff
> 
> Server
> --------------
> 0x02 0x00 0x01 pong 0xff

The problem with this model is that if the connections are being handed 
from an HTTP server to various Web Socket servers, one for each URL, the 
above wouldn't work -- you'd end up connecting to /ws/script1.php, and 
then asking _that_ script to connect to /ws/script2.php, which makes no 
sense.

It's also unclear how you would handle the security model in this world. 
What if the server returns a different origin for the nested channel? 
Also, how do you handle connection closure? What if the user opens a dozen 
tabs to a server, and then closes all but one -- does the server have to 
keep all the channels open?

This kind of model would introduce the possibility of a proxy that merges 
multiple Web Socket connections together, but what if the author tested 
without a proxy, and so never saw multiple connections from different 
users to the same TCP connection, and therefore assumed per-connection 
security? Also, how would a heavy-traffic site handle the one connection 
from a proxy at a large site, where channels were continually opened?

Generally, this introduces a host of thorny problems that TCP has already 
solved. I think rather than reinventing TCP inside WebSocket, we're better 
off leaving this as an application-layer problem, where authors are much 
better positioned to make educated choices for how to implement this.

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

From gregw@webtide.com  Thu Oct 22 09:32:08 2009
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 8B4283A68A1 for <hybi@core3.amsl.com>; Thu, 22 Oct 2009 09:32:08 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.299
X-Spam-Level: 
X-Spam-Status: No, score=-2.299 tagged_above=-999 required=5 tests=[AWL=-0.300, BAYES_50=0.001, GB_I_INVITATION=-2]
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 0wyrEKSwazzQ for <hybi@core3.amsl.com>; Thu, 22 Oct 2009 09:32:07 -0700 (PDT)
Received: from mail-fx0-f218.google.com (mail-fx0-f218.google.com [209.85.220.218]) by core3.amsl.com (Postfix) with ESMTP id 11F673A687C for <hybi@ietf.org>; Thu, 22 Oct 2009 09:32:06 -0700 (PDT)
Received: by fxm18 with SMTP id 18so9386275fxm.37 for <hybi@ietf.org>; Thu, 22 Oct 2009 09:32:13 -0700 (PDT)
Received: by 10.204.11.18 with SMTP id r18mr406807bkr.15.1256229133039; Thu, 22 Oct 2009 09:32:13 -0700 (PDT)
Received: from ?192.168.1.117? (dsl081-052-134.sfo1.dsl.speakeasy.net [64.81.52.134]) by mx.google.com with ESMTPS id 1sm2246826fkt.11.2009.10.22.09.32.10 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 22 Oct 2009 09:32:11 -0700 (PDT)
Message-ID: <4AE08907.7080402@webtide.com>
Date: Thu, 22 Oct 2009 09:32:07 -0700
From: Greg Wilkins <gregw@webtide.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090817)
MIME-Version: 1.0
To: Ian Hickson <ian@hixie.ch>
References: <4ACE50A2.5070404@ericsson.com> <3a880e2c0910081600v3607665dp193f6df499706810@mail.gmail.com> <4ACF4055.6080302@ericsson.com> <Pine.LNX.4.62.0910092116010.21884@hixie.dreamhostps.com> <4AD2E353.8070609@webtide.com> <4AD2F43D.6030202@ninebynine.org> <4AD39A64.4080405@webtide.com> <Pine.LNX.4.62.0910132335390.25383@hixie.dreamhostps.com> <4AD53DCA.6050304@webtide.com> <Pine.LNX.4.62.0910170203460.9145@hixie.dreamhostps.com> <4ADA7FD4.9010406@webtide.com> <4ADB6F0B.4000004@gmail.com> <Pine.LNX.4.62.0910221120380.9145@hixie.dreamhostps.com>
In-Reply-To: <Pine.LNX.4.62.0910221120380.9145@hixie.dreamhostps.com>
X-Enigmail-Version: 0.95.7
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: hybi@ietf.org
Subject: Re: [hybi] Multiplexing in WebSocket
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, 22 Oct 2009 16:32:08 -0000

Ian Hickson wrote:
> Having a simple protocol doesn't preclude this.
> 
> Having a complex protocol requires it.

I think this is a straw man.  Any protocol that is not
websocket is not by definition complex.


Something like BWTP could also be written over a weekend
in perl or similar.    It could also run in the many little
server mode that you think is best.

The hard part of "monolithic" servers is not implementing the
protocol.   It is implementing as scalable protocol, an application
environment, all the goop specified by JEE specs (if you are in java),
the security sandbox, etc

If you don't want all that, then even HTTP can be built in a
day or two - I've done so several times.



> On Sat, 17 Oct 2009, Greg Wilkins wrote:
>> Ian Hickson wrote:
>>
>>> Then the author really should just combine the event sources into one 
>>> (or use the EventSource feature
>> But there might not be 1 author!  Mash-ups and portals and such things 
>> will combine the work of many authors unknowingly onto the same page. We 
>> want to encourage reuse of components and not require every webapp to be 
>> rewritten from scratch with a shared messaging infrastructure.
> 
> I don't buy that these widgets will all be communicating with the same 
> backend.

Why not?  if they are all on a portal page put together by www.bigCompany.com
then they all might be accessing the services of bigCompany.com

Currently companies put static content onto common CDN services, and
maybe in future there will be dynamic services on common services.

I've already seen social networking services, advertising services
and analytic services having common components on many many websites,
so it is increasingly likely that multiple unrelated pages from
different sites will access common services on common hosts.


> If the widgets are from third parties, then they wouldn't all talk back to 
> the same server.

Not if the widgets are all different ways of presenting the data/events
from the same server.

> I disagree with your pessimism here. I think there is ample evidence that 
> people are happy to use JS libraries to talk to services. Consider 
> Google's GData API. Do you know anyone who uses this API without using the 
> GData JS library?

If there was a performance advantage to be gained, then I'm sure they
would.    But with XHR based APIs, coding to the GData API or to XHR
gives you the same access to the underlying network resources.

If there was an API in the browser that gave me a dedicated HTTP
connection, I would certainly use it now for long polling - even
though I know that rationally that is not the best thing to do.


> The Web Socket protocol has a built-in security model. The rest of your 
> comment is a wild exaggeration of what I'm saying.

True

>> In any case, if the IETF is to endorse a new web protocol, I believe 
>> that their charter is to consider more than just the needs of javascript 
>> developers.
> 
> The IETF is welcome to do whatever it likes. The only reason Web Sockets 
> is here is that the IETF wanted it here.

And since you have accepted the IETFs invitation to submit a draft,
you should do so in good faith and not expect the IETF to rubber stamp
what you've done simply because you have no intention of changing it.

Remember, it is not just the browser vendors that websocket must
win over.      In order for it to be a success, then all kinds
of web infrastructure needs to be updated to support it - firewalls,
proxies, web caches, corporate policies etc. etc.    Having IETF
endorsed standard is going to greatly increase the chances of
success.

You can open a real socket from a web browser now with commonly
installed plugins - but it is not that useful because the network
community does not allow arbitrary sockets to traverse the network.


regards














regards

From josh@lindenlab.com  Thu Oct 22 09:39:32 2009
Return-Path: <josh@lindenlab.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 53FAA3A67FA for <hybi@core3.amsl.com>; Thu, 22 Oct 2009 09:39:32 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.426
X-Spam-Level: 
X-Spam-Status: No, score=-1.426 tagged_above=-999 required=5 tests=[AWL=0.550,  BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001]
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 RNd8ZiNBKwpQ for <hybi@core3.amsl.com>; Thu, 22 Oct 2009 09:39:31 -0700 (PDT)
Received: from mail-iw0-f186.google.com (mail-iw0-f186.google.com [209.85.223.186]) by core3.amsl.com (Postfix) with ESMTP id 2247F3A687C for <hybi@ietf.org>; Thu, 22 Oct 2009 09:39:31 -0700 (PDT)
Received: by iwn16 with SMTP id 16so4583961iwn.29 for <hybi@ietf.org>; Thu, 22 Oct 2009 09:39:38 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.231.120.30 with SMTP id b30mr4569147ibr.15.1256229578005; Thu,  22 Oct 2009 09:39:38 -0700 (PDT)
In-Reply-To: <4ADD2FAC.9050902@webtide.com>
References: <4ADD2FAC.9050902@webtide.com>
Date: Thu, 22 Oct 2009 09:39:37 -0700
Message-ID: <f72742de0910220939j33d9d72cudad96857b592b801@mail.gmail.com>
From: Joshua Bell <josh@lindenlab.com>
To: "hybi@ietf.org" <hybi@ietf.org>
Content-Type: multipart/alternative; boundary=0016362850ecc0de5b047688bdde
Subject: Re: [hybi] how to improve websocket
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, 22 Oct 2009 16:39:32 -0000

--0016362850ecc0de5b047688bdde
Content-Type: text/plain; charset=UTF-8

On Mon, Oct 19, 2009 at 8:34 PM, Greg Wilkins <gregw@webtide.com> wrote:

>
> http://blogs.webtide.com/gregw/entry/how_to_improve_websocket
>
>
I agree with nearly all of of the critiques contained in that analysis. I do
think it would be *possible* to defer the orderly close, message
fragmentation/multiplexing, and extensibility suggestions and still produce
a clearly understandable spec, but believe the rest is fundamental -
specification style (as ABNF), simplified framing (see below), and semantic
specification.

In addition:

* I seem to recall that one of the desires for sentinel-based frames was to
allow octet streams for which the length was not known in advance. For
example, streaming byte-oriented data from an input or other interface
device, and not wanting to use a whole frame for each octet, nor wait until
a certain amount of data had been buffered. That said, only UTF-8 (i.e.
character-based) data is transmissible via the sentinel (without a separate
encoding layer) per section 4.2, which limits the utility

* My reading of section 4.2 (supported by the non-normative section 1.2) in
draft-hixie-thewebsocketprotocol-50 is such that length-based binary data
(frame types 0x80-0xff) are actually deprecated(?) - "6.  Read /length/
bytes." "7.  Discard the read bytes." - the data is never actually to be
interpreted by the client! (Contrast step 5 in the sentinel frame section of
the algorithm, which explicitly calls out when to indicate a message is
received or discarded)

Is this intentional, or an error in the WebSockets Protocol draft? Is this
intentionally deprecated? (i.e. are there implementations which implement
this such that the behavior must be reserved but is not advocated?)

Assuming my reading is not mistaken, the result is confusing; efficient
length-based transmission - which would be most applicable for sending
chunks of data such as text (e.g. JSON-encoded data structures) - is not
supported, yet sentinel-based transmission - most applicable for raw octet
streams of unknown length - is supported but only when constrained to
character-based transmission (as UTF-8 sequences).

So... am I confused? (probably...)

--0016362850ecc0de5b047688bdde
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div class=3D"gmail_quote">On Mon, Oct 19, 2009 at 8:34 PM, Greg Wilkins <s=
pan dir=3D"ltr">&lt;<a href=3D"mailto:gregw@webtide.com">gregw@webtide.com<=
/a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"border-=
left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left=
: 1ex;">
<br>
<a href=3D"http://blogs.webtide.com/gregw/entry/how_to_improve_websocket" t=
arget=3D"_blank">http://blogs.webtide.com/gregw/entry/how_to_improve_websoc=
ket</a><br>
<br>
</blockquote></div><br>I agree with nearly all of of the critiques containe=
d in that analysis. I do think it would be *possible* to defer the orderly =
close, message fragmentation/multiplexing, and extensibility suggestions an=
d still produce a clearly understandable spec, but believe the rest is fund=
amental - specification style (as ABNF), simplified framing (see below), an=
d semantic specification.<br>
<br>In addition:<br><br>* I seem to recall that one of the desires for sent=
inel-based frames was to allow octet streams for which the length was not k=
nown in advance. For example, streaming byte-oriented data from an input or=
 other interface device, and not wanting to use a whole frame for each octe=
t, nor wait until a certain amount of data had been buffered. That said, on=
ly UTF-8 (i.e. character-based) data is transmissible via the sentinel (wit=
hout a separate encoding layer) per section 4.2, which limits the utility <=
br>
<br>* My reading of section 4.2 (supported by the non-normative section 1.2=
) in draft-hixie-thewebsocketprotocol-50 is such that length-based binary d=
ata (frame types 0x80-0xff) are actually deprecated(?) - &quot;6.=C2=A0 Rea=
d /length/ bytes.&quot; &quot;7.=C2=A0 Discard the read bytes.&quot; - the =
data is never actually to be interpreted by the client! (Contrast step 5 in=
 the sentinel frame section of the algorithm, which explicitly calls out wh=
en to indicate a message is received or discarded)<br>
<br>Is this intentional, or an error in the WebSockets Protocol draft? Is t=
his intentionally deprecated? (i.e. are there implementations which impleme=
nt this such that the behavior must be reserved but is not advocated?)<br>
<br>Assuming my reading is not mistaken, the result is confusing; efficient=
 length-based transmission - which would be most applicable for sending chu=
nks of data such as text (e.g. JSON-encoded data structures) - is not suppo=
rted, yet sentinel-based transmission - most applicable for raw octet strea=
ms of unknown length - is supported but only when constrained to character-=
based transmission (as UTF-8 sequences).<br>
<br>So... am I confused? (probably...)<br><br>

--0016362850ecc0de5b047688bdde--

From ian@hixie.ch  Thu Oct 22 20:34:52 2009
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 5A7883A67E5 for <hybi@core3.amsl.com>; Thu, 22 Oct 2009 20:34:52 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.37
X-Spam-Level: 
X-Spam-Status: No, score=-3.37 tagged_above=-999 required=5 tests=[AWL=1.229,  BAYES_00=-2.599, GB_I_LETTER=-2]
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 H7FCsu5qYflM for <hybi@core3.amsl.com>; Thu, 22 Oct 2009 20:34:51 -0700 (PDT)
Received: from looneymail-a1.g.dreamhost.com (caibbdcaaaaf.dreamhost.com [208.113.200.5]) by core3.amsl.com (Postfix) with ESMTP id 31FEC3A67A2 for <hybi@ietf.org>; Thu, 22 Oct 2009 20:34:51 -0700 (PDT)
Received: from hixie.dreamhostps.com (hixie.dreamhost.com [208.113.210.27]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by looneymail-a1.g.dreamhost.com (Postfix) with ESMTP id 1FF6E15D570; Thu, 22 Oct 2009 20:35:00 -0700 (PDT)
Date: Fri, 23 Oct 2009 03:48:11 +0000 (UTC)
From: Ian Hickson <ian@hixie.ch>
To: Mark Nottingham <mnot@yahoo-inc.com>
In-Reply-To: <D220DA29-4AE5-4BDE-A091-03363A868089@yahoo-inc.com>
Message-ID: <Pine.LNX.4.62.0910230323190.9145@hixie.dreamhostps.com>
References: <91a5e3ea0907021759m435e88dfse5af37316fed6a7@mail.gmail.com> <d763ac660907162218i7406cba0g4e5bd2850e54f483@mail.gmail.com> <Pine.LNX.4.62.0907170920530.12284@hixie.dreamhostps.com> <1248913601.18899.8912.camel@lifeless-64> <Pine.LNX.4.62.0908050035420.6420@hixie.dreamhostps.com> <683251b3b589adf4e96c3c1c8223e216@mail.treenet.co.nz> <403d38e20908212341k74655368h2aacd17f36fd14c0@mail.gmail.com> <Pine.LNX.4.62.0909040119040.6775@hixie.dreamhostps.com> <1252031296.12642.13.camel@lifeless-64> <Pine.LNX.4.62.0910131111250.25383@hixie.dreamhostps.com> <EEFDE49B-6116-41CC-B59A-FC1D27AA63BA@yahoo-inc.com> <1255475233.2071.74.camel@lifeless-64> <3E41FB22-8E07-4C86-BF6B-BA177CDB8A83@yahoo-inc.com> <Pine.LNX.4.62.0910162201380.25383@hixie.dreamhostps.com> <1247E151-01A6-4DBF-BAE5-3CE43B392553@yahoo-inc.com> <Pine.LNX.4.62.0910212338300! .9145@hixie.dreamhostps.com> <D220DA29-4AE5-4BDE-A091-03363A868089@yahoo-inc.com>
Content-Language: en-GB-hixie
Content-Style-Type: text/css
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Cc: Amos Jeffries <squid3@treenet.co.nz>, hybi@ietf.org, Henrik Nordstrom <henrik@henriknordstrom.net>, Squid Developers <squid-dev@squid-cache.org>, Alex Rousskov <rousskov@measurement-factory.com>, Adrian Chadd <adrian@squid-cache.org>, Robert Collins <robertc@robertcollins.net>
Subject: Re: [hybi] WebSockets negotiation over HTTP
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: Fri, 23 Oct 2009 03:34:52 -0000

(cc'ing hybi by request, since this e-mail involves changes to the 
WebSocket protocol)

On Thu, 22 Oct 2009, Mark Nottingham wrote:
> On 22/10/2009, at 10:52 AM, Ian Hickson wrote:
> > > 
> > > Until the upgrade is complete, you're speaking HTTP and working with 
> > > HTTP implementations.
> > 
> > How so? A WebSocket client is always talking Web Socket, even if it 
> > might also sound like HTTP.
> 
> Yes, but to someone examining the traffic -- whether in a debugger or an 
> intermediary -- it looks, smells and quacks like HTTP.

A person looking the traffic in a debugger will clearly see it's 
WebSocket, since it says WebSocket at least twice in the request (once on 
the second line).

An intermediary is supposed to treat it as HTTP; that is part of how we 
get intermediaries to drop the connection (they should fail to recognise 
the Upgrade and drop the connection).


> It declares itself to be HTTP/1.1 by using the HTTP/1.1 protocol 
> identifier in the request-line. What's the point of doing that -- i.e., 
> why not use WebSockets/1.0?

Wouldn't that be an inappropriate use of port 80?


> > > Have you verified that implementations (e.g., Apache module API) 
> > > will give you byte-level access to what's on the wire in the 
> > > request, and byte-level control over what goes out in the response?
> > 
> > On the server side, you don't need wire-level control over what's 
> > coming in, only over what's going out.
> 
> Yes, you do, because section 5.2 specifies headers as 
> whitespace-sensitive and header-names as case-sensitive.

You can completely ignore the incoming handshake, actually. Servers aren't 
required to do anything with the incoming handshake. There's no big 
interop issue with them handling whitespace differently in practice, so 
long as the client-side UA follows the spec to the letter.


> > > This looks an awful lot like a redirect.
> > 
> > There's no redirection involved here. It's just confirming the opened 
> > URL, as part of the handshake. The TCP connection is not closed 
> > (unless the handshake fails, and then it's not reopened).
> > 
> > > I see now that you have the client-side fail a connection where the 
> > > URL doesn't match, but that's really not obvious in 5.1. Please put 
> > > some context in there and reinforce that the URL has to be the URL 
> > > of the current script, not just any script.
> > 
> > Ok, I've added a note at the end of that section explaining that the 
> > user agent will fail the connection if the strings don't match what 
> > the UA sent. Please let me know if you'd like anything else clarified; 
> > I don't really know exactly what should be made clearer.
> 
> Did this get into -50? Don't see anything in the diff...

Loos like there was some update issue. Try now:

   http://tools.ietf.org/html/draft-hixie-thewebsocketprotocol#section-5.1

You can always find the most up-to-date text on the WHATWG site, if the 
IETF update process fails (or when there's an IETF meeting in progress, 
since apparently we're not allowed to make progress during IETF meetings):

   http://www.whatwg.org/specs/web-apps/current-work/complete.html#websocket-protocol
 

> The most effective way of doing this would be to actually define the new 
> headers' semantics in your draft; Websocket-Location, for example, is 
> only defined as client-side and server-side behaviours. I know this is 
> probably intentional, but people will read all sorts of things into this 
> header (especially since its name is so similar to other HTTP headers) 
> unless you give some indication of what it means.

I've tried adding more information to the sections that define headers, to 
describe what they do.

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

From ian@hixie.ch  Thu Oct 22 20:43:40 2009
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 4E0A63A68DF for <hybi@core3.amsl.com>; Thu, 22 Oct 2009 20:43:40 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.457
X-Spam-Level: 
X-Spam-Status: No, score=-3.457 tagged_above=-999 required=5 tests=[AWL=1.142,  BAYES_00=-2.599, GB_I_INVITATION=-2]
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 nLLep1IcCkTo for <hybi@core3.amsl.com>; Thu, 22 Oct 2009 20:43:39 -0700 (PDT)
Received: from looneymail-a1.g.dreamhost.com (caibbdcaaaaf.dreamhost.com [208.113.200.5]) by core3.amsl.com (Postfix) with ESMTP id 1C0013A68DE for <hybi@ietf.org>; Thu, 22 Oct 2009 20:43:39 -0700 (PDT)
Received: from hixie.dreamhostps.com (hixie.dreamhost.com [208.113.210.27]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by looneymail-a1.g.dreamhost.com (Postfix) with ESMTP id B057A15D570; Thu, 22 Oct 2009 20:43:48 -0700 (PDT)
Date: Fri, 23 Oct 2009 03:57:03 +0000 (UTC)
From: Ian Hickson <ian@hixie.ch>
To: Greg Wilkins <gregw@webtide.com>
In-Reply-To: <4AE08907.7080402@webtide.com>
Message-ID: <Pine.LNX.4.62.0910230348470.9145@hixie.dreamhostps.com>
References: <4ACE50A2.5070404@ericsson.com> <3a880e2c0910081600v3607665dp193f6df499706810@mail.gmail.com> <4ACF4055.6080302@ericsson.com> <Pine.LNX.4.62.0910092116010.21884@hixie.dreamhostps.com> <4AD2E353.8070609@webtide.com> <4AD2F43D.6030202@ninebynine.org> <4AD39A64.4080405@webtide.com> <Pine.LNX.4.62.0910132335390.25383@hixie.dreamhostps.com> <4AD53DCA.6050304@webtide.com> <Pine.LNX.4.62.0910170203460.9145@hixie.dreamhostps.com> <4ADA7FD4.9010406@webtide.com> <4ADB6F0B.4000004@gmail.com> <Pine.LNX.4.62.0910221120380.9145@hixie.dreamhostps.com> <4AE08907.7080402@webtide.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] Multiplexing in WebSocket
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: Fri, 23 Oct 2009 03:43:40 -0000

On Thu, 22 Oct 2009, Greg Wilkins wrote:
> Ian Hickson wrote:
> > Having a simple protocol doesn't preclude this.
> > 
> > Having a complex protocol requires it.
> 
> I think this is a straw man.  Any protocol that is not websocket is not 
> by definition complex.

I didn't mean to imply that, my apologies.


> Something like BWTP could also be written over a weekend in perl or 
> similar.  It could also run in the many little server mode that you 
> think is best.
> 
> The hard part of "monolithic" servers is not implementing the protocol.  
> It is implementing as scalable protocol, an application environment, all 
> the goop specified by JEE specs (if you are in java), the security 
> sandbox, etc
> 
> If you don't want all that, then even HTTP can be built in a day or two 
> - I've done so several times.

I am skeptical that a _fully conforming_ HTTP server can be implemented in 
a weekend by most Web devs.


> > On Sat, 17 Oct 2009, Greg Wilkins wrote:
> >> Ian Hickson wrote:
> >>
> >>> Then the author really should just combine the event sources into one 
> >>> (or use the EventSource feature
> >> But there might not be 1 author!  Mash-ups and portals and such things 
> >> will combine the work of many authors unknowingly onto the same page. We 
> >> want to encourage reuse of components and not require every webapp to be 
> >> rewritten from scratch with a shared messaging infrastructure.
> > 
> > I don't buy that these widgets will all be communicating with the same 
> > backend.
> 
> Why not?  if they are all on a portal page put together by www.bigCompany.com
> then they all might be accessing the services of bigCompany.com

Then they could just use a common JS library that multiplexed for them. 
Why would www.bigCompany.com open multiple connections to itself, if it 
wanted to save on the number of TCP connections to its servers?


> Currently companies put static content onto common CDN services, and 
> maybe in future there will be dynamic services on common services.
> 
> I've already seen social networking services, advertising services and 
> analytic services having common components on many many websites, so it 
> is increasingly likely that multiple unrelated pages from different 
> sites will access common services on common hosts.

Sure; but then they would almost certainly also want common resources 
locally, and could therefore just use a common shared worker with a single 
TCP connection.


> > If the widgets are from third parties, then they wouldn't all talk 
> > back to the same server.
> 
> Not if the widgets are all different ways of presenting the data/events 
> from the same server.

I do not believe this is the 80% case, and thus do not think it is worth 
addressing in the first version.


> > I disagree with your pessimism here. I think there is ample evidence 
> > that people are happy to use JS libraries to talk to services. 
> > Consider Google's GData API. Do you know anyone who uses this API 
> > without using the GData JS library?
> 
> If there was a performance advantage to be gained, then I'm sure they 
> would.  But with XHR based APIs, coding to the GData API or to XHR gives 
> you the same access to the underlying network resources.
> 
> If there was an API in the browser that gave me a dedicated HTTP 
> connection, I would certainly use it now for long polling - even though 
> I know that rationally that is not the best thing to do.

I think authors are lazier than that, personally.


> > The IETF is welcome to do whatever it likes. The only reason Web 
> > Sockets is here is that the IETF wanted it here.
> 
> And since you have accepted the IETFs invitation to submit a draft, you 
> should do so in good faith and not expect the IETF to rubber stamp what 
> you've done simply because you have no intention of changing it.

I've made lots of changes to the WebSocket protocol -- heck, I've made so 
many changes based on feedback here and elsewhere that people have started 
complaining that I've made too many!

There is a difference between not making any changes, and not making the 
changes you want me to make. I do not believe that multiplexing is a good 
idea in this protocol.


> Remember, it is not just the browser vendors that websocket must win 
> over.  In order for it to be a success, then all kinds of web 
> infrastructure needs to be updated to support it - firewalls, proxies, 
> web caches, corporate policies etc. etc.

Actually, as designed, WebSocket does an end-run around most of these. The 
only case I'm aware of where WebSocket would need help is in environments 
that do not even allow port 443 traffic to pass through unmolested.


> You can open a real socket from a web browser now with commonly
> installed plugins - but it is not that useful because the network
> community does not allow arbitrary sockets to traverse the network.

Actually commonly installed plugins have security models to prevent 
arbitrary port connections, just like WebSockets. Personally I think the 
WebSocket security model is better than, say, Flash's, but at the end of 
the day it has much the same effect and provides much the same feature. 
The difference between Flash and WebSocket is the same as between Flash 
and HTML5 <video>: one is proprietary, the other is vendor-neutral.

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

From ian@hixie.ch  Thu Oct 22 20:46:29 2009
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 CA94D3A67E5 for <hybi@core3.amsl.com>; Thu, 22 Oct 2009 20:46:29 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.534
X-Spam-Level: 
X-Spam-Status: No, score=-2.534 tagged_above=-999 required=5 tests=[AWL=0.065,  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 1V9g-uQ9JmZy for <hybi@core3.amsl.com>; Thu, 22 Oct 2009 20:46:28 -0700 (PDT)
Received: from looneymail-a2.g.dreamhost.com (caibbdcaaaaf.dreamhost.com [208.113.200.5]) by core3.amsl.com (Postfix) with ESMTP id B64613A68FC for <hybi@ietf.org>; Thu, 22 Oct 2009 20:46:23 -0700 (PDT)
Received: from hixie.dreamhostps.com (hixie.dreamhost.com [208.113.210.27]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by looneymail-a2.g.dreamhost.com (Postfix) with ESMTP id 2660216D3CA; Thu, 22 Oct 2009 20:46:34 -0700 (PDT)
Date: Fri, 23 Oct 2009 03:59:49 +0000 (UTC)
From: Ian Hickson <ian@hixie.ch>
To: Joshua Bell <josh@lindenlab.com>
In-Reply-To: <f72742de0910220939j33d9d72cudad96857b592b801@mail.gmail.com>
Message-ID: <Pine.LNX.4.62.0910230357250.9145@hixie.dreamhostps.com>
References: <4ADD2FAC.9050902@webtide.com> <f72742de0910220939j33d9d72cudad96857b592b801@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" <hybi@ietf.org>
Subject: Re: [hybi] how to improve websocket
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: Fri, 23 Oct 2009 03:46:29 -0000

On Thu, 22 Oct 2009, Joshua Bell wrote:
> 
> * I seem to recall that one of the desires for sentinel-based frames was 
> to allow octet streams for which the length was not known in advance. 

No; the only reason for sentinel-based frames was to not rely on authors 
having to determine the length of their UTF-8-encoded strings, which in 
many environments can be easy to get wrong.


> * My reading of section 4.2 (supported by the non-normative section 1.2) 
> in draft-hixie-thewebsocketprotocol-50 is such that length-based binary 
> data (frame types 0x80-0xff) are actually deprecated(?) - "6.  Read 
> /length/ bytes." "7.  Discard the read bytes." - the data is never 
> actually to be interpreted by the client! (Contrast step 5 in the 
> sentinel frame section of the algorithm, which explicitly calls out when 
> to indicate a message is received or discarded)

The binary frames are in the spec for future extension. Currently 
JavaScript has no binary support so the JS API has no binary support so 
the protocol doesn't expose the binary support. It's specced as it is so 
that when we add such support, new servers won't cause old clients to 
break unexpectedly; they'll just ignore the binary frames.

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

From ian@hixie.ch  Thu Oct 22 21:07:18 2009
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 EC6F23A67E5 for <hybi@core3.amsl.com>; Thu, 22 Oct 2009 21:07:18 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.538
X-Spam-Level: 
X-Spam-Status: No, score=-2.538 tagged_above=-999 required=5 tests=[AWL=0.061,  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 j54jJpAYTsV4 for <hybi@core3.amsl.com>; Thu, 22 Oct 2009 21:07:17 -0700 (PDT)
Received: from looneymail-a2.g.dreamhost.com (caibbdcaaaaf.dreamhost.com [208.113.200.5]) by core3.amsl.com (Postfix) with ESMTP id AD5FA3A67AE for <hybi@ietf.org>; Thu, 22 Oct 2009 21:07:17 -0700 (PDT)
Received: from hixie.dreamhostps.com (hixie.dreamhost.com [208.113.210.27]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by looneymail-a2.g.dreamhost.com (Postfix) with ESMTP id 1CF7416D3D5; Thu, 22 Oct 2009 21:07:28 -0700 (PDT)
Date: Fri, 23 Oct 2009 04:20:42 +0000 (UTC)
From: Ian Hickson <ian@hixie.ch>
To: Alexey Proskuryakov <ap@webkit.org>
In-Reply-To: <6B5D90C1-E2B8-4193-ADB8-2DA84D07BF5C@webkit.org>
Message-ID: <Pine.LNX.4.62.0910230359590.9145@hixie.dreamhostps.com>
References: <ad1a0c1e0906260918m4401d334vd14fc7d530874195@mail.gmail.com> <932a5d5f0906261314x94a70xd2d78edb743dcf28@mail.gmail.com> <5A8E44FD455C42FF80951A18E6332C72@POCZTOWIEC> <Pine.LNX.4.62.0907070326030.1060@hixie.dreamhostps.com> <30D0CC6E-724A-4399-B3CA-52978EB54F91@webkit.org> <C60BCCA0-730E-4679-B6CC-B32DDA555A2D@apple.com> <4B84866D-E504-4CB6-AE51-30F85F33E214@webkit.org> <666CDBB2-E9B4-49C9-9FA3-00E5DEB088DC@apple.com> <Pine.LNX.4.62.0907282149400.3189@hixie.dreamhostps.com> <B742C03D-B7DC-4CD4-98D8-930783316AC4@webkit.org> <5dd9e5c50907282143n2aa58dcep17500056294ea7f8@mail.gmail.com> <Pine.LNX.4.62.0908042344470.6420@hixie.dreamhostps.com> <2DC8955D-0C42-4405-952E-56EC15BE6BDF@webkit.org> <Pine.LNX.4.62.0910131104420.25383@hixie.dreamhostps.com> <E98FB05F-0DC4-4F55-9F2D-64C51C707D02@webkit.org> <Pine.LNX.4.62.0910171007440.9145@hixie.dreamhostps.com> <6B5D90C1-E2B8-4193-ADB8-2DA84D07BF5C@webkit.org>
Content-Language: en-GB-hixie
Content-Style-Type: text/css
MIME-Version: 1.0
Content-Type: MULTIPART/MIXED; BOUNDARY="1909464018-359232337-1256271642=:9145"
Cc: whatwg@lists.whatwg.org, hybi@ietf.org
Subject: Re: [hybi] [whatwg] Issues with Web Sockets API
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: Fri, 23 Oct 2009 04:07:19 -0000

  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

--1909464018-359232337-1256271642=:9145
Content-Type: TEXT/PLAIN; charset=utf-8
Content-Transfer-Encoding: QUOTED-PRINTABLE


(cc'ing hybi by request, since changes to the WebSocket spec are
discussed below)

On Thu, 22 Oct 2009, Alexey Proskuryakov wrote:
> 17.10.2009, =D0=B2 3:20, Ian Hickson =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=
=D0=BB(=D0=B0):
> >=20
> > I'm not really sure what else to say to be honest. Should I just leave=
=20
> > it at cookies and nothing else? Really I just want to support Basic=20
> > (and I guess Digest) authentication (primarily for over-TLS=20
> > connections), so that sites that use Basic auth, like, say, porn=20
> > sites, or the W3C, can also use it for their Web Socket connections. I=
=20
> > could just limit it that way; would that work?
>=20
> Formally limiting support for Basic auth would be workable, I guess.=20
> Implementation of Digest authentication is already non-trivial enough=20
> for me to wish that we don't implement it at first.
>=20
> Or perhaps authentication should be limited to cookies in v1 indeed.

Ok, I've removed the authentication stuff from this version.


> > > > > > If /code/, interpreted as ASCII, is "401", then let /mode/ be=
=20
> > > > > > _authenticate_. Otherwise, fail the Web Socket connection and=
=20
> > > > > > abort these steps.
> > > > >=20
> > > > > 407 (proxy authenticate) also likely needs to be supported.
> > > >=20
> > > > Proxies wouldn't work with WebSockets in general.
> > >=20
> > > Could you please elaborate? I thought there was a setup that could=20
> > > work with most deployed HTTPS proxies - one could run WebSockets=20
> > > server on port 443.
> >=20
> > Oh, I see what you're saying. Proxy authentication of this nature is=20
> > covered by step 2 of the handshake algorithm, as part of "connect to=20
> > that proxy and ask it to open a TCP/IP connection to the host given by=
=20
> > /host/ and the port given by /port/". There's even an example showing=
=20
> > auth headers being sent to the proxy. By the time we get down to=20
> > parsing the response, we're long past the point where we might be=20
> > authenticating to a proxy. Is that a problem?
>=20
> Hmm, I actually don't know for sure. Step 2 only covers the case when=20
> the user agent is configured to use a proxy - but an organization may=20
> have a transparent proxy intercepting requests. But I do not know if=20
> such a proxy can practically request authentication by returning a 407=20
> response (blurring the meaning of "transparent" a bit, but anyway).

I don't see how such a proxy could handle WebSocket anyway. The WebSocket=
=20
protocol isn't really intended to be proxied.


> > I could add support for 407 here and just say that you jump back to=20
> > step 2 and include the authentication this time, would that work?
>=20
> If the answer to my above concern is yes, then it should work, as long=20
> as the text doesn't require double TLS handshake or something like that.

I've added text in the spec that says to handle 407 basically like HTTP,=20
closing the connection and jumping back to step 2.


> > Or do you mean that you would rather have authentication be a=20
> > first-class primitive operation in Web Socket, instead of relying on=20
> > the HTTP features? We could do that: instead of faking an HTTP=20
> > communication, we could have a header in the handshake that means=20
> > "after this, the client must send one more handshake consisting of an=
=20
> > authentication token", and if the UA fails to send the right extra=20
> > bit, then fail. I think if we did this, we'd want to punt until=20
> > version 2, though.
>=20
> Yes, I think that relying on HTTP specs to define authentication to Web=
=20
> Sockets takes the "fake HTTP handshake" concept too far.

Ok. We'll revisit this in the next version, I guess.

I'm not sure there's really much point doing anything beyond cookie auth=20
anyway.

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

From julian.reschke@gmx.de  Thu Oct 22 23:41:24 2009
Return-Path: <julian.reschke@gmx.de>
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 85F7A3A69AF for <hybi@core3.amsl.com>; Thu, 22 Oct 2009 23:41:24 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.398
X-Spam-Level: 
X-Spam-Status: No, score=-4.398 tagged_above=-999 required=5 tests=[AWL=-1.799, 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 jsEpVLpXHTdl for <hybi@core3.amsl.com>; Thu, 22 Oct 2009 23:41:23 -0700 (PDT)
Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by core3.amsl.com (Postfix) with SMTP id D1DAF3A68C1 for <hybi@ietf.org>; Thu, 22 Oct 2009 23:41:22 -0700 (PDT)
Received: (qmail invoked by alias); 23 Oct 2009 06:41:27 -0000
Received: from p508FFC53.dip.t-dialin.net (EHLO [192.168.178.33]) [80.143.252.83] by mail.gmx.net (mp050) with SMTP; 23 Oct 2009 08:41:27 +0200
X-Authenticated: #1915285
X-Provags-ID: V01U2FsdGVkX19dBgQSIqxdqv0yUojZoE0I6GiWo8/lG/qOfAjEJv MJDgrEkY1kjfzA
Message-ID: <4AE15011.5060900@gmx.de>
Date: Fri, 23 Oct 2009 08:41:21 +0200
From: Julian Reschke <julian.reschke@gmx.de>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.0.4) Gecko/20060516 Thunderbird/1.5.0.4 Mnenhy/0.7.4.666
MIME-Version: 1.0
To: Ian Hickson <ian@hixie.ch>
References: <4ACE50A2.5070404@ericsson.com>	<3a880e2c0910081600v3607665dp193f6df499706810@mail.gmail.com>	<4ACF4055.6080302@ericsson.com>	<Pine.LNX.4.62.0910092116010.21884@hixie.dreamhostps.com>	<4AD2E353.8070609@webtide.com> <4AD2F43D.6030202@ninebynine.org>	<4AD39A64.4080405@webtide.com>	<Pine.LNX.4.62.0910132335390.25383@hixie.dreamhostps.com>	<4AD53DCA.6050304@webtide.com>	<Pine.LNX.4.62.0910170203460.9145@hixie.dreamhostps.com>	<4ADA7FD4.9010406@webtide.com> <4ADB6F0B.4000004@gmail.com>	<Pine.LNX.4.62.0910221120380.9145@hixie.dreamhostps.com>	<4AE08907.7080402@webtide.com> <Pine.LNX.4.62.0910230348470.9145@hixie.dreamhostps.com>
In-Reply-To: <Pine.LNX.4.62.0910230348470.9145@hixie.dreamhostps.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Y-GMX-Trusted: 0
X-FuHaFi: -0.07000000000000001
Cc: hybi@ietf.org
Subject: Re: [hybi] Multiplexing in WebSocket
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: Fri, 23 Oct 2009 06:41:24 -0000

Ian Hickson wrote:
> ...
> I've made lots of changes to the WebSocket protocol -- heck, I've made so 
> many changes based on feedback here and elsewhere that people have started 
> complaining that I've made too many!
> ...

As far as I can tell, the complaints have been about the number of I-Ds 
being posted, not about the changes itself. Nobody stops you from 
collecting a reasonable amount of changes, and *then* publish a new draft.

BR, Julian



From julian.reschke@gmx.de  Fri Oct 23 00:52:03 2009
Return-Path: <julian.reschke@gmx.de>
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 5E0793A6955 for <hybi@core3.amsl.com>; Fri, 23 Oct 2009 00:52:03 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.141
X-Spam-Level: 
X-Spam-Status: No, score=-4.141 tagged_above=-999 required=5 tests=[AWL=-1.542, 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 1N7Q7wJ1Xrq3 for <hybi@core3.amsl.com>; Fri, 23 Oct 2009 00:52:02 -0700 (PDT)
Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by core3.amsl.com (Postfix) with SMTP id ED98C3A68FF for <hybi@ietf.org>; Fri, 23 Oct 2009 00:52:01 -0700 (PDT)
Received: (qmail invoked by alias); 23 Oct 2009 07:52:10 -0000
Received: from p508FFC53.dip.t-dialin.net (EHLO [192.168.178.33]) [80.143.252.83] by mail.gmx.net (mp023) with SMTP; 23 Oct 2009 09:52:10 +0200
X-Authenticated: #1915285
X-Provags-ID: V01U2FsdGVkX19cHmguEVhcTuzZAGDUx/RU28vHtyBd7IfZz4mBRq 1RyxTYt88U3T03
Message-ID: <4AE160A1.10609@gmx.de>
Date: Fri, 23 Oct 2009 09:52:01 +0200
From: Julian Reschke <julian.reschke@gmx.de>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.0.4) Gecko/20060516 Thunderbird/1.5.0.4 Mnenhy/0.7.4.666
MIME-Version: 1.0
To: Ian Hickson <ian@hixie.ch>
References: <91a5e3ea0907021759m435e88dfse5af37316fed6a7@mail.gmail.com>	<d763ac660907162218i7406cba0g4e5bd2850e54f483@mail.gmail.com>	<Pine.LNX.4.62.0907170920530.12284@hixie.dreamhostps.com>	<1248913601.18899.8912.camel@lifeless-64>	<Pine.LNX.4.62.0908050035420.6420@hixie.dreamhostps.com>	<683251b3b589adf4e96c3c1c8223e216@mail.treenet.co.nz>	<403d38e20908212341k74655368h2aacd17f36fd14c0@mail.gmail.com>	<Pine.LNX.4.62.0909040119040.6775@hixie.dreamhostps.com>	<1252031296.12642.13.camel@lifeless-64>	<Pine.LNX.4.62.0910131111250.25383@hixie.dreamhostps.com>	<EEFDE49B-6116-41CC-B59A-FC1D27AA63BA@yahoo-inc.com>	<1255475233.2071.74.camel@lifeless-64>	<3E41FB22-8E07-4C86-BF6B-BA177CDB8A83@yahoo-inc.com>	<Pine.LNX.4.62.0910162201380.25383@hixie.dreamhostps.com>	<1247E151-01A6-4DBF-BAE5-3CE43B392553@yahoo-inc.com>	<Pine.LNX.4.62.0910212338300! .9145@hixie.dreamhostps.com>	<D220DA29-4AE5-4BDE-A091-03363A868089@yahoo-inc.com> <Pine.LNX.4.62.0910230323190.9145@hixie.dreamhostps.com>
In-Reply-To: <Pine.LNX.4.62.0910230323190.9145@hixie.dreamhostps.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Y-GMX-Trusted: 0
X-FuHaFi: 0.67
Cc: Amos Jeffries <squid3@treenet.co.nz>, hybi@ietf.org, Henrik Nordstrom <henrik@henriknordstrom.net>, Squid Developers <squid-dev@squid-cache.org>, Alex Rousskov <rousskov@measurement-factory.com>, Adrian Chadd <adrian@squid-cache.org>, Mark Nottingham <mnot@yahoo-inc.com>, Robert Collins <robertc@robertcollins.net>
Subject: Re: [hybi] WebSockets negotiation over HTTP
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: Fri, 23 Oct 2009 07:52:03 -0000

Ian Hickson wrote:
> ...
> 
> Loos like there was some update issue. Try now:
> 
>    http://tools.ietf.org/html/draft-hixie-thewebsocketprotocol#section-5.1
> 
> You can always find the most up-to-date text on the WHATWG site, if the 
> IETF update process fails (or when there's an IETF meeting in progress, 
> since apparently we're not allowed to make progress during IETF meetings):
> 
>    http://www.whatwg.org/specs/web-apps/current-work/complete.html#websocket-protocol
> ...

Actually, posting is suspended in the two weeks *before* the meeting, 
not during the meeting.

And yes, you can make as much progress as you want (by updating your own 
copy), but the idea is that people *attending* the meeting should be 
able to rely on a stable snapshot for preparation. (BOF and WG 
attendants are supposed to have read the relevant drafts).

So, if there a re pending changes relevant to the BOF, you should submit 
them before Tuesday.

BR, Julian

From salvatore.loreto@ericsson.com  Fri Oct 23 07:29:05 2009
Return-Path: <salvatore.loreto@ericsson.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 DF9FB3A6836 for <hybi@core3.amsl.com>; Fri, 23 Oct 2009 07:29:05 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.178
X-Spam-Level: 
X-Spam-Status: No, score=-5.178 tagged_above=-999 required=5 tests=[AWL=-0.169, BAYES_00=-2.599, HELO_EQ_SE=0.35, RCVD_IN_DNSWL_MED=-4, SARE_LWSHORTT=1.24]
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 EuyLX80y2Aa9 for <hybi@core3.amsl.com>; Fri, 23 Oct 2009 07:29:05 -0700 (PDT)
Received: from mailgw5.ericsson.se (mailgw5.ericsson.se [193.180.251.36]) by core3.amsl.com (Postfix) with ESMTP id 9D66C3A67D9 for <hybi@ietf.org>; Fri, 23 Oct 2009 07:29:04 -0700 (PDT)
X-AuditID: c1b4fb24-b7bd7ae000002270-c4-4ae1bdb94630
Received: from esealmw127.eemea.ericsson.se (Unknown_Domain [153.88.253.125]) by mailgw5.ericsson.se (Symantec Mail Security) with SMTP id 7F.23.08816.9BDB1EA4; Fri, 23 Oct 2009 16:29:13 +0200 (CEST)
Received: from esealmw127.eemea.ericsson.se ([153.88.254.175]) by esealmw127.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.3959);  Fri, 23 Oct 2009 16:29:13 +0200
Received: from mail.lmf.ericsson.se ([131.160.11.50]) by esealmw127.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.3959);  Fri, 23 Oct 2009 16:29:13 +0200
Received: from nomadiclab.lmf.ericsson.se (nomadiclab.lmf.ericsson.se [131.160.33.3]) by mail.lmf.ericsson.se (Postfix) with ESMTP id 1AEC125BB; Fri, 23 Oct 2009 17:29:13 +0300 (EEST)
Received: from nomadiclab.lmf.ericsson.se (localhost [127.0.0.1]) by nomadiclab.lmf.ericsson.se (Postfix) with ESMTP id D989021A22; Fri, 23 Oct 2009 17:29:12 +0300 (EEST)
Received: from localhost.localdomain (localhost [127.0.0.1]) by nomadiclab.lmf.ericsson.se (Postfix) with ESMTP id 1254721A21; Fri, 23 Oct 2009 17:29:11 +0300 (EEST)
Message-ID: <4AE1BDB7.5020007@ericsson.com>
Date: Fri, 23 Oct 2009 17:29:11 +0300
From: Salvatore Loreto <salvatore.loreto@ericsson.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090825)
MIME-Version: 1.0
To: Greg Wilkins <gregw@webtide.com>, Jamie Lokier <jamie@shareable.org>
References: <4AD89C07.8060500@ericsson.com> <4ADAA05A.4050301@webtide.com>
In-Reply-To: <4ADAA05A.4050301@webtide.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: ClamAV using ClamSMTP
X-OriginalArrivalTime: 23 Oct 2009 14:29:13.0245 (UTC) FILETIME=[314524D0:01CA53ED]
X-Brightmail-Tracker: AAAAAA==
Cc: hybi@ietf.org
Subject: Re: [hybi] short term requirements
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: Fri, 23 Oct 2009 14:29:06 -0000

Hi there,

see my answers below !


cheers
Sal

Salvatore Loreto wrote:

> This is a call to collect requirements that you think a Short Term
> solution should meet.
>
> Req.   possibility for the intermediaries to access and modify it
> Req.   it must be usable from multiple (existing) browser
> Req.   it must be easily to use and accessible from different protocols
> (e.g. Bayeux, Bosh etc)
> Req.   it must be easy to deploy in the existing infrastructure
> Req.   it has really improve the bi-directional communication (not just
> push from a server to a client)
> Req.   it has not introduce any security hole
>
> please provide comments, opinions, suggestion.
>   
Greg Wilkins wrote:
> I would like to add
>
> Req.   That there must be a standard way to indicate that a HTTP request is
>        being used for bidirectional purposes, preferably distinguishing
>        streaming and long polling uses.
>
> This will allow HTTP implementations to avoid pitfalls such as pipelining behind
> long polls, and to warn if limited thread pools are exhausted by long held requests.
>
>
> I also think there needs to be something about improving cross domain, or
> RBPs for using optional XD mechanisms and well used hacks.
>
>
> regard

[Sal] good you mentioned it. There has been some discussion both in the 
mailing list and in the Bar BoF.
I remember that one possible solution mentioned in the ml and in the BoF 
was to use a sort or the time-out header
in the request that will indicate that the answer to that request could 
be delayed until the time-out value expires.

Jamie Lokier wrote:
> I agree with Greg, and would like to add that I'm not sure if
> "Connection: close" is adequate for that purpose.  It's not as
> descriptive, but is it (a) enough for all existing proxies and servers
> to behave well; (b) is something more specific to streaming and long
> polling useful?
>
> -- Jamie
>   
[Sal] of course, we can mandate "Connection: close", but it would be 
better have something more specific
and useful. Maybe time-out header is not so useful for streaming 
mechanism and we need something else
for improve the streaming.
In any case this in the realm of solution.
Lets before all agree on the requirements.


From stpeter@stpeter.im  Fri Oct 23 08:05:06 2009
Return-Path: <stpeter@stpeter.im>
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 486AD3A6811 for <hybi@core3.amsl.com>; Fri, 23 Oct 2009 08:05:06 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.571
X-Spam-Level: 
X-Spam-Status: No, score=-2.571 tagged_above=-999 required=5 tests=[AWL=0.028,  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 MF7BIiemmix7 for <hybi@core3.amsl.com>; Fri, 23 Oct 2009 08:05:05 -0700 (PDT)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id 5BED73A6821 for <hybi@ietf.org>; Fri, 23 Oct 2009 08:05:05 -0700 (PDT)
Received: from dhcp-64-101-72-247.cisco.com (dhcp-64-101-72-247.cisco.com [64.101.72.247]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id 7F69840341; Fri, 23 Oct 2009 09:05:12 -0600 (MDT)
Message-ID: <4AE1C07B.2000202@stpeter.im>
Date: Fri, 23 Oct 2009 08:40:59 -0600
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812)
MIME-Version: 1.0
To: Julian Reschke <julian.reschke@gmx.de>
References: <4ACE50A2.5070404@ericsson.com>	<3a880e2c0910081600v3607665dp193f6df499706810@mail.gmail.com>	<4ACF4055.6080302@ericsson.com>	<Pine.LNX.4.62.0910092116010.21884@hixie.dreamhostps.com>	<4AD2E353.8070609@webtide.com>	<4AD2F43D.6030202@ninebynine.org>	<4AD39A64.4080405@webtide.com>	<Pine.LNX.4.62.0910132335390.25383@hixie.dreamhostps.com>	<4AD53DCA.6050304@webtide.com>	<Pine.LNX.4.62.0910170203460.9145@hixie.dreamhostps.com>	<4ADA7FD4.9010406@webtide.com>	<4ADB6F0B.4000004@gmail.com>	<Pine.LNX.4.62.0910221120380.9145@hixie.dreamhostps.com>	<4AE08907.7080402@webtide.com>	<Pine.LNX.4.62.0910230348470.9145@hixie.dreamhostps.com> <4AE15011.5060900@gmx.de>
In-Reply-To: <4AE15011.5060900@gmx.de>
X-Enigmail-Version: 0.96.0
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Cc: hybi@ietf.org
Subject: Re: [hybi] Multiplexing in WebSocket
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: Fri, 23 Oct 2009 15:05:06 -0000

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 10/23/09 12:41 AM, Julian Reschke wrote:
> Ian Hickson wrote:
>> ...
>> I've made lots of changes to the WebSocket protocol -- heck, I've made
>> so many changes based on feedback here and elsewhere that people have
>> started complaining that I've made too many!
>> ...
> 
> As far as I can tell, the complaints have been about the number of I-Ds
> being posted, not about the changes itself. Nobody stops you from
> collecting a reasonable amount of changes, and *then* publish a new draft.

And I wonder if there is a "v3d" ("version three digits") problem
lurking in the tools we use to process Internet-Drafts. I've never seen
an I-D with a version greater than 99.

Peter

- --
Peter Saint-Andre
https://stpeter.im/


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkrhwHsACgkQNL8k5A2w/vxfCACeOaOV4P10UW20tlB+tmNhzs7g
+6cAnjl/bio1Vk3iZtn+yrt4ECMqtysj
=oEUa
-----END PGP SIGNATURE-----


From infinity@lindenlab.com  Fri Oct 23 10:08:24 2009
Return-Path: <infinity@lindenlab.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 25F903A68B8 for <hybi@core3.amsl.com>; Fri, 23 Oct 2009 10:08:24 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.077
X-Spam-Level: 
X-Spam-Status: No, score=-0.077 tagged_above=-999 required=5 tests=[AWL=-0.700, BAYES_50=0.001, 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 6qweXuLpo55D for <hybi@core3.amsl.com>; Fri, 23 Oct 2009 10:08:23 -0700 (PDT)
Received: from mail-bw0-f223.google.com (mail-bw0-f223.google.com [209.85.218.223]) by core3.amsl.com (Postfix) with ESMTP id 10A443A6784 for <hybi@ietf.org>; Fri, 23 Oct 2009 10:08:22 -0700 (PDT)
Received: by bwz23 with SMTP id 23so1083411bwz.29 for <hybi@ietf.org>; Fri, 23 Oct 2009 10:08:30 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.239.184.144 with SMTP id y16mr853660hbg.188.1256317710113;  Fri, 23 Oct 2009 10:08:30 -0700 (PDT)
From: "Infinity Linden (Meadhbh Hamrick)" <infinity@lindenlab.com>
Date: Fri, 23 Oct 2009 10:08:10 -0700
Message-ID: <3a880e2c0910231008h6c65de59t8783a3bcf77dbdd5@mail.gmail.com>
To: "hybi@ietf.org" <hybi@ietf.org>
Content-Type: text/plain; charset=ISO-8859-1
Subject: [hybi] anyone coming to apacheCon / w3c plenary?
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: Fri, 23 Oct 2009 17:08:24 -0000

was just wondering if there would be some benefits to standing in
front of the same white board for a couple hours. or even just
grabbing a coffee / wine / beer for social reasons.

-cheers
-meadhbh
--
   infinity linden (aka meadhbh hamrick)  *  it's pronounced "maeve"
         http://wiki.secondlife.com/wiki/User:Infinity_Linden

From gregw@webtide.com  Fri Oct 23 10:22:30 2009
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 E67863A6819 for <hybi@core3.amsl.com>; Fri, 23 Oct 2009 10:22:30 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.539
X-Spam-Level: 
X-Spam-Status: No, score=-3.539 tagged_above=-999 required=5 tests=[AWL=1.060,  BAYES_00=-2.599, GB_I_INVITATION=-2]
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 6h7IFCCAoJCF for <hybi@core3.amsl.com>; Fri, 23 Oct 2009 10:22:30 -0700 (PDT)
Received: from mail-ew0-f208.google.com (mail-ew0-f208.google.com [209.85.219.208]) by core3.amsl.com (Postfix) with ESMTP id C4E263A6784 for <hybi@ietf.org>; Fri, 23 Oct 2009 10:22:29 -0700 (PDT)
Received: by ewy4 with SMTP id 4so1843064ewy.37 for <hybi@ietf.org>; Fri, 23 Oct 2009 10:22:38 -0700 (PDT)
Received: by 10.216.90.81 with SMTP id d59mr4014090wef.29.1256318558250; Fri, 23 Oct 2009 10:22:38 -0700 (PDT)
Received: from ?192.168.1.117? (dsl081-052-134.sfo1.dsl.speakeasy.net [64.81.52.134]) by mx.google.com with ESMTPS id x6sm5236766gvf.1.2009.10.23.10.22.35 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 23 Oct 2009 10:22:37 -0700 (PDT)
Message-ID: <4AE1E659.5050507@webtide.com>
Date: Fri, 23 Oct 2009 10:22:33 -0700
From: Greg Wilkins <gregw@webtide.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090817)
MIME-Version: 1.0
To: Ian Hickson <ian@hixie.ch>
References: <4ACE50A2.5070404@ericsson.com> <3a880e2c0910081600v3607665dp193f6df499706810@mail.gmail.com> <4ACF4055.6080302@ericsson.com> <Pine.LNX.4.62.0910092116010.21884@hixie.dreamhostps.com> <4AD2E353.8070609@webtide.com> <4AD2F43D.6030202@ninebynine.org> <4AD39A64.4080405@webtide.com> <Pine.LNX.4.62.0910132335390.25383@hixie.dreamhostps.com> <4AD53DCA.6050304@webtide.com> <Pine.LNX.4.62.0910170203460.9145@hixie.dreamhostps.com> <4ADA7FD4.9010406@webtide.com> <4ADB6F0B.4000004@gmail.com> <Pine.LNX.4.62.0910221120380.9145@hixie.dreamhostps.com> <4AE08907.7080402@webtide.com> <Pine.LNX.4.62.0910230348470.9145@hixie.dreamhostps.com>
In-Reply-To: <Pine.LNX.4.62.0910230348470.9145@hixie.dreamhostps.com>
X-Enigmail-Version: 0.95.7
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: hybi@ietf.org
Subject: Re: [hybi] Multiplexing in WebSocket
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: Fri, 23 Oct 2009 17:22:31 -0000

Ian Hickson wrote:

>>> The IETF is welcome to do whatever it likes. The only reason Web 
>>> Sockets is here is that the IETF wanted it here.
>> And since you have accepted the IETFs invitation to submit a draft, you 
>> should do so in good faith and not expect the IETF to rubber stamp what 
>> you've done simply because you have no intention of changing it.
> 
> I've made lots of changes to the WebSocket protocol -- heck, I've made so 
> many changes based on feedback here and elsewhere that people have started 
> complaining that I've made too many!

My comment was directed at your statement that the IETF can "do whatever
it likes" in response to my suggestion that there may be wider concerns
considered than just the narrow js case that you have considered in HTML5.


> Actually, as designed, WebSocket does an end-run around most of these. The 
> only case I'm aware of where WebSocket would need help is in environments 
> that do not even allow port 443 traffic to pass through unmolested.

And this is exactly the sort of wider concern that the IETF might want
to consider.

You can tunnel bidirectional traffic over DNS if you want, but that
does not mean the IETF will sanction such a protocol.
Having a long term solution that essentially misuses the CONNECT
mechanism of proxies is far from ideal.

Considering how intermediaries can interact with bidirectional
connections is extremely important - even if only at the level
of how to stop them closing what they think are idle connections.



> On Thu, 22 Oct 2009, Joshua Bell wrote:
>> * I seem to recall that one of the desires for sentinel-based frames was 
>> to allow octet streams for which the length was not known in advance. 
> 
> No; the only reason for sentinel-based frames was to not rely on authors 
> having to determine the length of their UTF-8-encoded strings, which in 
> many environments can be easy to get wrong.

Authors that can't determine the length of a UTF-8 string are not exactly
the sort of developers that should be implementing network protocols.

When sending this utf-8, buffers will be used and lengths must be
checked - else there will be buffer overruns and associated failures
and/or security issues.

It seams an entirely reasonable simplification of websocket to
use only length limited framing and to use the type byte to indicate
such things as content charset


regards






From ian@hixie.ch  Fri Oct 23 14:43:27 2009
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 50F3C3A693B for <hybi@core3.amsl.com>; Fri, 23 Oct 2009 14:43:27 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.541
X-Spam-Level: 
X-Spam-Status: No, score=-2.541 tagged_above=-999 required=5 tests=[AWL=0.058,  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 I6JDAGGLqEPo for <hybi@core3.amsl.com>; Fri, 23 Oct 2009 14:43:26 -0700 (PDT)
Received: from looneymail-a2.g.dreamhost.com (caibbdcaaaaf.dreamhost.com [208.113.200.5]) by core3.amsl.com (Postfix) with ESMTP id 5BB653A691F for <hybi@ietf.org>; Fri, 23 Oct 2009 14:43:26 -0700 (PDT)
Received: from hixie.dreamhostps.com (hixie.dreamhost.com [208.113.210.27]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by looneymail-a2.g.dreamhost.com (Postfix) with ESMTP id 64C4C16D3E6; Fri, 23 Oct 2009 14:43:36 -0700 (PDT)
Date: Fri, 23 Oct 2009 21:57:00 +0000 (UTC)
From: Ian Hickson <ian@hixie.ch>
To: Greg Wilkins <gregw@webtide.com>
In-Reply-To: <4AE1E659.5050507@webtide.com>
Message-ID: <Pine.LNX.4.62.0910232154470.13521@hixie.dreamhostps.com>
References: <4ACE50A2.5070404@ericsson.com> <3a880e2c0910081600v3607665dp193f6df499706810@mail.gmail.com> <4ACF4055.6080302@ericsson.com> <Pine.LNX.4.62.0910092116010.21884@hixie.dreamhostps.com> <4AD2E353.8070609@webtide.com> <4AD2F43D.6030202@ninebynine.org> <4AD39A64.4080405@webtide.com> <Pine.LNX.4.62.0910132335390.25383@hixie.dreamhostps.com> <4AD53DCA.6050304@webtide.com> <Pine.LNX.4.62.0910170203460.9145@hixie.dreamhostps.com> <4ADA7FD4.9010406@webtide.com> <4ADB6F0B.4000004@gmail.com> <Pine.LNX.4.62.0910221120380.9145@hixie.dreamhostps.com> <4AE08907.7080402@webtide.com> <Pine.LNX.4.62.0910230348470.9145@hixie.dreamhostps.com> <4AE1E659.5050507@webtide.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] Multiplexing in WebSocket
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: Fri, 23 Oct 2009 21:43:27 -0000

On Fri, 23 Oct 2009, Greg Wilkins wrote:
> Ian Hickson wrote:
> > On Thu, 22 Oct 2009, Joshua Bell wrote:
> >> * I seem to recall that one of the desires for sentinel-based frames 
> >> was to allow octet streams for which the length was not known in 
> >> advance.
> > 
> > No; the only reason for sentinel-based frames was to not rely on 
> > authors having to determine the length of their UTF-8-encoded strings, 
> > which in many environments can be easy to get wrong.
> 
> Authors that can't determine the length of a UTF-8 string are not 
> exactly the sort of developers that should be implementing network 
> protocols.

Wow.

I cannot stand behind such a judgmental statement. Personally I would like 
to make this kind of thing accessible to as many people as possible.


> It seams an entirely reasonable simplification of websocket to use only 
> length limited framing and to use the type byte to indicate such things 
> as content charset

What's the use case for doing anything other than UTF-8?

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

From ian@hixie.ch  Fri Oct 23 14:45:26 2009
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 C62263A68C0 for <hybi@core3.amsl.com>; Fri, 23 Oct 2009 14:45:26 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.544
X-Spam-Level: 
X-Spam-Status: No, score=-2.544 tagged_above=-999 required=5 tests=[AWL=0.055,  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 9P2O7NKBqdd9 for <hybi@core3.amsl.com>; Fri, 23 Oct 2009 14:45:26 -0700 (PDT)
Received: from looneymail-a1.g.dreamhost.com (caibbdcaaaaf.dreamhost.com [208.113.200.5]) by core3.amsl.com (Postfix) with ESMTP id 35D473A6841 for <hybi@ietf.org>; Fri, 23 Oct 2009 14:45:26 -0700 (PDT)
Received: from hixie.dreamhostps.com (hixie.dreamhost.com [208.113.210.27]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by looneymail-a1.g.dreamhost.com (Postfix) with ESMTP id 841E615D570; Fri, 23 Oct 2009 14:45:36 -0700 (PDT)
Date: Fri, 23 Oct 2009 21:59:00 +0000 (UTC)
From: Ian Hickson <ian@hixie.ch>
To: "Infinity Linden (Meadhbh Hamrick)" <infinity@lindenlab.com>
In-Reply-To: <3a880e2c0910231008h6c65de59t8783a3bcf77dbdd5@mail.gmail.com>
Message-ID: <Pine.LNX.4.62.0910232157310.13521@hixie.dreamhostps.com>
References: <3a880e2c0910231008h6c65de59t8783a3bcf77dbdd5@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" <hybi@ietf.org>
Subject: Re: [hybi] anyone coming to apacheCon / w3c plenary?
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: Fri, 23 Oct 2009 21:45:26 -0000

On Fri, 23 Oct 2009, Infinity Linden (Meadhbh Hamrick) wrote:
>
> was just wondering if there would be some benefits to standing in front 
> of the same white board for a couple hours. or even just grabbing a 
> coffee / wine / beer for social reasons.

I'll be in the area of the W3C meeting, so if anyone wants to meet during 
that, I'm certainly happy to attend.

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

From gregw@webtide.com  Fri Oct 23 16:34:19 2009
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 C7FE03A67B1 for <hybi@core3.amsl.com>; Fri, 23 Oct 2009 16:34:19 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.716
X-Spam-Level: 
X-Spam-Status: No, score=-2.716 tagged_above=-999 required=5 tests=[AWL=-0.117, 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 34VvilRbOSQV for <hybi@core3.amsl.com>; Fri, 23 Oct 2009 16:34:18 -0700 (PDT)
Received: from mail-yw0-f183.google.com (mail-yw0-f183.google.com [209.85.211.183]) by core3.amsl.com (Postfix) with ESMTP id B7ABE3A676A for <hybi@ietf.org>; Fri, 23 Oct 2009 16:34:18 -0700 (PDT)
Received: by ywh13 with SMTP id 13so13050433ywh.29 for <hybi@ietf.org>; Fri, 23 Oct 2009 16:34:23 -0700 (PDT)
Received: by 10.91.38.17 with SMTP id q17mr4042593agj.10.1256340863531; Fri, 23 Oct 2009 16:34:23 -0700 (PDT)
Received: from ?192.168.1.117? (dsl081-052-134.sfo1.dsl.speakeasy.net [64.81.52.134]) by mx.google.com with ESMTPS id 7sm344088yxg.14.2009.10.23.16.34.21 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 23 Oct 2009 16:34:22 -0700 (PDT)
Message-ID: <4AE23D7A.2060009@webtide.com>
Date: Fri, 23 Oct 2009 16:34:18 -0700
From: Greg Wilkins <gregw@webtide.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090817)
MIME-Version: 1.0
To: Ian Hickson <ian@hixie.ch>
References: <4ACE50A2.5070404@ericsson.com> <3a880e2c0910081600v3607665dp193f6df499706810@mail.gmail.com> <4ACF4055.6080302@ericsson.com> <Pine.LNX.4.62.0910092116010.21884@hixie.dreamhostps.com> <4AD2E353.8070609@webtide.com> <4AD2F43D.6030202@ninebynine.org> <4AD39A64.4080405@webtide.com> <Pine.LNX.4.62.0910132335390.25383@hixie.dreamhostps.com> <4AD53DCA.6050304@webtide.com> <Pine.LNX.4.62.0910170203460.9145@hixie.dreamhostps.com> <4ADA7FD4.9010406@webtide.com> <4ADB6F0B.4000004@gmail.com> <Pine.LNX.4.62.0910221120380.9145@hixie.dreamhostps.com> <4AE08907.7080402@webtide.com> <Pine.LNX.4.62.0910230348470.9145@hixie.dreamhostps.com> <4AE1E659.5050507@webtide.com> <Pine.LNX.4.62.0910232154470.13521@hixie.dreamhostps.com>
In-Reply-To: <Pine.LNX.4.62.0910232154470.13521@hixie.dreamhostps.com>
X-Enigmail-Version: 0.95.7
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: hybi@ietf.org
Subject: Re: [hybi] Multiplexing in WebSocket
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: Fri, 23 Oct 2009 23:34:19 -0000

Ian Hickson wrote:
> On Fri, 23 Oct 2009, Greg Wilkins wrote:
>> Ian Hickson wrote:
>>> On Thu, 22 Oct 2009, Joshua Bell wrote:
>>>> * I seem to recall that one of the desires for sentinel-based frames 
>>>> was to allow octet streams for which the length was not known in 
>>>> advance.
>>> No; the only reason for sentinel-based frames was to not rely on 
>>> authors having to determine the length of their UTF-8-encoded strings, 
>>> which in many environments can be easy to get wrong.
>> Authors that can't determine the length of a UTF-8 string are not 
>> exactly the sort of developers that should be implementing network 
>> protocols.
> 
> Wow.
> 
> I cannot stand behind such a judgmental statement. Personally I would like 
> to make this kind of thing accessible to as many people as possible.

I don't understand your Wow.  Buffer overflows have historically
been one of the biggest security issues with any services exposed
to the internet.

Utf-8 will mostly have a 1 character to 1 byte mapping (at least
for english speakers), so many programmers will write code
that they think works by allocating byte buffers the same
size as their characters strings.  But then when giving
multi-byte characters they will suffer buffer overflows.

I've made this programming error myself many times! So perhaps
I too am one of the authors that should not be writing network
protocols.

The level of programming skill needed to manage meta data
or channels is entirely of the same order of magnitude as
managing utf-8 encoding.

So my point is probably better expressed by saying that
programmers who are able to write a websocket implementation
that correctly handles multi-byte utf-8 characters, will
be entirely capable of handling the additional "complexity"
of some of the additional capabilities being discussed here.



>> It seams an entirely reasonable simplification of websocket to use only 
>> length limited framing and to use the type byte to indicate such things 
>> as content charset
> 
> What's the use case for doing anything other than UTF-8?


Even limiting myself to js in the browser, I can think of
of reasons that a content type other than UTF-8 would be
desirable.

* Compressed UTF-8

* UTF-16 for those whose language happens to use a lot of >2 byte
  utf-8 characters

* UTF-16 for those that can't deal with the uncertainty and/or
  unpredictability of the length of a UTF-8 string



If we consider what a browser itself might like to do with
websocket, or a none- browser client might like, then we have:

* Mime encoded content for those that want to send other
  content types down a stream.  Images, sounds etc.

* Some other framed content for those that want to implement
  multiplexing on top of websocket (as you advocate) but don't
  want to have to do it with text based framing.

* Anybody that wants to send any content with 0xFF in it
  and does not want to base64 code their entire content
  as a result

* A mobile phone that is restricted to a single outgoing
  connection (not uncommon) so the browser wants to
  transport HTTP over the websocket connection

* Something that none of us has thought of yet


You also say that future multiplexing (or other complex
things), should be built on top of websocket. Yet  when
anybody asks for additional content types to help do that,
you say they are not needed and it all can be done in UTF-8.


I find this amusing, because Websocket has gone against the common
convention for web protocols being humanly readable ascii encoded.
Instead it is a byte squeezed binary protocol.

Yet when it comes to building protocols on top of websocket, then
all of a sudden you are an advocate of text encoded protocols.

To send a stream of images with websocket, you will need to
have a sentinel framed UTF-8 message that contains a JSON or
mime header to give the content type of the base64 or hex
encoded image.     That's 3 envelopes around each image!
Ouch!!!


regards






































From ian@hixie.ch  Sat Oct 24 03:55:26 2009
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 705063A6767 for <hybi@core3.amsl.com>; Sat, 24 Oct 2009 03:55:26 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.547
X-Spam-Level: 
X-Spam-Status: No, score=-2.547 tagged_above=-999 required=5 tests=[AWL=0.052,  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 RiRsd2k5PHIC for <hybi@core3.amsl.com>; Sat, 24 Oct 2009 03:55:25 -0700 (PDT)
Received: from looneymail-a2.g.dreamhost.com (caibbdcaaaaf.dreamhost.com [208.113.200.5]) by core3.amsl.com (Postfix) with ESMTP id 257DB3A68ED for <hybi@ietf.org>; Sat, 24 Oct 2009 03:55:25 -0700 (PDT)
Received: from hixie.dreamhostps.com (hixie.dreamhost.com [208.113.210.27]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by looneymail-a2.g.dreamhost.com (Postfix) with ESMTP id 8B40916D3CC; Sat, 24 Oct 2009 03:55:36 -0700 (PDT)
Date: Sat, 24 Oct 2009 11:09:07 +0000 (UTC)
From: Ian Hickson <ian@hixie.ch>
To: Greg Wilkins <gregw@webtide.com>
In-Reply-To: <4AE23D7A.2060009@webtide.com>
Message-ID: <Pine.LNX.4.62.0910240926500.9145@hixie.dreamhostps.com>
References: <4ACE50A2.5070404@ericsson.com> <3a880e2c0910081600v3607665dp193f6df499706810@mail.gmail.com> <4ACF4055.6080302@ericsson.com> <Pine.LNX.4.62.0910092116010.21884@hixie.dreamhostps.com> <4AD2E353.8070609@webtide.com> <4AD2F43D.6030202@ninebynine.org> <4AD39A64.4080405@webtide.com> <Pine.LNX.4.62.0910132335390.25383@hixie.dreamhostps.com> <4AD53DCA.6050304@webtide.com> <Pine.LNX.4.62.0910170203460.9145@hixie.dreamhostps.com> <4ADA7FD4.9010406@webtide.com> <4ADB6F0B.4000004@gmail.com> <Pine.LNX.4.62.0910221120380.9145@hixie.dreamhostps.com> <4AE08907.7080402@webtide.com> <Pine.LNX.4.62.0910230348470.9145@hixie.dreamhostps.com> <4AE1E659.5050507@webtide.com> <Pine.LNX.4.62.0910232154470.13521@hixie.dreamhostps.com> <4AE23D7A.2060009@webtide.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] Multiplexing in WebSocket
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: Sat, 24 Oct 2009 10:55:26 -0000

On Fri, 23 Oct 2009, Greg Wilkins wrote:
> Ian Hickson wrote:
> > On Fri, 23 Oct 2009, Greg Wilkins wrote:
> >> Ian Hickson wrote:
> >>> On Thu, 22 Oct 2009, Joshua Bell wrote:
> >>>
> >>>> * I seem to recall that one of the desires for sentinel-based 
> >>>> frames was to allow octet streams for which the length was not 
> >>>> known in advance.
> >>>
> >>> No; the only reason for sentinel-based frames was to not rely on 
> >>> authors having to determine the length of their UTF-8-encoded 
> >>> strings, which in many environments can be easy to get wrong.
> >>
> >> Authors that can't determine the length of a UTF-8 string are not 
> >> exactly the sort of developers that should be implementing network 
> >> protocols.
> > 
> > Wow.
> > 
> > I cannot stand behind such a judgmental statement. Personally I would 
> > like to make this kind of thing accessible to as many people as 
> > possible.
> 
> I don't understand your Wow.  Buffer overflows have historically been 
> one of the biggest security issues with any services exposed to the 
> internet.

My "Wow" was to your comment saying that someone might not be the sort of 
developers that should be implementing something.

WebSocket is actually intentionally designed to make buffer overruns 
harder to accidentally write into code. For binary data, there is no 
sentinel, so you can allocate the given amount of memory and fill it, 
without any risk of overrunning anything. Indeed, you can't do anything 
else, since there's no way to detect the end of the frame other than by 
its length. The only risk is with null length frames, but there no data is 
written into them, so the damage, if any, is limited. For text data, there 
is no length marker, so the only way way to have an overrun is to decide 
on a fixed maximum size and then have someone send you a frame that's 
larger. Provided you don't make that mistake, there's no way to be tricked 
into a buffer overrun as far as I can tell, since there's no up-front 
length declaration.


> Utf-8 will mostly have a 1 character to 1 byte mapping (at least for 
> english speakers), so many programmers will write code that they think 
> works by allocating byte buffers the same size as their characters 
> strings.  But then when giving multi-byte characters they will suffer 
> buffer overflows.

The way the protocol is designed, they don't need to allocate those 
buffers. If they use UTF-8 internally, they can just output the string 
straight into the I/O layer, with a 0x00 byte first, and a 0xFF byte 
after. That's the reason for the server-to-client data not having a length 
field for UTF-8, actually.

(The protocol wasn't intended to be symmetric, it just ended up that way 
because that design made sense given the goals of making parsing and 
serialising easy for the server side.)


> I've made this programming error myself many times! So perhaps I too am 
> one of the authors that should not be writing network protocols.

If you don't think you should be writing one, you almost certainly 
shouldn't be designing one. :-)


> The level of programming skill needed to manage meta data or channels is 
> entirely of the same order of magnitude as managing utf-8 encoding.

The main difference is that most people won't manage UTF-8 encoding. In 
Perl, for instance, there's the "Encode" library that you can just pass 
byte strings to to have them converted into UTF-8, and vice-versa.


> So my point is probably better expressed by saying that programmers who 
> are able to write a websocket implementation that correctly handles 
> multi-byte utf-8 characters, will be entirely capable of handling the 
> additional "complexity" of some of the additional capabilities being 
> discussed here.

Complexity in one part of the protocol is not a license to make the 
protocol complicated everywhere.

That's a red herring, though. Multiplexing (for one) isn't omitted just, 
or even primarily, because it would be complicated, but because the 
cost-benefit ratio doesn't make it worth it. We can push the complexity of 
multiplexing (say) to the application level, so that authors who need it 
can use it, and others don't need to worry about it.

This is very much in line with the Unix philosophy of making small self- 
contained building blocks, instead of monolithic solutions.


> >> It seams an entirely reasonable simplification of websocket to use 
> >> only length limited framing and to use the type byte to indicate such 
> >> things as content charset
> > 
> > What's the use case for doing anything other than UTF-8?
> 
> Even limiting myself to js in the browser, I can think of of reasons 
> that a content type other than UTF-8 would be desirable.
> 
> * Compressed UTF-8

Binary data will be supported in v2, once the JS side supports it. Then 
you can compress your data easily.

If it turns out that short messages would in fact benefit from compression 
(which personally I am skeptical about), then we can easily add it in a 
future version as a dedicated feature, too.


> * UTF-16 for those whose language happens to use a lot of >2 byte
>   utf-8 characters

If we were worried about bandwidth, gzip compressing UTF-8 would give 
better results across the board than allowing the author to switch between 
UTF-8 and UTF-16.


> * UTF-16 for those that can't deal with the uncertainty and/or
>   unpredictability of the length of a UTF-8 string

UTF-16 is far worse than UTF-8 when it comes to character-to-byte length 
issues, in practice.


> If we consider what a browser itself might like to do with websocket, or 
> a non-browser client might like, then we have:
> 
> * Mime encoded content for those that want to send other
>   content types down a stream.  Images, sounds etc.

We have binary frames already staked out in the protocol, waiting for 
support in JS for binary.


> * Some other framed content for those that want to implement
>   multiplexing on top of websocket (as you advocate) but don't
>   want to have to do it with text based framing.

Again, binary data will be support in v2. The protocol already supports 
it, it's just not in the API.


> * Anybody that wants to send any content with 0xFF in it
>   and does not want to base64 code their entire content
>   as a result

Same.


> * A mobile phone that is restricted to a single outgoing
>   connection (not uncommon) so the browser wants to
>   transport HTTP over the websocket connection

Could you elaborate on this use case?


> * Something that none of us has thought of yet

Once we think of it, we can address it. There's no point trying to 
optimise for something we don't know about; we have no way to know if we 
are optimising in the right way.


> You also say that future multiplexing (or other complex things), should 
> be built on top of websocket. Yet when anybody asks for additional 
> content types to help do that, you say they are not needed and it all 
> can be done in UTF-8.

I stand by that. Multiplexing can be done in UTF-8 easily.


> I find this amusing, because Websocket has gone against the common 
> convention for web protocols being humanly readable ascii encoded. 
> Instead it is a byte squeezed binary protocol.

I'm glad you think IP, TCP, and DNS are unconventional. :-)

WebSocket's handshake is ASCII based. It makes no sense to make the 
framing ASCII based; that would just make the error handling really 
complicated. One byte to introduce the frame and one byte to end it is 
simpler.


> Yet when it comes to building protocols on top of websocket, then all of 
> a sudden you are an advocate of text encoded protocols.

WebSocket supports both text and binary equally. The only reason the 
binary part is a second-class citizen right now is that JS doesn't support 
binary yet.


> To send a stream of images with websocket, you will need to have a 
> sentinel framed UTF-8 message that contains a JSON or mime header to 
> give the content type of the base64 or hex encoded image.  That's 3 
> envelopes around each image! Ouch!!!

To send a stream of images with WebSocket, you will need to wait until 
JavaScript gives you a way to get the image data in a usable form. I 
certainly wouldn't recommend sending it as text, that would be stupid.

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

From jamie@shareable.org  Sat Oct 24 11:21:26 2009
Return-Path: <jamie@shareable.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 9761D3A6894 for <hybi@core3.amsl.com>; Sat, 24 Oct 2009 11:21:26 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.59
X-Spam-Level: 
X-Spam-Status: No, score=-2.59 tagged_above=-999 required=5 tests=[AWL=0.009,  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 Lr07nlmIadDI for <hybi@core3.amsl.com>; Sat, 24 Oct 2009 11:21:25 -0700 (PDT)
Received: from mail2.shareable.org (mail2.shareable.org [80.68.89.115]) by core3.amsl.com (Postfix) with ESMTP id C71213A6819 for <hybi@ietf.org>; Sat, 24 Oct 2009 11:21:25 -0700 (PDT)
Received: from jamie by mail2.shareable.org with local (Exim 4.63) (envelope-from <jamie@shareable.org>) id 1N1lF7-00084A-OC; Sat, 24 Oct 2009 19:21:33 +0100
Date: Sat, 24 Oct 2009 19:21:33 +0100
From: Jamie Lokier <jamie@shareable.org>
To: Greg Wilkins <gregw@webtide.com>
Message-ID: <20091024182133.GA30762@shareable.org>
References: <4AD53DCA.6050304@webtide.com> <Pine.LNX.4.62.0910170203460.9145@hixie.dreamhostps.com> <4ADA7FD4.9010406@webtide.com> <4ADB6F0B.4000004@gmail.com> <Pine.LNX.4.62.0910221120380.9145@hixie.dreamhostps.com> <4AE08907.7080402@webtide.com> <Pine.LNX.4.62.0910230348470.9145@hixie.dreamhostps.com> <4AE1E659.5050507@webtide.com> <Pine.LNX.4.62.0910232154470.13521@hixie.dreamhostps.com> <4AE23D7A.2060009@webtide.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4AE23D7A.2060009@webtide.com>
User-Agent: Mutt/1.5.13 (2006-08-11)
Cc: hybi@ietf.org
Subject: Re: [hybi] Multiplexing in WebSocket
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: Sat, 24 Oct 2009 18:21:26 -0000

Greg Wilkins wrote:
> * UTF-16 for those that can't deal with the uncertainty and/or
>   unpredictability of the length of a UTF-8 string

Careful.  UTF-16 is a variable length encoding too.

It is possibly worse than UTF-8 for this, because everyone knows that
UTF-8 is variable length, but many people seem to think UTF-16 is not.

-- Jamie

From gregw@webtide.com  Sun Oct 25 01:02:02 2009
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 B85663A689A for <hybi@core3.amsl.com>; Sun, 25 Oct 2009 01:02:02 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.605
X-Spam-Level: 
X-Spam-Status: No, score=-0.605 tagged_above=-999 required=5 tests=[AWL=-0.095, BAYES_05=-1.11, J_CHICKENPOX_14=0.6]
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 WosDslImEUK0 for <hybi@core3.amsl.com>; Sun, 25 Oct 2009 01:02:02 -0700 (PDT)
Received: from mail-yx0-f192.google.com (mail-yx0-f192.google.com [209.85.210.192]) by core3.amsl.com (Postfix) with ESMTP id DB4C23A6897 for <hybi@ietf.org>; Sun, 25 Oct 2009 01:02:01 -0700 (PDT)
Received: by yxe30 with SMTP id 30so13908779yxe.29 for <hybi@ietf.org>; Sun, 25 Oct 2009 01:02:10 -0700 (PDT)
Received: by 10.150.233.2 with SMTP id f2mr7820279ybh.259.1256457730362; Sun, 25 Oct 2009 01:02:10 -0700 (PDT)
Received: from ?10.10.1.9? (60-242-119-126.tpgi.com.au [60.242.119.126]) by mx.google.com with ESMTPS id 15sm1540629gxk.4.2009.10.25.01.02.06 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 25 Oct 2009 01:02:08 -0700 (PDT)
Message-ID: <4AE405FA.7030002@webtide.com>
Date: Sun, 25 Oct 2009 01:02:02 -0700
From: Greg Wilkins <gregw@webtide.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090817)
MIME-Version: 1.0
To: Jamie Lokier <jamie@shareable.org>, hybi@ietf.org
References: <4AD53DCA.6050304@webtide.com> <Pine.LNX.4.62.0910170203460.9145@hixie.dreamhostps.com> <4ADA7FD4.9010406@webtide.com> <4ADB6F0B.4000004@gmail.com> <Pine.LNX.4.62.0910221120380.9145@hixie.dreamhostps.com> <4AE08907.7080402@webtide.com> <Pine.LNX.4.62.0910230348470.9145@hixie.dreamhostps.com> <4AE1E659.5050507@webtide.com> <Pine.LNX.4.62.0910232154470.13521@hixie.dreamhostps.com> <4AE23D7A.2060009@webtide.com> <20091024182133.GA30762@shareable.org>
In-Reply-To: <20091024182133.GA30762@shareable.org>
X-Enigmail-Version: 0.95.7
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Subject: Re: [hybi] Multiplexing in WebSocket
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, 25 Oct 2009 08:02:02 -0000

Jamie Lokier wrote:
> Greg Wilkins wrote:
>> * UTF-16 for those that can't deal with the uncertainty and/or
>>   unpredictability of the length of a UTF-8 string
> 
> Careful.  UTF-16 is a variable length encoding too.
> 
> It is possibly worse than UTF-8 for this, because everyone knows that
> UTF-8 is variable length, but many people seem to think UTF-16 is not.

OK that's worth a Wow!

I had assigned UTF-16 was fixed length because the java implementation
for it is.  But now I see in the java documentations:

 "The char data type (and therefore the value that a Character object
  encapsulates) are based on the original Unicode specification, which
  defined characters as fixed-width 16-bit entities. The Unicode standard
  has since been changed to allow for characters whose representation
  requires more than 16 bits. The range of legal code points is now
  U+0000 to U+10FFFF, known as Unicode scalar value. (Refer to the
  definition of the U+n notation in the Unicode standard.)

  The set of characters from U+0000 to U+FFFF is sometimes referred
  to as the Basic Multilingual Plane (BMP). Characters whose code
  points are greater than U+FFFF are called supplementary characters.
  The Java 2 platform uses the UTF-16 representation in char arrays
  and in the String and StringBuffer classes. In this representation,
  supplementary characters are represented as a pair of char
  values, the first from the high-surrogates range, (\uD800-\uDBFF),
  the second from the low-surrogates range (\uDC00-\uDFFF)."


So I'll modify my original point to

 * UTF-16 for java programmers and other BMP users that don't want to
   deal with the uncertainty and/or unpredictability of the length of
   a UTF-8 string


Thanks for the learning experience!

cheers

From gregw@webtide.com  Sun Oct 25 01:51:34 2009
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 5EBE13A67D6 for <hybi@core3.amsl.com>; Sun, 25 Oct 2009 01:51:34 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.468
X-Spam-Level: 
X-Spam-Status: No, score=-1.468 tagged_above=-999 required=5 tests=[AWL=0.816,  BAYES_00=-2.599, SARE_MILLIONSOF=0.315]
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 mKLsoinloXpt for <hybi@core3.amsl.com>; Sun, 25 Oct 2009 01:51:33 -0700 (PDT)
Received: from mail-px0-f183.google.com (mail-px0-f183.google.com [209.85.216.183]) by core3.amsl.com (Postfix) with ESMTP id 77B653A67AF for <hybi@ietf.org>; Sun, 25 Oct 2009 01:51:33 -0700 (PDT)
Received: by pxi13 with SMTP id 13so7642501pxi.32 for <hybi@ietf.org>; Sun, 25 Oct 2009 01:51:43 -0700 (PDT)
Received: by 10.115.25.9 with SMTP id c9mr17988837waj.229.1256460703645; Sun, 25 Oct 2009 01:51:43 -0700 (PDT)
Received: from ?10.10.1.9? (60-242-119-126.tpgi.com.au [60.242.119.126]) by mx.google.com with ESMTPS id 22sm118458pxi.10.2009.10.25.01.51.41 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 25 Oct 2009 01:51:42 -0700 (PDT)
Message-ID: <4AE4119A.7040803@webtide.com>
Date: Sun, 25 Oct 2009 01:51:38 -0700
From: Greg Wilkins <gregw@webtide.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090817)
MIME-Version: 1.0
To: Ian Hickson <ian@hixie.ch>
References: <4ACE50A2.5070404@ericsson.com> <3a880e2c0910081600v3607665dp193f6df499706810@mail.gmail.com> <4ACF4055.6080302@ericsson.com> <Pine.LNX.4.62.0910092116010.21884@hixie.dreamhostps.com> <4AD2E353.8070609@webtide.com> <4AD2F43D.6030202@ninebynine.org> <4AD39A64.4080405@webtide.com> <Pine.LNX.4.62.0910132335390.25383@hixie.dreamhostps.com> <4AD53DCA.6050304@webtide.com> <Pine.LNX.4.62.0910170203460.9145@hixie.dreamhostps.com> <4ADA7FD4.9010406@webtide.com> <4ADB6F0B.4000004@gmail.com> <Pine.LNX.4.62.0910221120380.9145@hixie.dreamhostps.com> <4AE08907.7080402@webtide.com> <Pine.LNX.4.62.0910230348470.9145@hixie.dreamhostps.com> <4AE1E659.5050507@webtide.com> <Pine.LNX.4.62.0910232154470.13521@hixie.dreamhostps.com> <4AE23D7A.2060009@webtide.com> <Pine.LNX.4.62.0910240926500.9145@hixie.dreamhostps.com>
In-Reply-To: <Pine.LNX.4.62.0910240926500.9145@hixie.dreamhostps.com>
X-Enigmail-Version: 0.95.7
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: hybi@ietf.org
Subject: Re: [hybi] Multiplexing in WebSocket
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, 25 Oct 2009 08:51:34 -0000

Ian Hickson wrote:

>> I've made this programming error myself many times! So perhaps I too am 
>> one of the authors that should not be writing network protocols.
> 
> If you don't think you should be writing one, you almost certainly 
> shouldn't be designing one. :-)

touche!   :)


> The main difference is that most people won't manage UTF-8 encoding. In 
> Perl, for instance, there's the "Encode" library that you can just pass 
> byte strings to to have them converted into UTF-8, and vice-versa.

Forgive my total lack of knowledge of perl, but given the availability
of the encode library in perl, I see little difference in the complexity
of sentinel marked code which is:

  $octets = encode("utf-8", $message)
  write ($octets)
  write (oxff)

versus length encoding code which is

  $octets = encode("utf-8", $message)
  write ($octets.length)
  write ($octets)


They will need a method to correctly encode the length
as an unlimited integer, but they will probably need that
anyway as  you currently specify that length encoded
framing is part of the standard (stacked out).


> We have binary frames already staked out in the protocol, waiting for 
> support in JS for binary.

I don't see why an IETF protocol proposal needs to wait for
the js implementation?

Since the binary framing is about the same level of
complexity, is more capable and is already stacked
out - they why not avoid the complexity to two
different framings and just use length?

JS is free to limit it's usage to just utf-8 as long
as it likes.   But JS is not the only client language
that is going to use an IETF sanctioned bidirectional
protocol.


>> * A mobile phone that is restricted to a single outgoing
>>   connection (not uncommon) so the browser wants to
>>   transport HTTP over the websocket connection
> 
> Could you elaborate on this use case?

I unfortunately don't have all the details, but I have
been a little involved in the development of a comet
system for a large mobile phone company for global
deployment.

One of the issues that we had to deal with was a single
connection limit that apparently affects many millions
of phones.  This was a restriction for a non
browser application running on the phone with direct
access to the TCP/IP layer.

However I'm unclear if the limit was imposed by firmware
in the phone or carriers.


>> * Something that none of us has thought of yet
> 
> Once we think of it, we can address it. There's no point trying to 
> optimise for something we don't know about; we have no way to know if we 
> are optimising in the right way.


I fundamentally disagree - and I think that this difference is
probably at the root of most/all our other differences on the
protocol.


I think the wait and see position you advocate is entirely
correct for the websocket API.

But i think it is entirely wrong for the websocket protocol.

A flexible and extensible protocol can be restricted to known
uses by the API.  You then do not need to update the entire
network infrastructure for each and every new idea.   Your
attempt to "stack out" the binary protocol is justified
by avoiding exactly this type of breakage.



> To send a stream of images with WebSocket, you will need to wait until 
> JavaScript gives you a way to get the image data in a usable form. I 
> certainly wouldn't recommend sending it as text, that would be stupid.

I think this is another fundamental disagreement.

I think the IETF should be considering a bidirectional solution for all
web clients - not just for HTML5 JS clients

Again, from my mobile experience, I have seen comet protocols
stream a users thumbnail image with a chat message, because of the
latencies involved with a separate fetch.   For the corresponding
web browser solution, the comet stream just sends a URL of the
thumbnail.


So I think it is really important for the IETF BOF/WG to resolve
these fundamental differences.   If you are designing a non-extensible
protocol that only supports HTML5 websocket API, then you may well
end up with something like the websocket protocol.   But if you
want something that is extensible and supports bidirectionality
for any web client, then I think then it will look substantially
different.


regards



From salvatore.loreto@ericsson.com  Sun Oct 25 03:36:47 2009
Return-Path: <salvatore.loreto@ericsson.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 BC0FA3A67EB for <hybi@core3.amsl.com>; Sun, 25 Oct 2009 03:36:47 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.157
X-Spam-Level: 
X-Spam-Status: No, score=-5.157 tagged_above=-999 required=5 tests=[AWL=-0.147, BAYES_00=-2.599, HELO_EQ_SE=0.35, RCVD_IN_DNSWL_MED=-4, SARE_LWSHORTT=1.24]
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 L83u5JiAfAmd for <hybi@core3.amsl.com>; Sun, 25 Oct 2009 03:36:46 -0700 (PDT)
Received: from mailgw5.ericsson.se (mailgw5.ericsson.se [193.180.251.36]) by core3.amsl.com (Postfix) with ESMTP id E540B3A67D1 for <hybi@ietf.org>; Sun, 25 Oct 2009 03:36:45 -0700 (PDT)
X-AuditID: c1b4fb24-b7b12ae000007bda-e5-4ae42a48fcef
Received: from esealmw126.eemea.ericsson.se (Unknown_Domain [153.88.253.125]) by mailgw5.ericsson.se (Symantec Mail Security) with SMTP id 5B.45.31706.84A24EA4; Sun, 25 Oct 2009 11:36:56 +0100 (CET)
Received: from esealmw128.eemea.ericsson.se ([153.88.254.172]) by esealmw126.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.3959);  Sun, 25 Oct 2009 11:36:56 +0100
Received: from mail.lmf.ericsson.se ([131.160.11.50]) by esealmw128.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.3959);  Sun, 25 Oct 2009 11:36:55 +0100
Received: from nomadiclab.lmf.ericsson.se (nomadiclab.lmf.ericsson.se [131.160.33.3]) by mail.lmf.ericsson.se (Postfix) with ESMTP id 6653624C0; Sun, 25 Oct 2009 12:36:55 +0200 (EET)
Received: from nomadiclab.lmf.ericsson.se (localhost [127.0.0.1]) by nomadiclab.lmf.ericsson.se (Postfix) with ESMTP id 2879B21A22; Sun, 25 Oct 2009 12:36:55 +0200 (EET)
Received: from localhost.localdomain (localhost [127.0.0.1]) by nomadiclab.lmf.ericsson.se (Postfix) with ESMTP id 89E2321A21; Sun, 25 Oct 2009 12:36:54 +0200 (EET)
Message-ID: <4AE42A46.4010207@ericsson.com>
Date: Sun, 25 Oct 2009 12:36:54 +0200
From: Salvatore Loreto <salvatore.loreto@ericsson.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090825)
MIME-Version: 1.0
To: Peter Saint-Andre <stpeter@stpeter.im>
References: <4ADEC7A0.7040307@ericsson.com> <4ADF20C7.9030601@stpeter.im>
In-Reply-To: <4ADF20C7.9030601@stpeter.im>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: ClamAV using ClamSMTP
X-OriginalArrivalTime: 25 Oct 2009 10:36:55.0784 (UTC) FILETIME=[12B8DE80:01CA555F]
X-Brightmail-Tracker: AAAAAA==
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] updated Charter proposal
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, 25 Oct 2009 10:36:47 -0000

Hi Peter,

thanks for the comments... see my answers in line

/Sal

Peter Saint-Andre wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi Sal, thanks for this. Comments inline.
>
> On 10/21/09 2:34 AM, Salvatore Loreto wrote:
>
>   
>> Proposed Charter for HyBi WG (rev.2)
>> Last Updated: 2009-10-21
>> -----------------------------------------------
>>
>> Chairs:
>> * TBD
>> * TBD
>>
>> Applications Area Director(s):
>> * Lisa Dusseault <lisa.dusseault@gmail.com>
>> * Alexey Melnikov <alexey.melnikov@isode.com>
>>
>> Applications Area Advisor:
>> * Lisa Dusseault <lisa.dusseault@gmail.com>
>>
>> Mailing Lists:
>> General Discussion: hybi@ietf.org
>> To Subscribe: https://www.ietf.org/mailman/listinfo/hybi
>> Archive: http://www.ietf.org/mail-archive/web/hybi/current/maillist.html
>>
>> Description of Working Group:
>> HTTP has in the past been used as a request/response protocol most often,
>> leading to clients polling for new data or users hitting the refresh button
>> in their browsers.  Newer web applications are finding ways to push data
>> from the server to the client as soon as it is available, through a variety
>> of mechanisms.  The Hypertext-Bidirectional (HyBi) working group will seek
>> standardization of approaches that HTTP clients, servers, and intermediate
>> boxes can use to communicate with one another in both directions.
>>     
>
> I'd prefer "entities" to "boxes".
>   
[Sal] right, "entities" sounds much better
> Somewhere in the text we need to make it clear what kind of intermediate
> entities we're talking about -- does that include entities which are in
> some sense HTTP-aware or HTTP-optimized (proxies, load balancers,
> caches, etc.) or also entities that are in some sense more generalized
> (firewalls, network address translators, etc.).
>   
[Sal] in my opinion when we talk of intermediaries we should narrow the 
scope to HTTP-aware intermediaries,  and the goal
is how to optimize them for bidirectional communication.
Then of course the HTTP proxies have to interact with Firewalls and NAT, 
but it is something that they already do nowadays,
maybe we will have to improve this interaction but I am not sure at moment.
>   
>> Since any modification of the web infrastructure may take a good amount of
>> time to be deployed, outputs of the working group will include both short
>> and long term solutions.  The existing web being much more complicated than
>> it seems, the working group will prioritize the characterization of the
>> design space, including the web clients, intermediaries, firewalls, NATs,
>> web servers, etc. into which both solutions will need to be deployed.
>>
>> For both short and long term work items, a general approach is preferred,
>> with abstract semantics that can apply to a large number of applications.
>>
>> The short term approach will be deployable on today's Internet, across
>> whichever current or historical web browsers the working group decides
>> upon.
>> Although wide browser support is a goal, lack of support on any single
>> browser version will not be a sufficient cause to block consensus.  The
>> short term approach may also define hints to allow newer intermediaries to
>> optimize traffic.
>>     
>
> There's no mention of servers here.
>   
[Sal] good catch!

    The short term approach will be deployable on today's Internet, across *HTTP proxies, servers and*
    whichever current or historical web browsers the working group decides
    upon.
    Although wide browser support is a goal, lack of support on any single
    browser version will not be a sufficient cause to block consensus.  The
    short term approach may also define hints to allow *HTTP-updated* intermediaries *and servers* to
    optimize traffic.
      

>   
>> In the long term, new features will be required of clients, servers, or
>> intermediaries allowing a more scalable and robust end-to-end experience.
>>
>> Although multiple protocols exist as starting points for both the short and
>> long term, backward compatibility with these protocols is not a
>> requirement.
>> In particular, the working group will liaison with the WebApps working
>> group
>> of the W3C around the Websockets protocol; if agreed by both parties, the
>> HyBi working group may take over the development of the Websockets
>> protocol.
>>     
>
> I think "take on" is a bit less aggressive than "take over". :)
>   
[Sal] right lets talk of "take on"
>   
>> Wide browser support is a goal for long term solution, however the solution
>> should also be suitable for clients other than Web Browser. The Working
>> Group
>> will work to standardize a generic solution that can work in all the
>> environments
>> and elements of the web infrastructure (e.g. web browser, generic HTTP
>> client,
>> web server, intermediaries, etc.) and it is not specific for just one.
>>
>> The Working Group should consider:
>> * Implementer experience
>> * Impact on existing implementations and deployments
>> * Ability to achieve broad implementation
>> * Ability to address broader use cases than may be contemplated by the
>> original authors
>>
>> The Working Group will produce one or more documents suitable for
>> consideration as Proposed Standard that will:
>> * Define requirements for short- and long-term solutions, including
>> characterization of the design space
>> * Define a short-term solution for the bi-directional web, deployable on
>> today's Internet
>> * Define a long-term solution for the bi-directional web, which will likely
>> require modifications to the web infrastructure
>>
>>
>> Goals and Milestones:
>> ---------------------
>> Mar-2010:  WGLC on the Design Space characterization (Informational)
>> Mar-2010:  WGLC on Requirements document on Short term solution
>> Mar-2010:  WGLC on Requirements document on Long term solution
>>     
>
> Doing all of the last calls at the same time might not be a good idea.
> I'd suggest spacing them out over two or three months.
>   
[Sal] good suggestion. I'll reschedule and space them over two/three months
>   
>> May-2010:  Requirements to IESG
>> Mar-2011:  WGLC on Short term solution improvements
>> May-2011:  WGLC on Long term solution protocol
>>     
>
> Ambitious but not unreasonable, I think.
>   
[Sal] the important is to have a long term solution ready and usable for 
W3C needs asap!
We have to clarify the W3C needs and deadlines and see if we can relax a 
bit our ambitious, even if I'd prefer to keep the
second half of 2011 as final deadline.
> Peter
>
> - --
> Peter Saint-Andre
> https://stpeter.im/
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.8 (Darwin)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAkrfIMcACgkQNL8k5A2w/vy0MwCfSYklY1vpsNRg32PlizkF/+rw
> IskAoJ6GpGZUe06MUpUaCgDNq8BC7nqa
> =Vr14
> -----END PGP SIGNATURE-----
>
>   


From salvatore.loreto@ericsson.com  Sun Oct 25 03:53:24 2009
Return-Path: <salvatore.loreto@ericsson.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 224BB3A685B for <hybi@core3.amsl.com>; Sun, 25 Oct 2009 03:53:24 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.76
X-Spam-Level: 
X-Spam-Status: No, score=-5.76 tagged_above=-999 required=5 tests=[AWL=0.489,  BAYES_00=-2.599, HELO_EQ_SE=0.35, RCVD_IN_DNSWL_MED=-4]
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 PiPmQWDEddv0 for <hybi@core3.amsl.com>; Sun, 25 Oct 2009 03:53:23 -0700 (PDT)
Received: from mailgw4.ericsson.se (mailgw4.ericsson.se [193.180.251.62]) by core3.amsl.com (Postfix) with ESMTP id EEAF23A6782 for <hybi@ietf.org>; Sun, 25 Oct 2009 03:53:22 -0700 (PDT)
X-AuditID: c1b4fb3e-b7bf6ae000005dda-d5-4ae42e2d8747
Received: from esealmw126.eemea.ericsson.se (Unknown_Domain [153.88.253.125]) by mailgw4.ericsson.se (Symantec Mail Security) with SMTP id B5.77.24026.D2E24EA4; Sun, 25 Oct 2009 11:53:33 +0100 (CET)
Received: from esealmw128.eemea.ericsson.se ([153.88.254.172]) by esealmw126.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.3959);  Sun, 25 Oct 2009 11:53:33 +0100
Received: from mail.lmf.ericsson.se ([131.160.11.50]) by esealmw128.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.3959);  Sun, 25 Oct 2009 11:53:32 +0100
Received: from nomadiclab.lmf.ericsson.se (nomadiclab.lmf.ericsson.se [131.160.33.3]) by mail.lmf.ericsson.se (Postfix) with ESMTP id 9BFC424C0; Sun, 25 Oct 2009 12:53:32 +0200 (EET)
Received: from nomadiclab.lmf.ericsson.se (localhost [127.0.0.1]) by nomadiclab.lmf.ericsson.se (Postfix) with ESMTP id 60AAE21A22; Sun, 25 Oct 2009 12:53:32 +0200 (EET)
Received: from localhost.localdomain (localhost [127.0.0.1]) by nomadiclab.lmf.ericsson.se (Postfix) with ESMTP id A811F21A21; Sun, 25 Oct 2009 12:53:31 +0200 (EET)
Message-ID: <4AE42E2B.6040005@ericsson.com>
Date: Sun, 25 Oct 2009 12:53:31 +0200
From: Salvatore Loreto <salvatore.loreto@ericsson.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090825)
MIME-Version: 1.0
To: Jamie Lokier <jamie@shareable.org>
References: <4ADEC7A0.7040307@ericsson.com> <4ADF20C7.9030601@stpeter.im> <20091022010817.GD27677@shareable.org>
In-Reply-To: <20091022010817.GD27677@shareable.org>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: ClamAV using ClamSMTP
X-OriginalArrivalTime: 25 Oct 2009 10:53:32.0933 (UTC) FILETIME=[6511BB50:01CA5561]
X-Brightmail-Tracker: AAAAAA==
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] updated Charter proposal
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, 25 Oct 2009 10:53:24 -0000

Jamie Lokier wrote:
> Peter Saint-Andre wrote:
>   
>> Somewhere in the text we need to make it clear what kind of intermediate
>> entities we're talking about -- does that include entities which are in
>> some sense HTTP-aware or HTTP-optimized (proxies, load balancers,
>> caches, etc.) or also entities that are in some sense more generalized
>> (firewalls, network address translators, etc.).
>>     
>
> Firewalls and NATs are quite important to HyBi.  Because the server
> can't initiate connections, it's necessary for connections to be kept
> open as long as the client wishes to receive messages.  Firewalls and
> NATs need enough keepalive packets to stop them blocking a connection
> in mid use.  And "ping" requests with responses from one side are
> not the most efficient way to do that.
>
> HyBi may also need a strategy to cope when a firewall or NAT
> spontaneously blocks a connection in the middle of it's use too.  That
> might be deferred to the application (bet lots of them will get it
> wrong if so), but it should at least be addressed.
>   
I agree that we have to take in consideration Firewalls and NATs during 
the design of a Bidirectional protocol
(both short and long term), and this is extremely important for HyBi.
However the HyBi wg should not have any ambition to improve the 
Firewalls and NATs, but only design a protocol that
cooperate well with them and improve the existing HTTP entities to 
improve the interaction with the existing Firewalls and NATs.

cheers
/Salvatore
> -- Jamie
>   


From jamie@shareable.org  Sun Oct 25 10:34:06 2009
Return-Path: <jamie@shareable.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 1BDB43A6958 for <hybi@core3.amsl.com>; Sun, 25 Oct 2009 10:34:06 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.585
X-Spam-Level: 
X-Spam-Status: No, score=-1.585 tagged_above=-999 required=5 tests=[AWL=-0.998, BAYES_00=-2.599, FAKE_REPLY_C=2.012]
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 BTLtHqksoB5q for <hybi@core3.amsl.com>; Sun, 25 Oct 2009 10:34:05 -0700 (PDT)
Received: from mail2.shareable.org (mail2.shareable.org [80.68.89.115]) by core3.amsl.com (Postfix) with ESMTP id 42DB43A68F5 for <hybi@ietf.org>; Sun, 25 Oct 2009 10:34:05 -0700 (PDT)
Received: from jamie by mail2.shareable.org with local (Exim 4.63) (envelope-from <jamie@shareable.org>) id 1N26yp-000468-K1; Sun, 25 Oct 2009 17:34:11 +0000
Date: Sun, 25 Oct 2009 17:34:11 +0000
From: Jamie Lokier <jamie@shareable.org>
To: Salvatore Loreto <salvatore.loreto@ericsson.com>
Message-ID: <20091025173411.GA15483@shareable.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4AE42E2B.6040005@ericsson.com>
User-Agent: Mutt/1.5.13 (2006-08-11)
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] updated Charter proposal
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, 25 Oct 2009 17:34:06 -0000

Salvatore Loreto wrote:
> Jamie Lokier wrote:
> >Peter Saint-Andre wrote:
> >  
> >>Somewhere in the text we need to make it clear what kind of intermediate
> >>entities we're talking about -- does that include entities which are in
> >>some sense HTTP-aware or HTTP-optimized (proxies, load balancers,
> >>caches, etc.) or also entities that are in some sense more generalized
> >>(firewalls, network address translators, etc.).
> >>    
> >
> >Firewalls and NATs are quite important to HyBi.  Because the server
> >can't initiate connections, it's necessary for connections to be kept
> >open as long as the client wishes to receive messages.  Firewalls and
> >NATs need enough keepalive packets to stop them blocking a connection
> >in mid use.  And "ping" requests with responses from one side are
> >not the most efficient way to do that.
> >
> >HyBi may also need a strategy to cope when a firewall or NAT
> >spontaneously blocks a connection in the middle of it's use too.  That
> >might be deferred to the application (bet lots of them will get it
> >wrong if so), but it should at least be addressed.
> >  
> I agree that we have to take in consideration Firewalls and NATs during 
> the design of a Bidirectional protocol
> (both short and long term), and this is extremely important for HyBi.
> However the HyBi wg should not have any ambition to improve the 
> Firewalls and NATs, but only design a protocol that
> cooperate well with them and improve the existing HTTP entities to 
> improve the interaction with the existing Firewalls and NATs.

Fwiw, I agree completely.

It may involve characterising firewalls and NATs, for example to
suggest keepalive message rates and strategies.  I wouldn't be
surprised if another part of IETF has investigated that already in a
more general context or for some other protocol.

The issue of connections being dropped, and detecting when this has
happened, and perhaps recovering, is more general than firewalls and
NATs.  E.g. mobile IP has the same problem.  I don't know if it needs
to appear anywhere in HyBi or if it can be dealt with entirely in the
application layer.  But it is worth looking at, because a web full of
applications which deal with it badly is a less desirable outcome than
a web full of applications which handle it well, and we _might_ be
able to make a big difference there.

-- Jamie

From salvatore.loreto@ericsson.com  Sun Oct 25 11:24:05 2009
Return-Path: <salvatore.loreto@ericsson.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 5873728C13F for <hybi@core3.amsl.com>; Sun, 25 Oct 2009 11:24:05 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.809
X-Spam-Level: 
X-Spam-Status: No, score=-5.809 tagged_above=-999 required=5 tests=[AWL=0.440,  BAYES_00=-2.599, HELO_EQ_SE=0.35, RCVD_IN_DNSWL_MED=-4]
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 UZjTkePGVtIq for <hybi@core3.amsl.com>; Sun, 25 Oct 2009 11:24:04 -0700 (PDT)
Received: from mailgw5.ericsson.se (mailgw5.ericsson.se [193.180.251.36]) by core3.amsl.com (Postfix) with ESMTP id EA7C128C135 for <hybi@ietf.org>; Sun, 25 Oct 2009 11:24:03 -0700 (PDT)
X-AuditID: c1b4fb24-b7b12ae000007bda-da-4ae497cea47b
Received: from esealmw128.eemea.ericsson.se (Unknown_Domain [153.88.253.125]) by mailgw5.ericsson.se (Symantec Mail Security) with SMTP id 8D.FB.31706.EC794EA4; Sun, 25 Oct 2009 19:24:14 +0100 (CET)
Received: from esealmw126.eemea.ericsson.se ([153.88.254.170]) by esealmw128.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.3959);  Sun, 25 Oct 2009 19:23:24 +0100
Received: from mail.lmf.ericsson.se ([131.160.11.50]) by esealmw126.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.3959);  Sun, 25 Oct 2009 19:23:23 +0100
Received: from nomadiclab.lmf.ericsson.se (nomadiclab.lmf.ericsson.se [131.160.33.3]) by mail.lmf.ericsson.se (Postfix) with ESMTP id 794F724C0; Sun, 25 Oct 2009 20:23:23 +0200 (EET)
Received: from nomadiclab.lmf.ericsson.se (localhost [127.0.0.1]) by nomadiclab.lmf.ericsson.se (Postfix) with ESMTP id 31E4C21A22; Sun, 25 Oct 2009 20:23:23 +0200 (EET)
Received: from localhost.localdomain (localhost [127.0.0.1]) by nomadiclab.lmf.ericsson.se (Postfix) with ESMTP id 7DA5021A21; Sun, 25 Oct 2009 20:23:22 +0200 (EET)
Message-ID: <4AE4979A.3090802@ericsson.com>
Date: Sun, 25 Oct 2009 20:23:22 +0200
From: Salvatore Loreto <salvatore.loreto@ericsson.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090825)
MIME-Version: 1.0
To: Jamie Lokier <jamie@shareable.org>
References: <20091025173411.GA15483@shareable.org>
In-Reply-To: <20091025173411.GA15483@shareable.org>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: ClamAV using ClamSMTP
X-OriginalArrivalTime: 25 Oct 2009 18:23:23.0679 (UTC) FILETIME=[3CCEBAF0:01CA55A0]
X-Brightmail-Tracker: AAAAAA==
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] updated Charter proposal (NATs and Firewalls)
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, 25 Oct 2009 18:24:05 -0000

Hi Jamie

see my answers in line


Jamie Lokier wrote:
> Salvatore Loreto wrote:
>   
>> Jamie Lokier wrote:
>>     
>>> Peter Saint-Andre wrote:
>>>  
>>>       
>>>> Somewhere in the text we need to make it clear what kind of intermediate
>>>> entities we're talking about -- does that include entities which are in
>>>> some sense HTTP-aware or HTTP-optimized (proxies, load balancers,
>>>> caches, etc.) or also entities that are in some sense more generalized
>>>> (firewalls, network address translators, etc.).
>>>>    
>>>>         
>>> Firewalls and NATs are quite important to HyBi.  Because the server
>>> can't initiate connections, it's necessary for connections to be kept
>>> open as long as the client wishes to receive messages.  Firewalls and
>>> NATs need enough keepalive packets to stop them blocking a connection
>>> in mid use.  And "ping" requests with responses from one side are
>>> not the most efficient way to do that.
>>>
>>> HyBi may also need a strategy to cope when a firewall or NAT
>>> spontaneously blocks a connection in the middle of it's use too.  That
>>> might be deferred to the application (bet lots of them will get it
>>> wrong if so), but it should at least be addressed.
>>>  
>>>       
>> I agree that we have to take in consideration Firewalls and NATs during 
>> the design of a Bidirectional protocol
>> (both short and long term), and this is extremely important for HyBi.
>> However the HyBi wg should not have any ambition to improve the 
>> Firewalls and NATs, but only design a protocol that
>> cooperate well with them and improve the existing HTTP entities to 
>> improve the interaction with the existing Firewalls and NATs.
>>     
>
> Fwiw, I agree completely.
>
> It may involve characterising firewalls and NATs, for example to
> suggest keepalive message rates and strategies.  I wouldn't be
> surprised if another part of IETF has investigated that already in a
> more general context or for some other protocol.
>   
[Sal] IETF behave wg is working on this aspects: 
http://tools.ietf.org/wg/behave/
have a look at "NAT Behavior Discovery Using STUN" draft: 
http://tools.ietf.org/html/draft-ietf-behave-nat-behavior-discovery-08

> The issue of connections being dropped, and detecting when this has
> happened, and perhaps recovering, is more general than firewalls and
> NATs.  E.g. mobile IP has the same problem.  I don't know if it needs
> to appear anywhere in HyBi or if it can be dealt with entirely in the
> application layer.  But it is worth looking at, because a web full of
> applications which deal with it badly is a less desirable outcome than
> a web full of applications which handle it well, and we _might_ be
> able to make a big difference there.
>   
[Sal] of course the issue of detecting a connection being dropped is a 
more general problem that can happen
in several scenario other then in firewalls/nats.
Do you have a text/statement proposal to insert in the chart about it?
> -- Jamie
>   


From gregw@webtide.com  Sun Oct 25 15:10:07 2009
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 E1AC33A6856 for <hybi@core3.amsl.com>; Sun, 25 Oct 2009 15:10:06 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.789
X-Spam-Level: 
X-Spam-Status: No, score=-1.789 tagged_above=-999 required=5 tests=[AWL=0.810,  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 zSL5mUCi1v+c for <hybi@core3.amsl.com>; Sun, 25 Oct 2009 15:10:03 -0700 (PDT)
Received: from mail-yw0-f183.google.com (mail-yw0-f183.google.com [209.85.211.183]) by core3.amsl.com (Postfix) with ESMTP id 795363A69EA for <hybi@ietf.org>; Sun, 25 Oct 2009 15:10:03 -0700 (PDT)
Received: by ywh13 with SMTP id 13so14688588ywh.29 for <hybi@ietf.org>; Sun, 25 Oct 2009 15:10:12 -0700 (PDT)
Received: by 10.151.92.9 with SMTP id u9mr8915399ybl.158.1256508612341; Sun, 25 Oct 2009 15:10:12 -0700 (PDT)
Received: from ?10.10.1.9? (60-242-119-126.tpgi.com.au [60.242.119.126]) by mx.google.com with ESMTPS id 13sm1549190gxk.1.2009.10.25.15.10.09 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 25 Oct 2009 15:10:11 -0700 (PDT)
Message-ID: <4AE4CCBB.10001@webtide.com>
Date: Sun, 25 Oct 2009 15:10:03 -0700
From: Greg Wilkins <gregw@webtide.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090817)
MIME-Version: 1.0
To: Salvatore Loreto <salvatore.loreto@ericsson.com>
References: <4ADEC7A0.7040307@ericsson.com>
In-Reply-To: <4ADEC7A0.7040307@ericsson.com>
X-Enigmail-Version: 0.95.7
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] updated Charter proposal
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, 25 Oct 2009 22:10:07 -0000

Salvatore Loreto wrote:

> In particular, the working group will liaison with the WebApps working
> group of the W3C around the Websockets protocol; if agreed by both parties, 
> the HyBi working group may take over the development of the Websockets
> protocol.

Could we detune this from support of the specific Websocket protocol?
How about:

  In particular, the working group will liaison with the WebApps working
  group of the W3C around a protocol to support the Websockets API; if agreed
  by both parties,  the HyBi working group may take on prime responsibility
  for the specification of the protocol.



regards


From ian@hixie.ch  Sun Oct 25 17:07:34 2009
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 CB4A73A6816 for <hybi@core3.amsl.com>; Sun, 25 Oct 2009 17:07:34 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.55
X-Spam-Level: 
X-Spam-Status: No, score=-2.55 tagged_above=-999 required=5 tests=[AWL=0.049,  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 ZCODy0jPwLF1 for <hybi@core3.amsl.com>; Sun, 25 Oct 2009 17:07:33 -0700 (PDT)
Received: from looneymail-a2.g.dreamhost.com (caibbdcaaaaf.dreamhost.com [208.113.200.5]) by core3.amsl.com (Postfix) with ESMTP id 7F4503A67B0 for <hybi@ietf.org>; Sun, 25 Oct 2009 17:07:30 -0700 (PDT)
Received: from hixie.dreamhostps.com (hixie.dreamhost.com [208.113.210.27]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by looneymail-a2.g.dreamhost.com (Postfix) with ESMTP id 4C54A16D3CC; Sun, 25 Oct 2009 17:07:02 -0700 (PDT)
Date: Mon, 26 Oct 2009 00:07:05 +0000 (UTC)
From: Ian Hickson <ian@hixie.ch>
To: Greg Wilkins <gregw@webtide.com>
In-Reply-To: <4AE4CCBB.10001@webtide.com>
Message-ID: <Pine.LNX.4.62.0910260006420.9145@hixie.dreamhostps.com>
References: <4ADEC7A0.7040307@ericsson.com> <4AE4CCBB.10001@webtide.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" <hybi@ietf.org>
Subject: Re: [hybi] updated Charter proposal
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, 26 Oct 2009 00:07:34 -0000

On Sun, 25 Oct 2009, Greg Wilkins wrote:
> Salvatore Loreto wrote:
> 
> > In particular, the working group will liaison with the WebApps working 
> > group of the W3C around the Websockets protocol; if agreed by both 
> > parties, the HyBi working group may take over the development of the 
> > Websockets protocol.
> 
> Could we detune this from support of the specific Websocket protocol? 
> How about:
> 
>   In particular, the working group will liaison with the WebApps working
>   group of the W3C around a protocol to support the Websockets API; if agreed
>   by both parties,  the HyBi working group may take on prime responsibility
>   for the specification of the protocol.

The WebSocket protocol right now is a WHATWG/hybi effort, the W3C WebApps 
group isn't working on the protocol.

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

From salvatore.loreto@ericsson.com  Mon Oct 26 00:45:29 2009
Return-Path: <salvatore.loreto@ericsson.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 69B9A28C1BC for <hybi@core3.amsl.com>; Mon, 26 Oct 2009 00:45:29 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.849
X-Spam-Level: 
X-Spam-Status: No, score=-5.849 tagged_above=-999 required=5 tests=[AWL=0.400,  BAYES_00=-2.599, HELO_EQ_SE=0.35, RCVD_IN_DNSWL_MED=-4]
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 neg5nl0Ic+zN for <hybi@core3.amsl.com>; Mon, 26 Oct 2009 00:45:28 -0700 (PDT)
Received: from mailgw4.ericsson.se (mailgw4.ericsson.se [193.180.251.62]) by core3.amsl.com (Postfix) with ESMTP id 0A6813A69F2 for <hybi@ietf.org>; Mon, 26 Oct 2009 00:45:26 -0700 (PDT)
X-AuditID: c1b4fb3e-b7bf6ae000005dda-0f-4ae553a2ee0f
Received: from esealmw127.eemea.ericsson.se (Unknown_Domain [153.88.253.125]) by mailgw4.ericsson.se (Symantec Mail Security) with SMTP id F1.96.24026.2A355EA4; Mon, 26 Oct 2009 08:45:38 +0100 (CET)
Received: from esealmw129.eemea.ericsson.se ([153.88.254.177]) by esealmw127.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.3959);  Mon, 26 Oct 2009 08:45:38 +0100
Received: from mail.lmf.ericsson.se ([131.160.11.50]) by esealmw129.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.3959);  Mon, 26 Oct 2009 08:45:37 +0100
Received: from nomadiclab.lmf.ericsson.se (nomadiclab.lmf.ericsson.se [131.160.33.3]) by mail.lmf.ericsson.se (Postfix) with ESMTP id AAC3925BB; Mon, 26 Oct 2009 09:45:37 +0200 (EET)
Received: from nomadiclab.lmf.ericsson.se (localhost [127.0.0.1]) by nomadiclab.lmf.ericsson.se (Postfix) with ESMTP id 76CF021A22; Mon, 26 Oct 2009 09:45:37 +0200 (EET)
Received: from localhost.localdomain (localhost [127.0.0.1]) by nomadiclab.lmf.ericsson.se (Postfix) with ESMTP id C396921A1F; Mon, 26 Oct 2009 09:45:36 +0200 (EET)
Message-ID: <4AE553A0.9030208@ericsson.com>
Date: Mon, 26 Oct 2009 09:45:36 +0200
From: Salvatore Loreto <salvatore.loreto@ericsson.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090825)
MIME-Version: 1.0
To: Ian Hickson <ian@hixie.ch>
References: <4ADEC7A0.7040307@ericsson.com> <4AE4CCBB.10001@webtide.com> <Pine.LNX.4.62.0910260006420.9145@hixie.dreamhostps.com>
In-Reply-To: <Pine.LNX.4.62.0910260006420.9145@hixie.dreamhostps.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: ClamAV using ClamSMTP
X-OriginalArrivalTime: 26 Oct 2009 07:45:38.0043 (UTC) FILETIME=[4F1FCCB0:01CA5610]
X-Brightmail-Tracker: AAAAAA==
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] updated Charter proposal (WebSocket)
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, 26 Oct 2009 07:45:29 -0000

Ian Hickson wrote:
> On Sun, 25 Oct 2009, Greg Wilkins wrote:
>   
>> Salvatore Loreto wrote:
>>
>>     
>>> In particular, the working group will liaison with the WebApps working 
>>> group of the W3C around the Websockets protocol; if agreed by both 
>>> parties, the HyBi working group may take over the development of the 
>>> Websockets protocol.
>>>       
>> Could we detune this from support of the specific Websocket protocol? 
>> How about:
>>
>>   In particular, the working group will liaison with the WebApps working
>>   group of the W3C around a protocol to support the Websockets API; if agreed
>>   by both parties,  the HyBi working group may take on prime responsibility
>>   for the specification of the protocol.
>>     
>
> The WebSocket protocol right now is a WHATWG/hybi effort, the W3C WebApps 
> group isn't working on the protocol.
>   
[Sal] I agree with Greg,
the wg should liaison with W3C WebApps wg around the requirements to 
support the Websocket API,
but then the HyBi wg respecting the requirements of the browsers and in 
general all the W3C requirements,
should also take in consideration requirements coming from 
intermediaries, infrastructure providers and/or even servers

about detuning or not the charter from the support of the specific 
WebSocket protocol, it will depend from the consensus of people
both in the mailing list discussions (so please speak up about this 
point) and/or during the BoF in Hiroshima;
my personal opinion is that considering all the efforts people have 
spent during the last years on WebSocket protocol it is reasonable
assume WebSocket to be *the basis* of the long term approach.



From mjs@apple.com  Mon Oct 26 00:51:44 2009
Return-Path: <mjs@apple.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 BEE913A6A31 for <hybi@core3.amsl.com>; Mon, 26 Oct 2009 00:51:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -106.599
X-Spam-Level: 
X-Spam-Status: No, score=-106.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4, 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 wGHKqSPtiukI for <hybi@core3.amsl.com>; Mon, 26 Oct 2009 00:51:42 -0700 (PDT)
Received: from mail-out3.apple.com (mail-out3.apple.com [17.254.13.22]) by core3.amsl.com (Postfix) with ESMTP id C56673A69F2 for <hybi@ietf.org>; Mon, 26 Oct 2009 00:51:42 -0700 (PDT)
Received: from relay15.apple.com (relay15.apple.com [17.128.113.54]) by mail-out3.apple.com (Postfix) with ESMTP id 5B5D97776EC3 for <hybi@ietf.org>; Mon, 26 Oct 2009 00:51:55 -0700 (PDT)
X-AuditID: 11807136-b7bdeae0000013fb-0f-4ae5551bf089
Received: from gertie.apple.com (gertie.apple.com [17.151.62.15]) by relay15.apple.com (Apple SCV relay) with SMTP id 28.2A.05115.B1555EA4; Mon, 26 Oct 2009 00:51:55 -0700 (PDT)
MIME-version: 1.0
Content-transfer-encoding: 7BIT
Content-type: text/plain; charset=US-ASCII; format=flowed; delsp=yes
Received: from [10.0.1.6] (c-69-181-42-237.hsd1.ca.comcast.net [69.181.42.237]) by gertie.apple.com (Sun Java(tm) System Messaging Server 6.3-7.04 (built Sep 26 2008; 32bit)) with ESMTPSA id <0KS4008ZN36ICM60@gertie.apple.com> for hybi@ietf.org; Mon, 26 Oct 2009 00:51:55 -0700 (PDT)
Message-id: <73F5E810-F40F-42B8-81A9-4AD1306E360F@apple.com>
From: Maciej Stachowiak <mjs@apple.com>
To: Salvatore Loreto <salvatore.loreto@ericsson.com>
In-reply-to: <4AE553A0.9030208@ericsson.com>
Date: Mon, 26 Oct 2009 00:51:54 -0700
References: <4ADEC7A0.7040307@ericsson.com> <4AE4CCBB.10001@webtide.com> <Pine.LNX.4.62.0910260006420.9145@hixie.dreamhostps.com> <4AE553A0.9030208@ericsson.com>
X-Mailer: Apple Mail (2.936)
X-Brightmail-Tracker: AAAAAQAAAZE=
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] updated Charter proposal (WebSocket)
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, 26 Oct 2009 07:51:44 -0000

On Oct 26, 2009, at 12:45 AM, Salvatore Loreto wrote:

>
> my personal opinion is that considering all the efforts people have  
> spent during the last years on WebSocket protocol it is reasonable
> assume WebSocket to be *the basis* of the long term approach.
>

I agree with that point of view. It seems sensible to use WebSocket  
Protocol as the starting point, even if we see the need to add  
features or otherwise change the protocol. There doesn't seem to be a  
strong case for starting from scratch.

  - Maciej


From salvatore.loreto@ericsson.com  Mon Oct 26 01:34:49 2009
Return-Path: <salvatore.loreto@ericsson.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 3479C3A67B6 for <hybi@core3.amsl.com>; Mon, 26 Oct 2009 01:34:49 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.882
X-Spam-Level: 
X-Spam-Status: No, score=-5.882 tagged_above=-999 required=5 tests=[AWL=0.367,  BAYES_00=-2.599, HELO_EQ_SE=0.35, RCVD_IN_DNSWL_MED=-4]
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 iBf4IoVuntwo for <hybi@core3.amsl.com>; Mon, 26 Oct 2009 01:34:48 -0700 (PDT)
Received: from mailgw3.ericsson.se (mailgw3.ericsson.se [193.180.251.60]) by core3.amsl.com (Postfix) with ESMTP id A9A6E3A6774 for <hybi@ietf.org>; Mon, 26 Oct 2009 01:34:47 -0700 (PDT)
X-AuditID: c1b4fb3c-b7b3fae00000105f-d1-4ae55f339a3b
Received: from esealmw129.eemea.ericsson.se (Unknown_Domain [153.88.253.125]) by mailgw3.ericsson.se (Symantec Mail Security) with SMTP id 7C.0B.04191.33F55EA4; Mon, 26 Oct 2009 09:34:59 +0100 (CET)
Received: from esealmw127.eemea.ericsson.se ([153.88.254.171]) by esealmw129.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.3959);  Mon, 26 Oct 2009 09:34:59 +0100
Received: from mail.lmf.ericsson.se ([131.160.11.50]) by esealmw127.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.3959);  Mon, 26 Oct 2009 09:34:59 +0100
Received: from nomadiclab.lmf.ericsson.se (nomadiclab.lmf.ericsson.se [131.160.33.3]) by mail.lmf.ericsson.se (Postfix) with ESMTP id 0EA5D25BB for <hybi@ietf.org>; Mon, 26 Oct 2009 10:34:59 +0200 (EET)
Received: from nomadiclab.lmf.ericsson.se (localhost [127.0.0.1]) by nomadiclab.lmf.ericsson.se (Postfix) with ESMTP id CEE8721A22 for <hybi@ietf.org>; Mon, 26 Oct 2009 10:34:58 +0200 (EET)
Received: from localhost.localdomain (localhost [127.0.0.1]) by nomadiclab.lmf.ericsson.se (Postfix) with ESMTP id 5D69021A1F for <hybi@ietf.org>; Mon, 26 Oct 2009 10:34:58 +0200 (EET)
Message-ID: <4AE55F31.8060705@ericsson.com>
Date: Mon, 26 Oct 2009 10:34:57 +0200
From: Salvatore Loreto <salvatore.loreto@ericsson.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090825)
MIME-Version: 1.0
To: "hybi@ietf.org" <hybi@ietf.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: ClamAV using ClamSMTP
X-OriginalArrivalTime: 26 Oct 2009 08:34:59.0291 (UTC) FILETIME=[342A62B0:01CA5617]
X-Brightmail-Tracker: AAAAAA==
Subject: [hybi] [Fwd: Audio Streaming Info - IETF 76 November 8-13, 2009]
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, 26 Oct 2009 08:34:49 -0000

Hi there,

for all the people that won't be able to attend the HyBi BoF in person 
in Hiroshima,
note (see the mail below) that HyBi BoF as all the other IETF meetings 
will be broadcast:
http://tools.ietf.org/agenda/76/

Regards
Sal


-------- Original Message --------
Subject: 	Audio Streaming Info - IETF 76 November 8-13, 2009
Date: 	Sun, 25 Oct 2009 21:27:02 -0700
From: 	Joel Jaeggli <joelja@bogus.com>
To: 	IETF Discussion <ietf@ietf.org>



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Greetings,

All 8 parallel tracks at the IETF 76 meeting will be broadcast starting
with the commencement of working group sessions on Monday, November 9,
2009 at 0900 JST (GMT +9) and continue until Friday the 13th at 1515
JST. Additionally it is our intention to broadcast the IEPG meeting
occurring on Sunday the 26th starting at 1000 JST.

Because I have been asked several times in the past, note that if you
wish to use the rooms that are being recorded for impromptu meeting
during unscheduled sessions or lunch breaks that you can invite remote
participants to tune in to the appropriate stream. Recording cannot be
guaranteed for unscheduled sessions. Conversely, it should never be
assumed that recording or observation is not occurring on open
microphones, they are after all connected to the Internet.

The links for streaming sources and the schedule are best retrieved from
the IETF tools agenda, located here:

http://tools.ietf.org/agenda/76/

A page in the legacy style with links to the archives will also be
available here:

http://videolab.uoregon.edu/events/ietf/

Regards
Joel Jaeggli




-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkrlJQ0ACgkQ8AA1q7Z/VrIYOwCffwZbXVAxXepryPKJxrMnY6wD
WzYAn08NqsFzQAniyEgvLng7awkYkpV2
=KXHt
-----END PGP SIGNATURE-----
_______________________________________________
Ietf mailing list
Ietf@ietf.org
https://www.ietf.org/mailman/listinfo/ietf


From gregw@webtide.com  Mon Oct 26 03:35:13 2009
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 851543A68D3 for <hybi@core3.amsl.com>; Mon, 26 Oct 2009 03:35:13 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.924
X-Spam-Level: 
X-Spam-Status: No, score=-1.924 tagged_above=-999 required=5 tests=[AWL=0.675,  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 pYjXkwUQDcGb for <hybi@core3.amsl.com>; Mon, 26 Oct 2009 03:35:12 -0700 (PDT)
Received: from mail-gx0-f228.google.com (mail-gx0-f228.google.com [209.85.217.228]) by core3.amsl.com (Postfix) with ESMTP id B347828C1A9 for <hybi@ietf.org>; Mon, 26 Oct 2009 03:35:12 -0700 (PDT)
Received: by gxk28 with SMTP id 28so9809765gxk.9 for <hybi@ietf.org>; Mon, 26 Oct 2009 03:35:23 -0700 (PDT)
Received: by 10.150.87.4 with SMTP id k4mr23495746ybb.347.1256553323332; Mon, 26 Oct 2009 03:35:23 -0700 (PDT)
Received: from ?10.10.1.9? (60-242-119-126.tpgi.com.au [60.242.119.126]) by mx.google.com with ESMTPS id 13sm152897gxk.9.2009.10.26.03.35.20 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 26 Oct 2009 03:35:22 -0700 (PDT)
Message-ID: <4AE57B62.4030209@webtide.com>
Date: Mon, 26 Oct 2009 21:35:14 +1100
From: Greg Wilkins <gregw@webtide.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090817)
MIME-Version: 1.0
To: Maciej Stachowiak <mjs@apple.com>
References: <4ADEC7A0.7040307@ericsson.com> <4AE4CCBB.10001@webtide.com>	<Pine.LNX.4.62.0910260006420.9145@hixie.dreamhostps.com>	<4AE553A0.9030208@ericsson.com> <73F5E810-F40F-42B8-81A9-4AD1306E360F@apple.com>
In-Reply-To: <73F5E810-F40F-42B8-81A9-4AD1306E360F@apple.com>
X-Enigmail-Version: 0.95.7
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] updated Charter proposal (WebSocket)
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, 26 Oct 2009 10:35:13 -0000

Maciej Stachowiak wrote:
> 
> On Oct 26, 2009, at 12:45 AM, Salvatore Loreto wrote:
> 
>>
>> my personal opinion is that considering all the efforts people have
>> spent during the last years on WebSocket protocol it is reasonable
>> assume WebSocket to be *the basis* of the long term approach.
>>
> 
> I agree with that point of view. It seems sensible to use WebSocket
> Protocol as the starting point, even if we see the need to add features
> or otherwise change the protocol. There doesn't seem to be a strong case
> for starting from scratch.

I agree that an amended WebSocket protocol is a probably and desirable
outcome.

However, I don't think the charter should mandate the WebSocket protocol
as the outcome.

The protocol should be able to be selected on it's own merits - and
that includes the effort that many have put towards it already.

However, it may be that the WG discovers some issue that forces a
substantial change and that should be possible within the charter.


cheers



From julian.reschke@gmx.de  Mon Oct 26 03:51:36 2009
Return-Path: <julian.reschke@gmx.de>
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 4C7C63A6A50 for <hybi@core3.amsl.com>; Mon, 26 Oct 2009 03:51:36 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.629
X-Spam-Level: 
X-Spam-Status: No, score=-3.629 tagged_above=-999 required=5 tests=[AWL=-2.519, BAYES_05=-1.11]
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 ksVHuP8pjyZv for <hybi@core3.amsl.com>; Mon, 26 Oct 2009 03:51:35 -0700 (PDT)
Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by core3.amsl.com (Postfix) with SMTP id 202E83A694E for <hybi@ietf.org>; Mon, 26 Oct 2009 03:51:34 -0700 (PDT)
Received: (qmail invoked by alias); 26 Oct 2009 10:51:46 -0000
Received: from mail.greenbytes.de (EHLO [192.168.1.117]) [217.91.35.233] by mail.gmx.net (mp041) with SMTP; 26 Oct 2009 11:51:46 +0100
X-Authenticated: #1915285
X-Provags-ID: V01U2FsdGVkX1/1O5l4iZn1R5toXKXNpRug7jgNhBw44GGfRiQkGB U70gqUy7ogNWGg
Message-ID: <4AE57F42.8060606@gmx.de>
Date: Mon, 26 Oct 2009 11:51:46 +0100
From: Julian Reschke <julian.reschke@gmx.de>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.0.4) Gecko/20060516 Thunderbird/1.5.0.4 Mnenhy/0.7.4.666
MIME-Version: 1.0
To: Greg Wilkins <gregw@webtide.com>
References: <4ADEC7A0.7040307@ericsson.com>	<4AE4CCBB.10001@webtide.com>	<Pine.LNX.4.62.0910260006420.9145@hixie.dreamhostps.com>	<4AE553A0.9030208@ericsson.com>	<73F5E810-F40F-42B8-81A9-4AD1306E360F@apple.com> <4AE57B62.4030209@webtide.com>
In-Reply-To: <4AE57B62.4030209@webtide.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Y-GMX-Trusted: 0
X-FuHaFi: 0.78
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] updated Charter proposal (WebSocket)
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, 26 Oct 2009 10:51:36 -0000

Greg Wilkins wrote:
> I agree that an amended WebSocket protocol is a probably and desirable
> outcome.
> 
> However, I don't think the charter should mandate the WebSocket protocol
> as the outcome.
> 
> The protocol should be able to be selected on it's own merits - and
> that includes the effort that many have put towards it already.
> 
> However, it may be that the WG discovers some issue that forces a
> substantial change and that should be possible within the charter.
> ...

+1

BR, Julian

From gk-ietf-hybi@ninebynine.org  Mon Oct 26 04:39:51 2009
Return-Path: <gk-ietf-hybi@ninebynine.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 D62013A68EE for <hybi@core3.amsl.com>; Mon, 26 Oct 2009 04:39:51 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.838
X-Spam-Level: 
X-Spam-Status: No, score=-3.838 tagged_above=-999 required=5 tests=[AWL=0.902,  BAYES_20=-0.74, RCVD_IN_DNSWL_MED=-4]
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 aoBV1hrWTjoo for <hybi@core3.amsl.com>; Mon, 26 Oct 2009 04:39:51 -0700 (PDT)
Received: from relay6.mail.ox.ac.uk (relay6.mail.ox.ac.uk [163.1.2.167]) by core3.amsl.com (Postfix) with ESMTP id 2ACE03A685B for <hybi@ietf.org>; Mon, 26 Oct 2009 04:39:51 -0700 (PDT)
Received: from smtp2.mail.ox.ac.uk ([163.1.2.205]) by relay6.mail.ox.ac.uk with esmtp (Exim 4.69) (envelope-from <gk-ietf-hybi@ninebynine.org>) id 1N2Nvf-0006nF-Lr for hybi@ietf.org; Mon, 26 Oct 2009 11:40:03 +0000
Received: from gklyne.plus.com ([80.229.154.156] helo=Eskarina.local) by smtp2.mail.ox.ac.uk with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from <gk-ietf-hybi@ninebynine.org>) id 1N2Nvf-0007H8-7x for hybi@ietf.org; Mon, 26 Oct 2009 11:40:03 +0000
Message-ID: <4AE587E5.6070704@ninebynine.org>
Date: Mon, 26 Oct 2009 11:28:37 +0000
From: Graham Klyne <gk-ietf-hybi@ninebynine.org>
User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812)
MIME-Version: 1.0
To: "hybi@ietf.org" <hybi@ietf.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Oxford-Username: zool0635
Subject: [hybi] WebSockets protocol URI scheme names
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, 26 Oct 2009 11:39:51 -0000

Some time ago, there was some discussion about the URI scheme name for 
WebSockets (ws:/wss:).  As scheme registration reviewer, I recommended holding 
off registration while that debate was ongoing.

That debate seems to have run its course - would it be fair to say that rough 
consensus is that the scheme names will likely be as originally proposed?

#g


From lisa.dusseault@gmail.com  Mon Oct 26 11:39:18 2009
Return-Path: <lisa.dusseault@gmail.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 19E0A28C203 for <hybi@core3.amsl.com>; Mon, 26 Oct 2009 11:39:18 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.967
X-Spam-Level: 
X-Spam-Status: No, score=-2.967 tagged_above=-999 required=5 tests=[AWL=-0.368, 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 Na22+3MJWtJj for <hybi@core3.amsl.com>; Mon, 26 Oct 2009 11:39:17 -0700 (PDT)
Received: from mail-qy0-f203.google.com (mail-qy0-f203.google.com [209.85.221.203]) by core3.amsl.com (Postfix) with ESMTP id 4556A28C13C for <hybi@ietf.org>; Mon, 26 Oct 2009 11:39:17 -0700 (PDT)
Received: by qyk41 with SMTP id 41so1372564qyk.29 for <hybi@ietf.org>; Mon, 26 Oct 2009 11:39:29 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=fDf9yZjnLoYxTnJ4mrNs8MxQwavvazH5MO85ClCe0Ro=; b=MC2V+YtSqiIy6d2FMBd6LAa5MOV/Kf0sAaudHeMrdmLg3zFmE/xsZdFYUog6bah+vv 7m2OHmQBK5Bok0Lam4ymy1bx0P2ghU+PBsqHpU8zd+wqrdrP0lJMAmCC01m9xU/XU8Se vicHp2USmW+nn2maicTpHdJwILu5fVrLZp0Es=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=Ex93U5fESSHd2Th5tLHnh1w10YbIXFbvNfPg0tr0vS+5qFL5481azXG4/9Ml8RzM2S BglyxubMlUzNaLAAfkAvxExh6rL96uzz3lEYFM1dJH8bNSFgaFRhowobyBvB1gp/aIVl +HyL71e3ZXELb0bzcYym8RQpiau6ZqXVwVizE=
MIME-Version: 1.0
Received: by 10.220.124.226 with SMTP id v34mr9147170vcr.8.1256582369679; Mon,  26 Oct 2009 11:39:29 -0700 (PDT)
In-Reply-To: <4AE57B62.4030209@webtide.com>
References: <4ADEC7A0.7040307@ericsson.com> <4AE4CCBB.10001@webtide.com> <Pine.LNX.4.62.0910260006420.9145@hixie.dreamhostps.com> <4AE553A0.9030208@ericsson.com> <73F5E810-F40F-42B8-81A9-4AD1306E360F@apple.com> <4AE57B62.4030209@webtide.com>
Date: Mon, 26 Oct 2009 11:39:29 -0700
Message-ID: <ca722a9e0910261139q27a3241aieae39a6a0525b290@mail.gmail.com>
From: Lisa Dusseault <lisa.dusseault@gmail.com>
To: Greg Wilkins <gregw@webtide.com>
Content-Type: text/plain; charset=ISO-8859-1
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] updated Charter proposal (WebSocket)
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, 26 Oct 2009 18:39:18 -0000

On Mon, Oct 26, 2009 at 3:35 AM, Greg Wilkins <gregw@webtide.com> wrote:
>...
> However, I don't think the charter should mandate the WebSocket protocol
> as the outcome.
>
> The protocol should be able to be selected on it's own merits - and
> that includes the effort that many have put towards it already.
>

Hi Greg,

Asking WGs to run beauty contests typically turns out to be
problematic.  I think we get better success at asking whether it's
appropriate to form a WG around a specific proposal, and that doesn't
exclude other WGs and other proposals.  It's really the WG formation
process that lets the entire IETF decide if a WG working on the
WebSocket protocol is the right thing to do.   That process does
address the merits, and it avoids the "there can be only one" fallacy.

Lisa

From salvatore.loreto@ericsson.com  Mon Oct 26 12:41:51 2009
Return-Path: <salvatore.loreto@ericsson.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 C661628C174 for <hybi@core3.amsl.com>; Mon, 26 Oct 2009 12:41:51 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.911
X-Spam-Level: 
X-Spam-Status: No, score=-5.911 tagged_above=-999 required=5 tests=[AWL=0.338,  BAYES_00=-2.599, HELO_EQ_SE=0.35, RCVD_IN_DNSWL_MED=-4]
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 0J4kW4a1PUbT for <hybi@core3.amsl.com>; Mon, 26 Oct 2009 12:41:50 -0700 (PDT)
Received: from mailgw3.ericsson.se (mailgw3.ericsson.se [193.180.251.60]) by core3.amsl.com (Postfix) with ESMTP id 547BA28C146 for <hybi@ietf.org>; Mon, 26 Oct 2009 12:41:50 -0700 (PDT)
X-AuditID: c1b4fb3c-b7b3fae00000105f-e2-4ae5fb8a5b1d
Received: from esealmw127.eemea.ericsson.se (Unknown_Domain [153.88.253.125]) by mailgw3.ericsson.se (Symantec Mail Security) with SMTP id C0.6B.04191.A8BF5EA4; Mon, 26 Oct 2009 20:42:02 +0100 (CET)
Received: from esealmw129.eemea.ericsson.se ([153.88.254.177]) by esealmw127.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.3959);  Mon, 26 Oct 2009 20:42:02 +0100
Received: from mail.lmf.ericsson.se ([131.160.11.50]) by esealmw129.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.3959);  Mon, 26 Oct 2009 20:42:02 +0100
Received: from nomadiclab.lmf.ericsson.se (nomadiclab.lmf.ericsson.se [131.160.33.3]) by mail.lmf.ericsson.se (Postfix) with ESMTP id 463F526C4 for <hybi@ietf.org>; Mon, 26 Oct 2009 21:42:02 +0200 (EET)
Received: from nomadiclab.lmf.ericsson.se (localhost [127.0.0.1]) by nomadiclab.lmf.ericsson.se (Postfix) with ESMTP id 0B52E21A22 for <hybi@ietf.org>; Mon, 26 Oct 2009 21:42:02 +0200 (EET)
Received: from localhost.localdomain (localhost [127.0.0.1]) by nomadiclab.lmf.ericsson.se (Postfix) with ESMTP id 9156B21A21 for <hybi@ietf.org>; Mon, 26 Oct 2009 21:42:01 +0200 (EET)
Message-ID: <4AE5FB89.2060608@ericsson.com>
Date: Mon, 26 Oct 2009 21:42:01 +0200
From: Salvatore Loreto <salvatore.loreto@ericsson.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090825)
MIME-Version: 1.0
To: "hybi@ietf.org" <hybi@ietf.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: ClamAV using ClamSMTP
X-OriginalArrivalTime: 26 Oct 2009 19:42:02.0491 (UTC) FILETIME=[63DA0CB0:01CA5674]
X-Brightmail-Tracker: AAAAAA==
Subject: [hybi] New Version draft http-bidirectional
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, 26 Oct 2009 19:41:52 -0000

Hi there,

we have just submitted a new version of the "Best Practices for the Use 
of Long Polling and Streaming in Bidirectional HTTP" draft.
http://www.ietf.org/id/draft-loreto-http-bidirectional-01.txt

in this version we have:
- updated Section 3.1 with the description of EOF streaming mechanism;
- added Section 4.3 to describe W3C Server Sent events as bidirectional 
Technology;
- updated Section 6, with a bullet regarding possible 
improvements/extensions to XMLHttpRequest (XHR) API.

feedback, comments and suggestions are very welcome

cheers
Salvatore Loreto
www.sloreto.com




From gregw@webtide.com  Mon Oct 26 16:52:14 2009
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 B704B3A69D8 for <hybi@core3.amsl.com>; Mon, 26 Oct 2009 16:52:14 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.02
X-Spam-Level: 
X-Spam-Status: No, score=-2.02 tagged_above=-999 required=5 tests=[AWL=0.579,  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 Pn6HyLsOSmtq for <hybi@core3.amsl.com>; Mon, 26 Oct 2009 16:52:13 -0700 (PDT)
Received: from mail-ew0-f208.google.com (mail-ew0-f208.google.com [209.85.219.208]) by core3.amsl.com (Postfix) with ESMTP id 7B7B128C1AB for <hybi@ietf.org>; Mon, 26 Oct 2009 16:52:13 -0700 (PDT)
Received: by ewy4 with SMTP id 4so4165400ewy.37 for <hybi@ietf.org>; Mon, 26 Oct 2009 16:52:23 -0700 (PDT)
Received: by 10.216.86.213 with SMTP id w63mr2369847wee.71.1256601143721; Mon, 26 Oct 2009 16:52:23 -0700 (PDT)
Received: from ?10.10.1.9? (60-242-119-126.tpgi.com.au [60.242.119.126]) by mx.google.com with ESMTPS id u14sm18285785gvf.3.2009.10.26.16.52.19 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 26 Oct 2009 16:52:22 -0700 (PDT)
Message-ID: <4AE6362B.4030305@webtide.com>
Date: Tue, 27 Oct 2009 10:52:11 +1100
From: Greg Wilkins <gregw@webtide.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090817)
MIME-Version: 1.0
To: Lisa Dusseault <lisa.dusseault@gmail.com>
References: <4ADEC7A0.7040307@ericsson.com> <4AE4CCBB.10001@webtide.com>	 <Pine.LNX.4.62.0910260006420.9145@hixie.dreamhostps.com>	 <4AE553A0.9030208@ericsson.com>	 <73F5E810-F40F-42B8-81A9-4AD1306E360F@apple.com>	 <4AE57B62.4030209@webtide.com> <ca722a9e0910261139q27a3241aieae39a6a0525b290@mail.gmail.com>
In-Reply-To: <ca722a9e0910261139q27a3241aieae39a6a0525b290@mail.gmail.com>
X-Enigmail-Version: 0.95.7
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] updated Charter proposal (WebSocket)
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, 26 Oct 2009 23:52:14 -0000

Lisa Dusseault wrote:
> On Mon, Oct 26, 2009 at 3:35 AM, Greg Wilkins <gregw@webtide.com> wrote:
>> ...
>> However, I don't think the charter should mandate the WebSocket protocol
>> as the outcome.
>>
>> The protocol should be able to be selected on it's own merits - and
>> that includes the effort that many have put towards it already.
>>
> 
> Hi Greg,
> 
> Asking WGs to run beauty contests typically turns out to be
> problematic.  I think we get better success at asking whether it's
> appropriate to form a WG around a specific proposal, and that doesn't
> exclude other WGs and other proposals.  It's really the WG formation
> process that lets the entire IETF decide if a WG working on the
> WebSocket protocol is the right thing to do.   That process does
> address the merits, and it avoids the "there can be only one" fallacy.

OK if that's the process, then that's the process.

However, the authors of the protocol have so far been very
resistant to change (not even using BNF or allocating a
type byte for mime-encoded content).

So will the WG have the ability to come up with it's own
draft for a websocket protocol - or will all it be able
to do is huff and puff and hope to convince the whatwg?

The problem with that approach is that the whatwg
have a different world view (js only, not so hard
to release new versions, run around intermediaries, keep it
totally simple) to many view expressed in the IETF forum
(many client types, hard to release new versions, involve
the intermediaries, make it extensible).

It maybe that the websocket protocol is perfect
for the whatwg's objectives, but insufficient for
the IETF's.   I'm not sure how we get past that
log jam if the WG is not able to author its
own protocol or variations?


regards



From ian@hixie.ch  Mon Oct 26 17:10:14 2009
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 CEC103A6963 for <hybi@core3.amsl.com>; Mon, 26 Oct 2009 17:10:14 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.552
X-Spam-Level: 
X-Spam-Status: No, score=-2.552 tagged_above=-999 required=5 tests=[AWL=0.047,  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 qPV6Bq4jB7R9 for <hybi@core3.amsl.com>; Mon, 26 Oct 2009 17:10:14 -0700 (PDT)
Received: from looneymail-a2.g.dreamhost.com (caibbdcaaaaf.dreamhost.com [208.113.200.5]) by core3.amsl.com (Postfix) with ESMTP id 1D9763A694D for <hybi@ietf.org>; Mon, 26 Oct 2009 17:10:14 -0700 (PDT)
Received: from hixie.dreamhostps.com (hixie.dreamhost.com [208.113.210.27]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by looneymail-a2.g.dreamhost.com (Postfix) with ESMTP id 8C82B16D3CC; Mon, 26 Oct 2009 17:10:27 -0700 (PDT)
Date: Tue, 27 Oct 2009 00:10:25 +0000 (UTC)
From: Ian Hickson <ian@hixie.ch>
To: Graham Klyne <gk-ietf-hybi@ninebynine.org>
In-Reply-To: <4AE587E5.6070704@ninebynine.org>
Message-ID: <Pine.LNX.4.62.0910270009160.13521@hixie.dreamhostps.com>
References: <4AE587E5.6070704@ninebynine.org>
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" <hybi@ietf.org>
Subject: Re: [hybi] WebSockets protocol URI scheme names
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: Tue, 27 Oct 2009 00:10:14 -0000

On Mon, 26 Oct 2009, Graham Klyne wrote:
>
> Some time ago, there was some discussion about the URI scheme name for 
> WebSockets (ws:/wss:).  As scheme registration reviewer, I recommended 
> holding off registration while that debate was ongoing.
> 
> That debate seems to have run its course - would it be fair to say that 
> rough consensus is that the scheme names will likely be as originally 
> proposed?

I am not aware of any unaddressed feedback that would affect the scheme 
registrations. (Whether that means we have consensus or not, I don't know.)

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

From ian@hixie.ch  Mon Oct 26 17:14:13 2009
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 0FB9F3A69DB for <hybi@core3.amsl.com>; Mon, 26 Oct 2009 17:14:13 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.489
X-Spam-Level: 
X-Spam-Status: No, score=-2.489 tagged_above=-999 required=5 tests=[AWL=-0.020, BAYES_00=-2.599, SARE_RMML_Stock10=0.13]
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 ZjfHV2wi3YNF for <hybi@core3.amsl.com>; Mon, 26 Oct 2009 17:14:12 -0700 (PDT)
Received: from looneymail-a2.g.dreamhost.com (caibbdcaaaaf.dreamhost.com [208.113.200.5]) by core3.amsl.com (Postfix) with ESMTP id 25DB03A6861 for <hybi@ietf.org>; Mon, 26 Oct 2009 17:14:12 -0700 (PDT)
Received: from hixie.dreamhostps.com (hixie.dreamhost.com [208.113.210.27]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by looneymail-a2.g.dreamhost.com (Postfix) with ESMTP id 2543E16D31B; Mon, 26 Oct 2009 17:14:26 -0700 (PDT)
Date: Tue, 27 Oct 2009 00:14:30 +0000 (UTC)
From: Ian Hickson <ian@hixie.ch>
To: Greg Wilkins <gregw@webtide.com>
In-Reply-To: <4AE57B62.4030209@webtide.com>
Message-ID: <Pine.LNX.4.62.0910270011060.13521@hixie.dreamhostps.com>
References: <4ADEC7A0.7040307@ericsson.com> <4AE4CCBB.10001@webtide.com> <Pine.LNX.4.62.0910260006420.9145@hixie.dreamhostps.com> <4AE553A0.9030208@ericsson.com> <73F5E810-F40F-42B8-81A9-4AD1306E360F@apple.com> <4AE57B62.4030209@webtide.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" <hybi@ietf.org>
Subject: Re: [hybi] updated Charter proposal (WebSocket)
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: Tue, 27 Oct 2009 00:14:13 -0000

On Mon, 26 Oct 2009, Greg Wilkins wrote:
> Maciej Stachowiak wrote:
> > 
> > I agree with that point of view. It seems sensible to use WebSocket 
> > Protocol as the starting point, even if we see the need to add 
> > features or otherwise change the protocol. There doesn't seem to be a 
> > strong case for starting from scratch.
> 
> [...] I don't think the charter should mandate the WebSocket protocol as 
> the outcome.
> 
> The protocol should be able to be selected on it's own merits - and that 
> includes the effort that many have put towards it already.

I agree with Greg that it would be inappropriate for the WG to be bound to 
adopt a particular proposal or rubber-stamp a particular proposal.

What matters much more is that the group's deliverables have the buy-in of 
the relevant implementors -- if we write a technology that is intended to 
be implemented by proxy vendors, then proxy vendors need to be willing to 
implement it. If we write a technology that is intended to be implemented 
by Web browsers, then Web browsers need to be willing to implement it. 
Otherwise, we're just wasting our time writing boring science fiction.

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

From mjs@apple.com  Mon Oct 26 17:21:12 2009
Return-Path: <mjs@apple.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 E4F0128C1C2 for <hybi@core3.amsl.com>; Mon, 26 Oct 2009 17:21:12 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -106.599
X-Spam-Level: 
X-Spam-Status: No, score=-106.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4, 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 wfgHH+ROlGjK for <hybi@core3.amsl.com>; Mon, 26 Oct 2009 17:21:12 -0700 (PDT)
Received: from mail-out3.apple.com (mail-out3.apple.com [17.254.13.22]) by core3.amsl.com (Postfix) with ESMTP id 3CCB228C1BF for <hybi@ietf.org>; Mon, 26 Oct 2009 17:21:12 -0700 (PDT)
Received: from relay13.apple.com (relay13.apple.com [17.128.113.29]) by mail-out3.apple.com (Postfix) with ESMTP id 50DF7778D47A for <hybi@ietf.org>; Mon, 26 Oct 2009 17:21:26 -0700 (PDT)
X-AuditID: 1180711d-b7c0eae000004000-b5-4ae63d061dd2
Received: from gertie.apple.com (gertie.apple.com [17.151.62.15]) by relay13.apple.com (Apple SCV relay) with SMTP id A6.EB.16384.60D36EA4; Mon, 26 Oct 2009 17:21:26 -0700 (PDT)
MIME-version: 1.0
Content-transfer-encoding: 7BIT
Content-type: text/plain; charset=US-ASCII; format=flowed; delsp=yes
Received: from il0301a-dhcp113.apple.com (il0301a-dhcp113.apple.com [17.203.14.241]) by gertie.apple.com (Sun Java(tm) System Messaging Server 6.3-7.04 (built Sep 26 2008; 32bit)) with ESMTPSA id <0KS500CQ5CZP9890@gertie.apple.com> for hybi@ietf.org; Mon, 26 Oct 2009 17:21:26 -0700 (PDT)
Message-id: <9F3A17FE-17FC-4397-9E54-C480D73FD237@apple.com>
From: Maciej Stachowiak <mjs@apple.com>
To: Greg Wilkins <gregw@webtide.com>
In-reply-to: <4AE6362B.4030305@webtide.com>
Date: Mon, 26 Oct 2009 17:21:25 -0700
References: <4ADEC7A0.7040307@ericsson.com> <4AE4CCBB.10001@webtide.com> <Pine.LNX.4.62.0910260006420.9145@hixie.dreamhostps.com> <4AE553A0.9030208@ericsson.com> <73F5E810-F40F-42B8-81A9-4AD1306E360F@apple.com> <4AE57B62.4030209@webtide.com> <ca722a9e0910261139q27a3241aieae39a6a0525b290@mail.gmail.com> <4AE6362B.4030305@webtide.com>
X-Mailer: Apple Mail (2.936)
X-Brightmail-Tracker: AAAAAQAAAZE=
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] updated Charter proposal (WebSocket)
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: Tue, 27 Oct 2009 00:21:13 -0000

On Oct 26, 2009, at 4:52 PM, Greg Wilkins wrote:

> Lisa Dusseault wrote:
>> On Mon, Oct 26, 2009 at 3:35 AM, Greg Wilkins <gregw@webtide.com>  
>> wrote:
>>> ...
>>> However, I don't think the charter should mandate the WebSocket  
>>> protocol
>>> as the outcome.
>>>
>>> The protocol should be able to be selected on it's own merits - and
>>> that includes the effort that many have put towards it already.
>>>
>>
>> Hi Greg,
>>
>> Asking WGs to run beauty contests typically turns out to be
>> problematic.  I think we get better success at asking whether it's
>> appropriate to form a WG around a specific proposal, and that doesn't
>> exclude other WGs and other proposals.  It's really the WG formation
>> process that lets the entire IETF decide if a WG working on the
>> WebSocket protocol is the right thing to do.   That process does
>> address the merits, and it avoids the "there can be only one"  
>> fallacy.
>
> OK if that's the process, then that's the process.
>
> However, the authors of the protocol have so far been very
> resistant to change (not even using BNF or allocating a
> type byte for mime-encoded content).
>
> So will the WG have the ability to come up with it's own
> draft for a websocket protocol - or will all it be able
> to do is huff and puff and hope to convince the whatwg?

I would expect the standard for deciding the contents of an eventual  
RFC will be "rough consensus and running code".

Regards,
Maciej


From ian@hixie.ch  Mon Oct 26 17:24:59 2009
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 2346D3A6860 for <hybi@core3.amsl.com>; Mon, 26 Oct 2009 17:24:59 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.553
X-Spam-Level: 
X-Spam-Status: No, score=-2.553 tagged_above=-999 required=5 tests=[AWL=0.046,  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 nmL9L1CsIA5v for <hybi@core3.amsl.com>; Mon, 26 Oct 2009 17:24:58 -0700 (PDT)
Received: from looneymail-a2.g.dreamhost.com (caibbdcaaaaf.dreamhost.com [208.113.200.5]) by core3.amsl.com (Postfix) with ESMTP id 3400228C14F for <hybi@ietf.org>; Mon, 26 Oct 2009 17:24:58 -0700 (PDT)
Received: from hixie.dreamhostps.com (hixie.dreamhost.com [208.113.210.27]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by looneymail-a2.g.dreamhost.com (Postfix) with ESMTP id 4A2E916D3E7; Mon, 26 Oct 2009 17:25:12 -0700 (PDT)
Date: Tue, 27 Oct 2009 00:25:19 +0000 (UTC)
From: Ian Hickson <ian@hixie.ch>
To: Greg Wilkins <gregw@webtide.com>
In-Reply-To: <4AE6362B.4030305@webtide.com>
Message-ID: <Pine.LNX.4.62.0910270014420.13521@hixie.dreamhostps.com>
References: <4ADEC7A0.7040307@ericsson.com> <4AE4CCBB.10001@webtide.com>  <Pine.LNX.4.62.0910260006420.9145@hixie.dreamhostps.com> <4AE553A0.9030208@ericsson.com> <73F5E810-F40F-42B8-81A9-4AD1306E360F@apple.com> <4AE57B62.4030209@webtide.com> <ca722a9e0910261139q27a3241aieae39a6a0525b290@mail.gmail.com> <4AE6362B.4030305@webtide.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" <hybi@ietf.org>
Subject: Re: [hybi] updated Charter proposal (WebSocket)
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: Tue, 27 Oct 2009 00:24:59 -0000

On Tue, 27 Oct 2009, Greg Wilkins wrote:
> 
> However, the authors of the [WebSocket] protocol have so far been very 
> resistant to change (not even using BNF or allocating a type byte for 
> mime-encoded content).

ABNF is used three times in the WebSocket draft.

You and I have a disagreement about whether it is appropriate for the 
protocol to have a type byte for MIME-encoded content.

However, the draft itself has changed a lot in response to feedback over 
the years. The original proposal really has no resemblence to the current 
proposal:

   http://www.whatwg.org/specs/web-apps/2005-09-01/#network
   http://www.whatwg.org/specs/web-apps/2006-01-01/#scs-network

I don't adopt every proposed change, sure, but I think I have shown myself 
to be quite willing to change the proposal based on reasoned arguments and 
clearly demonstrated needs and problems.


> So will the WG have the ability to come up with it's own draft for a 
> websocket protocol - or will all it be able to do is huff and puff and 
> hope to convince the whatwg?

Say the WG adopted BWTP as the basis for its work. Will you drop 
Multiplexing and MIME typing from the BWTP proposal? If not, does that 
mean you are resistant to change and then will the WG only be able to huff 
and puff and hope to convince you?


> The problem with that approach is that the whatwg have a different world 
> view (js only, not so hard to release new versions, run around 
> intermediaries, keep it totally simple) to many view expressed in the 
> IETF forum (many client types, hard to release new versions, involve the 
> intermediaries, make it extensible).
> 
> It maybe that the websocket protocol is perfect for the whatwg's 
> objectives, but insufficient for the IETF's.  I'm not sure how we get 
> past that log jam if the WG is not able to author its own protocol or 
> variations?

If the WG were to adopt an approach that was based on not having JS as the 
primary client type, assuming that we couldn't update the protocol 
frequently, assuming that the protocol would have to be implemented in 
intermediaries to be successful, and assuming that extensibility at the 
protocol user level (rather than layered on top of the protocol, or done 
through updates to the protocol) was desireable, then I don't think I'd be 
interested in the group's deliverables, to be honest.

What I'm looking for is something that is designed for JS clients, that 
can be updated regularly, that can be adopted today without bootstrapping 
through intermediaries, and that is kept as simple as possible (while 
allowing the protocol to be extended by future updates).

I don't mind what the working group works on, but if it's not that, then 
it's not a working group I'm interested in working with, as it wouldn't 
be addressing the needs that I'm trying to address.

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

From mnot@mnot.net  Mon Oct 26 17:53:07 2009
Return-Path: <mnot@mnot.net>
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 D43BE3A69DE for <hybi@core3.amsl.com>; Mon, 26 Oct 2009 17:53:07 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.906
X-Spam-Level: 
X-Spam-Status: No, score=-5.906 tagged_above=-999 required=5 tests=[AWL=-3.307, 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 UZg4DXVGNVlm for <hybi@core3.amsl.com>; Mon, 26 Oct 2009 17:53:07 -0700 (PDT)
Received: from mxout-08.mxes.net (mxout-08.mxes.net [216.86.168.183]) by core3.amsl.com (Postfix) with ESMTP id 094CE3A69D6 for <hybi@ietf.org>; Mon, 26 Oct 2009 17:53:06 -0700 (PDT)
Received: from chancetrain-lm.mnot.net (unknown [118.209.5.85]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 8703E509DD; Mon, 26 Oct 2009 20:53:11 -0400 (EDT)
Mime-Version: 1.0 (Apple Message framework v1076)
Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes
From: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <Pine.LNX.4.62.0910232157310.13521@hixie.dreamhostps.com>
Date: Tue, 27 Oct 2009 11:53:07 +1100
Content-Transfer-Encoding: 7bit
Message-Id: <EDCEB881-D56A-442D-B8AC-62B945990EEB@mnot.net>
References: <3a880e2c0910231008h6c65de59t8783a3bcf77dbdd5@mail.gmail.com> <Pine.LNX.4.62.0910232157310.13521@hixie.dreamhostps.com>
To: Ian Hickson <ian@hixie.ch>
X-Mailer: Apple Mail (2.1076)
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] anyone coming to apacheCon / w3c plenary?
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: Tue, 27 Oct 2009 00:53:07 -0000

I'll be at ApacheCon all week, except for Thursday AM, where I'll be  
at TPAC.


On 24/10/2009, at 8:59 AM, Ian Hickson wrote:

> On Fri, 23 Oct 2009, Infinity Linden (Meadhbh Hamrick) wrote:
>>
>> was just wondering if there would be some benefits to standing in  
>> front
>> of the same white board for a couple hours. or even just grabbing a
>> coffee / wine / beer for social reasons.
>
> I'll be in the area of the W3C meeting, so if anyone wants to meet  
> during
> that, I'm certainly happy to attend.
>
> -- 
> Ian Hickson               U+1047E                ) 
> \._.,--....,'``.    fL
> http://ln.hixie.ch/       U+263A                /,   _.. \   _ 
> \  ;`._ ,.
> Things that are impossible just take longer.   `._.-(,_..'-- 
> (,_..'`-.;.'
> _______________________________________________
> hybi mailing list
> hybi@ietf.org
> https://www.ietf.org/mailman/listinfo/hybi


--
Mark Nottingham     http://www.mnot.net/


From mnot@mnot.net  Mon Oct 26 17:55:19 2009
Return-Path: <mnot@mnot.net>
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 319C23A688F for <hybi@core3.amsl.com>; Mon, 26 Oct 2009 17:55:19 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.788
X-Spam-Level: 
X-Spam-Status: No, score=-5.788 tagged_above=-999 required=5 tests=[AWL=-3.189, 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 CctwhsMDCIQp for <hybi@core3.amsl.com>; Mon, 26 Oct 2009 17:55:18 -0700 (PDT)
Received: from mxout-08.mxes.net (mxout-08.mxes.net [216.86.168.183]) by core3.amsl.com (Postfix) with ESMTP id 64FBD3A67F7 for <hybi@ietf.org>; Mon, 26 Oct 2009 17:55:18 -0700 (PDT)
Received: from chancetrain-lm.mnot.net (unknown [118.209.5.85]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id DE897509DB; Mon, 26 Oct 2009 20:55:30 -0400 (EDT)
Mime-Version: 1.0 (Apple Message framework v1076)
Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes
From: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <4AE587E5.6070704@ninebynine.org>
Date: Tue, 27 Oct 2009 11:55:27 +1100
Content-Transfer-Encoding: 7bit
Message-Id: <586D9DCC-9F3D-4B74-ACC7-AD5AA06DEE2B@mnot.net>
References: <4AE587E5.6070704@ninebynine.org>
To: Graham Klyne <gk-ietf-hybi@ninebynine.org>
X-Mailer: Apple Mail (2.1076)
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] WebSockets protocol URI scheme names
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: Tue, 27 Oct 2009 00:55:19 -0000

My .02 - yes.

On 26/10/2009, at 10:28 PM, Graham Klyne wrote:

> Some time ago, there was some discussion about the URI scheme name  
> for WebSockets (ws:/wss:).  As scheme registration reviewer, I  
> recommended holding off registration while that debate was ongoing.
>
> That debate seems to have run its course - would it be fair to say  
> that rough consensus is that the scheme names will likely be as  
> originally proposed?
>
> #g
>
> _______________________________________________
> hybi mailing list
> hybi@ietf.org
> https://www.ietf.org/mailman/listinfo/hybi


--
Mark Nottingham     http://www.mnot.net/


From mnot@mnot.net  Mon Oct 26 18:05:38 2009
Return-Path: <mnot@mnot.net>
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 012E728C13D for <hybi@core3.amsl.com>; Mon, 26 Oct 2009 18:05:38 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.678
X-Spam-Level: 
X-Spam-Status: No, score=-5.678 tagged_above=-999 required=5 tests=[AWL=-3.079, 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 SdBCadXoduAz for <hybi@core3.amsl.com>; Mon, 26 Oct 2009 18:05:37 -0700 (PDT)
Received: from mxout-08.mxes.net (mxout-08.mxes.net [216.86.168.183]) by core3.amsl.com (Postfix) with ESMTP id 1C9AE3A68C9 for <hybi@ietf.org>; Mon, 26 Oct 2009 18:05:37 -0700 (PDT)
Received: from chancetrain-lm.mnot.net (unknown [118.209.5.85]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 7F768509DE for <hybi@ietf.org>; Mon, 26 Oct 2009 21:05:49 -0400 (EDT)
Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes
Mime-Version: 1.0 (Apple Message framework v1076)
From: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <4AE4CCBB.10001@webtide.com>
Date: Tue, 27 Oct 2009 12:05:45 +1100
Content-Transfer-Encoding: 7bit
Message-Id: <FF38AF8B-95D7-479E-B6A2-20E3AC7EB6C9@mnot.net>
References: <4ADEC7A0.7040307@ericsson.com> <4AE4CCBB.10001@webtide.com>
To: hybi@ietf.org
X-Mailer: Apple Mail (2.1076)
Subject: Re: [hybi] updated Charter proposal
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: Tue, 27 Oct 2009 01:05:38 -0000

My .02 (repeating some things that have been said by others) --

A WG that has a definite charter to do a specific piece of work has a  
much greater chance of success than one that is tasked with picking a  
winner; even if the WG fails as a whole or needs to be rechartered  
later because it isn't working, it's much more productive to be  
working on one identified thing.

I think a charter for a WG along these lines needs to very carefully  
spell out what criteria that proposed changes to WS needs to meet; it  
will be very easy for it to become unproductive otherwise.

I don't think that the characterisation that Ian has been reluctant to  
take feedback is merited; I've seen him incorporate feedback from  
several communities. Of course, he's operating with a fairly strict  
set of criteria for changes to WS; YMMV.

Cheers,



On 26/10/2009, at 9:10 AM, Greg Wilkins wrote:

> Salvatore Loreto wrote:
>
>> In particular, the working group will liaison with the WebApps  
>> working
>> group of the W3C around the Websockets protocol; if agreed by both  
>> parties,
>> the HyBi working group may take over the development of the  
>> Websockets
>> protocol.
>
> Could we detune this from support of the specific Websocket protocol?
> How about:
>
>  In particular, the working group will liaison with the WebApps  
> working
>  group of the W3C around a protocol to support the Websockets API;  
> if agreed
>  by both parties,  the HyBi working group may take on prime  
> responsibility
>  for the specification of the protocol.
>
>
>
> regards
>
> _______________________________________________
> hybi mailing list
> hybi@ietf.org
> https://www.ietf.org/mailman/listinfo/hybi


--
Mark Nottingham     http://www.mnot.net/


From mnot@mnot.net  Mon Oct 26 18:07:29 2009
Return-Path: <mnot@mnot.net>
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 3E2393A67F7 for <hybi@core3.amsl.com>; Mon, 26 Oct 2009 18:07:29 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.575
X-Spam-Level: 
X-Spam-Status: No, score=-5.575 tagged_above=-999 required=5 tests=[AWL=-2.976, 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 R2bnSYuR44ez for <hybi@core3.amsl.com>; Mon, 26 Oct 2009 18:07:28 -0700 (PDT)
Received: from mxout-08.mxes.net (mxout-08.mxes.net [216.86.168.183]) by core3.amsl.com (Postfix) with ESMTP id 2BE723A6778 for <hybi@ietf.org>; Mon, 26 Oct 2009 18:07:28 -0700 (PDT)
Received: from chancetrain-lm.mnot.net (unknown [118.209.5.85]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 3E36A509DE; Mon, 26 Oct 2009 21:07:39 -0400 (EDT)
Mime-Version: 1.0 (Apple Message framework v1076)
Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes
From: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <Pine.LNX.4.62.0910270011060.13521@hixie.dreamhostps.com>
Date: Tue, 27 Oct 2009 12:07:36 +1100
Content-Transfer-Encoding: 7bit
Message-Id: <C19DD55E-816F-4549-89B1-EEF7E50945F8@mnot.net>
References: <4ADEC7A0.7040307@ericsson.com> <4AE4CCBB.10001@webtide.com> <Pine.LNX.4.62.0910260006420.9145@hixie.dreamhostps.com> <4AE553A0.9030208@ericsson.com> <73F5E810-F40F-42B8-81A9-4AD1306E360F@apple.com> <4AE57B62.4030209@webtide.com> <Pine.LNX.4.62.0910270011060.13521@hixie.dreamhostps.com>
To: Ian Hickson <ian@hixie.ch>
X-Mailer: Apple Mail (2.1076)
Cc: hybi@ietf.org
Subject: Re: [hybi] updated Charter proposal (WebSocket)
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: Tue, 27 Oct 2009 01:07:29 -0000

Ian --

There really isn't anything for proxy vendors to implement in  
WebSockets, is there? Provided that they support CONNECT, of course.

To get proxy vendors on board, there will need to be overlay protocols  
that allow them, for example, to multiplex many client connections  
into one server connection, but that's far and above what WS does.

Or do you intend to go in that direction?

Cheers,


On 27/10/2009, at 11:14 AM, Ian Hickson wrote:

> On Mon, 26 Oct 2009, Greg Wilkins wrote:
>> Maciej Stachowiak wrote:
>>>
>>> I agree with that point of view. It seems sensible to use WebSocket
>>> Protocol as the starting point, even if we see the need to add
>>> features or otherwise change the protocol. There doesn't seem to  
>>> be a
>>> strong case for starting from scratch.
>>
>> [...] I don't think the charter should mandate the WebSocket  
>> protocol as
>> the outcome.
>>
>> The protocol should be able to be selected on it's own merits - and  
>> that
>> includes the effort that many have put towards it already.
>
> I agree with Greg that it would be inappropriate for the WG to be  
> bound to
> adopt a particular proposal or rubber-stamp a particular proposal.
>
> What matters much more is that the group's deliverables have the buy- 
> in of
> the relevant implementors -- if we write a technology that is  
> intended to
> be implemented by proxy vendors, then proxy vendors need to be  
> willing to
> implement it. If we write a technology that is intended to be  
> implemented
> by Web browsers, then Web browsers need to be willing to implement it.
> Otherwise, we're just wasting our time writing boring science fiction.
>
> -- 
> Ian Hickson               U+1047E                ) 
> \._.,--....,'``.    fL
> http://ln.hixie.ch/       U+263A                /,   _.. \   _ 
> \  ;`._ ,.
> Things that are impossible just take longer.   `._.-(,_..'-- 
> (,_..'`-.;.'
> _______________________________________________
> hybi mailing list
> hybi@ietf.org
> https://www.ietf.org/mailman/listinfo/hybi


--
Mark Nottingham     http://www.mnot.net/


From mnot@mnot.net  Mon Oct 26 18:22:52 2009
Return-Path: <mnot@mnot.net>
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 9E98A3A688F for <hybi@core3.amsl.com>; Mon, 26 Oct 2009 18:22:52 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.479
X-Spam-Level: 
X-Spam-Status: No, score=-5.479 tagged_above=-999 required=5 tests=[AWL=-2.880, 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 OS0BM5UwvuZf for <hybi@core3.amsl.com>; Mon, 26 Oct 2009 18:22:51 -0700 (PDT)
Received: from mxout-08.mxes.net (mxout-08.mxes.net [216.86.168.183]) by core3.amsl.com (Postfix) with ESMTP id CAD723A67B3 for <hybi@ietf.org>; Mon, 26 Oct 2009 18:22:51 -0700 (PDT)
Received: from chancetrain-lm.mnot.net (unknown [118.209.5.85]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 3581F509DB; Mon, 26 Oct 2009 21:23:03 -0400 (EDT)
Mime-Version: 1.0 (Apple Message framework v1076)
Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes
From: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <4AE587E5.6070704@ninebynine.org>
Date: Tue, 27 Oct 2009 12:23:00 +1100
Content-Transfer-Encoding: 7bit
Message-Id: <2D79E39E-A5EC-4BCB-928E-AA9D541E5DFB@mnot.net>
References: <4AE587E5.6070704@ninebynine.org>
To: Graham Klyne <gk-ietf-hybi@ninebynine.org>
X-Mailer: Apple Mail (2.1076)
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] WebSockets protocol URI scheme names
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: Tue, 27 Oct 2009 01:22:52 -0000

... one note, though;

RFC3295, section 2.8 (Scheme Name Considerations) says:

>    Avoid using names that are either very general purpose or  
> associated
>    in the community with some other application or protocol.

I know there was some discussion of "WS" already being associated with  
"Web Services"; is this a problem?

Cheers,



On 26/10/2009, at 10:28 PM, Graham Klyne wrote:

> Some time ago, there was some discussion about the URI scheme name  
> for WebSockets (ws:/wss:).  As scheme registration reviewer, I  
> recommended holding off registration while that debate was ongoing.
>
> That debate seems to have run its course - would it be fair to say  
> that rough consensus is that the scheme names will likely be as  
> originally proposed?
>
> #g
>
> _______________________________________________
> hybi mailing list
> hybi@ietf.org
> https://www.ietf.org/mailman/listinfo/hybi


--
Mark Nottingham     http://www.mnot.net/


From ian@hixie.ch  Mon Oct 26 18:24:51 2009
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 0F2203A67A6 for <hybi@core3.amsl.com>; Mon, 26 Oct 2009 18:24:51 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.555
X-Spam-Level: 
X-Spam-Status: No, score=-2.555 tagged_above=-999 required=5 tests=[AWL=0.044,  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 Nc9S10UPF4Ml for <hybi@core3.amsl.com>; Mon, 26 Oct 2009 18:24:50 -0700 (PDT)
Received: from looneymail-a2.g.dreamhost.com (caibbdcaaaaf.dreamhost.com [208.113.200.5]) by core3.amsl.com (Postfix) with ESMTP id 4190B3A66B4 for <hybi@ietf.org>; Mon, 26 Oct 2009 18:24:18 -0700 (PDT)
Received: from hixie.dreamhostps.com (hixie.dreamhost.com [208.113.210.27]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by looneymail-a2.g.dreamhost.com (Postfix) with ESMTP id 494CD16D3CC; Mon, 26 Oct 2009 18:24:32 -0700 (PDT)
Date: Tue, 27 Oct 2009 01:24:40 +0000 (UTC)
From: Ian Hickson <ian@hixie.ch>
To: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <C19DD55E-816F-4549-89B1-EEF7E50945F8@mnot.net>
Message-ID: <Pine.LNX.4.62.0910270115390.13521@hixie.dreamhostps.com>
References: <4ADEC7A0.7040307@ericsson.com> <4AE4CCBB.10001@webtide.com> <Pine.LNX.4.62.0910260006420.9145@hixie.dreamhostps.com> <4AE553A0.9030208@ericsson.com> <73F5E810-F40F-42B8-81A9-4AD1306E360F@apple.com> <4AE57B62.4030209@webtide.com> <Pine.LNX.4.62.0910270011060.13521@hixie.dreamhostps.com> <C19DD55E-816F-4549-89B1-EEF7E50945F8@mnot.net>
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] updated Charter proposal (WebSocket)
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: Tue, 27 Oct 2009 01:24:51 -0000

On Tue, 27 Oct 2009, Mark Nottingham wrote:
> 
> There really isn't anything for proxy vendors to implement in 
> WebSockets, is there? Provided that they support CONNECT, of course.

Right; as written, WebSocket can be used with explicit SOCKS or HTTP 
proxies (in the latter case using CONNECT), and there's no built-in 
support for dedicated WebSocket proxies though man-in-the-middle proxies 
could be written to handle unencrypted WebSocket proxies if there was a 
need to do so (though I can't see what the point would be).


> To get proxy vendors on board, there will need to be overlay protocols 
> that allow them, for example, to multiplex many client connections into 
> one server connection, but that's far and above what WS does.
>
> Or do you intend to go in that direction?

Not currently. I don't see why we would.

I would expect server-side implementations to translate incoming WebSocket 
connections into appropriate internal connections; e.g. if Example Corp 
uses RPC extensively internally in their datacenters, a front-line server 
could receive a long-lived WebSocket connection (speaking that site's 
subprotocol) and translate it into short-lived RPC on the backend. 
However, that would be layered above WebSocket just like this kind of 
thing is layered above hanging-GET systems today.

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

From mnot@mnot.net  Mon Oct 26 18:27:54 2009
Return-Path: <mnot@mnot.net>
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 A92053A6778 for <hybi@core3.amsl.com>; Mon, 26 Oct 2009 18:27:54 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.389
X-Spam-Level: 
X-Spam-Status: No, score=-5.389 tagged_above=-999 required=5 tests=[AWL=-2.790, 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 7VRtsuUz+g6T for <hybi@core3.amsl.com>; Mon, 26 Oct 2009 18:27:54 -0700 (PDT)
Received: from mxout-08.mxes.net (mxout-08.mxes.net [216.86.168.183]) by core3.amsl.com (Postfix) with ESMTP id DC55D3A66B4 for <hybi@ietf.org>; Mon, 26 Oct 2009 18:27:53 -0700 (PDT)
Received: from chancetrain-lm.mnot.net (unknown [118.209.5.85]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id D8E61509D9; Mon, 26 Oct 2009 21:27:59 -0400 (EDT)
Mime-Version: 1.0 (Apple Message framework v1076)
Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes
From: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <Pine.LNX.4.62.0910270115390.13521@hixie.dreamhostps.com>
Date: Tue, 27 Oct 2009 12:27:56 +1100
Content-Transfer-Encoding: 7bit
Message-Id: <13F1B459-2135-40B8-B813-C603E9C79E83@mnot.net>
References: <4ADEC7A0.7040307@ericsson.com> <4AE4CCBB.10001@webtide.com> <Pine.LNX.4.62.0910260006420.9145@hixie.dreamhostps.com> <4AE553A0.9030208@ericsson.com> <73F5E810-F40F-42B8-81A9-4AD1306E360F@apple.com> <4AE57B62.4030209@webtide.com> <Pine.LNX.4.62.0910270011060.13521@hixie.dreamhostps.com> <C19DD55E-816F-4549-89B1-EEF7E50945F8@mnot.net> <Pine.LNX.4.62.0910270115390.13521@hixie.dreamhostps.com>
To: Ian Hickson <ian@hixie.ch>
X-Mailer: Apple Mail (2.1076)
Cc: hybi@ietf.org
Subject: Re: [hybi] updated Charter proposal (WebSocket)
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: Tue, 27 Oct 2009 01:27:54 -0000

On 27/10/2009, at 12:24 PM, Ian Hickson wrote:
> I would expect server-side implementations to translate incoming  
> WebSocket
> connections into appropriate internal connections; e.g. if Example  
> Corp
> uses RPC extensively internally in their datacenters, a front-line  
> server
> could receive a long-lived WebSocket connection (speaking that site's
> subprotocol) and translate it into short-lived RPC on the backend.
> However, that would be layered above WebSocket just like this kind of
> thing is layered above hanging-GET systems today.

Yeah. In theory it would be nice if, for example, a corporate or ISP  
proxy could "manage" a bunch of WS connections back to a third-party  
service provider, but there's a lot of risk and overhead to going down  
that path, and not a tremendous amount of benefit.

I suspect most of the intermediary cases that are going to come up for  
WS in the near future are going to be server-side (like HTTP  
accelerators/reverse proxies), and they're already under the control  
of the server, so they can coordinate.

--
Mark Nottingham     http://www.mnot.net/


From Martin.Thomson@andrew.com  Mon Oct 26 18:32:06 2009
Return-Path: <Martin.Thomson@andrew.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 42C3D3A6778 for <hybi@core3.amsl.com>; Mon, 26 Oct 2009 18:32:06 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.555
X-Spam-Level: 
X-Spam-Status: No, score=-2.555 tagged_above=-999 required=5 tests=[AWL=0.044,  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 hmVj30waDB6O for <hybi@core3.amsl.com>; Mon, 26 Oct 2009 18:32:05 -0700 (PDT)
Received: from csmailgw2.commscope.com (csmailgw2.commscope.com [198.135.207.244]) by core3.amsl.com (Postfix) with ESMTP id 72DB03A66B4 for <hybi@ietf.org>; Mon, 26 Oct 2009 18:32:05 -0700 (PDT)
Received: from [10.86.20.102] ([10.86.20.102]:60705 "EHLO ACDCE7HC1.commscope.com") by csmailgw2.commscope.com with ESMTP id S67750AbZJ0BcT (ORCPT <rfc822;hybi@ietf.org>); Mon, 26 Oct 2009 20:32:19 -0500
Received: from SISPE7HC1.commscope.com (10.97.4.12) by ACDCE7HC1.commscope.com (10.86.20.102) with Microsoft SMTP Server (TLS) id 8.1.393.1; Mon, 26 Oct 2009 20:32:19 -0500
Received: from SISPE7MB1.commscope.com ([fe80::9d82:a492:85e3:a293]) by SISPE7HC1.commscope.com ([fe80::8a9:4724:f6bb:3cdf%10]) with mapi; Tue, 27 Oct 2009 09:32:16 +0800
From: "Thomson, Martin" <Martin.Thomson@andrew.com>
To: "hybi@ietf.org" <hybi@ietf.org>
Date: Tue, 27 Oct 2009 09:32:43 +0800
Thread-Topic: WS framing alternative
Thread-Index: AcpWpWDvQb6C13oURy2kiXvvBbXkYg==
Message-ID: <8B0A9FCBB9832F43971E38010638454F0F1EA72C@SISPE7MB1.commscope.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-BCN: Meridius 1000 Version 3.4 on csmailgw2.commscope.com
X-BCN-Sender: Martin.Thomson@andrew.com
Subject: [hybi] WS framing alternative
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: Tue, 27 Oct 2009 01:32:06 -0000

V1MgaXMgYmluYXJ5LiAgSSBiZWxpZXZlIHRoYXQgdGhlIGJlbmVmaXRzIChyZWR1Y2VkIGZyYW1l
IHNpemUsIGV0Yy4uLikgYXJlIG91dHdlaWdoZWQgYnkgdGhlIGRpc2FkdmFudGFnZXMgKGRlYnVn
Z2luZywgZXRjLi4uKS4gIFRoZXJlIHdvdWxkIGJlIGxpdHRsZSBjb3N0IGluIGEgbWlub3IgY2hh
bmdlIHRoYXQgd291bGQgYWxzbyBlbmFibGUgdXNlIG9mIE1JTUUuDQoNCiAgV1MtZnJhbWUgPSBX
Uy1sZW5ndGggQ1JMRiBXUy1oZWFkZXJzIENSTEYgV1MtYm9keSBDUkxGDQogIFdTLWxlbmd0aCA9
IDEqRElHSVQNCiAgV1MtaGVhZGVycyA9IFdTLWhlYWRlci1uYW1lICI6IiBXUy1oZWFkZXItdmFs
dWUgQ1JMRg0KICAgICA7IGFkZCB3aGF0ZXZlciBNSU1FIHJlcXVpcmVzIGhlcmUsIGV4Y2VwdCB0
aGUgdWdseSBzdHVmZg0KICBXUy1ib2R5ID0gKk9DVEVUDQoNClNldCBzb21lIGJhc2ljIGRlZmF1
bHRzIGZvciBNSU1FIGhlYWRlcnMgKGkuZS4gQ29udGVudC1UeXBlID0gdGV4dC9wbGFpbjtjaGFy
c2V0PXV0Zi04KSBhbmQgdGhlIGltcGFjdCBvbiBleGlzdGluZyBpbXBsZW1lbnRhdGlvbnMgaXMg
bWluaW1hbC4gIFJhdGhlciB0aGFuIHNlbmRpbmc6DQoNCiAgWzB4ODAsIDB4MGRdSGVsbG8sIFdv
cmxkIQ0KDQpZb3Ugc2VuZCAoaW5kZW50aW5nIGZvciByZWFkYWJpbGl0eSk6DQogIA0KICAxMw0K
DQogIEhlbGxvLCBXb3JsZCENCg0KVGhlIHVua25vd24gbGVuZ3RoIHRoaW5nIGlzIGhhcmRlciB0
byByZXBsaWNhdGUsIGJ1dCB5b3UgY291bGQgZG8gYXMgR3JlZyBzdWdnZXN0cyBmb3IgQldUUCwg
b3Igc29tZXRoaW5nIGV2ZW4gc2ltcGxlcjoNCg0KICBXUy1sZW5ndGggPSAxKkRJR0lUIFtXUy1p
bmNvbXBsZXRlLWZyYW1lXQ0KICBXUy1pbmNvbXBsZXRlLWZyYW1lID0gIisiDQoNClRoYXQgaXM6
DQoNCiAgNCsNCg0KICBIZWxsDQogIDkNCiANCiAgbywgV29ybGQhDQogIA0KDQpNSU1FIGhlYWRl
cnMgY2FuIHRoZW4gYmUgdXNlZCBmb3IgYSByYW5nZSBvZiBldmlscy4gIEluY2x1ZGluZyBvbmVz
IHRoYXQgd2UgZG9uJ3QgYWdyZWUgd2l0aC4NCg0KT2YgY291cnNlLCB5b3VyIHN1cGVyIHNpbXBs
ZSBpbXBsZW1lbnRhdGlvbiBjYW46DQoNCiAgUmVhZCBkaWdpdHMsIGNvbnZlcnQgdG8gbnVtYmVy
IGIuDQogIFJlYWQgaW5jb21wbGV0ZSBtYXJrZXIuDQogIERpc2NhcmQgdW50aWwgeW91IHJlYWNo
IGEgQ1JMRiBmb2xsb3dlZCBieSBhbm90aGVyIENSTEYuDQogIFJlYWQgYiBvY3RldHMsIGFzc3Vt
ZSBVVEYtOC4NCiAgUmVhZCBDUkxGLg0KICBJZiBpbmNvbXBsZXRlLCBsb29wIHRvIHN0YXJ0LCBl
bHNlIHJlcG9ydCBtZXNzYWdlLg0KICBSaW5zZSwgcmVwZWF0Lg0KDQotLU1hcnRpbg0K

From mnot@mnot.net  Mon Oct 26 18:55:31 2009
Return-Path: <mnot@mnot.net>
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 00BAB28C135 for <hybi@core3.amsl.com>; Mon, 26 Oct 2009 18:55:31 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.305
X-Spam-Level: 
X-Spam-Status: No, score=-5.305 tagged_above=-999 required=5 tests=[AWL=-2.706, 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 riKMhkJQnDU2 for <hybi@core3.amsl.com>; Mon, 26 Oct 2009 18:55:30 -0700 (PDT)
Received: from mxout-08.mxes.net (mxout-08.mxes.net [216.86.168.183]) by core3.amsl.com (Postfix) with ESMTP id 0A6FC3A67B8 for <hybi@ietf.org>; Mon, 26 Oct 2009 18:55:29 -0700 (PDT)
Received: from chancetrain-lm.mnot.net (unknown [118.209.5.85]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 072A3509DA; Mon, 26 Oct 2009 21:55:41 -0400 (EDT)
From: Mark Nottingham <mnot@mnot.net>
Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes
Content-Transfer-Encoding: 7bit
Date: Tue, 27 Oct 2009 12:55:38 +1100
Message-Id: <FDC38D4B-AB64-4F6B-B569-81D7A56DEC8D@mnot.net>
To: Ian Hickson <ian@hixie.ch>, hybi@ietf.org
Mime-Version: 1.0 (Apple Message framework v1076)
X-Mailer: Apple Mail (2.1076)
Subject: [hybi] More feedback on WebSockets
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: Tue, 27 Oct 2009 01:55:31 -0000

Overall, I think this draft looks very good, excepting the issues below:

1) Abstract - AIUI one of the primary motivations for WS (especially  
over just exposing a TCP API in browsers) is the use of the "Web  
security model." This should be mentioned in the Abstract (and  
background?).


2) The handshake protocol looks like HTTP, but is not (e.g., it's case- 
sensitive and whitespace-sensitive). However, you define the default  
ports for WS and WSS to be port 80 and 443, respectively.

These ports are reserved for HTTP, at least initially; while you can  
use HTTP to upgrade to a different protocol, defining a HTTP-like-but- 
not-really-HTTP handshake protocol to run over them initially  
conflicts with the designated use of the port.

Possible remedies;
   a) define the handshake in terms of HTTP, not byte sequences, or
   b) define a different (i.e., non-HTTP) protocol identifier to use  
on the handshake request and response.


3) In section 1.6 (Establishing a Connection), you say

>  On the face of it, the simplest method would seem to be to use port
>    80 to get a direct connection to a Web Socket server.  Port 80
>    traffic, however, will often be intercepted by HTTP proxies, which
>    can lead to the connection failing to be established.

Given this, is it a good idea for the default port for the WS scheme  
to be port 80? Why not use a separate port and fall back to 443 with  
null encryption, for example?


4) In section 1.2, you define the payload of the headers as ASCII, but  
then allow a wide range of Unicode characters. Which is it?


5) Are there any constraints placed upon the field-value of the  
WebSocket-Protocol header? Is there any structure?

If I want to define an intermediary function for WebSockets that  
allows multiplexing, and I wish to unambiguously identify that it's in  
use, is this an appropriate use for the WebSocket-Protocol header?

If so, how do I avoid conflicting with the names of other  
subprotocols, and how do I indicate that multiple subprotocols are in  
use on one connection?

If not, what's the appropriate mechanism?

Cheers,


--
Mark Nottingham     http://www.mnot.net/


From ian@hixie.ch  Mon Oct 26 19:03:46 2009
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 23DB63A6824 for <hybi@core3.amsl.com>; Mon, 26 Oct 2009 19:03:46 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.4
X-Spam-Level: 
X-Spam-Status: No, score=-2.4 tagged_above=-999 required=5 tests=[AWL=-0.116,  BAYES_00=-2.599, SARE_MILLIONSOF=0.315]
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 MT6qImMhO2K0 for <hybi@core3.amsl.com>; Mon, 26 Oct 2009 19:03:44 -0700 (PDT)
Received: from looneymail-a1.g.dreamhost.com (caibbdcaaaaf.dreamhost.com [208.113.200.5]) by core3.amsl.com (Postfix) with ESMTP id D6F0E3A67FF for <hybi@ietf.org>; Mon, 26 Oct 2009 19:03:44 -0700 (PDT)
Received: from hixie.dreamhostps.com (hixie.dreamhost.com [208.113.210.27]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by looneymail-a1.g.dreamhost.com (Postfix) with ESMTP id 009F015D7CF; Mon, 26 Oct 2009 19:03:56 -0700 (PDT)
Date: Tue, 27 Oct 2009 02:04:05 +0000 (UTC)
From: Ian Hickson <ian@hixie.ch>
To: Greg Wilkins <gregw@webtide.com>
In-Reply-To: <4AE4119A.7040803@webtide.com>
Message-ID: <Pine.LNX.4.62.0910270130580.9145@hixie.dreamhostps.com>
References: <4ACE50A2.5070404@ericsson.com> <3a880e2c0910081600v3607665dp193f6df499706810@mail.gmail.com> <4ACF4055.6080302@ericsson.com> <Pine.LNX.4.62.0910092116010.21884@hixie.dreamhostps.com> <4AD2E353.8070609@webtide.com> <4AD2F43D.6030202@ninebynine.org> <4AD39A64.4080405@webtide.com> <Pine.LNX.4.62.0910132335390.25383@hixie.dreamhostps.com> <4AD53DCA.6050304@webtide.com> <Pine.LNX.4.62.0910170203460.9145@hixie.dreamhostps.com> <4ADA7FD4.9010406@webtide.com> <4ADB6F0B.4000004@gmail.com> <Pine.LNX.4.62.0910221120380.9145@hixie.dreamhostps.com> <4AE08907.7080402@webtide.com> <Pine.LNX.4.62.0910230348470.9145@hixie.dreamhostps.com> <4AE1E659.5050507@webtide.com> <Pine.LNX.4.62.0910232154470.13521@hixie.dreamhostps.com> <4AE23D7A.2060009@webtide.com> <Pine.LNX.4.62.0910240926500.9145@hixie.dreamhostps.com> <4AE4119A.7040803@webtide.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] Multiplexing in WebSocket
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: Tue, 27 Oct 2009 02:03:46 -0000

On Sun, 25 Oct 2009, Greg Wilkins wrote:
> >
> > The main difference is that most people won't manage UTF-8 encoding. 
> > In Perl, for instance, there's the "Encode" library that you can just 
> > pass byte strings to to have them converted into UTF-8, and 
> > vice-versa.
> 
> Forgive my total lack of knowledge of perl, but given the availability 
> of the encode library in perl, I see little difference in the complexity 
> of sentinel marked code which is:
> 
>   $octets = encode("utf-8", $message)
>   write ($octets)
>   write (oxff)
> 
> versus length encoding code which is
> 
>   $octets = encode("utf-8", $message)
>   write ($octets.length)
>   write ($octets)

Yup, in Perl, once you have encoded the string correctly, getting the 
lenght is relatively easy. However, I expect many people won't be 
explicitly encoding the string at all; they'll just output the string 
straight to the socket and have the socket encode the UTF-8. Many servers 
don't need to know what is going on, since they can just be opaque to most 
of the data and just use ASCII for the "command" part of their API.


> They will need a method to correctly encode the length as an unlimited 
> integer, but they will probably need that anyway as you currently 
> specify that length encoded framing is part of the standard (stacked 
> out).

They only need to support that if they will be using the binary part of 
the protocol.


> > We have binary frames already staked out in the protocol, waiting for 
> > support in JS for binary.
> 
> I don't see why an IETF protocol proposal needs to wait for the js 
> implementation?

The only reason this protocol exists is for the JS API. If it wasn't for 
the JS API's requirements, TCP itself already addresses the needs.


> Since the binary framing is about the same level of complexity, is more 
> capable and is already stacked out - they why not avoid the complexity 
> to two different framings and just use length?

Getting the length of strings is non-trivial in many environments 
(certainly compared to getting the length of binary data). Most servers 
will never have to deal with the binary stuff at all. And you're much more 
likely to have buffer overrun bugs if you use a length prefix followed by 
a variable-length encoding of text.


> JS is free to limit it's usage to just utf-8 as long as it likes.  But 
> JS is not the only client language that is going to use an IETF 
> sanctioned bidirectional protocol.

I sure hope nobody is hoping to use WebSocket with anything other than JS 
-- it's be a complete waste of time to use WebSocket for anything if we're 
just talking about an arbitrary client-server protocol. We already have 
TCP for people who want to write their own subprotocol, and we already 
have BEEP, Jabber, and a multitude of other transports for people who want 
a more structured protocol to tunnel over.

Now, granted, some people might want to speak to WebSocket services that 
were originally intended for JS scripts from command-line tools, just like 
people talk to JSON services that use HTTP cookies for authentication from 
command-line tools, and that is supported by the protocol, but that's 
certainly not the primary use case. There'd be no point having features 
that are _only_ usable by people _not_ using JS scripts in Web pages -- if 
you want to do something WebSocket can't do, then just use raw TCP.


> >> * A mobile phone that is restricted to a single outgoing
> >>   connection (not uncommon) so the browser wants to
> >>   transport HTTP over the websocket connection
> > 
> > Could you elaborate on this use case?
> 
> I unfortunately don't have all the details, but I have been a little 
> involved in the development of a comet system for a large mobile phone 
> company for global deployment.
> 
> One of the issues that we had to deal with was a single connection limit 
> that apparently affects many millions of phones.  This was a restriction 
> for a non browser application running on the phone with direct access to 
> the TCP/IP layer.
> 
> However I'm unclear if the limit was imposed by firmware in the phone or 
> carriers.

Well if there's a limit of a single TCP connection, WebSocket is a lost 
cause anyway (since you'd block all XHR, HTTP, etc, while the page was 
open). WebSocket is intended for systems capable of running a full Web 
browser that can run XHR-based apps today.


> >> * Something that none of us has thought of yet
> > 
> > Once we think of it, we can address it. There's no point trying to 
> > optimise for something we don't know about; we have no way to know if 
> > we are optimising in the right way.
> 
> I fundamentally disagree - and I think that this difference is probably 
> at the root of most/all our other differences on the protocol.

Possibly.


> I think the wait and see position you advocate is entirely correct for 
> the websocket API.
> 
> But i think it is entirely wrong for the websocket protocol.
> 
> A flexible and extensible protocol can be restricted to known uses by 
> the API.  You then do not need to update the entire network 
> infrastructure for each and every new idea.  Your attempt to "stack out" 
> the binary protocol is justified by avoiding exactly this type of 
> breakage.

I agree that if there are things we know we will need to support, that we 
should make sure we can support them. I agree that we should give 
ourselves forward- and backward-compatible extension points (e.g. the 
handshake is extensible and we have 253 frame types still available).

However, there's no point trying to design the protocol to support every 
possible extension mechanism, because I *guarantee* that you'll miss the 
one that you really need, however hard you try, and in the meantime you'll 
have a protocol with lots of extra complexity that never helps anyone.

Consider XML and XML Namespaces. It provides a variety of extension points 
-- you can add new elements in a new namespace, an element can have new 
attributes added, etc etc etc. However, XML doesn't support inline binary. 
It doesn't support an element having two element types. It doesn't support 
elements overlapping each other. It doesn't support attributes having 
multiple values. All of these are things that have been needed by various 
groups at one time or another, despite XML being branded as the ultimate 
extensible markup metalanguage.

So now we have XML and XML namespaces, together making a really expensive 
mechanism, and yet it doesn't do what people want, despite being designed 
to be extensible. I think that's not a good state to be in.

(PS. Stake out, not stack out. :-) )


> > To send a stream of images with WebSocket, you will need to wait until 
> > JavaScript gives you a way to get the image data in a usable form. I 
> > certainly wouldn't recommend sending it as text, that would be stupid.
> 
> I think this is another fundamental disagreement.
> 
> I think the IETF should be considering a bidirectional solution for all 
> web clients - not just for HTML5 JS clients

What's wrong with TCP, BEEP, or Jabber?


> If you are designing a non-extensible protocol that only supports HTML5 
> websocket API, then you may well end up with something like the 
> websocket protocol.

WebSocket is extensible, just not in the ways you want it to be 
extensible. But other than that, yes, that's what I'm designing.


> But if you want something that is extensible and supports 
> bidirectionality for any web client, then I think then it will look 
> substantially different.

Wouldn't it look pretty much exactly like TCP, BEEP, or Jabber?

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

From ian@hixie.ch  Tue Oct 27 02:11:47 2009
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 9D74F3A6923 for <hybi@core3.amsl.com>; Tue, 27 Oct 2009 02:11:47 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.553
X-Spam-Level: 
X-Spam-Status: No, score=-2.553 tagged_above=-999 required=5 tests=[AWL=0.046,  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 gV4akUUO-Pfq for <hybi@core3.amsl.com>; Tue, 27 Oct 2009 02:11:46 -0700 (PDT)
Received: from looneymail-a2.g.dreamhost.com (caibbdcaaaaf.dreamhost.com [208.113.200.5]) by core3.amsl.com (Postfix) with ESMTP id A390D3A67EB for <hybi@ietf.org>; Tue, 27 Oct 2009 02:11:46 -0700 (PDT)
Received: from hixie.dreamhostps.com (hixie.dreamhost.com [208.113.210.27]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by looneymail-a2.g.dreamhost.com (Postfix) with ESMTP id 37AF016D31B; Tue, 27 Oct 2009 02:11:59 -0700 (PDT)
Date: Tue, 27 Oct 2009 09:11:59 +0000 (UTC)
From: Ian Hickson <ian@hixie.ch>
To: "Thomson, Martin" <Martin.Thomson@andrew.com>
In-Reply-To: <8B0A9FCBB9832F43971E38010638454F0F1EA72C@SISPE7MB1.commscope.com>
Message-ID: <Pine.LNX.4.62.0910270903080.9145@hixie.dreamhostps.com>
References: <8B0A9FCBB9832F43971E38010638454F0F1EA72C@SISPE7MB1.commscope.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" <hybi@ietf.org>
Subject: Re: [hybi] WS framing alternative
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: Tue, 27 Oct 2009 09:11:47 -0000

On Tue, 27 Oct 2009, Thomson, Martin wrote:
>
> WS is binary.  I believe that the benefits (reduced frame size, etc...) 
> are outweighed by the disadvantages (debugging, etc...).

WS is really a text/binary hybrid. The handshake is text-based (UTF-8), 
and the frames come in two types, one for pure binary data which is binary 
delimited with a packed integer length prefix, and one for text (UTF-8) 
with a null prefix and a 0xFF suffix.


> There would be little cost in a minor change that would also enable use 
> of MIME.
> 
>   WS-frame = WS-length CRLF WS-headers CRLF WS-body CRLF
>   WS-length = 1*DIGIT
>   WS-headers = WS-header-name ":" WS-header-value CRLF
>      ; add whatever MIME requires here, except the ugly stuff
>   WS-body = *OCTET

This would have some pretty major costs:

- It requires length delimiting for text frames, which is more complicated 
to implement (it's non-trivial to tell the difference between characters 
and bytes).

- It requires parsing using a presized buffer for variable-encoding text, 
which risks character/byte mismatches and thus buffer overruns.

- It allows arbitrary extensions, which introduces an implementation, QA, 
documentation, and tutorial cost without providing any new features at the 
API level.

- It makes it possible for the headers to have errors in them, which 
requires us to define how to handle errors, and requires significantly 
more code to implement the parsing.


> Set some basic defaults for MIME headers (i.e. Content-Type = 
> text/plain;charset=utf-8) and the impact on existing implementations is 
> minimal.

I disagree that it's minimal.


> Rather than sending:
> 
>   [0x80, 0x0d]Hello, World!

Currently you would send a text frame thus:

   [0x00] Hello, World! [0xFF]


> You send (indenting for readability):
>   
>   13
> 
>   Hello, World!
> 
> The unknown length thing is harder to replicate, but you could do as 
> Greg suggests for BWTP, or something even simpler:
> 
>   WS-length = 1*DIGIT [WS-incomplete-frame]
>   WS-incomplete-frame = "+"
> 
> That is:
> 
>   4+
> 
>   Hell
>   9
>  
>   o, World!

That seems like orders of magnitude more complexity than necessary, 
especially given that the only tangible benefit is a modicum of 
improvement in ease of debugging.

In fact, I would argue that the increased complexity actually increases 
the need for debugging more than the text-based approach actually gives 
you in terms of debugging. Debugging binary protocols isn't especially 
difficult. You just pipe tcpdump through hexdump and less, and the issue 
is done. The protocol is so simple that you can hack together a read/write 
console in less than an hour.

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

From gregw@webtide.com  Tue Oct 27 02:21:13 2009
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 656DF3A6929 for <hybi@core3.amsl.com>; Tue, 27 Oct 2009 02:21:13 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.093
X-Spam-Level: 
X-Spam-Status: No, score=-2.093 tagged_above=-999 required=5 tests=[AWL=0.506,  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 8STf-Va+q6gH for <hybi@core3.amsl.com>; Tue, 27 Oct 2009 02:21:12 -0700 (PDT)
Received: from mail-gx0-f228.google.com (mail-gx0-f228.google.com [209.85.217.228]) by core3.amsl.com (Postfix) with ESMTP id 7D3EE3A69D6 for <hybi@ietf.org>; Tue, 27 Oct 2009 02:21:12 -0700 (PDT)
Received: by gxk28 with SMTP id 28so564143gxk.9 for <hybi@ietf.org>; Tue, 27 Oct 2009 02:21:23 -0700 (PDT)
Received: by 10.150.129.27 with SMTP id b27mr5260935ybd.29.1256635283884; Tue, 27 Oct 2009 02:21:23 -0700 (PDT)
Received: from ?10.10.1.9? (60-242-119-126.tpgi.com.au [60.242.119.126]) by mx.google.com with ESMTPS id 15sm2569961gxk.12.2009.10.27.02.21.20 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 27 Oct 2009 02:21:22 -0700 (PDT)
Message-ID: <4AE6BB8D.6000208@webtide.com>
Date: Tue, 27 Oct 2009 20:21:17 +1100
From: Greg Wilkins <gregw@webtide.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090817)
MIME-Version: 1.0
To: Ian Hickson <ian@hixie.ch>
References: <4ADEC7A0.7040307@ericsson.com> <4AE4CCBB.10001@webtide.com> <Pine.LNX.4.62.0910260006420.9145@hixie.dreamhostps.com> <4AE553A0.9030208@ericsson.com> <73F5E810-F40F-42B8-81A9-4AD1306E360F@apple.com> <4AE57B62.4030209@webtide.com> <ca722a9e0910261139q27a3241aieae39a6a0525b290@mail.gmail.com> <4AE6362B.4030305@webtide.com> <Pine.LNX.4.62.0910270014420.13521@hixie.dreamhostps.com>
In-Reply-To: <Pine.LNX.4.62.0910270014420.13521@hixie.dreamhostps.com>
X-Enigmail-Version: 0.95.7
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] updated Charter proposal (WebSocket)
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: Tue, 27 Oct 2009 09:21:13 -0000

Ian Hickson wrote:

> However, the draft itself has changed a lot in response to feedback over 
> the years. 
>
> I don't adopt every proposed change, sure, but I think I have shown myself 
> to be quite willing to change the proposal based on reasoned arguments and 
> clearly demonstrated needs and problems.

My apologies - I probably over stated the case that the ws authors
are resistant to  change.

I think it is more accurate to say that you are more resistant to
requirements other than your tight focus on a minimal protocol to
enable a close socket equivalent to js running in a browser.

I think resolving the differences in requirements is the prime
task the IETF WG will have.     Once their is rough consensus
on the requirements - most of the protocol design is a matter
of style.


>> So will the WG have the ability to come up with it's own draft for a 
>> websocket protocol - or will all it be able to do is huff and puff and 
>> hope to convince the whatwg?
> 
> Say the WG adopted BWTP as the basis for its work. Will you drop 
> Multiplexing and MIME typing from the BWTP proposal? If not, does that 
> mean you are resistant to change and then will the WG only be able to huff 
> and puff and hope to convince you?

I'm not proposing that BWTP is written into the charter as the
only possible option.

I don't really care what protocol is accepted, so long as it
makes my job as a comet infrastructure developer easier.
For me this means:

+ abstract applications developers away from TCP/IP
  connection management
+ minimize connection growth on the server side
+ allow for flexible and extensible usage.
+ allows intelligent intermediaries to participate
  (load balancers, concentrators, SSL offloaders etc.)

BWTP attempts to meet those with channels based multiplexing and
support for mime encoding.    But there are many ways to solve those
and my first preference was to enhance the WS proposal.   BWTP
was only developed as an alternative because WS just does not
address any of the pain points I have as a comet server developer.


> I don't mind what the working group works on, but if it's not that, then 
> it's not a working group I'm interested in working with, as it wouldn't 
> be addressing the needs that I'm trying to address.

So perhaps we have wasted a lot of time debating protocol design,
when we should have been discussing protocol requirements.

Then maybe we need two WGs and 2 protocols?


regards




From gregw@webtide.com  Tue Oct 27 02:34:09 2009
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 DA6C328C1D6 for <hybi@core3.amsl.com>; Tue, 27 Oct 2009 02:34:09 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.149
X-Spam-Level: 
X-Spam-Status: No, score=-2.149 tagged_above=-999 required=5 tests=[AWL=0.450,  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 eWai5b0HBU7M for <hybi@core3.amsl.com>; Tue, 27 Oct 2009 02:34:09 -0700 (PDT)
Received: from mail-yx0-f192.google.com (mail-yx0-f192.google.com [209.85.210.192]) by core3.amsl.com (Postfix) with ESMTP id ECB6328C1D2 for <hybi@ietf.org>; Tue, 27 Oct 2009 02:34:08 -0700 (PDT)
Received: by yxe30 with SMTP id 30so15828178yxe.29 for <hybi@ietf.org>; Tue, 27 Oct 2009 02:34:18 -0700 (PDT)
Received: by 10.150.238.4 with SMTP id l4mr9699704ybh.177.1256636057832; Tue, 27 Oct 2009 02:34:17 -0700 (PDT)
Received: from ?10.10.1.9? (60-242-119-126.tpgi.com.au [60.242.119.126]) by mx.google.com with ESMTPS id 14sm340529gxk.14.2009.10.27.02.34.15 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 27 Oct 2009 02:34:16 -0700 (PDT)
Message-ID: <4AE6BE93.4050305@webtide.com>
Date: Tue, 27 Oct 2009 20:34:11 +1100
From: Greg Wilkins <gregw@webtide.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090817)
MIME-Version: 1.0
To: Ian Hickson <ian@hixie.ch>
References: <4ADEC7A0.7040307@ericsson.com> <4AE4CCBB.10001@webtide.com>	<Pine.LNX.4.62.0910260006420.9145@hixie.dreamhostps.com>	<4AE553A0.9030208@ericsson.com>	<73F5E810-F40F-42B8-81A9-4AD1306E360F@apple.com>	<4AE57B62.4030209@webtide.com>	<Pine.LNX.4.62.0910270011060.13521@hixie.dreamhostps.com>	<C19DD55E-816F-4549-89B1-EEF7E50945F8@mnot.net> <Pine.LNX.4.62.0910270115390.13521@hixie.dreamhostps.com>
In-Reply-To: <Pine.LNX.4.62.0910270115390.13521@hixie.dreamhostps.com>
X-Enigmail-Version: 0.95.7
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: hybi@ietf.org
Subject: Re: [hybi] updated Charter proposal (WebSocket)
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: Tue, 27 Oct 2009 09:34:09 -0000

Ian Hickson wrote:
> On Tue, 27 Oct 2009, Mark Nottingham wrote:
>> There really isn't anything for proxy vendors to implement in 
>> WebSockets, is there? Provided that they support CONNECT, of course.
> 
> Right; as written, WebSocket can be used with explicit SOCKS or HTTP 
> proxies (in the latter case using CONNECT), and there's no built-in 
> support for dedicated WebSocket proxies though man-in-the-middle proxies 
> could be written to handle unencrypted WebSocket proxies if there was a 
> need to do so (though I can't see what the point would be).

For HTTP, there is a huge industry involved in providing value
add intermediaries that do all sorts of things:

 + connection aggregation
 + caching
 + load balancing
 + SSL offload
 + virus scanning
 + NSFW scanning
 + auditing
 + language translation
 + authentication, accounting and auditing
 + hanging get or long poll offload
 + mashups and portal based aggregation
 + advert insertion
 + advertisement insertion
 + debugging aids

This list is just off the top of my head.  I'm sure
there are many many many more web intermediaries out there.

These products exist not because of deficiencies in HTTP, but
due to real needs that have evolved from our usage of
request/response data on the internet.  They are able to
do powerful things because of the good semantic content
of HTTP messages.

I don't think it is a stretch to imagine that when we start
exchanging bidirectional data, that similar and/or new
needs for value adding intermediaries will evolve.

Even with the low semantic content of ws messages, I can
imagine that intermediaries will develop to reverse
engineer content and manipulate /monitor/control it in
some fashion.

So I see it as prudent to have a protocol that at least
acknowledges that intermediaries might exist as parties
with at least the ability to close connections if
not participate on them.

Having a bidirectional protocol that does an
end-run around intermediaries is not going to
avoid these needs arising.


regards





From ian@hixie.ch  Tue Oct 27 02:37:37 2009
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 9A5B83A659B for <hybi@core3.amsl.com>; Tue, 27 Oct 2009 02:37:37 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.554
X-Spam-Level: 
X-Spam-Status: No, score=-2.554 tagged_above=-999 required=5 tests=[AWL=0.045,  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 mZVeMpasFybO for <hybi@core3.amsl.com>; Tue, 27 Oct 2009 02:37:36 -0700 (PDT)
Received: from looneymail-a2.g.dreamhost.com (caibbdcaaaaf.dreamhost.com [208.113.200.5]) by core3.amsl.com (Postfix) with ESMTP id 82C5F3A6897 for <hybi@ietf.org>; Tue, 27 Oct 2009 02:37:36 -0700 (PDT)
Received: from hixie.dreamhostps.com (hixie.dreamhost.com [208.113.210.27]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by looneymail-a2.g.dreamhost.com (Postfix) with ESMTP id EF44116D3CC; Tue, 27 Oct 2009 02:37:50 -0700 (PDT)
Date: Tue, 27 Oct 2009 09:37:51 +0000 (UTC)
From: Ian Hickson <ian@hixie.ch>
To: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <FDC38D4B-AB64-4F6B-B569-81D7A56DEC8D@mnot.net>
Message-ID: <Pine.LNX.4.62.0910270912040.9145@hixie.dreamhostps.com>
References: <FDC38D4B-AB64-4F6B-B569-81D7A56DEC8D@mnot.net>
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] More feedback on WebSockets
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: Tue, 27 Oct 2009 09:37:37 -0000

On Tue, 27 Oct 2009, Mark Nottingham wrote:
>
> Overall, I think this draft looks very good, excepting the issues below:
> 
> 1) Abstract - AIUI one of the primary motivations for WS (especially 
> over just exposing a TCP API in browsers) is the use of the "Web 
> security model." This should be mentioned in the Abstract (and 
> background?).

Added some text to that effect.


> 2) The handshake protocol looks like HTTP, but is not (e.g., it's case- 
> sensitive and whitespace-sensitive). However, you define the default 
> ports for WS and WSS to be port 80 and 443, respectively.
> 
> These ports are reserved for HTTP, at least initially; while you can use 
> HTTP to upgrade to a different protocol, defining a 
> HTTP-like-but-not-really-HTTP handshake protocol to run over them 
> initially conflicts with the designated use of the port.

IANA told me to use ports 80 and 443 for WebSocket. See IANA ticket
#257455. (I had originally requested new ports, ideally 81 and 815.)

I disagree that the current handshake isn't like HTTP enough, though. The 
request is fully HTTP-compliant. What value would there be in relaxing the 
rules on what WebSocket clients should send in the request? I don't 
understand the real-world case you are concerned about.


> 3) In section 1.6 (Establishing a Connection), you say
> 
> >  On the face of it, the simplest method would seem to be to use port
> >    80 to get a direct connection to a Web Socket server.  Port 80
> >    traffic, however, will often be intercepted by HTTP proxies, which
> >    can lead to the connection failing to be established.
> 
> Given this, is it a good idea for the default port for the WS scheme to 
> be port 80? Why not use a separate port and fall back to 443 with null 
> encryption, for example?

That's what the spec used to require, but IANA requested that I use ports 
80 and 443 directly.


> 4) In section 1.2, you define the payload of the headers as ASCII, but 
> then allow a wide range of Unicode characters. Which is it?

Section 1.2 doesn't say that the payload of the headers is ASCII, it just 
says that they are ASCII case-insensitive (i.e. that a-z matches A-Z, but 
that U+00C1 doesn't match U+00E1). I've tried to clarify this a bit.

(Also, section 1.2 is non-normative; it doesn't define anything.)


> 5) Are there any constraints placed upon the field-value of the 
> WebSocket-Protocol header? Is there any structure?

Not currently.


> If I want to define an intermediary function for WebSockets that allows 
> multiplexing, and I wish to unambiguously identify that it's in use, is 
> this an appropriate use for the WebSocket-Protocol header?

Yes.


> If so, how do I avoid conflicting with the names of other subprotocols, 

Use a unique name, e.g. by using your domain name as the protocol name, 
or googling for your protocol name and seeing if anyone else has used it.


> and how do I indicate that multiple subprotocols are in use on one 
> connection?

Only one protocol can be in use per connection. If your protocol is just 
another layer below the final application-level protocol, then your 
protocol would have its own equivalent mechanism.

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

From gregw@webtide.com  Tue Oct 27 03:08:36 2009
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 BD06E3A6A06 for <hybi@core3.amsl.com>; Tue, 27 Oct 2009 03:08:36 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.194
X-Spam-Level: 
X-Spam-Status: No, score=-2.194 tagged_above=-999 required=5 tests=[AWL=0.405,  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 grvPUKIC4Ghm for <hybi@core3.amsl.com>; Tue, 27 Oct 2009 03:08:35 -0700 (PDT)
Received: from mail-yx0-f192.google.com (mail-yx0-f192.google.com [209.85.210.192]) by core3.amsl.com (Postfix) with ESMTP id C7D633A657C for <hybi@ietf.org>; Tue, 27 Oct 2009 03:08:35 -0700 (PDT)
Received: by yxe30 with SMTP id 30so15847426yxe.29 for <hybi@ietf.org>; Tue, 27 Oct 2009 03:08:46 -0700 (PDT)
Received: by 10.150.130.39 with SMTP id c39mr26061231ybd.338.1256638126426; Tue, 27 Oct 2009 03:08:46 -0700 (PDT)
Received: from ?10.10.1.9? (60-242-119-126.tpgi.com.au [60.242.119.126]) by mx.google.com with ESMTPS id 13sm2602480gxk.13.2009.10.27.03.08.44 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 27 Oct 2009 03:08:45 -0700 (PDT)
Message-ID: <4AE6C6A8.6090307@webtide.com>
Date: Tue, 27 Oct 2009 21:08:40 +1100
From: Greg Wilkins <gregw@webtide.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090817)
MIME-Version: 1.0
To: Ian Hickson <ian@hixie.ch>
References: <8B0A9FCBB9832F43971E38010638454F0F1EA72C@SISPE7MB1.commscope.com> <Pine.LNX.4.62.0910270903080.9145@hixie.dreamhostps.com>
In-Reply-To: <Pine.LNX.4.62.0910270903080.9145@hixie.dreamhostps.com>
X-Enigmail-Version: 0.95.7
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: "hybi@ietf.org" <hybi@ietf.org>, "Thomson, Martin" <Martin.Thomson@andrew.com>
Subject: Re: [hybi] WS framing alternative
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: Tue, 27 Oct 2009 10:08:36 -0000

Even though I said that discussion about protocol requirements
is more important, here is some more debate about protocol design:



Ian Hickson wrote:
> This would have some pretty major costs:
> 
> - It requires length delimiting for text frames, which is more complicated 
> to implement (it's non-trivial to tell the difference between characters 
> and bytes).

But length delimited frames are in the protocol anyway, so they have to
be implemented anyway.

If there was only 1 framing type, then we have approximately half the
framing complexity.


> - It requires parsing using a presized buffer for variable-encoding text, 
> which risks character/byte mismatches and thus buffer overruns.

With sentinel encoding, sending data might be marginally simpler,
but receiving data is much harder.

You will still have buffers of fixed sizes when you receive bytes.  You
don't know how much data is coming, so you don't know how big to make
your buffer or when to start turning bytes into characters.

I can see implementations reading a buffer.... scanning for 0x00, not
finding it... allocating a larger buffer... copying the bytes ...
reading more bytes ... scanning again for 0x00.... still not finding
it.... allocating yet another larger buffer... copying the bytes ....

etc.  etc.  until either you get a denial of service or you find
0x00, when you can finally scan over all the bytes again to
convert to characters.

If the message is larger than you want to read, then you don't
know this until you have read all the bytes you can and scanned for
a 0x00.  Resource limits are always better applied before the resource
is consumed than after.

To avoid wastful copying, you have to allocate wasteful large buffers,
which can still fill up and might need to grow.

Existing UTF-8 to character conversions will error if they get a partial
multipart character, so you can start conversion to characters until
you have the entire message.   Efficient implementations will be forced
to reimplement utf-8 converters to scan for 0x00 while converting.
This will allow smaller fixed byte buffers, but will still need
growing and/or large character buffers.  This is probably also
what needs to be done to be able to use direct kernel buffers.

I don't think there is a clear winner between the two types
of framing.  Both have their pros and cons.    But implementing
both will be approximately twice as complex and it will mean that
you have to deal with both sets of cons.


regards















From gregw@webtide.com  Tue Oct 27 03:13:34 2009
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 6791A3A681D for <hybi@core3.amsl.com>; Tue, 27 Oct 2009 03:13:34 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.231
X-Spam-Level: 
X-Spam-Status: No, score=-2.231 tagged_above=-999 required=5 tests=[AWL=0.368,  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 uOoaAhY9ZBNi for <hybi@core3.amsl.com>; Tue, 27 Oct 2009 03:13:33 -0700 (PDT)
Received: from mail-yw0-f183.google.com (mail-yw0-f183.google.com [209.85.211.183]) by core3.amsl.com (Postfix) with ESMTP id 771353A6A07 for <hybi@ietf.org>; Tue, 27 Oct 2009 03:13:33 -0700 (PDT)
Received: by ywh13 with SMTP id 13so16216828ywh.29 for <hybi@ietf.org>; Tue, 27 Oct 2009 03:13:44 -0700 (PDT)
Received: by 10.150.239.15 with SMTP id m15mr7298435ybh.336.1256638423942; Tue, 27 Oct 2009 03:13:43 -0700 (PDT)
Received: from ?10.10.1.9? (60-242-119-126.tpgi.com.au [60.242.119.126]) by mx.google.com with ESMTPS id 14sm328828gxk.10.2009.10.27.03.13.41 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 27 Oct 2009 03:13:43 -0700 (PDT)
Message-ID: <4AE6C7D1.30003@webtide.com>
Date: Tue, 27 Oct 2009 21:13:37 +1100
From: Greg Wilkins <gregw@webtide.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090817)
MIME-Version: 1.0
To: Ian Hickson <ian@hixie.ch>
References: <FDC38D4B-AB64-4F6B-B569-81D7A56DEC8D@mnot.net> <Pine.LNX.4.62.0910270912040.9145@hixie.dreamhostps.com>
In-Reply-To: <Pine.LNX.4.62.0910270912040.9145@hixie.dreamhostps.com>
X-Enigmail-Version: 0.95.7
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: hybi@ietf.org
Subject: Re: [hybi] More feedback on WebSockets
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: Tue, 27 Oct 2009 10:13:34 -0000

Ian Hickson wrote:
> I disagree that the current handshake isn't like HTTP enough, though. The 
> request is fully HTTP-compliant. What value would there be in relaxing the 
> rules on what WebSocket clients should send in the request? I don't 
> understand the real-world case you are concerned about.

What about a load balancer in front of the server that inserts
a cookie or X-Forwarded-For header into all HTTP requests that
it forwards.

This will probably be harmless with regards to the subsequent
WS connection, but it will break the handshake so there will
not be a subsequent WS connection.


regards

From gregw@webtide.com  Tue Oct 27 03:46:14 2009
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 C0F653A6774 for <hybi@core3.amsl.com>; Tue, 27 Oct 2009 03:46:14 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.261
X-Spam-Level: 
X-Spam-Status: No, score=-2.261 tagged_above=-999 required=5 tests=[AWL=0.338,  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 j6CYYI9yBF2z for <hybi@core3.amsl.com>; Tue, 27 Oct 2009 03:46:14 -0700 (PDT)
Received: from mail-gx0-f228.google.com (mail-gx0-f228.google.com [209.85.217.228]) by core3.amsl.com (Postfix) with ESMTP id 056FC3A657C for <hybi@ietf.org>; Tue, 27 Oct 2009 03:46:13 -0700 (PDT)
Received: by gxk28 with SMTP id 28so606158gxk.9 for <hybi@ietf.org>; Tue, 27 Oct 2009 03:46:24 -0700 (PDT)
Received: by 10.150.35.18 with SMTP id i18mr26230854ybi.153.1256640384695; Tue, 27 Oct 2009 03:46:24 -0700 (PDT)
Received: from ?10.10.1.9? (60-242-119-126.tpgi.com.au [60.242.119.126]) by mx.google.com with ESMTPS id 16sm351147gxk.7.2009.10.27.03.46.22 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 27 Oct 2009 03:46:23 -0700 (PDT)
Message-ID: <4AE6CF7A.6050400@webtide.com>
Date: Tue, 27 Oct 2009 21:46:18 +1100
From: Greg Wilkins <gregw@webtide.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090817)
MIME-Version: 1.0
To: Ian Hickson <ian@hixie.ch>
References: <4ACE50A2.5070404@ericsson.com> <3a880e2c0910081600v3607665dp193f6df499706810@mail.gmail.com> <4ACF4055.6080302@ericsson.com> <Pine.LNX.4.62.0910092116010.21884@hixie.dreamhostps.com> <4AD2E353.8070609@webtide.com> <4AD2F43D.6030202@ninebynine.org> <4AD39A64.4080405@webtide.com> <Pine.LNX.4.62.0910132335390.25383@hixie.dreamhostps.com> <4AD53DCA.6050304@webtide.com> <Pine.LNX.4.62.0910170203460.9145@hixie.dreamhostps.com> <4ADA7FD4.9010406@webtide.com> <4ADB6F0B.4000004@gmail.com> <Pine.LNX.4.62.0910221120380.9145@hixie.dreamhostps.com> <4AE08907.7080402@webtide.com> <Pine.LNX.4.62.0910230348470.9145@hixie.dreamhostps.com> <4AE1E659.5050507@webtide.com> <Pine.LNX.4.62.0910232154470.13521@hixie.dreamhostps.com> <4AE23D7A.2060009@webtide.com> <Pine.LNX.4.62.0910240926500.9145@hixie.dreamhostps.com> <4AE4119A.7040803@webtide.com> <Pine.LNX.4.62.0910270130580.9145@hixie.dreamhostps.com>
In-Reply-To: <Pine.LNX.4.62.0910270130580.9145@hixie.dreamhostps.com>
X-Enigmail-Version: 0.95.7
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: hybi@ietf.org
Subject: Re: [hybi] Multiplexing in WebSocket
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: Tue, 27 Oct 2009 10:46:14 -0000

Ian Hickson wrote:
>> I think the IETF should be considering a bidirectional solution for all 
>> web clients - not just for HTML5 JS clients
> 
> What's wrong with TCP, BEEP, or Jabber?

Once upon a time there was the internet and IP was God (even though
Al Gore invented the internet and he really should have been God).

But then somebody invented the Web (was it Bill Gates?) and now
port 80 is God.

The Web runs on top of the Internet, but restricts all the wonderful
features of IP to a one way port 80.

TCP, BEEP, or Jabber are really great Internet protocols, but
they don't generally work on the web.   Jabber (aka XMPP) has
to fall back to BOSH on HTTP in order to span the web.

cheers











From duerst@it.aoyama.ac.jp  Tue Oct 27 04:15:48 2009
Return-Path: <duerst@it.aoyama.ac.jp>
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 464B628C118 for <hybi@core3.amsl.com>; Tue, 27 Oct 2009 04:15:48 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.792
X-Spam-Level: 
X-Spam-Status: No, score=0.792 tagged_above=-999 required=5 tests=[AWL=-0.018,  BAYES_00=-2.599, HELO_EQ_JP=1.244, HOST_EQ_JP=1.265, J_CHICKENPOX_66=0.6, MIME_8BIT_HEADER=0.3]
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 mhWzQCaM7TUz for <hybi@core3.amsl.com>; Tue, 27 Oct 2009 04:15:47 -0700 (PDT)
Received: from scmailgw01.scop.aoyama.ac.jp (scmailgw01.scop.aoyama.ac.jp [133.2.251.41]) by core3.amsl.com (Postfix) with ESMTP id 365473A6927 for <hybi@ietf.org>; Tue, 27 Oct 2009 04:15:47 -0700 (PDT)
Received: from scmse02.scbb.aoyama.ac.jp (scmse02.scbb.aoyama.ac.jp [133.2.253.159]) by scmailgw01.scop.aoyama.ac.jp (secret/secret) with SMTP id n9RBG0lc028349 for <hybi@ietf.org>; Tue, 27 Oct 2009 20:16:00 +0900
Received: from (unknown [133.2.206.133]) by scmse02.scbb.aoyama.ac.jp with smtp id 5fc4_1b6f8ce2_c2ea_11de_8693_001d096c5782; Tue, 27 Oct 2009 20:16:00 +0900
Received: from [IPv6:::1] ([133.2.210.1]:35521) by itmail.it.aoyama.ac.jp with [XMail 1.22 ESMTP Server] id <S12458C1> for <hybi@ietf.org> from <duerst@it.aoyama.ac.jp>; Tue, 27 Oct 2009 20:12:32 +0900
Message-ID: <4AE6D661.1090007@it.aoyama.ac.jp>
Date: Tue, 27 Oct 2009 20:15:45 +0900
From: =?ISO-8859-1?Q?=22Martin_J=2E_D=FCrst=22?= <duerst@it.aoyama.ac.jp>
Organization: Aoyama Gakuin University
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1b3pre) Gecko/20090108 Eudora/3.0b1pre
MIME-Version: 1.0
To: Greg Wilkins <gregw@webtide.com>
References: <8B0A9FCBB9832F43971E38010638454F0F1EA72C@SISPE7MB1.commscope.com>	<Pine.LNX.4.62.0910270903080.9145@hixie.dreamhostps.com> <4AE6C6A8.6090307@webtide.com>
In-Reply-To: <4AE6C6A8.6090307@webtide.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
Cc: "hybi@ietf.org" <hybi@ietf.org>, "Thomson, Martin" <Martin.Thomson@andrew.com>
Subject: Re: [hybi] WS framing alternative
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: Tue, 27 Oct 2009 11:15:48 -0000

On 2009/10/27 19:08, Greg Wilkins wrote:

> Existing UTF-8 to character conversions will error if they get a partial
> multipart character,

No, good transcoding libraries have options that say what to do in such 
a case. Iconv is definitely an example, String#encode in Ruby is another.

> so you can start conversion to characters until
> you have the entire message.

I assume you wanted to say "cannot start conversion". False as explained 
above.

> Efficient implementations will be forced
> to reimplement utf-8 converters to scan for 0x00 while converting.

No. These two concerns can be separated completely.

And there's the case that no conversion from utf-8 to characters is 
needed (when your implementation uses utf-8 for its internal 
representation, as e.g. in Perl or (mostly) in Ruby). (Still, you better 
check for consistent UTF-8 byte sequences.)

Regards,   Martin.

-- 
#-# Martin J. Dürst, Professor, Aoyama Gakuin University
#-# http://www.sw.it.aoyama.ac.jp   mailto:duerst@it.aoyama.ac.jp

From t.broyer@gmail.com  Tue Oct 27 04:26:13 2009
Return-Path: <t.broyer@gmail.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 8D79A3A68EF for <hybi@core3.amsl.com>; Tue, 27 Oct 2009 04:26:13 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.977
X-Spam-Level: 
X-Spam-Status: No, score=-1.977 tagged_above=-999 required=5 tests=[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 F7pl7EzeiKXH for <hybi@core3.amsl.com>; Tue, 27 Oct 2009 04:26:12 -0700 (PDT)
Received: from mail-bw0-f219.google.com (mail-bw0-f219.google.com [209.85.218.219]) by core3.amsl.com (Postfix) with ESMTP id 724E23A684E for <hybi@ietf.org>; Tue, 27 Oct 2009 04:26:12 -0700 (PDT)
Received: by bwz19 with SMTP id 19so40448bwz.28 for <hybi@ietf.org>; Tue, 27 Oct 2009 04:26:24 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type:content-transfer-encoding; bh=art/0axQ2d6RqOB8km7Z3Ig3mSyP0yVDzSh6HWHHJns=; b=JnpRELLXMa4LPUYchALW1REMkSwp1c2S91IF8LwOfbe+3sOOsD6TbLQFBcnXGAC2LK 4En6NRaueEcu5w/XlWU1b7NRKRqKD/XYDEvoqN1KKvCaKjKlWmA6huih3CHbY1FvdTed WDNM4peiRVr/2kHB//PPjbrCzqz8yhaHzdA28=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=YqC1EUtAjRN+M5P+zNZdyjYZX4LVkkq+HYCI0elqNs1ksj8CSa5aihOF21GguK2ctP RIoXRuinlPfy5pBH61l66C2rYGGzlcgRQ5H/Lztrt+2+kR/ehPWveDwS+gEFHgJ7Dvgh RUOciG64YMOn6hQhdYtjY134UFBmppuydkbw0=
MIME-Version: 1.0
Sender: t.broyer@gmail.com
Received: by 10.204.162.200 with SMTP id w8mr9433693bkx.142.1256642784136;  Tue, 27 Oct 2009 04:26:24 -0700 (PDT)
In-Reply-To: <Pine.LNX.4.62.0910270903080.9145@hixie.dreamhostps.com>
References: <8B0A9FCBB9832F43971E38010638454F0F1EA72C@SISPE7MB1.commscope.com> <Pine.LNX.4.62.0910270903080.9145@hixie.dreamhostps.com>
Date: Tue, 27 Oct 2009 12:26:24 +0100
X-Google-Sender-Auth: 73e70283b0110fec
Message-ID: <a9699fd20910270426u4aa508cepf557b362025ae5db@mail.gmail.com>
From: Thomas Broyer <t.broyer@ltgt.net>
To: Ian Hickson <ian@hixie.ch>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Cc: "hybi@ietf.org" <hybi@ietf.org>, "Thomson, Martin" <Martin.Thomson@andrew.com>
Subject: Re: [hybi] WS framing alternative
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: Tue, 27 Oct 2009 11:26:13 -0000

On Tue, Oct 27, 2009 at 10:11 AM, Ian Hickson <ian@hixie.ch> wrote:
>
> That seems like orders of magnitude more complexity than necessary,
> especially given that the only tangible benefit is a modicum of
> improvement in ease of debugging.
>
> In fact, I would argue that the increased complexity actually increases
> the need for debugging more than the text-based approach actually gives
> you in terms of debugging. Debugging binary protocols isn't especially
> difficult. You just pipe tcpdump through hexdump and less, and the issue
> is done. The protocol is so simple that you can hack together a read/writ=
e
> console in less than an hour.

I totally agree; and for debugging, I believe a
protocol-decoder/dissector/display-filter could also be quite easily
added to Wireshark or similar network packet analyzers.

--=20
Thomas Broyer
/t=C9=94.ma.b=CA=81wa.je/

From gregw@webtide.com  Tue Oct 27 04:53:21 2009
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 42B333A693A for <hybi@core3.amsl.com>; Tue, 27 Oct 2009 04:53:21 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.341
X-Spam-Level: 
X-Spam-Status: No, score=-1.341 tagged_above=-999 required=5 tests=[AWL=-0.634, BAYES_00=-2.599, J_CHICKENPOX_66=0.6, MISSING_HEADERS=1.292]
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 EdY60l0ol3YM for <hybi@core3.amsl.com>; Tue, 27 Oct 2009 04:53:20 -0700 (PDT)
Received: from mail-yx0-f192.google.com (mail-yx0-f192.google.com [209.85.210.192]) by core3.amsl.com (Postfix) with ESMTP id E5DB93A681A for <hybi@ietf.org>; Tue, 27 Oct 2009 04:53:15 -0700 (PDT)
Received: by yxe30 with SMTP id 30so46342yxe.29 for <hybi@ietf.org>; Tue, 27 Oct 2009 04:53:27 -0700 (PDT)
Received: by 10.150.129.27 with SMTP id b27mr5548119ybd.29.1256644407361; Tue, 27 Oct 2009 04:53:27 -0700 (PDT)
Received: from ?10.10.1.9? (60-242-119-126.tpgi.com.au [60.242.119.126]) by mx.google.com with ESMTPS id 13sm702077gxk.9.2009.10.27.04.53.25 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 27 Oct 2009 04:53:26 -0700 (PDT)
Message-ID: <4AE6DF31.4010109@webtide.com>
Date: Tue, 27 Oct 2009 22:53:21 +1100
From: Greg Wilkins <gregw@webtide.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090817)
MIME-Version: 1.0
CC: "hybi@ietf.org" <hybi@ietf.org>
References: <8B0A9FCBB9832F43971E38010638454F0F1EA72C@SISPE7MB1.commscope.com>	<Pine.LNX.4.62.0910270903080.9145@hixie.dreamhostps.com> <4AE6C6A8.6090307@webtide.com> <4AE6D661.1090007@it.aoyama.ac.jp>
In-Reply-To: <4AE6D661.1090007@it.aoyama.ac.jp>
X-Enigmail-Version: 0.95.7
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Subject: Re: [hybi] WS framing alternative
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: Tue, 27 Oct 2009 11:53:21 -0000

Martin J. Dürst wrote:
> On 2009/10/27 19:08, Greg Wilkins wrote:
> 
>> Existing UTF-8 to character conversions will error if they get a partial
>> multipart character,
> 
> No, good transcoding libraries have options that say what to do in such
> a case. Iconv is definitely an example, String#encode in Ruby is another.

and such libraries make working out the length in bytes very
simple.   So if you have a good library, then the argument that
the byte length can't be known is not applicable.

regards


From salvatore.loreto@ericsson.com  Tue Oct 27 05:11:55 2009
Return-Path: <salvatore.loreto@ericsson.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 C45B53A68EE for <hybi@core3.amsl.com>; Tue, 27 Oct 2009 05:11:55 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.935
X-Spam-Level: 
X-Spam-Status: No, score=-5.935 tagged_above=-999 required=5 tests=[AWL=0.314,  BAYES_00=-2.599, HELO_EQ_SE=0.35, RCVD_IN_DNSWL_MED=-4]
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 Iaj3qB-zRUBL for <hybi@core3.amsl.com>; Tue, 27 Oct 2009 05:11:54 -0700 (PDT)
Received: from mailgw5.ericsson.se (mailgw5.ericsson.se [193.180.251.36]) by core3.amsl.com (Postfix) with ESMTP id 4CCB03A67D6 for <hybi@ietf.org>; Tue, 27 Oct 2009 05:11:53 -0700 (PDT)
X-AuditID: c1b4fb24-b7b12ae000007bda-b4-4ae6e3886a13
Received: from esealmw126.eemea.ericsson.se (Unknown_Domain [153.88.253.125]) by mailgw5.ericsson.se (Symantec Mail Security) with SMTP id 1F.8F.31706.883E6EA4; Tue, 27 Oct 2009 13:11:53 +0100 (CET)
Received: from esealmw126.eemea.ericsson.se ([153.88.254.174]) by esealmw126.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.3959);  Tue, 27 Oct 2009 13:11:52 +0100
Received: from mail.lmf.ericsson.se ([131.160.11.50]) by esealmw126.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.3959);  Tue, 27 Oct 2009 13:11:52 +0100
Received: from nomadiclab.lmf.ericsson.se (nomadiclab.lmf.ericsson.se [131.160.33.3]) by mail.lmf.ericsson.se (Postfix) with ESMTP id 3AF0C24E3; Tue, 27 Oct 2009 14:11:52 +0200 (EET)
Received: from nomadiclab.lmf.ericsson.se (localhost [127.0.0.1]) by nomadiclab.lmf.ericsson.se (Postfix) with ESMTP id F1B0C21A22; Tue, 27 Oct 2009 14:11:51 +0200 (EET)
Received: from localhost.localdomain (localhost [127.0.0.1]) by nomadiclab.lmf.ericsson.se (Postfix) with ESMTP id 60D2121A21; Tue, 27 Oct 2009 14:11:51 +0200 (EET)
Message-ID: <4AE6E386.5020905@ericsson.com>
Date: Tue, 27 Oct 2009 14:11:50 +0200
From: Salvatore Loreto <salvatore.loreto@ericsson.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090825)
MIME-Version: 1.0
To: hybi@ietf.org
References: <4ADEC7A0.7040307@ericsson.com> <4AE4CCBB.10001@webtide.com> <FF38AF8B-95D7-479E-B6A2-20E3AC7EB6C9@mnot.net>
In-Reply-To: <FF38AF8B-95D7-479E-B6A2-20E3AC7EB6C9@mnot.net>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: ClamAV using ClamSMTP
X-OriginalArrivalTime: 27 Oct 2009 12:11:52.0550 (UTC) FILETIME=[AB15E060:01CA56FE]
X-Brightmail-Tracker: AAAAAA==
Subject: Re: [hybi] updated Charter proposal (Criteria) (was: WebSocket)
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: Tue, 27 Oct 2009 12:11:55 -0000

it seems to me that there are opportunity reasons (e.g. do a specific 
piece of work; the efforts people have spent during the last years on WS)
but also some consensus on focus the WG long term solution on WebSocket 
protocol

however what is not clear is *"what criteria that proposed changes to WS 
needs to meet"* (as suggested by Mark)

so far Ian has followed a fairly strict set of criteria for changes to 
WS (from Ian mail: 
http://www.ietf.org/mail-archive/web/hybi/current/msg00695.html);
mainly
- keep the protocol simple
- specifically designed for JS clients
- possibility to update it regularly without bootstrapping through 
intermediaries

(Ian, please correct me if I have misinterpreted you)

However there are people in the group that do think the criteria for 
changes should be less strict and also take in consideration 
intermediaries,
infrastructure providers and/or even servers and also clients different 
from JS clients.

So I'd like have a discussion in the mailing list about the criteria 
that proposed changes to WS need to meet

cheers
/Sal







Mark Nottingham wrote:
> My .02 (repeating some things that have been said by others) --
>
> A WG that has a definite charter to do a specific piece of work has a 
> much greater chance of success than one that is tasked with picking a 
> winner; even if the WG fails as a whole or needs to be rechartered 
> later because it isn't working, it's much more productive to be 
> working on one identified thing.
>
> I think a charter for a WG along these lines needs to very carefully 
> spell out what criteria that proposed changes to WS needs to meet; it 
> will be very easy for it to become unproductive otherwise.
>
> I don't think that the characterisation that Ian has been reluctant to 
> take feedback is merited; I've seen him incorporate feedback from 
> several communities. Of course, he's operating with a fairly strict 
> set of criteria for changes to WS; YMMV.
>
> Cheers,
>
>
>
> On 26/10/2009, at 9:10 AM, Greg Wilkins wrote:
>
>> Salvatore Loreto wrote:
>>
>>> In particular, the working group will liaison with the WebApps working
>>> group of the W3C around the Websockets protocol; if agreed by both 
>>> parties,
>>> the HyBi working group may take over the development of the Websockets
>>> protocol.
>>
>> Could we detune this from support of the specific Websocket protocol?
>> How about:
>>
>>  In particular, the working group will liaison with the WebApps working
>>  group of the W3C around a protocol to support the Websockets API; if 
>> agreed
>>  by both parties,  the HyBi working group may take on prime 
>> responsibility
>>  for the specification of the protocol.
>>
>>
>>
>> regards
>>
>> _______________________________________________
>> hybi mailing list
>> hybi@ietf.org
>> https://www.ietf.org/mailman/listinfo/hybi
>
>
> -- 
> Mark Nottingham     http://www.mnot.net/
>
> _______________________________________________
> hybi mailing list
> hybi@ietf.org
> https://www.ietf.org/mailman/listinfo/hybi
>


From julian.reschke@gmx.de  Tue Oct 27 06:57:46 2009
Return-Path: <julian.reschke@gmx.de>
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 4A9773A6969 for <hybi@core3.amsl.com>; Tue, 27 Oct 2009 06:57:46 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.904
X-Spam-Level: 
X-Spam-Status: No, score=-3.904 tagged_above=-999 required=5 tests=[AWL=-1.435, BAYES_00=-2.599, SARE_RMML_Stock10=0.13]
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 ZfoGL8c0m6F8 for <hybi@core3.amsl.com>; Tue, 27 Oct 2009 06:57:45 -0700 (PDT)
Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by core3.amsl.com (Postfix) with SMTP id 2CD6D3A6955 for <hybi@ietf.org>; Tue, 27 Oct 2009 06:57:44 -0700 (PDT)
Received: (qmail invoked by alias); 27 Oct 2009 13:57:57 -0000
Received: from mail.greenbytes.de (EHLO [192.168.1.117]) [217.91.35.233] by mail.gmx.net (mp002) with SMTP; 27 Oct 2009 14:57:57 +0100
X-Authenticated: #1915285
X-Provags-ID: V01U2FsdGVkX1//YukFSMf/+oqZrFR2LYkf4LPzalAKm7xdb0WjJl Hj0n1c+HWpxX66
Message-ID: <4AE6FC61.3070201@gmx.de>
Date: Tue, 27 Oct 2009 14:57:53 +0100
From: Julian Reschke <julian.reschke@gmx.de>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.0.4) Gecko/20060516 Thunderbird/1.5.0.4 Mnenhy/0.7.4.666
MIME-Version: 1.0
To: Ian Hickson <ian@hixie.ch>
References: <4ADEC7A0.7040307@ericsson.com> <4AE4CCBB.10001@webtide.com>	<Pine.LNX.4.62.0910260006420.9145@hixie.dreamhostps.com>	<4AE553A0.9030208@ericsson.com>	<73F5E810-F40F-42B8-81A9-4AD1306E360F@apple.com>	<4AE57B62.4030209@webtide.com> <Pine.LNX.4.62.0910270011060.13521@hixie.dreamhostps.com>
In-Reply-To: <Pine.LNX.4.62.0910270011060.13521@hixie.dreamhostps.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Y-GMX-Trusted: 0
X-FuHaFi: 0.67
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] updated Charter proposal (WebSocket)
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: Tue, 27 Oct 2009 13:57:46 -0000

Ian Hickson wrote:
> On Mon, 26 Oct 2009, Greg Wilkins wrote:
>> Maciej Stachowiak wrote:
>>> I agree with that point of view. It seems sensible to use WebSocket 
>>> Protocol as the starting point, even if we see the need to add 
>>> features or otherwise change the protocol. There doesn't seem to be a 
>>> strong case for starting from scratch.
>> [...] I don't think the charter should mandate the WebSocket protocol as 
>> the outcome.
>>
>> The protocol should be able to be selected on it's own merits - and that 
>> includes the effort that many have put towards it already.
> 
> I agree with Greg that it would be inappropriate for the WG to be bound to 
> adopt a particular proposal or rubber-stamp a particular proposal.
> 
> What matters much more is that the group's deliverables have the buy-in of 
> the relevant implementors -- if we write a technology that is intended to 
> be implemented by proxy vendors, then proxy vendors need to be willing to 
> implement it. If we write a technology that is intended to be implemented 
> by Web browsers, then Web browsers need to be willing to implement it. 
> Otherwise, we're just wasting our time writing boring science fiction.

My understanding is that you want the protocol to be implemented by Web 
browsers, right? In which case the WG should make sure that those people 
actually intend to join the working group.

Having a consensus-driven process that doesn't involve those who are 
supposed to implement the protocol would be a problem.

BR, Julian


From annevk@opera.com  Tue Oct 27 07:42:03 2009
Return-Path: <annevk@opera.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 0102A28C219 for <hybi@core3.amsl.com>; Tue, 27 Oct 2009 07:42:03 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.74
X-Spam-Level: 
X-Spam-Status: No, score=-4.74 tagged_above=-999 required=5 tests=[BAYES_20=-0.74, RCVD_IN_DNSWL_MED=-4]
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 uody3GVr4uuV for <hybi@core3.amsl.com>; Tue, 27 Oct 2009 07:42:01 -0700 (PDT)
Received: from smtp.opera.com (smtp.opera.com [213.236.208.81]) by core3.amsl.com (Postfix) with ESMTP id 87E5528C217 for <hybi@ietf.org>; Tue, 27 Oct 2009 07:42:01 -0700 (PDT)
Received: from anne-van-kesterens-macbook.local (5355732C.cable.casema.nl [83.85.115.44]) (authenticated bits=0) by smtp.opera.com (8.14.3/8.14.3/Debian-5) with ESMTP id n9REfZF7004098 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 27 Oct 2009 14:41:37 GMT
Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes
To: "Ian Hickson" <ian@hixie.ch>, "Infinity Linden (Meadhbh Hamrick)" <infinity@lindenlab.com>
References: <3a880e2c0910231008h6c65de59t8783a3bcf77dbdd5@mail.gmail.com> <Pine.LNX.4.62.0910232157310.13521@hixie.dreamhostps.com>
Date: Tue, 27 Oct 2009 15:42:06 +0100
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
From: "Anne van Kesteren" <annevk@opera.com>
Organization: Opera Software ASA
Message-ID: <op.u2gq4gq364w2qv@anne-van-kesterens-macbook.local>
In-Reply-To: <Pine.LNX.4.62.0910232157310.13521@hixie.dreamhostps.com>
User-Agent: Opera Mail/10.00 (MacIntel)
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] anyone coming to apacheCon / w3c plenary?
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: Tue, 27 Oct 2009 14:42:03 -0000

On Fri, 23 Oct 2009 23:59:00 +0200, Ian Hickson <ian@hixie.ch> wrote:
> On Fri, 23 Oct 2009, Infinity Linden (Meadhbh Hamrick) wrote:
>>
>> was just wondering if there would be some benefits to standing in front
>> of the same white board for a couple hours. or even just grabbing a
>> coffee / wine / beer for social reasons.
>
> I'll be in the area of the W3C meeting, so if anyone wants to meet during
> that, I'm certainly happy to attend.

I'll be there too.


-- 
Anne van Kesteren
http://annevankesteren.nl/

From annevk@opera.com  Tue Oct 27 08:14:07 2009
Return-Path: <annevk@opera.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 8AAA628C21B for <hybi@core3.amsl.com>; Tue, 27 Oct 2009 08:14:07 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.67
X-Spam-Level: 
X-Spam-Status: No, score=-5.67 tagged_above=-999 required=5 tests=[AWL=0.929,  BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
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 IfpRiupXccuq for <hybi@core3.amsl.com>; Tue, 27 Oct 2009 08:14:06 -0700 (PDT)
Received: from smtp.opera.com (smtp.opera.com [213.236.208.81]) by core3.amsl.com (Postfix) with ESMTP id 62AD628C218 for <hybi@ietf.org>; Tue, 27 Oct 2009 08:14:05 -0700 (PDT)
Received: from anne-van-kesterens-macbook.local (5355732C.cable.casema.nl [83.85.115.44]) (authenticated bits=0) by smtp.opera.com (8.14.3/8.14.3/Debian-5) with ESMTP id n9RFDg5l005702 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 27 Oct 2009 15:13:43 GMT
Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes
To: "Julian Reschke" <julian.reschke@gmx.de>, "Ian Hickson" <ian@hixie.ch>
References: <4ADEC7A0.7040307@ericsson.com> <4AE4CCBB.10001@webtide.com> <Pine.LNX.4.62.0910260006420.9145@hixie.dreamhostps.com> <4AE553A0.9030208@ericsson.com> <73F5E810-F40F-42B8-81A9-4AD1306E360F@apple.com> <4AE57B62.4030209@webtide.com> <Pine.LNX.4.62.0910270011060.13521@hixie.dreamhostps.com> <4AE6FC61.3070201@gmx.de>
Date: Tue, 27 Oct 2009 16:14:13 +0100
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
From: "Anne van Kesteren" <annevk@opera.com>
Organization: Opera Software ASA
Message-ID: <op.u2gslzrk64w2qv@anne-van-kesterens-macbook.local>
In-Reply-To: <4AE6FC61.3070201@gmx.de>
User-Agent: Opera Mail/10.00 (MacIntel)
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] updated Charter proposal (WebSocket)
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: Tue, 27 Oct 2009 15:14:07 -0000

On Tue, 27 Oct 2009 14:57:53 +0100, Julian Reschke <julian.reschke@gmx.de>  
wrote:
> My understanding is that you want the protocol to be implemented by Web  
> browsers, right? In which case the WG should make sure that those people  
> actually intend to join the working group.
>
> Having a consensus-driven process that doesn't involve those who are  
> supposed to implement the protocol would be a problem.

It seems representatives of all the "browser companies" are subscribed to  
this list. My understanding from joining the HTTP WG was that this is all  
it takes to be a member.


-- 
Anne van Kesteren
http://annevankesteren.nl/

From julian.reschke@gmx.de  Tue Oct 27 09:29:26 2009
Return-Path: <julian.reschke@gmx.de>
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 9F1973A69E1 for <hybi@core3.amsl.com>; Tue, 27 Oct 2009 09:29:26 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.804
X-Spam-Level: 
X-Spam-Status: No, score=-3.804 tagged_above=-999 required=5 tests=[AWL=-1.205, 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 Eysyk8wmTUxS for <hybi@core3.amsl.com>; Tue, 27 Oct 2009 09:29:25 -0700 (PDT)
Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by core3.amsl.com (Postfix) with SMTP id 5FC2B3A68DD for <hybi@ietf.org>; Tue, 27 Oct 2009 09:29:25 -0700 (PDT)
Received: (qmail invoked by alias); 27 Oct 2009 16:29:38 -0000
Received: from mail.greenbytes.de (EHLO [192.168.1.117]) [217.91.35.233] by mail.gmx.net (mp072) with SMTP; 27 Oct 2009 17:29:38 +0100
X-Authenticated: #1915285
X-Provags-ID: V01U2FsdGVkX18NDQR1+XUN8RP06vD+pyDw0gC4V9W0vTO+xuJBSk 8T3nrj4RqwEjfB
Message-ID: <4AE71FF1.6070009@gmx.de>
Date: Tue, 27 Oct 2009 17:29:37 +0100
From: Julian Reschke <julian.reschke@gmx.de>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.0.4) Gecko/20060516 Thunderbird/1.5.0.4 Mnenhy/0.7.4.666
MIME-Version: 1.0
To: Anne van Kesteren <annevk@opera.com>
References: <4ADEC7A0.7040307@ericsson.com> <4AE4CCBB.10001@webtide.com> <Pine.LNX.4.62.0910260006420.9145@hixie.dreamhostps.com> <4AE553A0.9030208@ericsson.com> <73F5E810-F40F-42B8-81A9-4AD1306E360F@apple.com> <4AE57B62.4030209@webtide.com> <Pine.LNX.4.62.0910270011060.13521@hixie.dreamhostps.com> <4AE6FC61.3070201@gmx.de> <op.u2gslzrk64w2qv@anne-van-kesterens-macbook.local>
In-Reply-To: <op.u2gslzrk64w2qv@anne-van-kesterens-macbook.local>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Y-GMX-Trusted: 0
X-FuHaFi: 0.65
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] updated Charter proposal (WebSocket)
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: Tue, 27 Oct 2009 16:29:26 -0000

Anne van Kesteren wrote:
> On Tue, 27 Oct 2009 14:57:53 +0100, Julian Reschke 
> <julian.reschke@gmx.de> wrote:
>> My understanding is that you want the protocol to be implemented by 
>> Web browsers, right? In which case the WG should make sure that those 
>> people actually intend to join the working group.
>>
>> Having a consensus-driven process that doesn't involve those who are 
>> supposed to implement the protocol would be a problem.
> 
> It seems representatives of all the "browser companies" are subscribed 
> to this list. My understanding from joining the HTTP WG was that this is 
> all it takes to be a member.

Yes, that is true.

What I meant is that these companies should *participate* in the WG, 
rather than sending feedback off-list to the editor.

BR, Julian

From ian@hixie.ch  Tue Oct 27 11:34:12 2009
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 BB13F28C20E for <hybi@core3.amsl.com>; Tue, 27 Oct 2009 11:34:12 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.556
X-Spam-Level: 
X-Spam-Status: No, score=-2.556 tagged_above=-999 required=5 tests=[AWL=0.043,  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 eDbO-XgtRgUc for <hybi@core3.amsl.com>; Tue, 27 Oct 2009 11:34:11 -0700 (PDT)
Received: from looneymail-a2.g.dreamhost.com (caibbdcaaaaf.dreamhost.com [208.113.200.5]) by core3.amsl.com (Postfix) with ESMTP id AA0C828C216 for <hybi@ietf.org>; Tue, 27 Oct 2009 11:34:11 -0700 (PDT)
Received: from hixie.dreamhostps.com (hixie.dreamhost.com [208.113.210.27]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by looneymail-a2.g.dreamhost.com (Postfix) with ESMTP id E29F116D3F7; Tue, 27 Oct 2009 11:34:25 -0700 (PDT)
Date: Tue, 27 Oct 2009 18:34:30 +0000 (UTC)
From: Ian Hickson <ian@hixie.ch>
To: Greg Wilkins <gregw@webtide.com>
In-Reply-To: <a9699fd20910270426u4aa508cepf557b362025ae5db@mail.gmail.com>
Message-ID: <Pine.LNX.4.62.0910271824200.25616@hixie.dreamhostps.com>
References: <8B0A9FCBB9832F43971E38010638454F0F1EA72C@SISPE7MB1.commscope.com> <Pine.LNX.4.62.0910270903080.9145@hixie.dreamhostps.com> <a9699fd20910270426u4aa508cepf557b362025ae5db@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" <hybi@ietf.org>
Subject: Re: [hybi] WS framing alternative
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: Tue, 27 Oct 2009 18:34:12 -0000

On Tue, 27 Oct 2009, Greg Wilkins wrote:
> Ian Hickson wrote:
> > This would have some pretty major costs:
> > 
> > - It requires length delimiting for text frames, which is more 
> > complicated to implement (it's non-trivial to tell the difference 
> > between characters and bytes).
> 
> But length delimited frames are in the protocol anyway, so they have to 
> be implemented anyway.

Only by generic clients (i.e. the browsers). Servers only have to 
implement the binary frames if they want to support binary frames in the 
protocol they implement, and dedicated clients (that just implement 
WebSocket as a necessary part of implementing whatever protocol it is that 
they are written for) would only need the binary frame support if the 
protocol they implement uses binary frames.


> If there was only 1 framing type, then we have approximately half the 
> framing complexity.

I've previously explained the reasoning for wanting to minimise the length 
measurements for UTF-8 data, so I won't repeat it here.


> > - It requires parsing using a presized buffer for variable-encoding 
> > text, which risks character/byte mismatches and thus buffer overruns.
> 
> With sentinel encoding, sending data might be marginally simpler, but 
> receiving data is much harder.

Not particularly. In languages with automatic dynamic strings (like Perl, 
Python, ObjectPascal, etc) you just concatenate and all the complexity is 
hidden from you by the compiler or language runtime. If you are using 
explicit buffers, then the complexity consists of just doubling the buffer 
size when you reach the size of the buffer; it's not a big deal either.


> You will still have buffers of fixed sizes when you receive bytes.  You
> don't know how much data is coming, so you don't know how big to make
> your buffer or when to start turning bytes into characters.

You don't know that anyway, if your internal representation isn't UTF-8, 
since UTF-8 is a variable-length encoding (e.g. Win32 uses UTF-16 
internally, which is variable-length encoded in a different way from 
UTF-8, so you can't know how big the destination buffer should be without 
examining the whole byte string).


> I can see implementations reading a buffer.... scanning for 0x00, not 
> finding it... allocating a larger buffer... copying the bytes ... 
> reading more bytes ... scanning again for 0x00.... still not finding 
> it.... allocating yet another larger buffer... copying the bytes .... 
> etc.  etc.  until either you get a denial of service or you find 0x00, 
> when you can finally scan over all the bytes again to convert to 
> characters.

It's trivial to impose an arbitrary limit. It doesn't even have to be that 
arbitrary -- it can be whatever the server knows its protocol needs to 
support. Indeed, if the implementation uses fixed-size buffers like this, 
then it could just set its per-connection buffer to the maximum size it 
knows its protocol will ever handle, and just discard data if the limit is 
reached (or close the connection).

(Martin responded to the rest of your comments.)

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

From ian@hixie.ch  Tue Oct 27 11:36:26 2009
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 C8BDC3A6899 for <hybi@core3.amsl.com>; Tue, 27 Oct 2009 11:36:26 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.557
X-Spam-Level: 
X-Spam-Status: No, score=-2.557 tagged_above=-999 required=5 tests=[AWL=0.042,  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 89-e2PsiUwio for <hybi@core3.amsl.com>; Tue, 27 Oct 2009 11:36:26 -0700 (PDT)
Received: from looneymail-a1.g.dreamhost.com (caibbdcaaaaf.dreamhost.com [208.113.200.5]) by core3.amsl.com (Postfix) with ESMTP id 1308B3A6831 for <hybi@ietf.org>; Tue, 27 Oct 2009 11:36:26 -0700 (PDT)
Received: from hixie.dreamhostps.com (hixie.dreamhost.com [208.113.210.27]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by looneymail-a1.g.dreamhost.com (Postfix) with ESMTP id C395B15D7CF; Tue, 27 Oct 2009 11:36:39 -0700 (PDT)
Date: Tue, 27 Oct 2009 18:36:44 +0000 (UTC)
From: Ian Hickson <ian@hixie.ch>
To: Greg Wilkins <gregw@webtide.com>
In-Reply-To: <4AE6C7D1.30003@webtide.com>
Message-ID: <Pine.LNX.4.62.0910271834480.25616@hixie.dreamhostps.com>
References: <FDC38D4B-AB64-4F6B-B569-81D7A56DEC8D@mnot.net> <Pine.LNX.4.62.0910270912040.9145@hixie.dreamhostps.com> <4AE6C7D1.30003@webtide.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] More feedback on WebSockets
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: Tue, 27 Oct 2009 18:36:26 -0000

On Tue, 27 Oct 2009, Greg Wilkins wrote:
> Ian Hickson wrote:
> > I disagree that the current handshake isn't like HTTP enough, though. 
> > The request is fully HTTP-compliant. What value would there be in 
> > relaxing the rules on what WebSocket clients should send in the 
> > request? I don't understand the real-world case you are concerned 
> > about.
> 
> What about a load balancer in front of the server that inserts a cookie 
> or X-Forwarded-For header into all HTTP requests that it forwards.
> 
> This will probably be harmless with regards to the subsequent WS 
> connection, but it will break the handshake so there will not be a 
> subsequent WS connection.

How do such load balancers handle pipelining?

If they support them, then that means they are almost certainly 
incompatible with WebSocket, as far as I can tell, and we would _want_ the 
connection to fail.

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

From ian@hixie.ch  Tue Oct 27 11:39:46 2009
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 6F9C43A63EC for <hybi@core3.amsl.com>; Tue, 27 Oct 2009 11:39:46 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.559
X-Spam-Level: 
X-Spam-Status: No, score=-2.559 tagged_above=-999 required=5 tests=[AWL=0.040,  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 cHZKSn8BF1UZ for <hybi@core3.amsl.com>; Tue, 27 Oct 2009 11:39:45 -0700 (PDT)
Received: from looneymail-a2.g.dreamhost.com (caibbdcaaaaf.dreamhost.com [208.113.200.5]) by core3.amsl.com (Postfix) with ESMTP id 504413A687E for <hybi@ietf.org>; Tue, 27 Oct 2009 11:39:28 -0700 (PDT)
Received: from hixie.dreamhostps.com (hixie.dreamhost.com [208.113.210.27]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by looneymail-a2.g.dreamhost.com (Postfix) with ESMTP id A10B916D43B; Tue, 27 Oct 2009 11:39:42 -0700 (PDT)
Date: Tue, 27 Oct 2009 18:39:44 +0000 (UTC)
From: Ian Hickson <ian@hixie.ch>
To: Greg Wilkins <gregw@webtide.com>
In-Reply-To: <4AE6CF7A.6050400@webtide.com>
Message-ID: <Pine.LNX.4.62.0910271837070.25616@hixie.dreamhostps.com>
References: <4ACE50A2.5070404@ericsson.com> <3a880e2c0910081600v3607665dp193f6df499706810@mail.gmail.com> <4ACF4055.6080302@ericsson.com> <Pine.LNX.4.62.0910092116010.21884@hixie.dreamhostps.com> <4AD2E353.8070609@webtide.com> <4AD2F43D.6030202@ninebynine.org> <4AD39A64.4080405@webtide.com> <Pine.LNX.4.62.0910132335390.25383@hixie.dreamhostps.com> <4AD53DCA.6050304@webtide.com> <Pine.LNX.4.62.0910170203460.9145@hixie.dreamhostps.com> <4ADA7FD4.9010406@webtide.com> <4ADB6F0B.4000004@gmail.com> <Pine.LNX.4.62.0910221120380.9145@hixie.dreamhostps.com> <4AE08907.7080402@webtide.com> <Pine.LNX.4.62.0910230348470.9145@hixie.dreamhostps.com> <4AE1E659.5050507@webtide.com> <Pine.LNX.4.62.0910232154470.13521@hixie.dreamhostps.com> <4AE23D7A.2060009@webtide.com> <Pine.LNX.4.62.0910240926500.9145@hixie.dreamhostps.com> <4AE4119A.7040803@webtide.com> <Pine.LNX.4.62.0910270130580.9145@hixie.dreamhostps.com> <4AE6CF7A.6050400@webtide.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] Multiplexing in WebSocket
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: Tue, 27 Oct 2009 18:39:46 -0000

On Tue, 27 Oct 2009, Greg Wilkins wrote:
> Ian Hickson wrote:
> >> I think the IETF should be considering a bidirectional solution for 
> >> all web clients - not just for HTML5 JS clients
> > 
> > What's wrong with TCP, BEEP, or Jabber?
> 
> Once upon a time there was the internet and IP was God (even though Al 
> Gore invented the internet and he really should have been God).
> 
> But then somebody invented the Web (was it Bill Gates?) and now port 80 
> is God.
> 
> The Web runs on top of the Internet, but restricts all the wonderful 
> features of IP to a one way port 80.
> 
> TCP, BEEP, or Jabber are really great Internet protocols, but they don't 
> generally work on the web.  Jabber (aka XMPP) has to fall back to BOSH 
> on HTTP in order to span the web.

I'm not really sure what you mean by "the web" here.

If your requirement is for a protocol that can tunnel other bydirectional 
protocols over HTTP, then WebSocket isn't it. We should decouple the 
requirements for WebSockets (which were listed in one of the first 
messages to this list) from the requirements for a tunnel-over-HTTP 
protocol, because they aren't compatible requirements.

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

From gregw@webtide.com  Tue Oct 27 13:50:25 2009
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 1145228C15C for <hybi@core3.amsl.com>; Tue, 27 Oct 2009 13:50:25 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.242
X-Spam-Level: 
X-Spam-Status: No, score=-2.242 tagged_above=-999 required=5 tests=[AWL=0.357,  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 dPoB54SEnt8Y for <hybi@core3.amsl.com>; Tue, 27 Oct 2009 13:50:24 -0700 (PDT)
Received: from mail-bw0-f223.google.com (mail-bw0-f223.google.com [209.85.218.223]) by core3.amsl.com (Postfix) with ESMTP id DC0133A6945 for <hybi@ietf.org>; Tue, 27 Oct 2009 13:50:23 -0700 (PDT)
Received: by bwz23 with SMTP id 23so161067bwz.29 for <hybi@ietf.org>; Tue, 27 Oct 2009 13:50:36 -0700 (PDT)
Received: by 10.204.15.16 with SMTP id i16mr6553175bka.72.1256676635548; Tue, 27 Oct 2009 13:50:35 -0700 (PDT)
Received: from ?10.10.1.9? (60-242-119-126.tpgi.com.au [60.242.119.126]) by mx.google.com with ESMTPS id 16sm18510bwz.7.2009.10.27.13.50.32 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 27 Oct 2009 13:50:34 -0700 (PDT)
Message-ID: <4AE75D12.4060302@webtide.com>
Date: Wed, 28 Oct 2009 07:50:26 +1100
From: Greg Wilkins <gregw@webtide.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090817)
MIME-Version: 1.0
To: hybi@ietf.org
References: <FDC38D4B-AB64-4F6B-B569-81D7A56DEC8D@mnot.net> <Pine.LNX.4.62.0910270912040.9145@hixie.dreamhostps.com> <4AE6C7D1.30003@webtide.com> <Pine.LNX.4.62.0910271834480.25616@hixie.dreamhostps.com>
In-Reply-To: <Pine.LNX.4.62.0910271834480.25616@hixie.dreamhostps.com>
X-Enigmail-Version: 0.95.7
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Subject: Re: [hybi] More feedback on WebSockets
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: Tue, 27 Oct 2009 20:50:25 -0000

Ian Hickson wrote:
> On Tue, 27 Oct 2009, Greg Wilkins wrote:
>> Ian Hickson wrote:
>>> I disagree that the current handshake isn't like HTTP enough, though. 
>>> The request is fully HTTP-compliant. What value would there be in 
>>> relaxing the rules on what WebSocket clients should send in the 
>>> request? I don't understand the real-world case you are concerned 
>>> about.
>> What about a load balancer in front of the server that inserts a cookie 
>> or X-Forwarded-For header into all HTTP requests that it forwards.
>>
>> This will probably be harmless with regards to the subsequent WS 
>> connection, but it will break the handshake so there will not be a 
>> subsequent WS connection.
> 
> How do such load balancers handle pipelining?
> 
> If they support them, then that means they are almost certainly 
> incompatible with WebSocket, as far as I can tell, and we would _want_ the 
> connection to fail.

They all are different.  But many just look at the first request on
a connection and then just treat the rest of the connection with
packet forwarding.   So that type should work.

Others look at every request and will probably not work.

regards



From ian@hixie.ch  Tue Oct 27 13:58:39 2009
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 47AD93A6A74 for <hybi@core3.amsl.com>; Tue, 27 Oct 2009 13:58:39 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.56
X-Spam-Level: 
X-Spam-Status: No, score=-2.56 tagged_above=-999 required=5 tests=[AWL=0.039,  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 6TcJK7i3zF4d for <hybi@core3.amsl.com>; Tue, 27 Oct 2009 13:58:38 -0700 (PDT)
Received: from looneymail-a2.g.dreamhost.com (caibbdcaaaaf.dreamhost.com [208.113.200.5]) by core3.amsl.com (Postfix) with ESMTP id 8B3E93A6945 for <hybi@ietf.org>; Tue, 27 Oct 2009 13:58:38 -0700 (PDT)
Received: from hixie.dreamhostps.com (hixie.dreamhost.com [208.113.210.27]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by looneymail-a2.g.dreamhost.com (Postfix) with ESMTP id 46DE416D441; Tue, 27 Oct 2009 13:58:53 -0700 (PDT)
Date: Tue, 27 Oct 2009 20:58:54 +0000 (UTC)
From: Ian Hickson <ian@hixie.ch>
To: Greg Wilkins <gregw@webtide.com>
In-Reply-To: <4AE75D12.4060302@webtide.com>
Message-ID: <Pine.LNX.4.62.0910272055390.25608@hixie.dreamhostps.com>
References: <FDC38D4B-AB64-4F6B-B569-81D7A56DEC8D@mnot.net> <Pine.LNX.4.62.0910270912040.9145@hixie.dreamhostps.com> <4AE6C7D1.30003@webtide.com> <Pine.LNX.4.62.0910271834480.25616@hixie.dreamhostps.com> <4AE75D12.4060302@webtide.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] More feedback on WebSockets
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: Tue, 27 Oct 2009 20:58:39 -0000

On Wed, 28 Oct 2009, Greg Wilkins wrote:
> Ian Hickson wrote:
> > On Tue, 27 Oct 2009, Greg Wilkins wrote:
> >> Ian Hickson wrote:
> >>> I disagree that the current handshake isn't like HTTP enough, though. 
> >>> The request is fully HTTP-compliant. What value would there be in 
> >>> relaxing the rules on what WebSocket clients should send in the 
> >>> request? I don't understand the real-world case you are concerned 
> >>> about.
> >> What about a load balancer in front of the server that inserts a cookie 
> >> or X-Forwarded-For header into all HTTP requests that it forwards.
> >>
> >> This will probably be harmless with regards to the subsequent WS 
> >> connection, but it will break the handshake so there will not be a 
> >> subsequent WS connection.
> > 
> > How do such load balancers handle pipelining?
> > 
> > If they support them, then that means they are almost certainly 
> > incompatible with WebSocket, as far as I can tell, and we would _want_ the 
> > connection to fail.
> 
> They all are different.  But many just look at the first request on
> a connection and then just treat the rest of the connection with
> packet forwarding.   So that type should work.
> 
> Others look at every request and will probably not work.

For the packet-forwarding ones, are we talking about inserting a header on 
incoming connections (client to server) or outgoing responses (server back 
to client)?

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

From gregw@webtide.com  Tue Oct 27 14:02:33 2009
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 081373A68C3 for <hybi@core3.amsl.com>; Tue, 27 Oct 2009 14:02:33 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.266
X-Spam-Level: 
X-Spam-Status: No, score=-2.266 tagged_above=-999 required=5 tests=[AWL=0.333,  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 HaTUWsT6MADJ for <hybi@core3.amsl.com>; Tue, 27 Oct 2009 14:02:32 -0700 (PDT)
Received: from mail-bw0-f223.google.com (mail-bw0-f223.google.com [209.85.218.223]) by core3.amsl.com (Postfix) with ESMTP id F11063A6873 for <hybi@ietf.org>; Tue, 27 Oct 2009 14:02:31 -0700 (PDT)
Received: by bwz23 with SMTP id 23so173894bwz.29 for <hybi@ietf.org>; Tue, 27 Oct 2009 14:02:43 -0700 (PDT)
Received: by 10.204.25.71 with SMTP id y7mr3675002bkb.67.1256677363058; Tue, 27 Oct 2009 14:02:43 -0700 (PDT)
Received: from ?10.10.1.9? (60-242-119-126.tpgi.com.au [60.242.119.126]) by mx.google.com with ESMTPS id 14sm125792bwz.1.2009.10.27.14.02.39 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 27 Oct 2009 14:02:41 -0700 (PDT)
Message-ID: <4AE75FEA.3090001@webtide.com>
Date: Wed, 28 Oct 2009 08:02:34 +1100
From: Greg Wilkins <gregw@webtide.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090817)
MIME-Version: 1.0
To: hybi@ietf.org
References: <FDC38D4B-AB64-4F6B-B569-81D7A56DEC8D@mnot.net> <Pine.LNX.4.62.0910270912040.9145@hixie.dreamhostps.com> <4AE6C7D1.30003@webtide.com> <Pine.LNX.4.62.0910271834480.25616@hixie.dreamhostps.com> <4AE75D12.4060302@webtide.com> <Pine.LNX.4.62.0910272055390.25608@hixie.dreamhostps.com>
In-Reply-To: <Pine.LNX.4.62.0910272055390.25608@hixie.dreamhostps.com>
X-Enigmail-Version: 0.95.7
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Subject: Re: [hybi] More feedback on WebSockets
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: Tue, 27 Oct 2009 21:02:33 -0000

Ian Hickson wrote:
> On Wed, 28 Oct 2009, Greg Wilkins wrote:
>> Ian Hickson wrote:
>>> On Tue, 27 Oct 2009, Greg Wilkins wrote:
>>>> Ian Hickson wrote:
>>>>> I disagree that the current handshake isn't like HTTP enough, though. 
>>>>> The request is fully HTTP-compliant. What value would there be in 
>>>>> relaxing the rules on what WebSocket clients should send in the 
>>>>> request? I don't understand the real-world case you are concerned 
>>>>> about.
>>>> What about a load balancer in front of the server that inserts a cookie 
>>>> or X-Forwarded-For header into all HTTP requests that it forwards.
>>>>
>>>> This will probably be harmless with regards to the subsequent WS 
>>>> connection, but it will break the handshake so there will not be a 
>>>> subsequent WS connection.
>>> How do such load balancers handle pipelining?
>>>
>>> If they support them, then that means they are almost certainly 
>>> incompatible with WebSocket, as far as I can tell, and we would _want_ the 
>>> connection to fail.
>> They all are different.  But many just look at the first request on
>> a connection and then just treat the rest of the connection with
>> packet forwarding.   So that type should work.
>>
>> Others look at every request and will probably not work.
> 
> For the packet-forwarding ones, are we talking about inserting a header on 
> incoming connections (client to server) or outgoing responses (server back 
> to client)?
> 


Again - there are a huge number of variations.

But inserting  X-forwarded-for headers on requests and Via headers
on responses is common.
So is setting cookies on responses so that subsequent
connections can be balanced the same.
Also SSL offload will want to set certificate details in the
request header.

regards

From ian@hixie.ch  Tue Oct 27 14:05:46 2009
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 EBC813A68C3 for <hybi@core3.amsl.com>; Tue, 27 Oct 2009 14:05:46 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.561
X-Spam-Level: 
X-Spam-Status: No, score=-2.561 tagged_above=-999 required=5 tests=[AWL=0.038,  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 GbKFN7uVes3l for <hybi@core3.amsl.com>; Tue, 27 Oct 2009 14:05:46 -0700 (PDT)
Received: from looneymail-a1.g.dreamhost.com (caibbdcaaaaf.dreamhost.com [208.113.200.5]) by core3.amsl.com (Postfix) with ESMTP id 24D093A680F for <hybi@ietf.org>; Tue, 27 Oct 2009 14:05:46 -0700 (PDT)
Received: from hixie.dreamhostps.com (hixie.dreamhost.com [208.113.210.27]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by looneymail-a1.g.dreamhost.com (Postfix) with ESMTP id D4CAB15D562; Tue, 27 Oct 2009 14:05:58 -0700 (PDT)
Date: Tue, 27 Oct 2009 21:06:04 +0000 (UTC)
From: Ian Hickson <ian@hixie.ch>
To: Greg Wilkins <gregw@webtide.com>
In-Reply-To: <4AE75FEA.3090001@webtide.com>
Message-ID: <Pine.LNX.4.62.0910272104140.25608@hixie.dreamhostps.com>
References: <FDC38D4B-AB64-4F6B-B569-81D7A56DEC8D@mnot.net> <Pine.LNX.4.62.0910270912040.9145@hixie.dreamhostps.com> <4AE6C7D1.30003@webtide.com> <Pine.LNX.4.62.0910271834480.25616@hixie.dreamhostps.com> <4AE75D12.4060302@webtide.com> <Pine.LNX.4.62.0910272055390.25608@hixie.dreamhostps.com> <4AE75FEA.3090001@webtide.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] More feedback on WebSockets
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: Tue, 27 Oct 2009 21:05:47 -0000

On Wed, 28 Oct 2009, Greg Wilkins wrote:
> > 
> > For the packet-forwarding ones, are we talking about inserting a 
> > header on incoming connections (client to server) or outgoing 
> > responses (server back to client)?
> 
> Again - there are a huge number of variations.
> 
> But inserting X-forwarded-for headers on requests and Via headers on 
> responses is common. So is setting cookies on responses so that 
> subsequent connections can be balanced the same. Also SSL offload will 
> want to set certificate details in the request header.

It sounds like there are some intermediaries that are harmless and would 
work fine, and others that are harmful and which WebSocket would correctly 
detect and prevent connections through. If someone wants to deploy a 
WebSocket server behind the latter, they'll quickly discover the problem, 
so it doesn't seem like it'd be a barrier to adoption. It's client-side 
intermediaries that are the main concern (and for which TLS-based 
WebSocket is the most obvious solution in most cases).

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

From gregw@webtide.com  Tue Oct 27 14:08:06 2009
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 2FFE428C131 for <hybi@core3.amsl.com>; Tue, 27 Oct 2009 14:08:06 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.287
X-Spam-Level: 
X-Spam-Status: No, score=-2.287 tagged_above=-999 required=5 tests=[AWL=0.312,  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 CkfzKr6wMS0i for <hybi@core3.amsl.com>; Tue, 27 Oct 2009 14:08:05 -0700 (PDT)
Received: from mail-bw0-f223.google.com (mail-bw0-f223.google.com [209.85.218.223]) by core3.amsl.com (Postfix) with ESMTP id 412D93A68C3 for <hybi@ietf.org>; Tue, 27 Oct 2009 14:08:05 -0700 (PDT)
Received: by bwz23 with SMTP id 23so179410bwz.29 for <hybi@ietf.org>; Tue, 27 Oct 2009 14:08:16 -0700 (PDT)
Received: by 10.204.26.206 with SMTP id f14mr2734295bkc.95.1256677696051; Tue, 27 Oct 2009 14:08:16 -0700 (PDT)
Received: from ?10.10.1.9? (60-242-119-126.tpgi.com.au [60.242.119.126]) by mx.google.com with ESMTPS id 13sm125577bwz.10.2009.10.27.14.08.13 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 27 Oct 2009 14:08:14 -0700 (PDT)
Message-ID: <4AE76137.8000603@webtide.com>
Date: Wed, 28 Oct 2009 08:08:07 +1100
From: Greg Wilkins <gregw@webtide.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090817)
MIME-Version: 1.0
To: "hybi@ietf.org" <hybi@ietf.org>
References: <8B0A9FCBB9832F43971E38010638454F0F1EA72C@SISPE7MB1.commscope.com> <Pine.LNX.4.62.0910270903080.9145@hixie.dreamhostps.com> <a9699fd20910270426u4aa508cepf557b362025ae5db@mail.gmail.com> <Pine.LNX.4.62.0910271824200.25616@hixie.dreamhostps.com>
In-Reply-To: <Pine.LNX.4.62.0910271824200.25616@hixie.dreamhostps.com>
X-Enigmail-Version: 0.95.7
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Subject: Re: [hybi] WS framing alternative
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: Tue, 27 Oct 2009 21:08:06 -0000

Ian Hickson wrote:

> Not particularly. In languages with automatic dynamic strings (like Perl, 
> Python, ObjectPascal, etc) you just concatenate and all the complexity is 
> hidden from you by the compiler or language runtime. 

Hidden complexity is still complexity.

On enterprise level servers, limiting the amount of data copying
and buffer allocation/resizing is key to achieving scalability.
Managing when and how data moves from kernel space to user-space
is also important and knowing a length up front can help with
that.

Having a protocol optimized for ease of perl implementation, but that
is difficult to optimize for scale is not ideal.

Besides - you say that there are quality utf-8 libraries available. So I
don't see the argument that says it is hard to know the length that is
being sent?

regards


From gregw@webtide.com  Tue Oct 27 14:12:03 2009
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 2D6F43A6914 for <hybi@core3.amsl.com>; Tue, 27 Oct 2009 14:12:03 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.305
X-Spam-Level: 
X-Spam-Status: No, score=-2.305 tagged_above=-999 required=5 tests=[AWL=0.294,  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 USXlYw+NmFUU for <hybi@core3.amsl.com>; Tue, 27 Oct 2009 14:12:02 -0700 (PDT)
Received: from mail-bw0-f219.google.com (mail-bw0-f219.google.com [209.85.218.219]) by core3.amsl.com (Postfix) with ESMTP id 2582F3A67ED for <hybi@ietf.org>; Tue, 27 Oct 2009 14:12:01 -0700 (PDT)
Received: by bwz19 with SMTP id 19so182014bwz.28 for <hybi@ietf.org>; Tue, 27 Oct 2009 14:12:09 -0700 (PDT)
Received: by 10.204.34.78 with SMTP id k14mr180308bkd.106.1256677929745; Tue, 27 Oct 2009 14:12:09 -0700 (PDT)
Received: from ?10.10.1.9? (60-242-119-126.tpgi.com.au [60.242.119.126]) by mx.google.com with ESMTPS id 14sm126961bwz.9.2009.10.27.14.12.06 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 27 Oct 2009 14:12:08 -0700 (PDT)
Message-ID: <4AE76221.30908@webtide.com>
Date: Wed, 28 Oct 2009 08:12:01 +1100
From: Greg Wilkins <gregw@webtide.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090817)
MIME-Version: 1.0
To: hybi@ietf.org
References: <FDC38D4B-AB64-4F6B-B569-81D7A56DEC8D@mnot.net> <Pine.LNX.4.62.0910270912040.9145@hixie.dreamhostps.com> <4AE6C7D1.30003@webtide.com> <Pine.LNX.4.62.0910271834480.25616@hixie.dreamhostps.com> <4AE75D12.4060302@webtide.com> <Pine.LNX.4.62.0910272055390.25608@hixie.dreamhostps.com> <4AE75FEA.3090001@webtide.com> <Pine.LNX.4.62.0910272104140.25608@hixie.dreamhostps.com>
In-Reply-To: <Pine.LNX.4.62.0910272104140.25608@hixie.dreamhostps.com>
X-Enigmail-Version: 0.95.7
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Subject: Re: [hybi] More feedback on WebSockets
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: Tue, 27 Oct 2009 21:12:03 -0000

Ian Hickson wrote:
> On Wed, 28 Oct 2009, Greg Wilkins wrote:
>>> For the packet-forwarding ones, are we talking about inserting a 
>>> header on incoming connections (client to server) or outgoing 
>>> responses (server back to client)?
>> Again - there are a huge number of variations.
>>
>> But inserting X-forwarded-for headers on requests and Via headers on 
>> responses is common. So is setting cookies on responses so that 
>> subsequent connections can be balanced the same. Also SSL offload will 
>> want to set certificate details in the request header.
> 
> It sounds like there are some intermediaries that are harmless and would 
> work fine, and others that are harmful and which WebSocket would correctly 
> detect and prevent connections through. If someone wants to deploy a 
> WebSocket server behind the latter, they'll quickly discover the problem, 
> so it doesn't seem like it'd be a barrier to adoption. It's client-side 
> intermediaries that are the main concern (and for which TLS-based 
> WebSocket is the most obvious solution in most cases).


But they need to be able to set cookies and headers in order to work.

Setting these on the upgrade request and response should be perfectly
possible and HTTP legal.  It would allow existing intermediaries to
communicate important information to client (which node they are stuck
to) and to server (ssl and original client details).

These are just a few of many examples of why allowing an intermediary
to add meta data is an important part of a web protocol.

WS does not allow this because it is trying to do an end-run around
intermediaries rather then trying to sensibly work with them.

regards


From ian@hixie.ch  Tue Oct 27 14:21:55 2009
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 5CC133A6873 for <hybi@core3.amsl.com>; Tue, 27 Oct 2009 14:21:55 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.562
X-Spam-Level: 
X-Spam-Status: No, score=-2.562 tagged_above=-999 required=5 tests=[AWL=0.036,  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 BJMpip7DsT+s for <hybi@core3.amsl.com>; Tue, 27 Oct 2009 14:21:54 -0700 (PDT)
Received: from looneymail-a2.g.dreamhost.com (caibbdcaaaaf.dreamhost.com [208.113.200.5]) by core3.amsl.com (Postfix) with ESMTP id 5E59B3A67AA for <hybi@ietf.org>; Tue, 27 Oct 2009 14:21:51 -0700 (PDT)
Received: from hixie.dreamhostps.com (hixie.dreamhost.com [208.113.210.27]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by looneymail-a2.g.dreamhost.com (Postfix) with ESMTP id 3C98D16D3F7; Tue, 27 Oct 2009 14:22:06 -0700 (PDT)
Date: Tue, 27 Oct 2009 21:22:12 +0000 (UTC)
From: Ian Hickson <ian@hixie.ch>
To: Greg Wilkins <gregw@webtide.com>
In-Reply-To: <4AE76137.8000603@webtide.com>
Message-ID: <Pine.LNX.4.62.0910272118590.25608@hixie.dreamhostps.com>
References: <8B0A9FCBB9832F43971E38010638454F0F1EA72C@SISPE7MB1.commscope.com> <Pine.LNX.4.62.0910270903080.9145@hixie.dreamhostps.com> <a9699fd20910270426u4aa508cepf557b362025ae5db@mail.gmail.com> <Pine.LNX.4.62.0910271824200.25616@hixie.dreamhostps.com> <4AE76137.8000603@webtide.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" <hybi@ietf.org>
Subject: Re: [hybi] WS framing alternative
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: Tue, 27 Oct 2009 21:21:55 -0000

On Wed, 28 Oct 2009, Greg Wilkins wrote:
> 
> Having a protocol optimized for ease of perl implementation, but that is 
> difficult to optimize for scale is not ideal.

Agreed, but this isn't the case here. If you're willing to use advanced 
techniques, then there's lots of things you can do to avoid copying -- for 
example, the same thing as people do now to avoid copying HTTP headers 
around. After all, HTTP headers are sentinel based; they don't have length 
declarations. And those are longer than most WebSocket messages likely 
will be.


> Besides - you say that there are quality utf-8 libraries available. So I 
> don't see the argument that says it is hard to know the length that is 
> being sent?

The existence of quality UTF-8 libraries does not imply that everyone will 
competently use them. Many uses of WebSockets will likely not need 
anything beyond basic ASCII -- it's only when the script is sending user 
data and you want to interpret it on the server-side that you need to 
decode the data.

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

From mnot@mnot.net  Tue Oct 27 14:23:13 2009
Return-Path: <mnot@mnot.net>
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 1C3553A68DE for <hybi@core3.amsl.com>; Tue, 27 Oct 2009 14:23:13 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.225
X-Spam-Level: 
X-Spam-Status: No, score=-5.225 tagged_above=-999 required=5 tests=[AWL=-2.626, 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 jtmD2kbofVVq for <hybi@core3.amsl.com>; Tue, 27 Oct 2009 14:23:12 -0700 (PDT)
Received: from mxout-08.mxes.net (mxout-08.mxes.net [216.86.168.183]) by core3.amsl.com (Postfix) with ESMTP id CFC633A68B1 for <hybi@ietf.org>; Tue, 27 Oct 2009 14:23:11 -0700 (PDT)
Received: from chancetrain-lm.mnot.net (unknown [118.209.5.85]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 63E37509E1; Tue, 27 Oct 2009 17:23:18 -0400 (EDT)
Mime-Version: 1.0 (Apple Message framework v1076)
Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes
From: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <Pine.LNX.4.62.0910270912040.9145@hixie.dreamhostps.com>
Date: Wed, 28 Oct 2009 08:23:15 +1100
Content-Transfer-Encoding: 7bit
Message-Id: <FAEBA8A9-8142-4180-8026-1EDA8C408919@mnot.net>
References: <FDC38D4B-AB64-4F6B-B569-81D7A56DEC8D@mnot.net> <Pine.LNX.4.62.0910270912040.9145@hixie.dreamhostps.com>
To: Ian Hickson <ian@hixie.ch>
X-Mailer: Apple Mail (2.1076)
Cc: hybi@ietf.org
Subject: Re: [hybi] More feedback on WebSockets
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: Tue, 27 Oct 2009 21:23:13 -0000

On 27/10/2009, at 8:37 PM, Ian Hickson wrote:
>>
>> 2) The handshake protocol looks like HTTP, but is not (e.g., it's  
>> case-
>> sensitive and whitespace-sensitive). However, you define the default
>> ports for WS and WSS to be port 80 and 443, respectively.
>>
>> These ports are reserved for HTTP, at least initially; while you  
>> can use
>> HTTP to upgrade to a different protocol, defining a
>> HTTP-like-but-not-really-HTTP handshake protocol to run over them
>> initially conflicts with the designated use of the port.
>
> IANA told me to use ports 80 and 443 for WebSocket. See IANA ticket
> #257455. (I had originally requested new ports, ideally 81 and 815.)
>
> I disagree that the current handshake isn't like HTTP enough, though.

I didn't say it isn't like it (in fact, I specifically said it is); I  
said that it isn't HTTP.

Just as Starbucks is like coffee, but not; or a vehicle that only  
allows you to turn the steering wheel left is like a car, but not.  
There are many more examples I could produce, but decency suggests I  
stop.

You've effectively profiled the syntactic conventions of HTTP.  
Implementations that speak HTTP -- whether profiled or not -- should  
be able to do so confidently on the port allocated to it.


> The
> request is fully HTTP-compliant. What value would there be in  
> relaxing the
> rules on what WebSocket clients should send in the request? I don't
> understand the real-world case you are concerned about.

My concern is with the precedent it will set.

As far as real-world use cases, I think that your handshake has a  
significant chance of producing false positives with deployed systems;  
many so-called "transparent" (interception) proxies often take great  
pains to stay hidden, so that while the client and server will think  
they have an operative WebSocket connection, as soon as they try to do  
any bi-directional (i.e., not request/response) communication, it will  
fail in a non-obvious, slow way (e.g., hanging) that's hard to recover  
from.

You'd be better off using a handshake that looks as little like HTTP  
as possible, so as to fail more reliably and quickly. Or, preferably,  
another port.


>> 3) In section 1.6 (Establishing a Connection), you say
>>
>>> On the face of it, the simplest method would seem to be to use port
>>>   80 to get a direct connection to a Web Socket server.  Port 80
>>>   traffic, however, will often be intercepted by HTTP proxies, which
>>>   can lead to the connection failing to be established.
>>
>> Given this, is it a good idea for the default port for the WS  
>> scheme to
>> be port 80? Why not use a separate port and fall back to 443 with  
>> null
>> encryption, for example?
>
> That's what the spec used to require, but IANA requested that I use  
> ports
> 80 and 443 directly.

What was the reasoning behind this request? The ticket number you  
refer to isn't useful to those not involved.


> and how do I indicate that multiple subprotocols are in use on one
>> connection?
>
> Only one protocol can be in use per connection. If your protocol is  
> just
> another layer below the final application-level protocol, then your
> protocol would have its own equivalent mechanism.

Hmm. This seems like punting the problem to yet another layer.  
However, I do agree that offering a complete solution in WS is  
difficult at best.


--
Mark Nottingham     http://www.mnot.net/


From ian@hixie.ch  Tue Oct 27 14:23:42 2009
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 2B7FD3A6781 for <hybi@core3.amsl.com>; Tue, 27 Oct 2009 14:23:42 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.564
X-Spam-Level: 
X-Spam-Status: No, score=-2.564 tagged_above=-999 required=5 tests=[AWL=0.035,  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 PWimROjQBLGC for <hybi@core3.amsl.com>; Tue, 27 Oct 2009 14:23:40 -0700 (PDT)
Received: from looneymail-a2.g.dreamhost.com (caibbdcaaaaf.dreamhost.com [208.113.200.5]) by core3.amsl.com (Postfix) with ESMTP id 3CB873A688C for <hybi@ietf.org>; Tue, 27 Oct 2009 14:23:38 -0700 (PDT)
Received: from hixie.dreamhostps.com (hixie.dreamhost.com [208.113.210.27]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by looneymail-a2.g.dreamhost.com (Postfix) with ESMTP id 1F6D816D3F7; Tue, 27 Oct 2009 14:23:53 -0700 (PDT)
Date: Tue, 27 Oct 2009 21:23:59 +0000 (UTC)
From: Ian Hickson <ian@hixie.ch>
To: Greg Wilkins <gregw@webtide.com>
In-Reply-To: <4AE76221.30908@webtide.com>
Message-ID: <Pine.LNX.4.62.0910272123060.25608@hixie.dreamhostps.com>
References: <FDC38D4B-AB64-4F6B-B569-81D7A56DEC8D@mnot.net> <Pine.LNX.4.62.0910270912040.9145@hixie.dreamhostps.com> <4AE6C7D1.30003@webtide.com> <Pine.LNX.4.62.0910271834480.25616@hixie.dreamhostps.com> <4AE75D12.4060302@webtide.com> <Pine.LNX.4.62.0910272055390.25608@hixie.dreamhostps.com> <4AE75FEA.3090001@webtide.com> <Pine.LNX.4.62.0910272104140.25608@hixie.dreamhostps.com> <4AE76221.30908@webtide.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] More feedback on WebSockets
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: Tue, 27 Oct 2009 21:23:42 -0000

On Wed, 28 Oct 2009, Greg Wilkins wrote:
> Ian Hickson wrote:
> > On Wed, 28 Oct 2009, Greg Wilkins wrote:
> >>> For the packet-forwarding ones, are we talking about inserting a 
> >>> header on incoming connections (client to server) or outgoing 
> >>> responses (server back to client)?
> >> Again - there are a huge number of variations.
> >>
> >> But inserting X-forwarded-for headers on requests and Via headers on 
> >> responses is common. So is setting cookies on responses so that 
> >> subsequent connections can be balanced the same. Also SSL offload 
> >> will want to set certificate details in the request header.
> > 
> > It sounds like there are some intermediaries that are harmless and 
> > would work fine, and others that are harmful and which WebSocket would 
> > correctly detect and prevent connections through. If someone wants to 
> > deploy a WebSocket server behind the latter, they'll quickly discover 
> > the problem, so it doesn't seem like it'd be a barrier to adoption. 
> > It's client-side intermediaries that are the main concern (and for 
> > which TLS-based WebSocket is the most obvious solution in most cases).
> 
> But they need to be able to set cookies and headers in order to work.
> 
> Setting these on the upgrade request and response should be perfectly 
> possible and HTTP legal.  It would allow existing intermediaries to 
> communicate important information to client (which node they are stuck 
> to) and to server (ssl and original client details).
> 
> These are just a few of many examples of why allowing an intermediary to 
> add meta data is an important part of a web protocol.
> 
> WS does not allow this because it is trying to do an end-run around 
> intermediaries rather then trying to sensibly work with them.

WebSocket doesn't preclude WebSocket-aware intermediaries inserting data 
into the stream. It will have no effect, though; a WebSocket client isn't 
going to change any cookies or change behaviour based on headers set on 
the handshake.

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

From gregw@webtide.com  Tue Oct 27 14:28:57 2009
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 183C43A69AA for <hybi@core3.amsl.com>; Tue, 27 Oct 2009 14:28:57 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.321
X-Spam-Level: 
X-Spam-Status: No, score=-2.321 tagged_above=-999 required=5 tests=[AWL=0.278,  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 vtcvBFSC9gAx for <hybi@core3.amsl.com>; Tue, 27 Oct 2009 14:28:56 -0700 (PDT)
Received: from mail-bw0-f219.google.com (mail-bw0-f219.google.com [209.85.218.219]) by core3.amsl.com (Postfix) with ESMTP id 2C4AB3A67AA for <hybi@ietf.org>; Tue, 27 Oct 2009 14:28:56 -0700 (PDT)
Received: by bwz19 with SMTP id 19so199807bwz.28 for <hybi@ietf.org>; Tue, 27 Oct 2009 14:29:07 -0700 (PDT)
Received: by 10.204.154.131 with SMTP id o3mr9391969bkw.66.1256678947754; Tue, 27 Oct 2009 14:29:07 -0700 (PDT)
Received: from ?10.10.1.9? (60-242-119-126.tpgi.com.au [60.242.119.126]) by mx.google.com with ESMTPS id 15sm130652bwz.8.2009.10.27.14.29.04 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 27 Oct 2009 14:29:06 -0700 (PDT)
Message-ID: <4AE7661B.1080109@webtide.com>
Date: Wed, 28 Oct 2009 08:28:59 +1100
From: Greg Wilkins <gregw@webtide.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090817)
MIME-Version: 1.0
To: "hybi@ietf.org" <hybi@ietf.org>
References: <4ADEC7A0.7040307@ericsson.com> <4AE4CCBB.10001@webtide.com>	<Pine.LNX.4.62.0910260006420.9145@hixie.dreamhostps.com>	<4AE553A0.9030208@ericsson.com>	<73F5E810-F40F-42B8-81A9-4AD1306E360F@apple.com>	<4AE57B62.4030209@webtide.com>	<Pine.LNX.4.62.0910270011060.13521@hixie.dreamhostps.com>	<4AE6FC61.3070201@gmx.de> <op.u2gslzrk64w2qv@anne-van-kesterens-macbook.local>
In-Reply-To: <op.u2gslzrk64w2qv@anne-van-kesterens-macbook.local>
X-Enigmail-Version: 0.95.7
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Subject: Re: [hybi] updated Charter proposal (WebSocket)
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: Tue, 27 Oct 2009 21:28:57 -0000

Anne van Kesteren wrote:

> It seems representatives of all the "browser companies" are subscribed
> to this list. My understanding from joining the HTTP WG was that this is
> all it takes to be a member.


What about representation from network and server side companies?

Is there anybody here from Cisco, Citrix, Barracuda, F5,
apache, websphere, weblogic, resin, light streamer ?

Anybody have contacts with such companies who can reach
out and invite them to participate?


regards





From Martin.Thomson@andrew.com  Tue Oct 27 15:11:31 2009
Return-Path: <Martin.Thomson@andrew.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 967033A6933 for <hybi@core3.amsl.com>; Tue, 27 Oct 2009 15:11:31 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.559
X-Spam-Level: 
X-Spam-Status: No, score=-2.559 tagged_above=-999 required=5 tests=[AWL=0.040,  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 0Se0tYjo06A3 for <hybi@core3.amsl.com>; Tue, 27 Oct 2009 15:11:30 -0700 (PDT)
Received: from csmailgw1.commscope.com (csmailgw1.commscope.com [198.135.207.243]) by core3.amsl.com (Postfix) with ESMTP id 94BDA3A6A4A for <hybi@ietf.org>; Tue, 27 Oct 2009 15:11:30 -0700 (PDT)
Received: from [10.86.20.103] ([10.86.20.103]:5195 "EHLO ACDCE7HC2.commscope.com") by csmailgw1.commscope.com with ESMTP id S4830791AbZJ0WLo (ORCPT <rfc822;hybi@ietf.org>); Tue, 27 Oct 2009 17:11:44 -0500
Received: from SISPE7HC1.commscope.com (10.97.4.12) by ACDCE7HC2.commscope.com (10.86.20.103) with Microsoft SMTP Server (TLS) id 8.1.393.1; Tue, 27 Oct 2009 17:11:44 -0500
Received: from SISPE7MB1.commscope.com ([fe80::9d82:a492:85e3:a293]) by SISPE7HC1.commscope.com ([fe80::8a9:4724:f6bb:3cdf%10]) with mapi; Wed, 28 Oct 2009 06:11:41 +0800
From: "Thomson, Martin" <Martin.Thomson@andrew.com>
To: Ian Hickson <ian@hixie.ch>
Date: Wed, 28 Oct 2009 06:12:07 +0800
Thread-Topic: [hybi] WS framing alternative
Thread-Index: AcpW5Y/fI6aOPoUNSDueThJsw/4tygAabRYg
Message-ID: <8B0A9FCBB9832F43971E38010638454F0F25151E@SISPE7MB1.commscope.com>
References: <8B0A9FCBB9832F43971E38010638454F0F1EA72C@SISPE7MB1.commscope.com> <Pine.LNX.4.62.0910270903080.9145@hixie.dreamhostps.com>
In-Reply-To: <Pine.LNX.4.62.0910270903080.9145@hixie.dreamhostps.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-BCN: Meridius 1000 Version 3.4 on csmailgw1.commscope.com
X-BCN-Sender: Martin.Thomson@andrew.com
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] WS framing alternative
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: Tue, 27 Oct 2009 22:11:31 -0000

SGkgSWFuLA0KDQo+IC0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQo+IEZyb206IElhbiBIaWNr
c29uIFttYWlsdG86aWFuQGhpeGllLmNoXQ0KPiBTZW50OiBUdWVzZGF5LCAyNyBPY3RvYmVyIDIw
MDkgODoxMiBQTQ0KPiBUbzogVGhvbXNvbiwgTWFydGluDQo+IENjOiBoeWJpQGlldGYub3JnDQo+
IFN1YmplY3Q6IFJlOiBbaHliaV0gV1MgZnJhbWluZyBhbHRlcm5hdGl2ZQ0KPiANCj4gT24gVHVl
LCAyNyBPY3QgMjAwOSwgVGhvbXNvbiwgTWFydGluIHdyb3RlOg0KPiA+DQo+ID4gV1MgaXMgYmlu
YXJ5Lg0KPiANCj4gV1MgaXMgcmVhbGx5IGEgdGV4dC9iaW5hcnkgaHlicmlkLiANCg0KLi4ud2hp
Y2ggaXMgZXZlbiB3b3JzZS4gIEEgaHlicmlkIGxvc2VzIHRoZSBiZW5lZml0cyBvZiBlaXRoZXIg
YXBwcm9hY2guICBCdXQgSSB0ZW5kIHRvIHRoaW5rIG9mIFdTIGFzIGEgcHVyZWx5IGJpbmFyeSBw
cm90b2NvbCB0aGF0IG9jY2FzaW9uYWxseSBsb29rcyBsaWtlIHRleHQgKHRoZSBoZWFkZXIpIGFu
ZCBjYW4gb25seSBoYXZlIHRleHR1YWwgcGF5bG9hZHMgKGZyYW1lIGJvZGllcykuICBUaGF0J3Mg
Y29uc2lzdGVudCB3aXRoIGl0cyBkZXNjcmlwdGlvbi4NCg0KPiA+IFRoZXJlIHdvdWxkIGJlIGxp
dHRsZSBjb3N0IGluIGEgbWlub3IgY2hhbmdlIHRoYXQgd291bGQgYWxzbyBlbmFibGUNCj4gdXNl
DQo+ID4gb2YgTUlNRS4NCj4NCj4gVGhpcyB3b3VsZCBoYXZlIHNvbWUgcHJldHR5IG1ham9yIGNv
c3RzOg0KPiANCj4gLSBJdCByZXF1aXJlcyBsZW5ndGggZGVsaW1pdGluZyBmb3IgdGV4dCBmcmFt
ZXMsIHdoaWNoIGlzIG1vcmUNCj4gY29tcGxpY2F0ZWQNCj4gdG8gaW1wbGVtZW50IChpdCdzIG5v
bi10cml2aWFsIHRvIHRlbGwgdGhlIGRpZmZlcmVuY2UgYmV0d2Vlbg0KPiBjaGFyYWN0ZXJzDQo+
IGFuZCBieXRlcykuDQoNCkkgYWdyZWUgd2l0aCBHcmVnIG9uIHRoaXMgcG9pbnQuICBTZW50aW5l
bC1iYXNlZCBkZWxpbWl0aW5nIGhhcyBpdHMgb3duIGNvbXBsZXhpdHkgY29zdHMuICBFaXRoZXIg
cG9zaXRpb24gaGFzIGJlZW4gcHJlc2VudGVkIGluIHRoZSByaGV0b3JpYyBhcyBiZXR0ZXIgb3Ig
d29yc2UgZGVwZW5kaW5nIG9uIHdoYXQgeW91IHZhbHVlIG1vc3QuDQoNCj4gLSBJdCByZXF1aXJl
cyBwYXJzaW5nIHVzaW5nIGEgcHJlc2l6ZWQgYnVmZmVyIGZvciB2YXJpYWJsZS1lbmNvZGluZw0K
PiB0ZXh0LA0KPiB3aGljaCByaXNrcyBjaGFyYWN0ZXIvYnl0ZSBtaXNtYXRjaGVzIGFuZCB0aHVz
IGJ1ZmZlciBvdmVycnVucy4NCg0KVGhhdCdzIHVudHJ1ZS4gIA0KDQpPciB5b3UndmUgbWFkZSBh
biBhc3N1bXB0aW9uIGFib3V0IG15IHByb3Bvc2FsIHRoYXQgSSBuZXZlciBzdGF0ZWQ6IGkuZS4g
dGhhdCBsZW5ndGggaXMgc3RhdGVkIGluIGNoYXJhY3RlcnMuICBXaGljaCB3b3VsZCwgb2YgY291
cnNlLCBsZWFkIHRvIHRoZXNlIGNvbmNsdXNpb25zLiAgTXkgaW50ZW50ICh3aGljaCBJIGluY29y
cmVjdGx5IGFzc3VtZWQgd291bGQgYmUgY2xlYXIpIHdhcyB0aGF0IGxlbmd0aCB3YXMgb2N0ZXRz
LiAgSXQgc2VlbXMgb2J2aW91cyB0byBtZSAtIGNoYXJhY3RlciBlbmNvZGluZyBjaGFuZ2VzIHdp
dGggZGlmZmVyZW50IGNvbnRlbnQgdHlwZXMsIHRodXMgeW91IGNhbid0IHVzZSBjaGFyYWN0ZXIt
YmFzZWQgZW5jb2RpbmdzLg0KDQo+IC0gSXQgYWxsb3dzIGFyYml0cmFyeSBleHRlbnNpb25zLCB3
aGljaCBpbnRyb2R1Y2VzIGFuIGltcGxlbWVudGF0aW9uLA0KPiBRQSwNCj4gZG9jdW1lbnRhdGlv
biwgYW5kIHR1dG9yaWFsIGNvc3Qgd2l0aG91dCBwcm92aWRpbmcgYW55IG5ldyBmZWF0dXJlcyBh
dA0KPiB0aGUNCj4gQVBJIGxldmVsLg0KDQpZZXMsIGFyYml0cmFyeSBleHRlbnNpb25zIGhhdmUg
YSBjb3N0LCBidXQgSSBiZWxpZXZlIHRoYXQgd2UndmUgYmVuZWZpdHRlZCBmcm9tIG90aGVycyBo
YXZpbmcgdGhlIHdoZXJld2l0aGFsIHRvIHBheSB0aGF0IHByaWNlIGJlZm9yZS4NCg0KQmVzaWRl
cywgdGhlcmUgYXJlIHR3byBtaXRpZ2F0aW5nIGZhY3RvcnM6DQoNCiAtIFdoZW4gaW50ZXJvcGVy
YXRpbmcgYmV0d2VlbiB2ZW5kb3JzIHlvdSBjYW5ub3QgZ3VhcmFudGVlIHRoYXQgdGhlIG9wcG9z
aXRlIGVuZCBzdXBwb3J0cyBhbiBleHRlbnNpb24sIHRoZXJlZm9yZSB5b3UgaGF2ZSB0byBiZSBw
cmVwYXJlZCBmb3IgdGhlbSB0byBpZ25vcmUgaXQuICBUaGVyZWZvcmUsIHRoZXJlIGlzIG5vIHJl
YXNvbiB0aGF0IGFuIGltcGxlbWVudGF0aW9uIGNvdWxkbid0IGRvIGFzIEkgc3VnZ2VzdGVkIGFu
ZCBpZ25vcmUgQUxMIGV4dGVuc2lvbnMuDQoNCiAtIFdoZW4gbm90IGludGVyb3BlcmF0aW5nICh0
aGUgc3RhbmRhcmQgd2ViIHNvY2tldHMgdXNlIGNhc2Ugb2YgSlMgdGFsa2luZyB0byB0aGUgc2Ft
ZSBzZXJ2ZXIpLCBpZiB0aGVyZSdzIG5vIGJlbmVmaXQgZ2FpbmVkIGZyb20gaGF2aW5nIGV4dGVu
c2lvbnMsIHRoZW4gdGhleSBjYW4gYWdhaW4gYmUgaWdub3JlZC4NCg0KPiAtIEl0IG1ha2VzIGl0
IHBvc3NpYmxlIGZvciB0aGUgaGVhZGVycyB0byBoYXZlIGVycm9ycyBpbiB0aGVtLCB3aGljaA0K
PiByZXF1aXJlcyB1cyB0byBkZWZpbmUgaG93IHRvIGhhbmRsZSBlcnJvcnMsIGFuZCByZXF1aXJl
cyBzaWduaWZpY2FudGx5DQo+IG1vcmUgY29kZSB0byBpbXBsZW1lbnQgdGhlIHBhcnNpbmcuDQoN
Ck9ubHkgaWYgeW91IHJlcXVpcmUgc3ludGF4IGNoZWNraW5nIG9mIHRoZSBoZWFkZXJzLiAgSWYg
eW91IGFsbG93IGZvciBzaW1wbGUgaWdub3Jpbmcgb2YgaGVhZGVycywgdGhlbiBpdCdzIHN0cmFp
Z2h0IGJhY2sgdG8gdGhlIG9yaWdpbmFsLg0KDQo+IEkgZGlzYWdyZWUgdGhhdCBpdCdzIG1pbmlt
YWwuDQoNCkV4Y2VsbGVudC4gIFRoZW4gd2UgYWxsIGRpc2FncmVlIDspDQoNCj4gPiBSYXRoZXIg
dGhhbiBzZW5kaW5nOg0KPiA+DQo+ID4gICBbMHg4MCwgMHgwZF1IZWxsbywgV29ybGQhDQo+IA0K
PiBDdXJyZW50bHkgeW91IHdvdWxkIHNlbmQgYSB0ZXh0IGZyYW1lIHRodXM6DQo+IA0KPiAgICBb
MHgwMF0gSGVsbG8sIFdvcmxkISBbMHhGRl0NCg0KU3VyZS4gIFNlZSBiZWxvdy4NCg0KPiA+ICAg
NCsNCj4gPg0KPiA+ICAgSGVsbA0KPiA+ICAgOQ0KPiA+DQo+ID4gICBvLCBXb3JsZCENCj4gDQo+
IFRoYXQgc2VlbXMgbGlrZSBvcmRlcnMgb2YgbWFnbml0dWRlIG1vcmUgY29tcGxleGl0eSB0aGFu
IG5lY2Vzc2FyeSwNCj4gZXNwZWNpYWxseSBnaXZlbiB0aGF0IHRoZSBvbmx5IHRhbmdpYmxlIGJl
bmVmaXQgaXMgYSBtb2RpY3VtIG9mDQo+IGltcHJvdmVtZW50IGluIGVhc2Ugb2YgZGVidWdnaW5n
Lg0KDQpUaGF0J3Mgd2h5IEknbSBub3QgcGFydGljdWxhcmx5IHdlZCB0byB0aGUgaWRlYS4gIEp1
c3QgbGlrZSBJJ20gbm90IHNvbGQgb24gdGhlIGJlbmVmaXRzIG9mIGJlaW5nIGFibGUgdG8gc3Rh
cnQgc2VuZGluZyBkYXRhIHdpdGhvdXQga25vd2luZyBpdHMgbGVuZ3RoIGJlZm9yZWhhbmQuICBU
aGF0J3MgY29tcGxleGl0eSB3aXRob3V0IGJlbmVmaXQgYXMgZmFyIGFzIEkgY2FuIHRlbGwuDQoN
Ckl0J3MgaGFyZGx5IG9yZGVycyBvZiBtYWduaXR1ZGUgb2YgY29tcGxleGl0eSwgdGhvdWdoLiAg
RG9uJ3Qgd2VhciBvdXQgeW91ciBzdXBlcmxhdGl2ZXMuDQoNCi0tTWFydGluDQoNCg==

From julian.reschke@gmx.de  Wed Oct 28 00:20:12 2009
Return-Path: <julian.reschke@gmx.de>
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 0A4273A6870 for <hybi@core3.amsl.com>; Wed, 28 Oct 2009 00:20:12 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.129
X-Spam-Level: 
X-Spam-Status: No, score=-4.129 tagged_above=-999 required=5 tests=[AWL=-1.530, 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 ka1HWoQPUwW6 for <hybi@core3.amsl.com>; Wed, 28 Oct 2009 00:20:11 -0700 (PDT)
Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by core3.amsl.com (Postfix) with SMTP id 9BF9E3A67A5 for <hybi@ietf.org>; Wed, 28 Oct 2009 00:20:10 -0700 (PDT)
Received: (qmail invoked by alias); 28 Oct 2009 07:20:22 -0000
Received: from p508FCF7E.dip.t-dialin.net (EHLO [192.168.178.33]) [80.143.207.126] by mail.gmx.net (mp068) with SMTP; 28 Oct 2009 08:20:22 +0100
X-Authenticated: #1915285
X-Provags-ID: V01U2FsdGVkX1+l3tstjQClelGb67Rlh9UkdHXtxzPPc3Rkmbnpcz YAinm3Mq3ZRR8h
Message-ID: <4AE7F0AE.1000102@gmx.de>
Date: Wed, 28 Oct 2009 08:20:14 +0100
From: Julian Reschke <julian.reschke@gmx.de>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.0.4) Gecko/20060516 Thunderbird/1.5.0.4 Mnenhy/0.7.4.666
MIME-Version: 1.0
To: "hybi@ietf.org" <hybi@ietf.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Y-GMX-Trusted: 0
X-FuHaFi: 0.68
Subject: [hybi] web socket protocol in "last call"?
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: Wed, 28 Oct 2009 07:20:12 -0000

Citing <http://blog.whatwg.org/html5-at-last-call>:

"There's also a version of the spec called Web Applications 1.0 (for 
nostalgic reasons) that has all of the above as well as a number of 
other specs, namely Web Storage, Web Database, Server-sent Events, and 
the Web Sockets API and protocol, all together in one document. With the 
exception of the Web Database spec, they're all now in last call at the 
WHATWG."

Ian, could you please explain what you mean by "last call" in this context?

BR, Julian

From ian@hixie.ch  Wed Oct 28 01:11:53 2009
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 8EFB93A6895 for <hybi@core3.amsl.com>; Wed, 28 Oct 2009 01:11:53 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.565
X-Spam-Level: 
X-Spam-Status: No, score=-2.565 tagged_above=-999 required=5 tests=[AWL=0.034,  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 jz8evwlUqSFE for <hybi@core3.amsl.com>; Wed, 28 Oct 2009 01:11:52 -0700 (PDT)
Received: from looneymail-a2.g.dreamhost.com (caibbdcaaaaf.dreamhost.com [208.113.200.5]) by core3.amsl.com (Postfix) with ESMTP id 344053A67C1 for <hybi@ietf.org>; Wed, 28 Oct 2009 01:11:52 -0700 (PDT)
Received: from hixie.dreamhostps.com (hixie.dreamhost.com [208.113.210.27]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by looneymail-a2.g.dreamhost.com (Postfix) with ESMTP id F3C7F16D407; Wed, 28 Oct 2009 01:12:05 -0700 (PDT)
Date: Wed, 28 Oct 2009 08:12:17 +0000 (UTC)
From: Ian Hickson <ian@hixie.ch>
To: Julian Reschke <julian.reschke@gmx.de>
In-Reply-To: <4AE7F0AE.1000102@gmx.de>
Message-ID: <Pine.LNX.4.62.0910280740540.25608@hixie.dreamhostps.com>
References: <4AE7F0AE.1000102@gmx.de>
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" <hybi@ietf.org>
Subject: Re: [hybi] web socket protocol in "last call"?
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: Wed, 28 Oct 2009 08:11:53 -0000

On Wed, 28 Oct 2009, Julian Reschke wrote:
>
> Citing <http://blog.whatwg.org/html5-at-last-call>:
> 
> "There's also a version of the spec called Web Applications 1.0 (for 
> nostalgic reasons) that has all of the above as well as a number of 
> other specs, namely Web Storage, Web Database, Server-sent Events, and 
> the Web Sockets API and protocol, all together in one document. With the 
> exception of the Web Database spec, they're all now in last call at the 
> WHATWG."
> 
> Ian, could you please explain what you mean by "last call" in this 
> context?

We're starting to see implementations of the WebSocket protocol, so I 
wanted to encourage comments from the wider Web authoring community before 
it's too late (i.e. before we are frozen by shipped implementations). In 
the conventions we're using at the WHATWG (based on the W3C terminology), 
the stability of spec sections is goes through First Draft, then Working 
Draft, then Last Call, then Candidate Recommendation. (This corresponds 
roughly to the formal WHATWG stages "Working Draft", "Call For Comments", 
and "Call For Implementations" as described in the WHATWG charter.) You 
can see the state of each section in the WHATWG draft by looking at the 
little boxes in the right hand margin.

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

From julian.reschke@gmx.de  Wed Oct 28 01:24:32 2009
Return-Path: <julian.reschke@gmx.de>
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 5134D3A68E2 for <hybi@core3.amsl.com>; Wed, 28 Oct 2009 01:24:32 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.002
X-Spam-Level: 
X-Spam-Status: No, score=-4.002 tagged_above=-999 required=5 tests=[AWL=-1.403, 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 EIn1si-Csm7j for <hybi@core3.amsl.com>; Wed, 28 Oct 2009 01:24:31 -0700 (PDT)
Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by core3.amsl.com (Postfix) with SMTP id DFB243A68CD for <hybi@ietf.org>; Wed, 28 Oct 2009 01:24:30 -0700 (PDT)
Received: (qmail invoked by alias); 28 Oct 2009 08:24:42 -0000
Received: from p508FCF7E.dip.t-dialin.net (EHLO [192.168.178.33]) [80.143.207.126] by mail.gmx.net (mp019) with SMTP; 28 Oct 2009 09:24:42 +0100
X-Authenticated: #1915285
X-Provags-ID: V01U2FsdGVkX1+G3jpPsVmG4ge8u4Gzwf1IrhrOchB45Yh1qguPz0 FtAbhIOW5Gz6NK
Message-ID: <4AE7FFC4.8050405@gmx.de>
Date: Wed, 28 Oct 2009 09:24:36 +0100
From: Julian Reschke <julian.reschke@gmx.de>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.0.4) Gecko/20060516 Thunderbird/1.5.0.4 Mnenhy/0.7.4.666
MIME-Version: 1.0
To: Ian Hickson <ian@hixie.ch>
References: <4AE7F0AE.1000102@gmx.de> <Pine.LNX.4.62.0910280740540.25608@hixie.dreamhostps.com>
In-Reply-To: <Pine.LNX.4.62.0910280740540.25608@hixie.dreamhostps.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Y-GMX-Trusted: 0
X-FuHaFi: 0.58
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] web socket protocol in "last call"?
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: Wed, 28 Oct 2009 08:24:32 -0000

Ian Hickson wrote:
> On Wed, 28 Oct 2009, Julian Reschke wrote:
>> Citing <http://blog.whatwg.org/html5-at-last-call>:
>>
>> "There's also a version of the spec called Web Applications 1.0 (for 
>> nostalgic reasons) that has all of the above as well as a number of 
>> other specs, namely Web Storage, Web Database, Server-sent Events, and 
>> the Web Sockets API and protocol, all together in one document. With the 
>> exception of the Web Database spec, they're all now in last call at the 
>> WHATWG."
>>
>> Ian, could you please explain what you mean by "last call" in this 
>> context?
> 
> We're starting to see implementations of the WebSocket protocol, so I 
> wanted to encourage comments from the wider Web authoring community before 
> it's too late (i.e. before we are frozen by shipped implementations). In 
> the conventions we're using at the WHATWG (based on the W3C terminology), 
> the stability of spec sections is goes through First Draft, then Working 
> Draft, then Last Call, then Candidate Recommendation. (This corresponds 
> roughly to the formal WHATWG stages "Working Draft", "Call For Comments", 
> and "Call For Implementations" as described in the WHATWG charter.) You 
> can see the state of each section in the WHATWG draft by looking at the 
> little boxes in the right hand margin.
> ...

"Freezing" the protocol by having implementations being shipped *now* 
seems to be a problem if the protocol is supposed to become a work item 
of a future IETF WG.

BR, Julian

From salvatore.loreto@ericsson.com  Wed Oct 28 01:53:53 2009
Return-Path: <salvatore.loreto@ericsson.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 1DDD53A692F for <hybi@core3.amsl.com>; Wed, 28 Oct 2009 01:53:53 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.956
X-Spam-Level: 
X-Spam-Status: No, score=-5.956 tagged_above=-999 required=5 tests=[AWL=0.293,  BAYES_00=-2.599, HELO_EQ_SE=0.35, RCVD_IN_DNSWL_MED=-4]
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 d84C4rotQF6K for <hybi@core3.amsl.com>; Wed, 28 Oct 2009 01:53:52 -0700 (PDT)
Received: from mailgw4.ericsson.se (mailgw4.ericsson.se [193.180.251.62]) by core3.amsl.com (Postfix) with ESMTP id 9322C3A67D3 for <hybi@ietf.org>; Wed, 28 Oct 2009 01:53:51 -0700 (PDT)
X-AuditID: c1b4fb3e-b7bf6ae000005dda-af-4ae806ac2052
Received: from esealmw129.eemea.ericsson.se (Unknown_Domain [153.88.253.124]) by mailgw4.ericsson.se (Symantec Mail Security) with SMTP id 51.B0.24026.CA608EA4; Wed, 28 Oct 2009 09:54:05 +0100 (CET)
Received: from esealmw127.eemea.ericsson.se ([153.88.254.171]) by esealmw129.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.3959);  Wed, 28 Oct 2009 09:54:04 +0100
Received: from mail.lmf.ericsson.se ([131.160.11.50]) by esealmw127.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.3959);  Wed, 28 Oct 2009 09:54:04 +0100
Received: from nomadiclab.lmf.ericsson.se (nomadiclab.lmf.ericsson.se [131.160.33.3]) by mail.lmf.ericsson.se (Postfix) with ESMTP id 1CD182523; Wed, 28 Oct 2009 10:54:04 +0200 (EET)
Received: from nomadiclab.lmf.ericsson.se (localhost [127.0.0.1]) by nomadiclab.lmf.ericsson.se (Postfix) with ESMTP id DA6BB21A22; Wed, 28 Oct 2009 10:54:03 +0200 (EET)
Received: from localhost.localdomain (localhost [127.0.0.1]) by nomadiclab.lmf.ericsson.se (Postfix) with ESMTP id 1AD0421A1F; Wed, 28 Oct 2009 10:54:02 +0200 (EET)
Message-ID: <4AE806AA.60901@ericsson.com>
Date: Wed, 28 Oct 2009 10:54:02 +0200
From: Salvatore Loreto <salvatore.loreto@ericsson.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090825)
MIME-Version: 1.0
To: Julian Reschke <julian.reschke@gmx.de>
References: <4AE7F0AE.1000102@gmx.de>	<Pine.LNX.4.62.0910280740540.25608@hixie.dreamhostps.com> <4AE7FFC4.8050405@gmx.de>
In-Reply-To: <4AE7FFC4.8050405@gmx.de>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: ClamAV using ClamSMTP
X-OriginalArrivalTime: 28 Oct 2009 08:54:04.0415 (UTC) FILETIME=[3389F0F0:01CA57AC]
X-Brightmail-Tracker: AAAAAA==
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] web socket protocol in "last call"?
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: Wed, 28 Oct 2009 08:53:53 -0000

Hi Ian,

the  WebSocket protocol is already an IETF draft so
It is not fair to start a last call in a different community to freeze 
the protocol without announce it
also in the IETF mailing list and ask if IETF people agree on freezing 
the protocol.
As WebSocket protocol is an Internet draft it should follow the IETF rules.

Moreover I have seen a lot of mail exchanges raising possible problems 
in the current version of the WebSocket draft
that you should consider and address in the draft or provide to the IETF 
community good technical reasons why you choose to not consider them

BR
Sal


Julian Reschke wrote:
> Ian Hickson wrote:
>> On Wed, 28 Oct 2009, Julian Reschke wrote:
>>> Citing <http://blog.whatwg.org/html5-at-last-call>:
>>>
>>> "There's also a version of the spec called Web Applications 1.0 (for 
>>> nostalgic reasons) that has all of the above as well as a number of 
>>> other specs, namely Web Storage, Web Database, Server-sent Events, 
>>> and the Web Sockets API and protocol, all together in one document. 
>>> With the exception of the Web Database spec, they're all now in last 
>>> call at the WHATWG."
>>>
>>> Ian, could you please explain what you mean by "last call" in this 
>>> context?
>>
>> We're starting to see implementations of the WebSocket protocol, so I 
>> wanted to encourage comments from the wider Web authoring community 
>> before it's too late (i.e. before we are frozen by shipped 
>> implementations). In the conventions we're using at the WHATWG (based 
>> on the W3C terminology), the stability of spec sections is goes 
>> through First Draft, then Working Draft, then Last Call, then 
>> Candidate Recommendation. (This corresponds roughly to the formal 
>> WHATWG stages "Working Draft", "Call For Comments", and "Call For 
>> Implementations" as described in the WHATWG charter.) You can see the 
>> state of each section in the WHATWG draft by looking at the little 
>> boxes in the right hand margin.
>> ...
>
> "Freezing" the protocol by having implementations being shipped *now* 
> seems to be a problem if the protocol is supposed to become a work 
> item of a future IETF WG.
>
> BR, Julian
> _______________________________________________
> hybi mailing list
> hybi@ietf.org
> https://www.ietf.org/mailman/listinfo/hybi


From ian@hixie.ch  Wed Oct 28 02:56:04 2009
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 274D23A6897 for <hybi@core3.amsl.com>; Wed, 28 Oct 2009 02:56:04 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.566
X-Spam-Level: 
X-Spam-Status: No, score=-2.566 tagged_above=-999 required=5 tests=[AWL=0.033,  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 dc82OPYMB6Fa for <hybi@core3.amsl.com>; Wed, 28 Oct 2009 02:56:03 -0700 (PDT)
Received: from looneymail-a2.g.dreamhost.com (caibbdcaaaaf.dreamhost.com [208.113.200.5]) by core3.amsl.com (Postfix) with ESMTP id 544603A67D8 for <hybi@ietf.org>; Wed, 28 Oct 2009 02:56:03 -0700 (PDT)
Received: from hixie.dreamhostps.com (hixie.dreamhost.com [208.113.210.27]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by looneymail-a2.g.dreamhost.com (Postfix) with ESMTP id 1959216D3FD; Wed, 28 Oct 2009 02:56:17 -0700 (PDT)
Date: Wed, 28 Oct 2009 09:56:16 +0000 (UTC)
From: Ian Hickson <ian@hixie.ch>
To: Salvatore Loreto <salvatore.loreto@ericsson.com>
In-Reply-To: <4AE806AA.60901@ericsson.com>
Message-ID: <Pine.LNX.4.62.0910280938560.25608@hixie.dreamhostps.com>
References: <4AE7F0AE.1000102@gmx.de> <Pine.LNX.4.62.0910280740540.25608@hixie.dreamhostps.com> <4AE7FFC4.8050405@gmx.de> <4AE806AA.60901@ericsson.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" <hybi@ietf.org>
Subject: Re: [hybi] web socket protocol in "last call"?
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: Wed, 28 Oct 2009 09:56:04 -0000

On Wed, 28 Oct 2009, Salvatore Loreto wrote:
> 
> the  WebSocket protocol is already an IETF draft so
> It is not fair to start a last call in a different community to freeze the
> protocol without announce it
> also in the IETF mailing list and ask if IETF people agree on freezing the
> protocol.

I don't think anyone is suggesting intentionally freezing the protocol. 
The WHATWG announcement was just a call for comments.

It is the case, however, that once we have multiple interoperable 
implementations, regardless of where we stand with respect to the process 
here or at the WHATWG, the protocol will be essentially frozen on us, 
whether we like it or not. (Well, we could change it further, but then 
we'd just be ignored.) I expect this to happen in the coming months.


> As WebSocket protocol is an Internet draft it should follow the IETF rules.

It's also a WHATWG draft, so it should also follow the WHATWG rules. :-)


> Moreover I have seen a lot of mail exchanges raising possible problems in the
> current version of the WebSocket draft
> that you should consider and address in the draft or provide to the IETF
> community good technical reasons why you choose to not consider them

There's a couple of e-mails from earlier today that I haven't yet 
considered, but other than that, I've read and considered all the e-mails 
to this list, and provided detailed reasons for rejecting any proposals 
I've not adopted. If I missed one, please let me know.

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

From julian.reschke@gmx.de  Wed Oct 28 03:26:29 2009
Return-Path: <julian.reschke@gmx.de>
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 DE0643A688E for <hybi@core3.amsl.com>; Wed, 28 Oct 2009 03:26:29 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.718
X-Spam-Level: 
X-Spam-Status: No, score=-3.718 tagged_above=-999 required=5 tests=[AWL=-1.119, 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 rMY8F5x+sq6a for <hybi@core3.amsl.com>; Wed, 28 Oct 2009 03:26:29 -0700 (PDT)
Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by core3.amsl.com (Postfix) with SMTP id 964C83A6358 for <hybi@ietf.org>; Wed, 28 Oct 2009 03:26:28 -0700 (PDT)
Received: (qmail invoked by alias); 28 Oct 2009 10:26:42 -0000
Received: from mail.greenbytes.de (EHLO [192.168.1.117]) [217.91.35.233] by mail.gmx.net (mp066) with SMTP; 28 Oct 2009 11:26:42 +0100
X-Authenticated: #1915285
X-Provags-ID: V01U2FsdGVkX1/SmWA0KTHS7W/8uirC6VFXkOmoqpsdUmbmHKqQ5d REgZQPOuTCdTIt
Message-ID: <4AE81C5B.2040003@gmx.de>
Date: Wed, 28 Oct 2009 11:26:35 +0100
From: Julian Reschke <julian.reschke@gmx.de>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.0.4) Gecko/20060516 Thunderbird/1.5.0.4 Mnenhy/0.7.4.666
MIME-Version: 1.0
To: Ian Hickson <ian@hixie.ch>
References: <4AE7F0AE.1000102@gmx.de>	<Pine.LNX.4.62.0910280740540.25608@hixie.dreamhostps.com>	<4AE7FFC4.8050405@gmx.de> <4AE806AA.60901@ericsson.com> <Pine.LNX.4.62.0910280938560.25608@hixie.dreamhostps.com>
In-Reply-To: <Pine.LNX.4.62.0910280938560.25608@hixie.dreamhostps.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Y-GMX-Trusted: 0
X-FuHaFi: 0.64
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] web socket protocol in "last call"?
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: Wed, 28 Oct 2009 10:26:30 -0000

Ian Hickson wrote:
> On Wed, 28 Oct 2009, Salvatore Loreto wrote:
>> the  WebSocket protocol is already an IETF draft so
>> It is not fair to start a last call in a different community to freeze the
>> protocol without announce it
>> also in the IETF mailing list and ask if IETF people agree on freezing the
>> protocol.
> 
> I don't think anyone is suggesting intentionally freezing the protocol. 
> The WHATWG announcement was just a call for comments.

It appears it's not relevant whether it's intentionally or not.

> It is the case, however, that once we have multiple interoperable 
> implementations, regardless of where we stand with respect to the process 
> here or at the WHATWG, the protocol will be essentially frozen on us, 
> whether we like it or not. (Well, we could change it further, but then 

Well, we could tell implementers not to ship with that feature. 
Actually, we should.

> we'd just be ignored.) I expect this to happen in the coming months.
> 
> 
>> As WebSocket protocol is an Internet draft it should follow the IETF rules.
> 
> It's also a WHATWG draft, so it should also follow the WHATWG rules. :-)

In which case you should clarify what this means in practice, because it 
should be considered when chartering the Working Group.

> ...

BR, Julian

From salvatore.loreto@ericsson.com  Wed Oct 28 08:36:49 2009
Return-Path: <salvatore.loreto@ericsson.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 3B5C228C1DC for <hybi@core3.amsl.com>; Wed, 28 Oct 2009 08:36:49 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.974
X-Spam-Level: 
X-Spam-Status: No, score=-5.974 tagged_above=-999 required=5 tests=[AWL=0.275,  BAYES_00=-2.599, HELO_EQ_SE=0.35, RCVD_IN_DNSWL_MED=-4]
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 nsJr3EC35V3m for <hybi@core3.amsl.com>; Wed, 28 Oct 2009 08:36:48 -0700 (PDT)
Received: from mailgw5.ericsson.se (mailgw5.ericsson.se [193.180.251.36]) by core3.amsl.com (Postfix) with ESMTP id 794A628C1E2 for <hybi@ietf.org>; Wed, 28 Oct 2009 08:36:46 -0700 (PDT)
X-AuditID: c1b4fb24-b7b12ae000007bda-48-4ae865151481
Received: from esealmw126.eemea.ericsson.se (Unknown_Domain [153.88.253.124]) by mailgw5.ericsson.se (Symantec Mail Security) with SMTP id 79.A3.31706.51568EA4; Wed, 28 Oct 2009 16:36:54 +0100 (CET)
Received: from esealmw126.eemea.ericsson.se ([153.88.254.174]) by esealmw126.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.3959);  Wed, 28 Oct 2009 16:36:53 +0100
Received: from mail.lmf.ericsson.se ([131.160.11.50]) by esealmw126.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.3959);  Wed, 28 Oct 2009 16:36:53 +0100
Received: from nomadiclab.lmf.ericsson.se (nomadiclab.lmf.ericsson.se [131.160.33.3]) by mail.lmf.ericsson.se (Postfix) with ESMTP id 29B4F256F; Wed, 28 Oct 2009 17:36:53 +0200 (EET)
Received: from nomadiclab.lmf.ericsson.se (localhost [127.0.0.1]) by nomadiclab.lmf.ericsson.se (Postfix) with ESMTP id E1BD621A22; Wed, 28 Oct 2009 17:36:52 +0200 (EET)
Received: from localhost.localdomain (localhost [127.0.0.1]) by nomadiclab.lmf.ericsson.se (Postfix) with ESMTP id 568C221A21; Wed, 28 Oct 2009 17:36:52 +0200 (EET)
Message-ID: <4AE86513.4060600@ericsson.com>
Date: Wed, 28 Oct 2009 17:36:51 +0200
From: Salvatore Loreto <salvatore.loreto@ericsson.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090825)
MIME-Version: 1.0
To: Ian Hickson <ian@hixie.ch>
References: <4AE7F0AE.1000102@gmx.de> <Pine.LNX.4.62.0910280740540.25608@hixie.dreamhostps.com> <4AE7FFC4.8050405@gmx.de> <4AE806AA.60901@ericsson.com> <Pine.LNX.4.62.0910280938560.25608@hixie.dreamhostps.com>
In-Reply-To: <Pine.LNX.4.62.0910280938560.25608@hixie.dreamhostps.com>
Content-Type: text/plain; charset=US-ASCII; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: ClamAV using ClamSMTP
X-OriginalArrivalTime: 28 Oct 2009 15:36:53.0497 (UTC) FILETIME=[796F2E90:01CA57E4]
X-Brightmail-Tracker: AAAAAA==
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] web socket protocol in "last call"?
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: Wed, 28 Oct 2009 15:36:49 -0000

Ian Hickson wrote:
> On Wed, 28 Oct 2009, Salvatore Loreto wrote:
>   
<snip>
>> Moreover I have seen a lot of mail exchanges raising possible problems in the
>> current version of the WebSocket draft
>> that you should consider and address in the draft or provide to the IETF
>> community good technical reasons why you choose to not consider them
>>     
>
> There's a couple of e-mails from earlier today that I haven't yet 
> considered, but other than that, I've read and considered all the e-mails 
> to this list, and provided detailed reasons for rejecting any proposals 
> I've not adopted. If I missed one, please let me know.
>   
Hi Ian,

actually in the IETF process one of the main reason to accept or reject 
a proposal/issue/"request to change something"
is based on *"rough consensus"* reached among people involved in the 
mailing list discussion ,
especially when the reason for accepting or rejecting are based more on 
philosophical then technical issues.

The decision to adopt or not a proposal should come from the consensus 
and not from the decision of a single person.
I am sorry to notice, following the ml discussion, that a lot of the 
proposals have been discarded for philosophical reasons
even if the majority of the people in the ml were in favour.
I am not saying that you should adopt them straight, but only that you 
should keep open the discussion on controversial
issues and seek a sort of consensus, among people involved in the 
discussion, on how to solve them


/Sal


From infinity@lindenlab.com  Wed Oct 28 13:01:54 2009
Return-Path: <infinity@lindenlab.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 E67F73A6AAA for <hybi@core3.amsl.com>; Wed, 28 Oct 2009 13:01:54 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.202
X-Spam-Level: 
X-Spam-Status: No, score=-1.202 tagged_above=-999 required=5 tests=[AWL=0.775,  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 L4wrx-go5kqg for <hybi@core3.amsl.com>; Wed, 28 Oct 2009 13:01:54 -0700 (PDT)
Received: from mail-yx0-f192.google.com (mail-yx0-f192.google.com [209.85.210.192]) by core3.amsl.com (Postfix) with ESMTP id 06D743A6AA9 for <hybi@ietf.org>; Wed, 28 Oct 2009 13:01:53 -0700 (PDT)
Received: by yxe30 with SMTP id 30so1153129yxe.29 for <hybi@ietf.org>; Wed, 28 Oct 2009 13:02:05 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.239.139.143 with SMTP id t15mr1542647hbt.92.1256760124390;  Wed, 28 Oct 2009 13:02:04 -0700 (PDT)
In-Reply-To: <4AE86513.4060600@ericsson.com>
References: <4AE7F0AE.1000102@gmx.de> <Pine.LNX.4.62.0910280740540.25608@hixie.dreamhostps.com>  <4AE7FFC4.8050405@gmx.de> <4AE806AA.60901@ericsson.com> <Pine.LNX.4.62.0910280938560.25608@hixie.dreamhostps.com>  <4AE86513.4060600@ericsson.com>
From: "Infinity Linden (Meadhbh Hamrick)" <infinity@lindenlab.com>
Date: Wed, 28 Oct 2009 13:01:44 -0700
Message-ID: <3a880e2c0910281301j5d1e4cdclfe2391b28eadda0e@mail.gmail.com>
To: Salvatore Loreto <salvatore.loreto@ericsson.com>
Content-Type: text/plain; charset=ISO-8859-1
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] web socket protocol in "last call"?
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: Wed, 28 Oct 2009 20:01:55 -0000

wow. WS is in last call? not being able to continue work on putting
something like RHTTP or BWTP over WS is a bit of a deal-breaker for
me.

but. i suppose there's no reason we can't work on BWTP independent of
WS. i was just sorta hoping there would have been a way to coordinate
these efforts.

i guess there's also no reason now to meet at apachecon next week
about WS. i mean, why bother meeting about something you can't change?

however, if anyone wants to meet about BWTP at apachecon, i'm totally
hip to that. also, krunk. i'm not going to be in hiroshima for the
hybi BoF, but i would advocate strongly for including something like
BWTP as a deliverable alongside WS, assuming WS would be something for
HyBi instead of httpbis.

WS is essentially unusable for me in it's current form. or rather, i
could use it, but why? my use case of establishing reverse
request-response semantic recognizable by intermediaries that supports
channel multiplexing is possible over WS, but then again, it's also
possible by extending HTTP, so why not just do that?

-cheers
-meadhbh / infinity
--
   infinity linden (aka meadhbh hamrick)  *  it's pronounced "maeve"
         http://wiki.secondlife.com/wiki/User:Infinity_Linden



On Wed, Oct 28, 2009 at 08:36, Salvatore Loreto
<salvatore.loreto@ericsson.com> wrote:
> Ian Hickson wrote:
>>
>> On Wed, 28 Oct 2009, Salvatore Loreto wrote:
>>
>
> <snip>
>>>
>>> Moreover I have seen a lot of mail exchanges raising possible problems in
>>> the
>>> current version of the WebSocket draft
>>> that you should consider and address in the draft or provide to the IETF
>>> community good technical reasons why you choose to not consider them
>>>
>>
>> There's a couple of e-mails from earlier today that I haven't yet
>> considered, but other than that, I've read and considered all the e-mails to
>> this list, and provided detailed reasons for rejecting any proposals I've
>> not adopted. If I missed one, please let me know.
>>
>
> Hi Ian,
>
> actually in the IETF process one of the main reason to accept or reject a
> proposal/issue/"request to change something"
> is based on *"rough consensus"* reached among people involved in the mailing
> list discussion ,
> especially when the reason for accepting or rejecting are based more on
> philosophical then technical issues.
>
> The decision to adopt or not a proposal should come from the consensus and
> not from the decision of a single person.
> I am sorry to notice, following the ml discussion, that a lot of the
> proposals have been discarded for philosophical reasons
> even if the majority of the people in the ml were in favour.
> I am not saying that you should adopt them straight, but only that you
> should keep open the discussion on controversial
> issues and seek a sort of consensus, among people involved in the
> discussion, on how to solve them
>
>
> /Sal
>
> _______________________________________________
> hybi mailing list
> hybi@ietf.org
> https://www.ietf.org/mailman/listinfo/hybi
>

From mjs@apple.com  Wed Oct 28 15:13:05 2009
Return-Path: <mjs@apple.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 7BAA73A6781 for <hybi@core3.amsl.com>; Wed, 28 Oct 2009 15:13:05 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -106.599
X-Spam-Level: 
X-Spam-Status: No, score=-106.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4, 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 dnDej-pofrta for <hybi@core3.amsl.com>; Wed, 28 Oct 2009 15:13:04 -0700 (PDT)
Received: from mail-out3.apple.com (mail-out3.apple.com [17.254.13.22]) by core3.amsl.com (Postfix) with ESMTP id C2D463A691C for <hybi@ietf.org>; Wed, 28 Oct 2009 15:13:04 -0700 (PDT)
Received: from relay15.apple.com (relay15.apple.com [17.128.113.54]) by mail-out3.apple.com (Postfix) with ESMTP id 92E0677C4C72 for <hybi@ietf.org>; Wed, 28 Oct 2009 15:13:20 -0700 (PDT)
X-AuditID: 11807136-b7bdeae0000013fb-c7-4ae8c2009dc2
Received: from gertie.apple.com (gertie.apple.com [17.151.62.15]) by relay15.apple.com (Apple SCV relay) with SMTP id 46.50.05115.002C8EA4; Wed, 28 Oct 2009 15:13:20 -0700 (PDT)
MIME-version: 1.0
Content-transfer-encoding: 7BIT
Content-type: text/plain; charset=US-ASCII; format=flowed; delsp=yes
Received: from [17.151.122.156] by gertie.apple.com (Sun Java(tm) System Messaging Server 6.3-7.04 (built Sep 26 2008; 32bit)) with ESMTPSA id <0KS800MRDWE8XB10@gertie.apple.com> for hybi@ietf.org; Wed, 28 Oct 2009 15:13:20 -0700 (PDT)
Message-id: <5214ACB4-16C9-43BC-9C86-ACA330A9BFDC@apple.com>
From: Maciej Stachowiak <mjs@apple.com>
To: Infinity Linden <infinity@lindenlab.com> (Meadhbh Hamrick)
In-reply-to: <3a880e2c0910281301j5d1e4cdclfe2391b28eadda0e@mail.gmail.com>
Date: Wed, 28 Oct 2009 15:13:19 -0700
References: <4AE7F0AE.1000102@gmx.de> <Pine.LNX.4.62.0910280740540.25608@hixie.dreamhostps.com> <4AE7FFC4.8050405@gmx.de> <4AE806AA.60901@ericsson.com> <Pine.LNX.4.62.0910280938560.25608@hixie.dreamhostps.com> <4AE86513.4060600@ericsson.com> <3a880e2c0910281301j5d1e4cdclfe2391b28eadda0e@mail.gmail.com>
X-Mailer: Apple Mail (2.936)
X-Brightmail-Tracker: AAAAAQAAAZE=
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] web socket protocol in "last call"?
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: Wed, 28 Oct 2009 22:13:05 -0000

On Oct 28, 2009, at 1:01 PM, Infinity Linden (Meadhbh Hamrick) wrote:

> wow. WS is in last call? not being able to continue work on putting
> something like RHTTP or BWTP over WS is a bit of a deal-breaker for
> me.
>
> but. i suppose there's no reason we can't work on BWTP independent of
> WS. i was just sorta hoping there would have been a way to coordinate
> these efforts.
>
> i guess there's also no reason now to meet at apachecon next week
> about WS. i mean, why bother meeting about something you can't change?


WHATWG Last Call doesn't mean "can't change". It's just soliciting  
comments. And it is in no way binding on the IETF.

In practice, the factor that will reduce the rate of change in the  
future will be when implementations (client-side and server-side) ship  
and Web content starts using it.

WebKit has an implementation of the WebSocket API and protocol in  
progress. We do not anticipate that work reaching a freeze point in  
the very near future. We'll think about taking appropriate measures to  
avoid locking in the protocol when we ship, to give the IETF Working  
Group a chance to define the protocol.

Given all this, I do think meeting in person to discuss is useful.

Regards,
Maciej


From infinity@lindenlab.com  Wed Oct 28 15:41:18 2009
Return-Path: <infinity@lindenlab.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 585E43A6A3A for <hybi@core3.amsl.com>; Wed, 28 Oct 2009 15:41:17 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.057
X-Spam-Level: 
X-Spam-Status: No, score=-1.057 tagged_above=-999 required=5 tests=[AWL=0.320,  BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, J_CHICKENPOX_44=0.6]
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 uyrA1pnI3R6G for <hybi@core3.amsl.com>; Wed, 28 Oct 2009 15:41:16 -0700 (PDT)
Received: from mail-bw0-f219.google.com (mail-bw0-f219.google.com [209.85.218.219]) by core3.amsl.com (Postfix) with ESMTP id DB08A3A6781 for <hybi@ietf.org>; Wed, 28 Oct 2009 15:41:15 -0700 (PDT)
Received: by bwz19 with SMTP id 19so1567149bwz.28 for <hybi@ietf.org>; Wed, 28 Oct 2009 15:41:27 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.239.182.145 with SMTP id q17mr1547258hbg.136.1256769687152;  Wed, 28 Oct 2009 15:41:27 -0700 (PDT)
In-Reply-To: <5214ACB4-16C9-43BC-9C86-ACA330A9BFDC@apple.com>
References: <4AE7F0AE.1000102@gmx.de> <Pine.LNX.4.62.0910280740540.25608@hixie.dreamhostps.com>  <4AE7FFC4.8050405@gmx.de> <4AE806AA.60901@ericsson.com> <Pine.LNX.4.62.0910280938560.25608@hixie.dreamhostps.com>  <4AE86513.4060600@ericsson.com> <3a880e2c0910281301j5d1e4cdclfe2391b28eadda0e@mail.gmail.com>  <5214ACB4-16C9-43BC-9C86-ACA330A9BFDC@apple.com>
From: "Infinity Linden (Meadhbh Hamrick)" <infinity@lindenlab.com>
Date: Wed, 28 Oct 2009 15:41:07 -0700
Message-ID: <3a880e2c0910281541y7056cd65q564974453f64110a@mail.gmail.com>
To: Maciej Stachowiak <mjs@apple.com>
Content-Type: text/plain; charset=ISO-8859-1
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] web socket protocol in "last call"?
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: Wed, 28 Oct 2009 22:41:19 -0000

cool. that's good to hear. i think i was associating "last call" with
something more like AUTH48 in the IETF.

<random_babbling_on_a_public_list>

i'm still vaguely concerned about the state of WS as a substrate for
something like BWTP or RHTTP. but i think what i'm hearing is that WS
is approaching  consensus for the browser use case.

HyBi has a few people who are interested primarily in (bidirectional)
HTTP as a substrate for other application layer protocols. is there a
similar constituency in WHATWG? (probably should have asked this way
earlier.) in other words, while i think pushing HTML+JPEG over HTTP is
cool and about the only use case browser vendors are going to worry
about; my personal interest is in pushing xml, json, and random weird
BASE64 encoded binary blobs with metadata over the connection.

</random_babbling_on_a_public_list>


--
   infinity linden (aka meadhbh hamrick)  *  it's pronounced "maeve"
         http://wiki.secondlife.com/wiki/User:Infinity_Linden

On Wed, Oct 28, 2009 at 15:13, Maciej Stachowiak <mjs@apple.com> wrote:
>
> On Oct 28, 2009, at 1:01 PM, Infinity Linden (Meadhbh Hamrick) wrote:
>
>> wow. WS is in last call? not being able to continue work on putting
>> something like RHTTP or BWTP over WS is a bit of a deal-breaker for
>> me.
>>
>> but. i suppose there's no reason we can't work on BWTP independent of
>> WS. i was just sorta hoping there would have been a way to coordinate
>> these efforts.
>>
>> i guess there's also no reason now to meet at apachecon next week
>> about WS. i mean, why bother meeting about something you can't change?
>
>
> WHATWG Last Call doesn't mean "can't change". It's just soliciting comments.
> And it is in no way binding on the IETF.
>
> In practice, the factor that will reduce the rate of change in the future
> will be when implementations (client-side and server-side) ship and Web
> content starts using it.
>
> WebKit has an implementation of the WebSocket API and protocol in progress.
> We do not anticipate that work reaching a freeze point in the very near
> future. We'll think about taking appropriate measures to avoid locking in
> the protocol when we ship, to give the IETF Working Group a chance to define
> the protocol.
>
> Given all this, I do think meeting in person to discuss is useful.
>
> Regards,
> Maciej
>
>

From gregw@webtide.com  Wed Oct 28 15:49:12 2009
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 755883A6A58 for <hybi@core3.amsl.com>; Wed, 28 Oct 2009 15:49:12 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.336
X-Spam-Level: 
X-Spam-Status: No, score=-2.336 tagged_above=-999 required=5 tests=[AWL=0.263,  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 tFPelI0xliWT for <hybi@core3.amsl.com>; Wed, 28 Oct 2009 15:49:11 -0700 (PDT)
Received: from mail-ew0-f208.google.com (mail-ew0-f208.google.com [209.85.219.208]) by core3.amsl.com (Postfix) with ESMTP id 75A423A6781 for <hybi@ietf.org>; Wed, 28 Oct 2009 15:49:11 -0700 (PDT)
Received: by ewy4 with SMTP id 4so1277102ewy.37 for <hybi@ietf.org>; Wed, 28 Oct 2009 15:49:22 -0700 (PDT)
Received: by 10.216.90.14 with SMTP id d14mr675492wef.30.1256770162642; Wed, 28 Oct 2009 15:49:22 -0700 (PDT)
Received: from ?10.10.1.9? (60-242-119-126.tpgi.com.au [60.242.119.126]) by mx.google.com with ESMTPS id n12sm610670gve.21.2009.10.28.15.49.19 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 28 Oct 2009 15:49:21 -0700 (PDT)
Message-ID: <4AE8CA69.2040105@webtide.com>
Date: Thu, 29 Oct 2009 09:49:13 +1100
From: Greg Wilkins <gregw@webtide.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090817)
MIME-Version: 1.0
To: "hybi@ietf.org" <hybi@ietf.org>
References: <4AE7F0AE.1000102@gmx.de>	<Pine.LNX.4.62.0910280740540.25608@hixie.dreamhostps.com> <4AE7FFC4.8050405@gmx.de> <4AE806AA.60901@ericsson.com>	<Pine.LNX.4.62.0910280938560.25608@hixie.dreamhostps.com> <4AE86513.4060600@ericsson.com> <3a880e2c0910281301j5d1e4cdclfe2391b28eadda0e@mail.gmail.com>
In-Reply-To: <3a880e2c0910281301j5d1e4cdclfe2391b28eadda0e@mail.gmail.com>
X-Enigmail-Version: 0.95.7
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Subject: Re: [hybi] web socket protocol in "last call"?
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: Wed, 28 Oct 2009 22:49:12 -0000

Infinity Linden (Meadhbh Hamrick) wrote:
> WS is essentially unusable for me in it's current form. or rather, i
> could use it, but why? my use case of establishing reverse
> request-response semantic recognizable by intermediaries that supports
> channel multiplexing is possible over WS, but then again, it's also
> possible by extending HTTP, so why not just do that?

I completely agree with this sentiment.   WS is usable, but provides
no significant benefit over HTTP other than a warm philosophical
feeling that you are not abusing HTTP, is a little more byte
efficient and marginally better latency.

But it is not going to scale for my use-cases because of the
connection bloat.   It's going to break all the load balancers
I work with, and the SSL offloaders and most other network
infrastructure.

I'll be interested to see what happens when intermediaries
notice ws trying to run around them.  Will they support it or
block it?   My money is on the later.

If it becomes a standard as is, we will support it... but hide
it in the basement, under the stairs behind a sign that says
"beware of the leopard".    It will be a novelty like HTTP
pipelining - you can turn it on and play with it, but will
not seriously consider using it in deployment other than in
very specific circumstances.

Failing consensus on the protocol, I would have really liked the
opportunity of having a service provider API in the browser - so
I could intercept standard ws API and transport it over something
that would work my use-cases, or inserting layers between
app API and transport.

Pity.  Opportunity lost.

regards









From martin.tyler@boo.org  Wed Oct 28 16:03:52 2009
Return-Path: <martin.tyler@boo.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 5AB5C28C24E for <hybi@core3.amsl.com>; Wed, 28 Oct 2009 16:03:52 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.976
X-Spam-Level: 
X-Spam-Status: No, score=-1.976 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001]
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 kn10Vc0wazEJ for <hybi@core3.amsl.com>; Wed, 28 Oct 2009 16:03:51 -0700 (PDT)
Received: from mail-gx0-f228.google.com (mail-gx0-f228.google.com [209.85.217.228]) by core3.amsl.com (Postfix) with ESMTP id 4764628C24D for <hybi@ietf.org>; Wed, 28 Oct 2009 16:03:51 -0700 (PDT)
Received: by gxk28 with SMTP id 28so1219552gxk.9 for <hybi@ietf.org>; Wed, 28 Oct 2009 16:04:04 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.101.13.7 with SMTP id q7mr115108ani.112.1256771044071; Wed, 28  Oct 2009 16:04:04 -0700 (PDT)
In-Reply-To: <4AE8CA69.2040105@webtide.com>
References: <4AE7F0AE.1000102@gmx.de> <Pine.LNX.4.62.0910280740540.25608@hixie.dreamhostps.com> <4AE7FFC4.8050405@gmx.de> <4AE806AA.60901@ericsson.com> <Pine.LNX.4.62.0910280938560.25608@hixie.dreamhostps.com> <4AE86513.4060600@ericsson.com> <3a880e2c0910281301j5d1e4cdclfe2391b28eadda0e@mail.gmail.com> <4AE8CA69.2040105@webtide.com>
Date: Wed, 28 Oct 2009 23:04:04 +0000
Message-ID: <44abafb90910281604o2a73b490l6b1ae5ca1fba37ba@mail.gmail.com>
From: Martin Tyler <martin.tyler@boo.org>
To: Greg Wilkins <gregw@webtide.com>
Content-Type: multipart/alternative; boundary=005045016f90a55877047706cf4f
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] web socket protocol in "last call"?
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: Wed, 28 Oct 2009 23:03:52 -0000

--005045016f90a55877047706cf4f
Content-Type: text/plain; charset=ISO-8859-1

I agree with Greg on this.

As another vendor of server software that could make use of this, in its
current form it would just be something we implement under the covers to
slightly improve things. However, if the solution to reverse proxies and
other such intermediaries causing issues is that they will block WebSockets
then we'd have to stick with our current 'comet hacks'.

We always advise our customers to put our servers Internet facing, but in
large organisations this isn't always possible - and thinking that anyone
wanting to run a WebSocket server will just have to get a proxy that
conforms or remove it all together is frankly naive.


On Wed, Oct 28, 2009 at 10:49 PM, Greg Wilkins <gregw@webtide.com> wrote:

> Infinity Linden (Meadhbh Hamrick) wrote:
> > WS is essentially unusable for me in it's current form. or rather, i
> > could use it, but why? my use case of establishing reverse
> > request-response semantic recognizable by intermediaries that supports
> > channel multiplexing is possible over WS, but then again, it's also
> > possible by extending HTTP, so why not just do that?
>
> I completely agree with this sentiment.   WS is usable, but provides
> no significant benefit over HTTP other than a warm philosophical
> feeling that you are not abusing HTTP, is a little more byte
> efficient and marginally better latency.
>
> But it is not going to scale for my use-cases because of the
> connection bloat.   It's going to break all the load balancers
> I work with, and the SSL offloaders and most other network
> infrastructure.
>
> I'll be interested to see what happens when intermediaries
> notice ws trying to run around them.  Will they support it or
> block it?   My money is on the later.
>
> If it becomes a standard as is, we will support it... but hide
> it in the basement, under the stairs behind a sign that says
> "beware of the leopard".    It will be a novelty like HTTP
> pipelining - you can turn it on and play with it, but will
> not seriously consider using it in deployment other than in
> very specific circumstances.
>
> Failing consensus on the protocol, I would have really liked the
> opportunity of having a service provider API in the browser - so
> I could intercept standard ws API and transport it over something
> that would work my use-cases, or inserting layers between
> app API and transport.
>
> Pity.  Opportunity lost.
>
> regards
>
>
>
>
>
>
>
>
> _______________________________________________
> hybi mailing list
> hybi@ietf.org
> https://www.ietf.org/mailman/listinfo/hybi
>

--005045016f90a55877047706cf4f
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

I agree with Greg on this.<br><br>As another vendor of server software that=
 could make use of this, in its current form it would just be something we =
implement under the covers to slightly improve things. However, if the solu=
tion to reverse proxies and other such intermediaries causing issues is tha=
t they will block WebSockets then we&#39;d have to stick with our current &=
#39;comet hacks&#39;.<br>
<br>We always advise our customers to put our servers Internet facing, but =
in large organisations this isn&#39;t always possible - and thinking that a=
nyone wanting to run a WebSocket server will just have to get a proxy that =
conforms or remove it all together is frankly naive.<br>
<br><br><div class=3D"gmail_quote">On Wed, Oct 28, 2009 at 10:49 PM, Greg W=
ilkins <span dir=3D"ltr">&lt;<a href=3D"mailto:gregw@webtide.com">gregw@web=
tide.com</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=
=3D"border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; p=
adding-left: 1ex;">
<div class=3D"im">Infinity Linden (Meadhbh Hamrick) wrote:<br>
</div><div class=3D"im">&gt; WS is essentially unusable for me in it&#39;s =
current form. or rather, i<br>
&gt; could use it, but why? my use case of establishing reverse<br>
&gt; request-response semantic recognizable by intermediaries that supports=
<br>
&gt; channel multiplexing is possible over WS, but then again, it&#39;s als=
o<br>
&gt; possible by extending HTTP, so why not just do that?<br>
<br>
</div>I completely agree with this sentiment. =A0 WS is usable, but provide=
s<br>
no significant benefit over HTTP other than a warm philosophical<br>
feeling that you are not abusing HTTP, is a little more byte<br>
efficient and marginally better latency.<br>
<br>
But it is not going to scale for my use-cases because of the<br>
connection bloat. =A0 It&#39;s going to break all the load balancers<br>
I work with, and the SSL offloaders and most other network<br>
infrastructure.<br>
<br>
I&#39;ll be interested to see what happens when intermediaries<br>
notice ws trying to run around them. =A0Will they support it or<br>
block it? =A0 My money is on the later.<br>
<br>
If it becomes a standard as is, we will support it... but hide<br>
it in the basement, under the stairs behind a sign that says<br>
&quot;beware of the leopard&quot;. =A0 =A0It will be a novelty like HTTP<br=
>
pipelining - you can turn it on and play with it, but will<br>
not seriously consider using it in deployment other than in<br>
very specific circumstances.<br>
<br>
Failing consensus on the protocol, I would have really liked the<br>
opportunity of having a service provider API in the browser - so<br>
I could intercept standard ws API and transport it over something<br>
that would work my use-cases, or inserting layers between<br>
app API and transport.<br>
<br>
Pity. =A0Opportunity lost.<br>
<br>
regards<br>
<div><div></div><div class=3D"h5"><br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
hybi mailing list<br>
<a href=3D"mailto:hybi@ietf.org">hybi@ietf.org</a><br>
<a href=3D"https://www.ietf.org/mailman/listinfo/hybi" target=3D"_blank">ht=
tps://www.ietf.org/mailman/listinfo/hybi</a><br>
</div></div></blockquote></div><br>

--005045016f90a55877047706cf4f--

From julian.reschke@gmx.de  Wed Oct 28 22:07:25 2009
Return-Path: <julian.reschke@gmx.de>
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 5D4FF3A6A42 for <hybi@core3.amsl.com>; Wed, 28 Oct 2009 22:07:25 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.721
X-Spam-Level: 
X-Spam-Status: No, score=-3.721 tagged_above=-999 required=5 tests=[AWL=-1.122, 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 TNwCOLuL3Z5n for <hybi@core3.amsl.com>; Wed, 28 Oct 2009 22:07:24 -0700 (PDT)
Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by core3.amsl.com (Postfix) with SMTP id 1B4F53A69F6 for <hybi@ietf.org>; Wed, 28 Oct 2009 22:07:23 -0700 (PDT)
Received: (qmail invoked by alias); 29 Oct 2009 05:07:37 -0000
Received: from p508FCDC0.dip.t-dialin.net (EHLO [192.168.178.33]) [80.143.205.192] by mail.gmx.net (mp015) with SMTP; 29 Oct 2009 06:07:37 +0100
X-Authenticated: #1915285
X-Provags-ID: V01U2FsdGVkX1/VqrFEjFTVdrYilq2IBsUAPRseOEJXdym36L1Rcp GFncC71lc6B+qQ
Message-ID: <4AE92315.2060403@gmx.de>
Date: Thu, 29 Oct 2009 06:07:33 +0100
From: Julian Reschke <julian.reschke@gmx.de>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.0.4) Gecko/20060516 Thunderbird/1.5.0.4 Mnenhy/0.7.4.666
MIME-Version: 1.0
To: Maciej Stachowiak <mjs@apple.com>
References: <4AE7F0AE.1000102@gmx.de>	<Pine.LNX.4.62.0910280740540.25608@hixie.dreamhostps.com>	<4AE7FFC4.8050405@gmx.de> <4AE806AA.60901@ericsson.com>	<Pine.LNX.4.62.0910280938560.25608@hixie.dreamhostps.com>	<4AE86513.4060600@ericsson.com>	<3a880e2c0910281301j5d1e4cdclfe2391b28eadda0e@mail.gmail.com> <5214ACB4-16C9-43BC-9C86-ACA330A9BFDC@apple.com>
In-Reply-To: <5214ACB4-16C9-43BC-9C86-ACA330A9BFDC@apple.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Y-GMX-Trusted: 0
X-FuHaFi: 0.72
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] web socket protocol in "last call"?
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, 29 Oct 2009 05:07:25 -0000

Maciej Stachowiak wrote:
> ...
> WebKit has an implementation of the WebSocket API and protocol in 
> progress. We do not anticipate that work reaching a freeze point in the 
> very near future. We'll think about taking appropriate measures to avoid 
> locking in the protocol when we ship, to give the IETF Working Group a 
> chance to define the protocol.
> ...

Thanks for the clarification!

BR, Julian

From salvatore.loreto@ericsson.com  Thu Oct 29 02:56:15 2009
Return-Path: <salvatore.loreto@ericsson.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 606B33A6997 for <hybi@core3.amsl.com>; Thu, 29 Oct 2009 02:56:15 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.37
X-Spam-Level: 
X-Spam-Status: No, score=-5.37 tagged_above=-999 required=5 tests=[AWL=-0.361,  BAYES_00=-2.599, HELO_EQ_SE=0.35, RCVD_IN_DNSWL_MED=-4, SARE_LWSHORTT=1.24]
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 WB5gvzy5UKRM for <hybi@core3.amsl.com>; Thu, 29 Oct 2009 02:56:14 -0700 (PDT)
Received: from mailgw3.ericsson.se (mailgw3.ericsson.se [193.180.251.60]) by core3.amsl.com (Postfix) with ESMTP id BDCF73A6819 for <hybi@ietf.org>; Thu, 29 Oct 2009 02:56:13 -0700 (PDT)
X-AuditID: c1b4fb3c-b7b3fae00000105f-59-4ae966cceea2
Received: from esealmw127.eemea.ericsson.se (Unknown_Domain [153.88.253.124]) by mailgw3.ericsson.se (Symantec Mail Security) with SMTP id 54.74.04191.CC669EA4; Thu, 29 Oct 2009 10:56:28 +0100 (CET)
Received: from esealmw127.eemea.ericsson.se ([153.88.254.175]) by esealmw127.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.3959);  Thu, 29 Oct 2009 10:56:28 +0100
Received: from mail.lmf.ericsson.se ([131.160.11.50]) by esealmw127.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.3959);  Thu, 29 Oct 2009 10:56:28 +0100
Received: from nomadiclab.lmf.ericsson.se (nomadiclab.lmf.ericsson.se [131.160.33.3]) by mail.lmf.ericsson.se (Postfix) with ESMTP id D9D4B253E for <hybi@ietf.org>; Thu, 29 Oct 2009 11:56:27 +0200 (EET)
Received: from nomadiclab.lmf.ericsson.se (localhost [127.0.0.1]) by nomadiclab.lmf.ericsson.se (Postfix) with ESMTP id A284421A22 for <hybi@ietf.org>; Thu, 29 Oct 2009 11:56:27 +0200 (EET)
Received: from localhost.localdomain (localhost [127.0.0.1]) by nomadiclab.lmf.ericsson.se (Postfix) with ESMTP id 2DFC121A21 for <hybi@ietf.org>; Thu, 29 Oct 2009 11:56:27 +0200 (EET)
Message-ID: <4AE966CA.9090907@ericsson.com>
Date: Thu, 29 Oct 2009 11:56:26 +0200
From: Salvatore Loreto <salvatore.loreto@ericsson.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090825)
MIME-Version: 1.0
To: "hybi@ietf.org" <hybi@ietf.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: ClamAV using ClamSMTP
X-OriginalArrivalTime: 29 Oct 2009 09:56:28.0267 (UTC) FILETIME=[15762BB0:01CA587E]
X-Brightmail-Tracker: AAAAAA==
Subject: [hybi] Proposed Charter for HyBi WG (rev.3)
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, 29 Oct 2009 09:56:15 -0000

Hi there,

here a new/updated version of the charter proposal for HyBi wg.
I have tried to include in this version all the suggestions and comments 
received in the mailing list discussion.

please provide comments!

Best Regards
Salvatore Loreto



Proposed Charter for HyBi WG (rev.3)
Last Updated: 2009-10-29
-----------------------------------------------
Chairs:
* TBD
* TBD

Applications Area Director(s):
* Lisa Dusseault <lisa.dusseault@gmail.com>
* Alexey Melnikov <alexey.melnikov@isode.com>
 
Applications Area Advisor:
* Lisa Dusseault <lisa.dusseault@gmail.com>

Mailing Lists:
General Discussion: hybi@ietf.org
To Subscribe: https://www.ietf.org/mailman/listinfo/hybi
Archive: http://www.ietf.org/mail-archive/web/hybi/current/maillist.html

Description of Working Group:
HTTP has in the past been used as a request/response protocol most often,
leading to clients polling for new data or users hitting the refresh button
in their browsers.  Newer web applications are finding ways to push data
from the server to the client as soon as it is available, through a variety
of mechanisms.  The Hypertext-Bidirectional (HyBi) working group will seek
standardization of approaches that HTTP clients, servers, and intermediate
entities can use to communicate with one another in both directions.

Since any modification of the web infrastructure may take a good amount of
time to be deployed, outputs of the working group will include both short
and long term solutions.  The existing web being much more complicated than
it seems, the working group will prioritize the characterization of the
design space, including the web clients, intermediaries, firewalls, NATs,
web servers, etc. into which both solutions will need to be deployed.


For both short and long term work items, a general approach is preferred,
with abstract semantics that can apply to a large number of applications.

The short term approach will be deployable on today's Internet, across
across HTTP proxies, servers and whichever current or historical web
browsers the working group decides upon. Although wide browser support
is a goal, lack of support on any single browser version will not be a
sufficient cause to block consensus.  The short term approach may also
define hints to allow HTTP-updated intermediaries and servers to optimize
traffic.

In the long term, new features will be required of clients, servers, or
intermediaries allowing a more scalable and robust end-to-end experience.

Although multiple protocols exist as starting points for both the short and
long term, backward compatibility with these protocols is not a requirement.
In particular, the working group will liaison with the W3C WebApps 
working group
around the WebSockets protocol and the requirements to support the 
WebSocket API;
if agreed by both parties, the HyBi working group may take on prime 
responsibility
on the specification of the WebSockets protocol.

Wide browser support is a goal for long term solution, however the solution
should also be suitable for clients other than Web Browser.
The Working Group will work to standardize a generic solution that can work
efficiently  in all the environments and elements of the web infrastructure
(e.g. web browser, generic HTTP client, HTTP server and HTTP-aware 
intermediaries
like proxies, load balancers, caches, etc.) and it is not specific for 
just one.


The Working Group should consider:
* Implementer experience
* Impact on existing implementations and deployments
* Ability to achieve broad implementation
* Ability to address broader use cases than may be contemplated by the
original authors

The Working Group will produce one or more documents suitable for
consideration as Proposed Standard that will:
* Define requirements for short- and long-term solutions, including
characterization of the design space
* Define a short-term solution for the bi-directional web, deployable on
today's Internet
* Define a long-term solution for the bi-directional web, which will likely
require modifications to the web infrastructure



Goals and Milestones:
---------------------
Mar-2010:  WGLC on the Design Space characterization (Informational)
May-2010:  WGLC on Requirements document on Short term solution
Jul-2010:  WGLC on Requirements document on Long term solution
Nov-2010:  Requirements to IESG
Mar-2011:  WGLC on Short term solution improvements
Nov-2011:  WGLC on Long term solution protocol

From salvatore.loreto@ericsson.com  Thu Oct 29 03:20:01 2009
Return-Path: <salvatore.loreto@ericsson.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 64B183A68DB for <hybi@core3.amsl.com>; Thu, 29 Oct 2009 03:20:01 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.97
X-Spam-Level: 
X-Spam-Status: No, score=-5.97 tagged_above=-999 required=5 tests=[AWL=0.279,  BAYES_00=-2.599, HELO_EQ_SE=0.35, RCVD_IN_DNSWL_MED=-4]
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 7Fn6teXTsT0q for <hybi@core3.amsl.com>; Thu, 29 Oct 2009 03:20:00 -0700 (PDT)
Received: from mailgw5.ericsson.se (mailgw5.ericsson.se [193.180.251.36]) by core3.amsl.com (Postfix) with ESMTP id 6420D3A6855 for <hybi@ietf.org>; Thu, 29 Oct 2009 03:20:00 -0700 (PDT)
X-AuditID: c1b4fb24-b7b12ae000007bda-a6-4ae96c5f0b6b
Received: from esealmw127.eemea.ericsson.se (Unknown_Domain [153.88.253.124]) by mailgw5.ericsson.se (Symantec Mail Security) with SMTP id DE.DE.31706.F5C69EA4; Thu, 29 Oct 2009 11:20:15 +0100 (CET)
Received: from esealmw127.eemea.ericsson.se ([153.88.254.175]) by esealmw127.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.3959);  Thu, 29 Oct 2009 11:20:15 +0100
Received: from mail.lmf.ericsson.se ([131.160.11.50]) by esealmw127.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.3959);  Thu, 29 Oct 2009 11:20:14 +0100
Received: from nomadiclab.lmf.ericsson.se (nomadiclab.lmf.ericsson.se [131.160.33.3]) by mail.lmf.ericsson.se (Postfix) with ESMTP id AB442253E for <hybi@ietf.org>; Thu, 29 Oct 2009 12:20:14 +0200 (EET)
Received: from nomadiclab.lmf.ericsson.se (localhost [127.0.0.1]) by nomadiclab.lmf.ericsson.se (Postfix) with ESMTP id 6DE8721A22 for <hybi@ietf.org>; Thu, 29 Oct 2009 12:20:14 +0200 (EET)
Received: from localhost.localdomain (localhost [127.0.0.1]) by nomadiclab.lmf.ericsson.se (Postfix) with ESMTP id EFB2121A1F for <hybi@ietf.org>; Thu, 29 Oct 2009 12:20:13 +0200 (EET)
Message-ID: <4AE96C5D.2050308@ericsson.com>
Date: Thu, 29 Oct 2009 12:20:13 +0200
From: Salvatore Loreto <salvatore.loreto@ericsson.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090825)
MIME-Version: 1.0
To: "hybi@ietf.org" <hybi@ietf.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: ClamAV using ClamSMTP
X-OriginalArrivalTime: 29 Oct 2009 10:20:14.0916 (UTC) FILETIME=[67CF8840:01CA5881]
X-Brightmail-Tracker: AAAAAA==
Subject: [hybi] updated wiki page
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, 29 Oct 2009 10:20:01 -0000

Hi there,

I have just updated the wiki with links to the new version of:

- Charter proposal (v.3)
- new version (01) of draft "Best Practices for the Use of Long Polling 
and Streaming in Bidirectional HTTP"
- new version (54) of draft "The Web Socket protocol"
The wiki also contains the BoF Agenda.

http://trac.tools.ietf.org/bof/trac/wiki/HyBi


cheers
Salvatore Loreto

From rory@jinsky.com  Thu Oct 29 05:31:09 2009
Return-Path: <rory@jinsky.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 C99C33A682E for <hybi@core3.amsl.com>; Thu, 29 Oct 2009 05:31:09 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.534
X-Spam-Level: 
X-Spam-Status: No, score=-2.534 tagged_above=-999 required=5 tests=[AWL=-0.065, BAYES_00=-2.599, SARE_RMML_Stock10=0.13]
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 Xco6OsbvfTEz for <hybi@core3.amsl.com>; Thu, 29 Oct 2009 05:31:08 -0700 (PDT)
Received: from almeida.jinsky.com (almeida.jinsky.com [88.198.96.187]) by core3.amsl.com (Postfix) with ESMTP id 7DA053A67A1 for <hybi@ietf.org>; Thu, 29 Oct 2009 05:31:08 -0700 (PDT)
Received: from almeida.jinsky.com (localhost.localdomain [127.0.0.1]) by almeida.jinsky.com (Postfix) with ESMTP id 00D4333B7BC for <hybi@ietf.org>; Thu, 29 Oct 2009 13:31:22 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jinsky.com; h=date:from:to :subject:message-id:references:mime-version:content-type: in-reply-to; s=meh; bh=PYsjhdvCSEqhDX8hiDRxn1/H14A=; b=A0U81YT15 LWI55dZmgSvao1dHTgKLJu7qho2T6NjOBXZWPQ3kfm/FsdUXGOH2j0LFZP4K6Rbo LmB6F29uCv+L44YhKMBYUPNlkvEblq8aBhhQC3NkOxYa07aboHCtlI5yTEmzbkrK Ik6tCyeoyyQ841zPqWuY9VByjbd387BfU8=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=jinsky.com; h=date:from:to :subject:message-id:references:mime-version:content-type: in-reply-to; q=dns; s=meh; b=kTL6pxeEdyWYRM8BWdCHOi5UNv4mJvPiHR/ 4qNirdNYLt/q0HUGoWwLdU1FHSC9SyoMSFeNvdfdI5shYtm/FianP3kFQOr8p/98 n826SXCrKTLuYRWWdLAP9RM0AEDkMat6ZUAg+P5pJ2EzGnB6Nah/BMk3Ql0/60Hh L+O/lZzU=
Received: by almeida.jinsky.com (Postfix, from userid 1000) id 2C6BC33B7B4; Thu, 29 Oct 2009 13:31:21 +0100 (CET)
Date: Thu, 29 Oct 2009 13:31:21 +0100
From: Rory Byrne <rory@jinsky.com>
To: hybi@ietf.org
Message-ID: <20091029123121.GA24268@almeida.jinsky.com>
Mail-Followup-To: hybi@ietf.org
References: <8B0A9FCBB9832F43971E38010638454F0F1EA72C@SISPE7MB1.commscope.com> <Pine.LNX.4.62.0910270903080.9145@hixie.dreamhostps.com> <a9699fd20910270426u4aa508cepf557b362025ae5db@mail.gmail.com> <Pine.LNX.4.62.0910271824200.25616@hixie.dreamhostps.com> <4AE76137.8000603@webtide.com> <Pine.LNX.4.62.0910272118590.25608@hixie.dreamhostps.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <Pine.LNX.4.62.0910272118590.25608@hixie.dreamhostps.com>
User-Agent: Mutt/1.5.13 (2006-08-11)
Subject: Re: [hybi] WS framing alternative
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, 29 Oct 2009 12:31:09 -0000

Hi Everyone,

I'm new to this list.

Just wanted to jump in here and throw my support in with the server
developers who want to see a byte count on all frames.

I think that Greg Wilkins is right on the money in what he says
about managing server resources. A byte count which tells a server
how much data a client intends to push to it, is a critical piece
of information. We're talking about servers that are going to have
many thousands of clients permanently connected to them for weeks,
or months, on end. To stay alive, these servers will need to be
excellent at resource management. IMO, the protocol as it stands
at the moment, is not giving these servers the information they
require to enable them to adequately manage their resources.

In a further effort to boost our chances of building robust
WebSocket servers, I would hope that we might consider adding some
sort of maximum frame length negotiation. Nothing fancy, there
could be a suitable default maximum, and a 'Max-Frame-Length' header
which enables a client to negotiate a higher maximum. Maybe something
like this:

        GET /demo HTTP/1.1
        Upgrade: WebSocket
        Connection: Upgrade
        Host: example.com
        Origin: http://example.com
        WebSocket-Protocol: sample
        Max-Frame-Length: 2097152

        HTTP/1.1 101 Web Socket Protocol Handshake
        Upgrade: WebSocket
        Connection: Upgrade
        WebSocket-Origin: http://example.com
        WebSocket-Location: ws://example.com/demo
        WebSocket-Protocol: sample
        Max-Frame-Length: 1048576

The server would only send a 'Max-Frame-Length' header if it wanted to
set the maximum to be lower than the client suggested. Any thoughts?

On the whole, I'm really excited about this effort to introduce the
Web Socket protocol. It's great to see that there's buy-in from browser
developers, and I'm really looking forward to testing out their
implementations!

Thanks,

Rory


From sm@resistor.net  Thu Oct 29 13:59:19 2009
Return-Path: <sm@resistor.net>
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 83C563A6A1D for <hybi@core3.amsl.com>; Thu, 29 Oct 2009 13:59:19 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.527
X-Spam-Level: 
X-Spam-Status: No, score=-2.527 tagged_above=-999 required=5 tests=[AWL=0.072,  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 fPdjeQujxruM for <hybi@core3.amsl.com>; Thu, 29 Oct 2009 13:59:18 -0700 (PDT)
Received: from ns1.qubic.net (ns1.qubic.net [208.69.177.116]) by core3.amsl.com (Postfix) with ESMTP id 914AB3A694A for <hybi@ietf.org>; Thu, 29 Oct 2009 13:59:18 -0700 (PDT)
Received: from subman.resistor.net ([10.0.0.1]) (authenticated bits=0) by ns1.qubic.net (8.14.4.Beta0/8.14.4.Beta0) with ESMTP id n9TKxPCW023743 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for <hybi@ietf.org>; Thu, 29 Oct 2009 13:59:31 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=resistor.net; s=mail; t=1256849973; x=1256936373; bh=iWg7cJbWBsPd+1XAZTNPBI5rQIfaFUcY7zrenucGc0o=; h=Message-Id:Date:To:From:Subject:In-Reply-To:References: Mime-Version:Content-Type:Cc; b=tz9+o3JYJv+Ppzpy5O03MwA9k78aFEWqKavex2Rer0kVwR8pPlUzyuNH6MeNg+wZa 77gnKAo/xZBPrJhjsER27NDOmBSFH/ZjR5rvpCo2PdkIOaJXow4255I5gmC0PAIei+ sFk1dts/IPEBpZ0ME0i+BHWkCLkE0iPN0a/krrpw=
DomainKey-Signature: a=rsa-sha1; s=mail; d=resistor.net; c=simple; q=dns; b=TO4IS1lK1vrRvk6TcDYSoCAtslNjQ8sIw7Xffdxt+umo07f37OQhhY9qCuCj/ijLN XRPOhJr/jQHFOkQ4CqafJoSqyXSZPVGuHs+B9BegY6PjD1w85YfdoQUZKaSS6pji5Xb CVBzSfYzlrbtc8lXE/W65QidRaitLnAG9wE2y+E=
Message-Id: <6.2.5.6.2.20091029132020.03232b88@resistor.net>
X-Mailer: QUALCOMM Windows Eudora Version 6.2.5.6
Date: Thu, 29 Oct 2009 13:57:30 -0700
To: hybi@ietf.org
From: SM <sm@resistor.net>
In-Reply-To: <4AAB7CCB.9010805@ericsson.com>
References: <4AAB7CCB.9010805@ericsson.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; format=flowed
Subject: Re: [hybi] HyBi BOF announcement
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, 29 Oct 2009 20:59:19 -0000

At 07:40 23-10-2009, Peter Saint-Andre wrote:
>And I wonder if there is a "v3d" ("version three digits") problem

Probably.

>lurking in the tools we use to process Internet-Drafts. I've never seen
>an I-D with a version greater than 99.

Neither have I.

At 03:49 12-09-2009, Salvatore Loreto wrote:
>We are still working on the Charter Proposal and on the Agenda so 
>all the proposal and comments are welcome!

 From the proposal:

   "In particular, the working group will liaison with the W3C
    WebApps working group around the WebSockets protocol and the
    requirements to support the WebSocket API; if agreed by both
    parties, the HyBi working group may take on prime responsibility
    on the specification of the WebSockets protocol."

Are the two working group in agreement on who has prime 
responsibility?  I ask as there seems to be some misunderstanding 
about how work get done within the IETF.  BTW, prime responsibility 
doesn't mean that the two working groups should not work together.

    "Ability to achieve broad implementation"

Will the work be dropped if there isn't broad implementation?  If you 
are going for Proposed Standard, it may be worth considering whether 
the bar is not set too high.

    "Ability to address broader use cases than may be contemplated
     by the original authors"

I suggest changing that as this is (IETF) Working Group work:

   Ability to address broader use cases

Regards,
-sm 


From gregw@webtide.com  Thu Oct 29 14:51:37 2009
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 C410F3A6A21 for <hybi@core3.amsl.com>; Thu, 29 Oct 2009 14:51:37 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.349
X-Spam-Level: 
X-Spam-Status: No, score=-2.349 tagged_above=-999 required=5 tests=[AWL=0.250,  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 S-oHUi9kJ63g for <hybi@core3.amsl.com>; Thu, 29 Oct 2009 14:51:36 -0700 (PDT)
Received: from mail-bw0-f223.google.com (mail-bw0-f223.google.com [209.85.218.223]) by core3.amsl.com (Postfix) with ESMTP id 8F6B53A6800 for <hybi@ietf.org>; Thu, 29 Oct 2009 14:51:36 -0700 (PDT)
Received: by bwz23 with SMTP id 23so2871572bwz.29 for <hybi@ietf.org>; Thu, 29 Oct 2009 14:51:50 -0700 (PDT)
Received: by 10.204.34.72 with SMTP id k8mr451437bkd.98.1256853109845; Thu, 29 Oct 2009 14:51:49 -0700 (PDT)
Received: from ?10.10.1.9? (60-242-119-126.tpgi.com.au [60.242.119.126]) by mx.google.com with ESMTPS id 15sm285645bwz.12.2009.10.29.14.51.45 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 29 Oct 2009 14:51:48 -0700 (PDT)
Message-ID: <4AEA0E6C.1060607@webtide.com>
Date: Fri, 30 Oct 2009 08:51:40 +1100
From: Greg Wilkins <gregw@webtide.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090817)
MIME-Version: 1.0
To: hybi@ietf.org
References: <8B0A9FCBB9832F43971E38010638454F0F1EA72C@SISPE7MB1.commscope.com>	<Pine.LNX.4.62.0910270903080.9145@hixie.dreamhostps.com>	<a9699fd20910270426u4aa508cepf557b362025ae5db@mail.gmail.com>	<Pine.LNX.4.62.0910271824200.25616@hixie.dreamhostps.com>	<4AE76137.8000603@webtide.com>	<Pine.LNX.4.62.0910272118590.25608@hixie.dreamhostps.com> <20091029123121.GA24268@almeida.jinsky.com>
In-Reply-To: <20091029123121.GA24268@almeida.jinsky.com>
X-Enigmail-Version: 0.95.7
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Subject: Re: [hybi] WS framing alternative
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, 29 Oct 2009 21:51:37 -0000

Rory Byrne wrote:
> In a further effort to boost our chances of building robust
> WebSocket servers, I would hope that we might consider adding some
> sort of maximum frame length negotiation. Nothing fancy, there
> could be a suitable default maximum, and a 'Max-Frame-Length' header
> which enables a client to negotiate a higher maximum. Maybe something
> like this:
> 
>         GET /demo HTTP/1.1
>         Upgrade: WebSocket
>         Connection: Upgrade
>         Host: example.com
>         Origin: http://example.com
>         WebSocket-Protocol: sample
>         Max-Frame-Length: 2097152
> 
>         HTTP/1.1 101 Web Socket Protocol Handshake
>         Upgrade: WebSocket
>         Connection: Upgrade
>         WebSocket-Origin: http://example.com
>         WebSocket-Location: ws://example.com/demo
>         WebSocket-Protocol: sample
>         Max-Frame-Length: 1048576
> 
> The server would only send a 'Max-Frame-Length' header if it wanted to
> set the maximum to be lower than the client suggested. Any thoughts?


I think having the ability to negotiate such parameters is a good
way to fail fast if a server and client are not compatible (eg
client needs to send larger messages than server is willing to
receive).

But I'm sure that there will be resistance to having such negotiation
as a mandatory part of the protocol.

However, the problem with making this kind of negotiation optional
(and this goes for my earlier examples of a load balancer
communicating SSL info and/or node stickyness), is that the current
WS protocol has no place for meta data to be added in an optional
manner - so that it can be ignored by implementations that don't care.

Ian has previously said that instead of adding headers to the
Upgrade request/response, messages should be injected into the
stream to communicate this meta data.      However, because
there is no way to flag these messages as meta data, simple
implementations are going to try to handle them as messages.

This limitation of no standard meta-data paths, means that it
is nigh impossible to introduce features like multiplexing,
load balancing, fragmentations, HTTP transport etc. as optional
additional specifications built on top of ws.   Because there
is no meta channel, simple implementations will treat everything
as a message and break if there is any new protocol layered
on top.

This is SO simple to fix:

 1) WS should allow arbitrary headers in the upgrade request/response

 2) WS should define a frame type for transport meta data, whose
    content is defined only as Mime (or just mime headers).
    The semantics of these can be left to other protocols built
    on top of WS.

With these 2 simple additions, then we could later develop a
standards that (for example):

 + implement  multi-plexing by negotiated support  in the
   upgrade request/response and then injecting a meta data
   packet, before each data packet, containing the information
   needed to route the subsequent data message.

 + implement standards to send content advisory messages
   that would contain info such as language, content-type etc
   for a connection.   These could be used by implementations
   that wanted to be flexible, or ignored by implementations
   that are sure they know what they are connecting to.

The current proposal is just too nailed down.  There is no where
to insert any optional handling.   The API is wired to the TCP/IP
layer.  The handshake messages are locked down to binary equivalence.
There are spare framing types available - but any suggestions to
allocate that space for meta-data have been rejected.

It appears that the whatwg want layered protocols to be controlled by
the allocation of frame byte values to them and only officially
sanctified extensions will get the nod.   The Whatwg needs to loosen
up and realize  that it should not try to completely control how a
protocol will be used in the wild (eg an not force all servers
to be 100 line perl scripts).  They have to allow it some room to
breath and grow.    They need to allocate some space for some
arbitrary meta data to be used or ignored as implementations see fit.


regards







































From ian@hixie.ch  Thu Oct 29 17:54:20 2009
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 7902D3A6932 for <hybi@core3.amsl.com>; Thu, 29 Oct 2009 17:54:20 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.566
X-Spam-Level: 
X-Spam-Status: No, score=-2.566 tagged_above=-999 required=5 tests=[AWL=0.033,  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 XxtfpYOThL-f for <hybi@core3.amsl.com>; Thu, 29 Oct 2009 17:54:19 -0700 (PDT)
Received: from looneymail-a2.g.dreamhost.com (caibbdcaaaaf.dreamhost.com [208.113.200.5]) by core3.amsl.com (Postfix) with ESMTP id 9D04B3A67FC for <hybi@ietf.org>; Thu, 29 Oct 2009 17:54:19 -0700 (PDT)
Received: from hixie.dreamhostps.com (hixie.dreamhost.com [208.113.210.27]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by looneymail-a2.g.dreamhost.com (Postfix) with ESMTP id CDF2416D3E6; Thu, 29 Oct 2009 17:54:35 -0700 (PDT)
Date: Fri, 30 Oct 2009 00:54:42 +0000 (UTC)
From: Ian Hickson <ian@hixie.ch>
To: Salvatore Loreto <salvatore.loreto@ericsson.com>
In-Reply-To: <4AE966CA.9090907@ericsson.com>
Message-ID: <Pine.LNX.4.62.0910300047310.25608@hixie.dreamhostps.com>
References: <4AE966CA.9090907@ericsson.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" <hybi@ietf.org>
Subject: Re: [hybi] Proposed Charter for HyBi WG (rev.3)
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: Fri, 30 Oct 2009 00:54:20 -0000

On Thu, 29 Oct 2009, Salvatore Loreto wrote:
> 
> Since any modification of the web infrastructure may take a good amount 
> of time to be deployed, outputs of the working group will include both 
> short and long term solutions.

I think that's the wrong characterisation of the spaces that people want 
to work in. I think a better way to characterise it would be that there 
are three use cases people are interested in, with different needs:

 * Providing a standard way of doing two-way communication tunneled over 
   HTTP, for use by applications that cannot use TCP, Jabber, BEEP, or 
   other existing solutions in that space due to intermediaries, 
   firewalls, NATs, etc.

 * Providing something as close to TCP as possible to Web applications 
   (i.e. JavaScript running in HTML on Web browsers), while maintaining 
   the Web origin security model and fitting the Web development model 
   (e.g. event-based, not stream-based).

 * Providing a standard way of doing "hanging-GET" two-way communication 
   to HTTP servers along the lines of what interactive AJAX pages do.


> In particular, the working group will liaison with the W3C WebApps 
> working group around the WebSockets protocol and the requirements to 
> support the WebSocket API; if agreed by both parties, the HyBi working 
> group may take on prime responsibility on the specification of the 
> WebSockets protocol.

We should also liason with the WHATWG, since that's where most of the 
WebSockets work has happened. (The W3C Web Apps working group hasn't 
worked on the protocol at all, and they already liase with the WHATWG for 
the API.)

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

From jamie@shareable.org  Thu Oct 29 19:53:10 2009
Return-Path: <jamie@shareable.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 CC2723A6970 for <hybi@core3.amsl.com>; Thu, 29 Oct 2009 19:53:10 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.829
X-Spam-Level: 
X-Spam-Status: No, score=-1.829 tagged_above=-999 required=5 tests=[AWL=-0.470, BAYES_00=-2.599, SARE_LWSHORTT=1.24]
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 UbT7WpGpL0T0 for <hybi@core3.amsl.com>; Thu, 29 Oct 2009 19:53:10 -0700 (PDT)
Received: from mail2.shareable.org (mail2.shareable.org [80.68.89.115]) by core3.amsl.com (Postfix) with ESMTP id E6D7E3A679C for <hybi@ietf.org>; Thu, 29 Oct 2009 19:53:09 -0700 (PDT)
Received: from jamie by mail2.shareable.org with local (Exim 4.63) (envelope-from <jamie@shareable.org>) id 1N3hc9-00074M-5n; Fri, 30 Oct 2009 02:53:21 +0000
Date: Fri, 30 Oct 2009 02:53:21 +0000
From: Jamie Lokier <jamie@shareable.org>
To: Greg Wilkins <gregw@webtide.com>
Message-ID: <20091030025321.GD20292@shareable.org>
References: <8B0A9FCBB9832F43971E38010638454F0F1EA72C@SISPE7MB1.commscope.com> <Pine.LNX.4.62.0910270903080.9145@hixie.dreamhostps.com> <a9699fd20910270426u4aa508cepf557b362025ae5db@mail.gmail.com> <Pine.LNX.4.62.0910271824200.25616@hixie.dreamhostps.com> <4AE76137.8000603@webtide.com> <Pine.LNX.4.62.0910272118590.25608@hixie.dreamhostps.com> <20091029123121.GA24268@almeida.jinsky.com> <4AEA0E6C.1060607@webtide.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4AEA0E6C.1060607@webtide.com>
User-Agent: Mutt/1.5.13 (2006-08-11)
Cc: hybi@ietf.org
Subject: Re: [hybi] WS framing alternative
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: Fri, 30 Oct 2009 02:53:10 -0000

Greg Wilkins wrote:
> It appears that the whatwg want layered protocols to be controlled by
> the allocation of frame byte values to them and only officially
> sanctified extensions will get the nod.

Let's not get confused about what will and won't work.

It doesn't matter whether WHATWG sanctions any new frame type or not:
you can't _use_ a frame type if the other end won't recognise it.

That's because the message boundaries are determined by recognising
the frame type byte, then parsing the message in a type-specific way.

If message boundaries cannot be recognised when an unknown type is
received, a receiver can't do anything more with the connection.  It
just has to drop the connection at that point.

That means any intermediary (which may be just code inside a client or
server framework, or a proxy) will have to pass all all the bytes it
receives as it receives them, with little or no delays, because
intermediaries can't know where a message ends in general, except for
the frame types defined in the first version.

> The Whatwg needs to loosen
> up and realize  that it should not try to completely control how a
> protocol will be used in the wild (eg an not force all servers
> to be 100 line perl scripts).  They have to allow it some room to
> breath and grow.    They need to allocate some space for some
> arbitrary meta data to be used or ignored as implementations see fit.

Implementations can do that themselves.

A curious irony of WebSocket in it's current form is that there's no
reason a particular implementation should bother to use WebSocket
framing, if it doesn't wish to be accessible to Javascript browsers.

Since you must negotiate any custom protocol layered on top of
WebSocket out of band anyway (e.g. by agreeing what is present on some
URL), and because message boundaries cannot be recognised for unknown
frame types, and because there is no way to report per-frame errors,
in general all software which doesn't block WebSocket and intends to
be future compatible must pass the byte stream along verbatim, without
delays.

That means when implementing clients and servers of custom protocols,
you have two choices:

    - You want it to be accessible to Javascript in web browsers (in
      the short term future).  So you must frame everything into UTF-8
      frames, whatever kind of data it is, and define your own text
      protocol within that.

    - You don't care about Javascript in web browsers.  Because you
      know anything forwarding your WebSocket connection which is
      future compatible must pass along arbitrary bytes without
      delays, because there is no generic way for it to know frame
      lengths, you might as well send frame type byte NN (pick a
      number that is not used) followed by raw TCP with your own
      protocol after the upgrade request, if that is convenient.

      There seems to be no reason to use the spec's binary frames, if
      a TCP stream is more convenient for some application.

-- Jamie

From duerst@it.aoyama.ac.jp  Thu Oct 29 20:01:56 2009
Return-Path: <duerst@it.aoyama.ac.jp>
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 07A6C3A67C0 for <hybi@core3.amsl.com>; Thu, 29 Oct 2009 20:01:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.471
X-Spam-Level: 
X-Spam-Status: No, score=0.471 tagged_above=-999 required=5 tests=[AWL=0.261,  BAYES_00=-2.599, HELO_EQ_JP=1.244, HOST_EQ_JP=1.265, MIME_8BIT_HEADER=0.3]
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 p8440cJOXm6W for <hybi@core3.amsl.com>; Thu, 29 Oct 2009 20:01:54 -0700 (PDT)
Received: from scmailgw02.scop.aoyama.ac.jp (scmailgw02.scop.aoyama.ac.jp [133.2.251.42]) by core3.amsl.com (Postfix) with ESMTP id 052F23A679C for <hybi@ietf.org>; Thu, 29 Oct 2009 20:01:53 -0700 (PDT)
Received: from scmse01.scbb.aoyama.ac.jp (scmse01.scbb.aoyama.ac.jp [133.2.253.158]) by scmailgw02.scop.aoyama.ac.jp (secret/secret) with SMTP id n9U31xEQ021252 for <hybi@ietf.org>; Fri, 30 Oct 2009 12:01:59 +0900
Received: from (unknown [133.2.206.133]) by scmse01.scbb.aoyama.ac.jp with smtp id 1e03_97431e84_c500_11de_937b_001d096c566a; Fri, 30 Oct 2009 12:01:59 +0900
Received: from [IPv6:::1] ([133.2.210.1]:33608) by itmail.it.aoyama.ac.jp with [XMail 1.22 ESMTP Server] id <S124B55F> for <hybi@ietf.org> from <duerst@it.aoyama.ac.jp>; Fri, 30 Oct 2009 11:58:30 +0900
Message-ID: <4AEA5713.8020008@it.aoyama.ac.jp>
Date: Fri, 30 Oct 2009 12:01:39 +0900
From: =?ISO-8859-1?Q?=22Martin_J=2E_D=FCrst=22?= <duerst@it.aoyama.ac.jp>
Organization: Aoyama Gakuin University
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1b3pre) Gecko/20090108 Eudora/3.0b1pre
MIME-Version: 1.0
To: Greg Wilkins <gregw@webtide.com>
References: <8B0A9FCBB9832F43971E38010638454F0F1EA72C@SISPE7MB1.commscope.com>	<Pine.LNX.4.62.0910270903080.9145@hixie.dreamhostps.com>	<a9699fd20910270426u4aa508cepf557b362025ae5db@mail.gmail.com>	<Pine.LNX.4.62.0910271824200.25616@hixie.dreamhostps.com>	<4AE76137.8000603@webtide.com>	<Pine.LNX.4.62.0910272118590.25608@hixie.dreamhostps.com>	<20091029123121.GA24268@almeida.jinsky.com> <4AEA0E6C.1060607@webtide.com>
In-Reply-To: <4AEA0E6C.1060607@webtide.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
Cc: hybi@ietf.org
Subject: Re: [hybi] WS framing alternative
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: Fri, 30 Oct 2009 03:01:56 -0000

I'm in general very sympathetic to the WebSocket protocol, because it's 
exactly what we would have needed a year ago in some research we did 
here (using browsers for collaborative editing, coordinated through a 
server).

Also I agree with Ian that for communication between a single server and 
a single client, applications can work out their own "protocol", or some 
classes of applications (e.g. collaborative editing of some type of 
structures) can converge on a "protocol".

As far as the client and the server are concerned, negotiating things 
such as frame length seems rather pointless to me, because: a) we don't 
have any such negotiation currently for e.g. Web pages or images. b) The 
client should know the server reasonably well, and for applications 
where frame length is an issue (e.g. image upload, although I think 
there are way better ways to do image upload than with WebSockets), an 
external description of the service may contain some limits, or the 
"protocol" will say that you have to send the size first and wait for a 
"uploading is okay" from the server.

Where length issues or the like may come into play may be 
intermediaries. And (generic) intermediaries are where metadata is most 
valuable.

That said, however, I also agree with some other people on this list 
that extension points should be considered carefully. Greg's proposal:

 >   1) WS should allow arbitrary headers in the upgrade request/response
 >
 >   2) WS should define a frame type for transport meta data, whose
 >      content is defined only as Mime (or just mime headers).
 >      The semantics of these can be left to other protocols built
 >      on top of WS.

seems to be a very good starting point.

Regards,   Martin.

On 2009/10/30 6:51, Greg Wilkins wrote:
> Rory Byrne wrote:
>> In a further effort to boost our chances of building robust
>> WebSocket servers, I would hope that we might consider adding some
>> sort of maximum frame length negotiation. Nothing fancy, there
>> could be a suitable default maximum, and a 'Max-Frame-Length' header
>> which enables a client to negotiate a higher maximum. Maybe something
>> like this:
>>
>>          GET /demo HTTP/1.1
>>          Upgrade: WebSocket
>>          Connection: Upgrade
>>          Host: example.com
>>          Origin: http://example.com
>>          WebSocket-Protocol: sample
>>          Max-Frame-Length: 2097152
>>
>>          HTTP/1.1 101 Web Socket Protocol Handshake
>>          Upgrade: WebSocket
>>          Connection: Upgrade
>>          WebSocket-Origin: http://example.com
>>          WebSocket-Location: ws://example.com/demo
>>          WebSocket-Protocol: sample
>>          Max-Frame-Length: 1048576
>>
>> The server would only send a 'Max-Frame-Length' header if it wanted to
>> set the maximum to be lower than the client suggested. Any thoughts?
>
>
> I think having the ability to negotiate such parameters is a good
> way to fail fast if a server and client are not compatible (eg
> client needs to send larger messages than server is willing to
> receive).
>
> But I'm sure that there will be resistance to having such negotiation
> as a mandatory part of the protocol.
>
> However, the problem with making this kind of negotiation optional
> (and this goes for my earlier examples of a load balancer
> communicating SSL info and/or node stickyness), is that the current
> WS protocol has no place for meta data to be added in an optional
> manner - so that it can be ignored by implementations that don't care.
>
> Ian has previously said that instead of adding headers to the
> Upgrade request/response, messages should be injected into the
> stream to communicate this meta data.      However, because
> there is no way to flag these messages as meta data, simple
> implementations are going to try to handle them as messages.
>
> This limitation of no standard meta-data paths, means that it
> is nigh impossible to introduce features like multiplexing,
> load balancing, fragmentations, HTTP transport etc. as optional
> additional specifications built on top of ws.   Because there
> is no meta channel, simple implementations will treat everything
> as a message and break if there is any new protocol layered
> on top.
>
> This is SO simple to fix:
>
>   1) WS should allow arbitrary headers in the upgrade request/response
>
>   2) WS should define a frame type for transport meta data, whose
>      content is defined only as Mime (or just mime headers).
>      The semantics of these can be left to other protocols built
>      on top of WS.
>
> With these 2 simple additions, then we could later develop a
> standards that (for example):
>
>   + implement  multi-plexing by negotiated support  in the
>     upgrade request/response and then injecting a meta data
>     packet, before each data packet, containing the information
>     needed to route the subsequent data message.
>
>   + implement standards to send content advisory messages
>     that would contain info such as language, content-type etc
>     for a connection.   These could be used by implementations
>     that wanted to be flexible, or ignored by implementations
>     that are sure they know what they are connecting to.
>
> The current proposal is just too nailed down.  There is no where
> to insert any optional handling.   The API is wired to the TCP/IP
> layer.  The handshake messages are locked down to binary equivalence.
> There are spare framing types available - but any suggestions to
> allocate that space for meta-data have been rejected.
>
> It appears that the whatwg want layered protocols to be controlled by
> the allocation of frame byte values to them and only officially
> sanctified extensions will get the nod.   The Whatwg needs to loosen
> up and realize  that it should not try to completely control how a
> protocol will be used in the wild (eg an not force all servers
> to be 100 line perl scripts).  They have to allow it some room to
> breath and grow.    They need to allocate some space for some
> arbitrary meta data to be used or ignored as implementations see fit.
>
>
> regards
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> _______________________________________________
> hybi mailing list
> hybi@ietf.org
> https://www.ietf.org/mailman/listinfo/hybi
>

-- 
#-# Martin J. Dürst, Professor, Aoyama Gakuin University
#-# http://www.sw.it.aoyama.ac.jp   mailto:duerst@it.aoyama.ac.jp

From ian@hixie.ch  Thu Oct 29 20:45:20 2009
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 A2CE03A6A26 for <hybi@core3.amsl.com>; Thu, 29 Oct 2009 20:45:20 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.567
X-Spam-Level: 
X-Spam-Status: No, score=-2.567 tagged_above=-999 required=5 tests=[AWL=0.032,  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 KK9edMz3bVSy for <hybi@core3.amsl.com>; Thu, 29 Oct 2009 20:45:19 -0700 (PDT)
Received: from looneymail-a1.g.dreamhost.com (caibbdcaaaaf.dreamhost.com [208.113.200.5]) by core3.amsl.com (Postfix) with ESMTP id 7F51B3A6848 for <hybi@ietf.org>; Thu, 29 Oct 2009 20:45:19 -0700 (PDT)
Received: from hixie.dreamhostps.com (hixie.dreamhost.com [208.113.210.27]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by looneymail-a1.g.dreamhost.com (Postfix) with ESMTP id 20D7115D813; Thu, 29 Oct 2009 20:45:34 -0700 (PDT)
Date: Fri, 30 Oct 2009 03:45:43 +0000 (UTC)
From: Ian Hickson <ian@hixie.ch>
To: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <FAEBA8A9-8142-4180-8026-1EDA8C408919@mnot.net>
Message-ID: <Pine.LNX.4.62.0910272124250.25608@hixie.dreamhostps.com>
References: <FDC38D4B-AB64-4F6B-B569-81D7A56DEC8D@mnot.net> <Pine.LNX.4.62.0910270912040.9145@hixie.dreamhostps.com> <FAEBA8A9-8142-4180-8026-1EDA8C408919@mnot.net>
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] More feedback on WebSockets
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: Fri, 30 Oct 2009 03:45:20 -0000

On Wed, 28 Oct 2009, Mark Nottingham wrote:
> 
> You've effectively profiled the syntactic conventions of HTTP. 
> Implementations that speak HTTP -- whether profiled or not -- should be 
> able to do so confidently on the port allocated to it.

Could you give a concrete example of where this wouldn't work? I don't 
understand the problem here.


> > The request is fully HTTP-compliant. What value would there be in 
> > relaxing the rules on what WebSocket clients should send in the 
> > request? I don't understand the real-world case you are concerned 
> > about.
> 
> My concern is with the precedent it will set.

Could you elaborate on this?


> As far as real-world use cases, I think that your handshake has a 
> significant chance of producing false positives with deployed systems; 
> many so-called "transparent" (interception) proxies often take great 
> pains to stay hidden, so that while the client and server will think 
> they have an operative WebSocket connection, as soon as they try to do 
> any bi-directional (i.e., not request/response) communication, it will 
> fail in a non-obvious, slow way (e.g., hanging) that's hard to recover 
> from.

Yes, this is a known risk. The solution is to use TLS. It's not clear that 
there is any way around this without sacrificing some of the other 
requirements (like being able to share a port with an HTTP server).

If anyone can provide any information on any specific MITM proxies that 
have this problem, I would be very grateful. I would love to be able to 
test this in real-world situations against such proxies.


> You'd be better off using a handshake that looks as little like HTTP as 
> possible, so as to fail more reliably and quickly. Or, preferably, 
> another port.

The relevant goal here is to be able to share a port with an HTTP server. 
Not doing an HTTP Upgrade and not using the same port both rather fail to 
achieve this goal.


> > > 3) In section 1.6 (Establishing a Connection), you say
> > > 
> > > > On the face of it, the simplest method would seem to be to use port
> > > >   80 to get a direct connection to a Web Socket server.  Port 80
> > > >   traffic, however, will often be intercepted by HTTP proxies, which
> > > >   can lead to the connection failing to be established.
> > > 
> > > Given this, is it a good idea for the default port for the WS scheme to
> > > be port 80? Why not use a separate port and fall back to 443 with null
> > > encryption, for example?
> > 
> > That's what the spec used to require, but IANA requested that I use ports
> > 80 and 443 directly.
> 
> What was the reasoning behind this request?

I didn't really understand their reasoning, but they insisted that it was 
the right thing even when I asked for confirmation.


> The ticket number you refer to isn't useful to those not involved.

I haven't checked, but I assume that the number would let you find the 
issue in the IANA's archives... the number was in the subject line of the 
e-mails, if that helps.


> > > and how do I indicate that multiple subprotocols are in use on one 
> > > connection?
> > 
> > Only one protocol can be in use per connection. If your protocol is 
> > just another layer below the final application-level protocol, then 
> > your protocol would have its own equivalent mechanism.
> 
> Hmm. This seems like punting the problem to yet another layer.

WebSocket's entire design is to punt everything to the next layer. It's 
not trying to add any features to the network; it's just trying to provide 
the closest thing to raw TCP as possible to JavaScript, within the 
constraints of the Web (browser) platform: the origin security model, the 
lack of binary support, and the event-based (rather than stream-based) 
programming model.

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

From gregw@webtide.com  Thu Oct 29 20:51:12 2009
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 5EC913A686A for <hybi@core3.amsl.com>; Thu, 29 Oct 2009 20:51:12 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.361
X-Spam-Level: 
X-Spam-Status: No, score=-2.361 tagged_above=-999 required=5 tests=[AWL=0.238,  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 65pF6wQyk2WY for <hybi@core3.amsl.com>; Thu, 29 Oct 2009 20:51:11 -0700 (PDT)
Received: from mail-yx0-f192.google.com (mail-yx0-f192.google.com [209.85.210.192]) by core3.amsl.com (Postfix) with ESMTP id 60FEC3A67EF for <hybi@ietf.org>; Thu, 29 Oct 2009 20:51:11 -0700 (PDT)
Received: by mail-yx0-f192.google.com with SMTP id 30so2688182yxe.29 for <hybi@ietf.org>; Thu, 29 Oct 2009 20:51:28 -0700 (PDT)
Received: by 10.150.87.4 with SMTP id k4mr1845582ybb.347.1256874688270; Thu, 29 Oct 2009 20:51:28 -0700 (PDT)
Received: from ?10.10.1.9? (60-242-119-126.tpgi.com.au [60.242.119.126]) by mx.google.com with ESMTPS id 16sm645878gxk.15.2009.10.29.20.51.25 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 29 Oct 2009 20:51:27 -0700 (PDT)
Message-ID: <4AEA62B9.6040201@webtide.com>
Date: Fri, 30 Oct 2009 14:51:21 +1100
From: Greg Wilkins <gregw@webtide.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090817)
MIME-Version: 1.0
To: Jamie Lokier <jamie@shareable.org>
References: <8B0A9FCBB9832F43971E38010638454F0F1EA72C@SISPE7MB1.commscope.com> <Pine.LNX.4.62.0910270903080.9145@hixie.dreamhostps.com> <a9699fd20910270426u4aa508cepf557b362025ae5db@mail.gmail.com> <Pine.LNX.4.62.0910271824200.25616@hixie.dreamhostps.com> <4AE76137.8000603@webtide.com> <Pine.LNX.4.62.0910272118590.25608@hixie.dreamhostps.com> <20091029123121.GA24268@almeida.jinsky.com> <4AEA0E6C.1060607@webtide.com> <20091030025321.GD20292@shareable.org>
In-Reply-To: <20091030025321.GD20292@shareable.org>
X-Enigmail-Version: 0.95.7
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: hybi@ietf.org
Subject: Re: [hybi] WS framing alternative
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: Fri, 30 Oct 2009 03:51:12 -0000

Jamie Lokier wrote:
> Let's not get confused about what will and won't work.
> 
> It doesn't matter whether WHATWG sanctions any new frame type or not:
> you can't _use_ a frame type if the other end won't recognise it.
> 
> That's because the message boundaries are determined by recognising
> the frame type byte, then parsing the message in a type-specific way.


Is this true?

The high order byte is currently defined as selecting between
sentinel or length encoding, and the 7 lower order bits are ignored.

So as the spec is written - regardless of the value passed, it
will be one of those 2 framing types.

In essence, the byte is 1 bit framing type and 7 bits undefined.
The 1 bit is also indicating content-type (or at least content-encoding),
which is a strange mix of purposes.

I hope I'm right because if what you say is true, a server might
eventually have to implement up to 256 different framing types!

... and as much as I'm able to endlessly debate the benefits of
one framing type over another, I really don't care that much.
Can't we just pick one and use it!   If the sentinel framing
was good enough to carry anything, then I could live with it.
But it's not, so let's just do length encoding.

Note also that i think it is very valuable to have a known
framing type, so that intermediaries can know what message
boundaries are and treat them appropriately
either with forwarding data, logging, debugging etc.


regards

From gregw@webtide.com  Thu Oct 29 21:09:34 2009
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 1809A3A680D for <hybi@core3.amsl.com>; Thu, 29 Oct 2009 21:09:34 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.372
X-Spam-Level: 
X-Spam-Status: No, score=-2.372 tagged_above=-999 required=5 tests=[AWL=0.227,  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 qFbsCtaIMpOY for <hybi@core3.amsl.com>; Thu, 29 Oct 2009 21:09:33 -0700 (PDT)
Received: from mail-gx0-f228.google.com (mail-gx0-f228.google.com [209.85.217.228]) by core3.amsl.com (Postfix) with ESMTP id 1B7743A686A for <hybi@ietf.org>; Thu, 29 Oct 2009 21:09:33 -0700 (PDT)
Received: by gxk28 with SMTP id 28so2503247gxk.9 for <hybi@ietf.org>; Thu, 29 Oct 2009 21:09:47 -0700 (PDT)
Received: by 10.150.251.10 with SMTP id y10mr2005211ybh.49.1256875786921; Thu, 29 Oct 2009 21:09:46 -0700 (PDT)
Received: from ?10.10.1.9? (60-242-119-126.tpgi.com.au [60.242.119.126]) by mx.google.com with ESMTPS id 13sm772391gxk.1.2009.10.29.21.09.42 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 29 Oct 2009 21:09:45 -0700 (PDT)
Message-ID: <4AEA6701.1010808@webtide.com>
Date: Fri, 30 Oct 2009 15:09:37 +1100
From: Greg Wilkins <gregw@webtide.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090817)
MIME-Version: 1.0
To: Ian Hickson <ian@hixie.ch>
References: <4AE966CA.9090907@ericsson.com> <Pine.LNX.4.62.0910300047310.25608@hixie.dreamhostps.com>
In-Reply-To: <Pine.LNX.4.62.0910300047310.25608@hixie.dreamhostps.com>
X-Enigmail-Version: 0.95.7
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] Proposed Charter for HyBi WG (rev.3)
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: Fri, 30 Oct 2009 04:09:34 -0000

Ian Hickson wrote:
> I think that's the wrong characterisation of the spaces that people want 
> to work in. I think a better way to characterise it would be that there 
> are three use cases people are interested in, with different needs:
> 
>  * Providing a standard way of doing two-way communication tunneled over 
>    HTTP, for use by applications that cannot use TCP, Jabber, BEEP, or 
>    other existing solutions in that space due to intermediaries, 
>    firewalls, NATs, etc.
>
>  * Providing something as close to TCP as possible to Web applications 
>    (i.e. JavaScript running in HTML on Web browsers), while maintaining 
>    the Web origin security model and fitting the Web development model 
>    (e.g. event-based, not stream-based).
>
>  * Providing a standard way of doing "hanging-GET" two-way communication 
>    to HTTP servers along the lines of what interactive AJAX pages do.

Ian,

I don't see why you consider the first two as entirely
different audiences.  Web applications (i.e. JavaScript running
in HTML on Web browsers) are just any other application (like Jabber,
BEEP etc) that wants two-way communication over the web.

>From the point of view of server or an intermediary, there is
very little difference between any of the different client
application types that might be out there and I don't want to
have to double my effort to consider them differently.

I agree that webapps/browsers have some specific requirements - eg
in regards to the Web origin security model - but surely those extra
requirements should be layered on top of the protocol, not baked
in as assumptions that will force an entirely new protocol
to be used for non-browser clients.

regards



From ian@hixie.ch  Thu Oct 29 21:21:42 2009
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 58BF03A67B8 for <hybi@core3.amsl.com>; Thu, 29 Oct 2009 21:21:42 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.948
X-Spam-Level: 
X-Spam-Status: No, score=-1.948 tagged_above=-999 required=5 tests=[AWL=-0.589, BAYES_00=-2.599, SARE_LWSHORTT=1.24]
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 cARfb+-ALbZW for <hybi@core3.amsl.com>; Thu, 29 Oct 2009 21:21:40 -0700 (PDT)
Received: from looneymail-a1.g.dreamhost.com (caibbdcaaaaf.dreamhost.com [208.113.200.5]) by core3.amsl.com (Postfix) with ESMTP id CFC2A3A6827 for <hybi@ietf.org>; Thu, 29 Oct 2009 21:21:40 -0700 (PDT)
Received: from hixie.dreamhostps.com (hixie.dreamhost.com [208.113.210.27]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by looneymail-a1.g.dreamhost.com (Postfix) with ESMTP id D1A8815D7CF for <hybi@ietf.org>; Thu, 29 Oct 2009 21:21:56 -0700 (PDT)
Date: Fri, 30 Oct 2009 04:22:06 +0000 (UTC)
From: Ian Hickson <ian@hixie.ch>
To: hybi@ietf.org
In-Reply-To: <4AEA5713.8020008@it.aoyama.ac.jp>
Message-ID: <Pine.LNX.4.62.0910300346010.25616@hixie.dreamhostps.com>
References: <8B0A9FCBB9832F43971E38010638454F0F1EA72C@SISPE7MB1.commscope.com> <Pine.LNX.4.62.0910270903080.9145@hixie.dreamhostps.com> <a9699fd20910270426u4aa508cepf557b362025ae5db@mail.gmail.com> <Pine.LNX.4.62.0910271824200.25616@hixie.dreamhostps.com> <4AE76137.8000603@webtide.com> <Pine.LNX.4.62.0910272118590.25608@hixie.dreamhostps.com> <20091029123121.GA24268@almeida.jinsky.com> <4AEA0E6C.1060607@webtide.com> <4AEA5713.8020008@it.aoyama.ac.jp>
Content-Language: en-GB-hixie
Content-Style-Type: text/css
MIME-Version: 1.0
Content-Type: MULTIPART/MIXED; BOUNDARY="1909464018-698486445-1256876526=:25616"
Subject: Re: [hybi] WS framing alternative
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: Fri, 30 Oct 2009 04:21:42 -0000

  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

--1909464018-698486445-1256876526=:25616
Content-Type: TEXT/PLAIN; charset=UTF-8
Content-Transfer-Encoding: QUOTED-PRINTABLE

On Wed, 28 Oct 2009, Thomson, Martin wrote:
>=20
> > - It requires parsing using a presized buffer for variable-encoding=20
> > text, which risks character/byte mismatches and thus buffer overruns.
>=20
> That's untrue.
>=20
> Or you've made an assumption about my proposal that I never stated: i.e.=
=20
> that length is stated in characters.  Which would, of course, lead to=20
> these conclusions.  My intent (which I incorrectly assumed would be=20
> clear) was that length was octets.  It seems obvious to me - character=20
> encoding changes with different content types, thus you can't use=20
> character-based encodings.

You are proposing that given a length and a series of bytes encoding text=
=20
in a variable-sized encoding (UTF-8), the application return a series of=20
characters. My point is that this means that you have two lengths (the=20
length of the string in characters and the length of the string in bytes),=
=20
so you risk inexperienced software authors making elementary yet dangerous=
=20
mistakes in terms of how to read (or write) data to the stream. WebSocket=
=20
tries to avoid ever mixing the two (you either deal with bytes and byte=20
lengths, or you use sentinel bytes and no lengths -- you never have=20
characters and byte lengths mixed together).

This isn't a problem if you assume that there will be only a few people=20
implementing this and that they will all be competent. This is no an=20
assumption I believe one can make if one's goal is to enable even amateurs=
=20
to make use of this technology.


Regarding the rest of your e-mail, I don't disagree with the facts, but I=
=20
disagree with the cost-benefit analyses, with your opinion of what is and=
=20
what is not an acceptable risk, and with some of your goals. I don't know=
=20
of any objective way to argue those points, and I agree that if you start=
=20
with your positions, that you wouldn't develop WebSockets the way it is=20
currently specced.

What is the process for proceeding in the IETF when people have=20
fundamentally different and mutually exclusive opinions?


On Thu, 29 Oct 2009, Rory Byrne wrote:
>=20
> I think that Greg Wilkins is right on the money in what he says about=20
> managing server resources. A byte count which tells a server how much=20
> data a client intends to push to it, is a critical piece of information.=
=20
> We're talking about servers that are going to have many thousands of=20
> clients permanently connected to them for weeks, or months, on end. To=20
> stay alive, these servers will need to be excellent at resource=20
> management. IMO, the protocol as it stands at the moment, is not giving=
=20
> these servers the information they require to enable them to adequately=
=20
> manage their resources.

The server will know what the clients will generally be sending -- e.g. a=
=20
chat client is going to be expecting messages in the range of half a=20
kilobyte or less, generally. So the server can just assume that that is=20
the expected size, and only needs to do anything else if a message goes=20
above that point (either bail, if the protocol the server supports will=20
_never_ need such a large message, or switch to a bigger buffer).


> In a further effort to boost our chances of building robust WebSocket=20
> servers, I would hope that we might consider adding some sort of maximum=
=20
> frame length negotiation. Nothing fancy, there could be a suitable=20
> default maximum, and a 'Max-Frame-Length' header which enables a client=
=20
> to negotiate a higher maximum. Maybe something like this:
>=20
>         GET /demo HTTP/1.1
>         Upgrade: WebSocket
>         Connection: Upgrade
>         Host: example.com
>         Origin: http://example.com
>         WebSocket-Protocol: sample
>         Max-Frame-Length: 2097152
>=20
>         HTTP/1.1 101 Web Socket Protocol Handshake
>         Upgrade: WebSocket
>         Connection: Upgrade
>         WebSocket-Origin: http://example.com
>         WebSocket-Location: ws://example.com/demo
>         WebSocket-Protocol: sample
>         Max-Frame-Length: 1048576
>=20
> The server would only send a 'Max-Frame-Length' header if it wanted to=20
> set the maximum to be lower than the client suggested. Any thoughts?

It's not necessary. The person in charge of the server is the one who=20
invents the application-level protocol, and so the server can just define=
=20
what its maximum is, without any negotiation.

It'd be like an HTTP client and server negotiating the maximum size of a=20
<form> POST. If the client sends too much data, the server can just refuse=
=20
it. The server is the one who decides what is acceptable.


On Fri, 30 Oct 2009, Greg Wilkins wrote:
>=20
> I think having the ability to negotiate such parameters is a good way to=
=20
> fail fast if a server and client are not compatible (eg client needs to=
=20
> send larger messages than server is willing to receive).

How could that ever happen? A client isn't ever going to just randomly=20
connect to a WebSocket server and start sending messages -- it's only=20
going to send messages the server wants to support.


> However, the problem with making this kind of negotiation optional (and=
=20
> this goes for my earlier examples of a load balancer communicating SSL=20
> info and/or node stickyness), is that the current WS protocol has no=20
> place for meta data to be added in an optional manner - so that it can=20
> be ignored by implementations that don't care.

Sure, you just put them in the frames, as part of the higher-level=20
protocol.


> Ian has previously said that instead of adding headers to the Upgrade=20
> request/response, messages should be injected into the stream to=20
> communicate this meta data.  However, because there is no way to flag=20
> these messages as meta data, simple implementations are going to try to=
=20
> handle them as messages.

You can flag messages however you like. WebSocket is like TCP -- it's just=
=20
a transport on which you define your own protocol. Is there a way in TCP=20
to define the URL of a stream? Or a way to add metadata?


> This limitation of no standard meta-data paths, means that it is nigh=20
> impossible to introduce features like multiplexing, load balancing,=20
> fragmentations, HTTP transport etc. as optional additional=20
> specifications built on top of ws.  Because there is no meta channel,=20
> simple implementations will treat everything as a message and break if=20
> there is any new protocol layered on top.

This is either completely false, or we have dramatically different goals.

It's easy to add multiplexing, load balancing, or fragmentation as layers=
=20
above WebSocket. For example, with multiplexing, you could just define=20
that your frames have payloads like:

   C->S: open channel

   S->C: opened channel 1

   C->S: channel 1
         bla bla bla...

   S->C: channel 1
         foo bar baz...

   C->S: close channel 1

=2E..or whatever.

Given the goal of just providing TCP for Web pages, it doesn't really make=
=20
sense to have a more involved protocol.

It *would* make sense if your goal is something else, like tunneling=20
Jabber over HTTP or something. But that's a different project than=20
WebSockets. It's probably a perfectly reasonable thing for Hybi to work=20
on, but it should be articulated as its own project.


> It appears that the whatwg want layered protocols to be controlled by=20
> the allocation of frame byte values to them and only officially=20
> sanctified extensions will get the nod.

Layered protocols don't need frame types. In fact, frame types are=20
completely transparent to layered protocols. If your protocol is just=20
text-based, you'll never need anything beyond this version of WebSocket.


> The Whatwg needs to loosen up and realize that it should not try to=20
> completely control how a protocol will be used in the wild (eg an not=20
> force all servers to be 100 line perl scripts).  They have to allow it=20
> some room to breath and grow.  They need to allocate some space for some=
=20
> arbitrary meta data to be used or ignored as implementations see fit.

I think you are misunderstanding the point of the frame types.


On Fri, 30 Oct 2009, Jamie Lokier wrote:
>=20
> That means any intermediary (which may be just code inside a client or=20
> server framework, or a proxy) will have to pass all all the bytes it=20
> receives as it receives them, with little or no delays, because=20
> intermediaries can't know where a message ends in general, except for=20
> the frame types defined in the first version.

Actually the protocol defines how you parse (find message ends) for every=
=20
frame type possible. (0x00-0x7F use 0xFF delimiters, 0x80-0xFF use a=20
length declaration.)


> A curious irony of WebSocket in it's current form is that there's no=20
> reason a particular implementation should bother to use WebSocket=20
> framing, if it doesn't wish to be accessible to Javascript browsers.

There's no reason a particular implementation should bother to use=20
WebSocket _at all_, if it doesn't wish to be accessible to Javascript=20
browsers. Seriously, the whole point of WebSocket is to provide an API to=
=20
scripts. That's it. If your use case is something else, then WebSockets is=
=20
not the appropriate solution.=20


> Since you must negotiate any custom protocol layered on top of
> WebSocket out of band anyway (e.g. by agreeing what is present on some
> URL)

Actually the WebSocket-Protocol header lets you negotiate that at=20
connection time.


> and because message boundaries cannot be recognised for unknown frame=20
> types,

Actually that's well-defined already for all possible frame types.


> and because there is no way to report per-frame errors,

That's an application-level concern; there's no concept of errors at the=20
protocol level.


> in general all software which doesn't block WebSocket and intends to be=
=20
> future compatible must pass the byte stream along verbatim, without=20
> delays.

Right.


> That means when implementing clients and servers of custom protocols,=20
> you have two choices:
>=20
>     - You want it to be accessible to Javascript in web browsers (in
>       the short term future).  So you must frame everything into UTF-8
>       frames, whatever kind of data it is, and define your own text
>       protocol within that.

Right.


>     - You don't care about Javascript in web browsers.  Because you
>       know anything forwarding your WebSocket connection which is
>       future compatible must pass along arbitrary bytes without
>       delays, because there is no generic way for it to know frame
>       lengths, you might as well send frame type byte NN (pick a
>       number that is not used) followed by raw TCP with your own
>       protocol after the upgrade request, if that is convenient.
>=20
>       There seems to be no reason to use the spec's binary frames, if
>       a TCP stream is more convenient for some application.

There seems to be no reason to use WebSocket at all in this situation. It=
=20
doesn't provide anything more than TCP if you're not targetting JavaScript=
=20
in Web browsers.


On Fri, 30 Oct 2009, "Martin J. D=FCrst" wrote:
>=20
> That said, however, I also agree with some other people on this list that
> extension points should be considered carefully. Greg's proposal:
>=20
> >   1) WS should allow arbitrary headers in the upgrade request/response
> >
> >   2) WS should define a frame type for transport meta data, whose
> >      content is defined only as Mime (or just mime headers).
> >      The semantics of these can be left to other protocols built
> >      on top of WS.
>=20
> seems to be a very good starting point.

Could you elaborate on what problem this solves?

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

From sm@resistor.net  Thu Oct 29 22:01:34 2009
Return-Path: <sm@resistor.net>
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 6D08C3A695C for <hybi@core3.amsl.com>; Thu, 29 Oct 2009 22:01:34 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.531
X-Spam-Level: 
X-Spam-Status: No, score=-2.531 tagged_above=-999 required=5 tests=[AWL=0.068,  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 AgpGO0740EvC for <hybi@core3.amsl.com>; Thu, 29 Oct 2009 22:01:33 -0700 (PDT)
Received: from ns1.qubic.net (ns1.qubic.net [208.69.177.116]) by core3.amsl.com (Postfix) with ESMTP id 71EE53A6952 for <hybi@ietf.org>; Thu, 29 Oct 2009 22:01:33 -0700 (PDT)
Received: from subman.resistor.net ([10.0.0.1]) (authenticated bits=0) by ns1.qubic.net (8.14.4.Beta0/8.14.4.Beta0) with ESMTP id n9U51Vxo016888 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for <hybi@ietf.org>; Thu, 29 Oct 2009 22:01:38 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=resistor.net; s=mail; t=1256878899; x=1256965299; bh=TcMKJEcezTzcStjf5/NvnruxrZiTyogNtUXwZ03dp74=; h=Message-Id:Date:To:From:Subject:In-Reply-To:References: Mime-Version:Content-Type:Cc; b=VZsGDJi75JT/XpW9Adh4aJEQbfnJUhLsbnq9H49LSliIVeR/BCX2S/lhCCsMp2AHi mp14GYAv8zsrKRQwCGrFKrJamAhzb8gF3SgahZj/6tXYdrTs2DlcjvX6rdAB8AXP+0 6T+ezo0Hf1lDq7RvDyYp+Cks6BT5DEwsFH3NfSWI=
DomainKey-Signature: a=rsa-sha1; s=mail; d=resistor.net; c=simple; q=dns; b=ifFLWZpSpeywBIOYCXNIEsh9weF7PqmbKNf8hdM7N7v7SRjPfVntzYh4dggx550Or iKbyak8o5ySzP6HwDmpaEFNDmwiVOLC6tIH4FEZDY/QuG3tfM029DBcx5ubSxRFI4L7 pa4KXSBdy9anyFDbE2tPrAGBZwiPQJR+pyX1COo=
Message-Id: <6.2.5.6.2.20091029214250.028ec768@resistor.net>
X-Mailer: QUALCOMM Windows Eudora Version 6.2.5.6
Date: Thu, 29 Oct 2009 22:01:19 -0700
To: hybi@ietf.org
From: SM <sm@resistor.net>
In-Reply-To: <Pine.LNX.4.62.0910300346010.25616@hixie.dreamhostps.com>
References: <8B0A9FCBB9832F43971E38010638454F0F1EA72C@SISPE7MB1.commscope.com> <Pine.LNX.4.62.0910270903080.9145@hixie.dreamhostps.com> <a9699fd20910270426u4aa508cepf557b362025ae5db@mail.gmail.com> <Pine.LNX.4.62.0910271824200.25616@hixie.dreamhostps.com> <4AE76137.8000603@webtide.com> <Pine.LNX.4.62.0910272118590.25608@hixie.dreamhostps.com> <20091029123121.GA24268@almeida.jinsky.com> <4AEA0E6C.1060607@webtide.com> <4AEA5713.8020008@it.aoyama.ac.jp> <Pine.LNX.4.62.0910300346010.25616@hixie.dreamhostps.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; format=flowed
Subject: Re: [hybi] WS framing alternative
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: Fri, 30 Oct 2009 05:01:34 -0000

At 21:22 29-10-2009, Ian Hickson wrote:
>What is the process for proceeding in the IETF when people have
>fundamentally different and mutually exclusive opinions?

The group seeks rough consensus.  I guess that you could think of it 
as the view that reconciles the various opinions.  That does not 
require everyone to agree; although that's better.  It's not a hard 
rule; there's no voting.  It's up to the Working Group Chair to 
evaluate the consensus.

Regards,
-sm 


From Martin.Thomson@andrew.com  Thu Oct 29 22:04:52 2009
Return-Path: <Martin.Thomson@andrew.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 6AF283A69E2 for <hybi@core3.amsl.com>; Thu, 29 Oct 2009 22:04:52 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.561
X-Spam-Level: 
X-Spam-Status: No, score=-2.561 tagged_above=-999 required=5 tests=[AWL=0.038,  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 0QTJH+AI9CbX for <hybi@core3.amsl.com>; Thu, 29 Oct 2009 22:04:51 -0700 (PDT)
Received: from csmailgw2.commscope.com (csmailgw2.commscope.com [198.135.207.244]) by core3.amsl.com (Postfix) with ESMTP id 558A53A6961 for <hybi@ietf.org>; Thu, 29 Oct 2009 22:04:51 -0700 (PDT)
Received: from [10.86.20.103] ([10.86.20.103]:60785 "EHLO ACDCE7HC2.commscope.com") by csmailgw2.commscope.com with ESMTP id S69613AbZJ3FFF (ORCPT <rfc822;hybi@ietf.org>); Fri, 30 Oct 2009 00:05:05 -0500
Received: from SISPE7HC2.commscope.com (10.97.4.13) by ACDCE7HC2.commscope.com (10.86.20.103) with Microsoft SMTP Server (TLS) id 8.1.393.1; Fri, 30 Oct 2009 00:05:06 -0500
Received: from SISPE7MB1.commscope.com ([fe80::9d82:a492:85e3:a293]) by SISPE7HC2.commscope.com ([fe80::58c3:2447:f977:57c3%10]) with mapi; Fri, 30 Oct 2009 13:05:01 +0800
From: "Thomson, Martin" <Martin.Thomson@andrew.com>
To: Ian Hickson <ian@hixie.ch>, "hybi@ietf.org" <hybi@ietf.org>
Date: Fri, 30 Oct 2009 13:05:26 +0800
Thread-Topic: [hybi] WS framing alternative
Thread-Index: AcpZGI56WhJzkxN5St+H/IKgyYK2MAAAzbqw
Message-ID: <8B0A9FCBB9832F43971E38010638454F0F251B23@SISPE7MB1.commscope.com>
References: <8B0A9FCBB9832F43971E38010638454F0F1EA72C@SISPE7MB1.commscope.com> <Pine.LNX.4.62.0910270903080.9145@hixie.dreamhostps.com> <a9699fd20910270426u4aa508cepf557b362025ae5db@mail.gmail.com> <Pine.LNX.4.62.0910271824200.25616@hixie.dreamhostps.com> <4AE76137.8000603@webtide.com> <Pine.LNX.4.62.0910272118590.25608@hixie.dreamhostps.com> <20091029123121.GA24268@almeida.jinsky.com>	<4AEA0E6C.1060607@webtide.com> <4AEA5713.8020008@it.aoyama.ac.jp> <Pine.LNX.4.62.0910300346010.25616@hixie.dreamhostps.com>
In-Reply-To: <Pine.LNX.4.62.0910300346010.25616@hixie.dreamhostps.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-BCN: Meridius 1000 Version 3.4 on csmailgw2.commscope.com
X-BCN-Sender: Martin.Thomson@andrew.com
Subject: Re: [hybi] WS framing alternative
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: Fri, 30 Oct 2009 05:04:52 -0000

PiBZb3UgYXJlIHByb3Bvc2luZyB0aGF0IGdpdmVuIGEgbGVuZ3RoIGFuZCBhIHNlcmllcyBvZiBi
eXRlcyBlbmNvZGluZw0KPiB0ZXh0DQo+IGluIGEgdmFyaWFibGUtc2l6ZWQgZW5jb2RpbmcgKFVU
Ri04KSwgdGhlIGFwcGxpY2F0aW9uIHJldHVybiBhIHNlcmllcw0KPiBvZg0KPiBjaGFyYWN0ZXJz
Lg0KDQpTdXJlLiAgSXQncyBsaWtlIHRoZSBvbGQgYXJndW1lbnQgb3ZlciB3aGV0aGVyIEMgb3Ig
UGFzY2FsIHN0cmluZ3MgYXJlIGJldHRlci4gIEl0J3Mgbm90IHJlYWxseSBhIGZ1biBhcmd1bWVu
dC4gIEl0IHdhcyBub3QgbXkgaW50ZW50IHRvIGFyZ3VlIG92ZXIgdGhlIG1lcml0cyBvZiBlaXRo
ZXIgYXBwcm9hY2guDQoNClRoZSBwb2ludCB3YXMgdG8gYWxsb3cgZm9yIGFyYml0cmFyeSBiaW5h
cnkgY29udGVudCBhcyB3ZWxsIGFzIFVURi04IHRleHQgdG9nZXRoZXIuICBUaGUgcG9pbnQgd2Fz
IHRvIGFkb3B0IGEgZnJhbWluZyBzY2hlbWUgdGhhdCB3b3VsZCBhbGxvdyBmb3IgTUlNRS4gIElm
IHlvdSB3YW50IHRvIGF2b2lkIHRoZSBwcm9ibGVtIHlvdSByZWZlciB0byAod2hpY2ggSSBkb24n
dCBzZWUgYXMgYmVpbmcgYXMgYmlnIGFzIHlvdSBtYWtlIGl0IG91dCB0byBiZSksIHRoZW4gdGhh
dCdzIHF1aXRlIGRpZmZpY3VsdCBpZiB5b3Ugd2FudCB0byBhbGxvdyBmb3IgYmluYXJ5IGRhdGEg
LSBoZW5jZSB0aGUgdHdvIGZyYW1pbmcgc2NoZW1lcyBpbiBXUy4NCg0KLi4uDQo+IFJlZ2FyZGlu
ZyB0aGUgcmVzdCBvZiB5b3VyIGUtbWFpbCwgSSBkb24ndCBkaXNhZ3JlZSB3aXRoIHRoZSBmYWN0
cywgYnV0DQo+IEkNCj4gZGlzYWdyZWUgd2l0aCB0aGUgY29zdC1iZW5lZml0IGFuYWx5c2VzLCB3
aXRoIHlvdXIgb3BpbmlvbiBvZiB3aGF0IGlzDQo+IGFuZA0KPiB3aGF0IGlzIG5vdCBhbiBhY2Nl
cHRhYmxlIHJpc2ssIGFuZCB3aXRoIHNvbWUgb2YgeW91ciBnb2Fscy4gSSBkb24ndA0KPiBrbm93
DQo+IG9mIGFueSBvYmplY3RpdmUgd2F5IHRvIGFyZ3VlIHRob3NlIHBvaW50cywgYW5kIEkgYWdy
ZWUgdGhhdCBpZiB5b3UNCj4gc3RhcnQNCj4gd2l0aCB5b3VyIHBvc2l0aW9ucywgdGhhdCB5b3Ug
d291bGRuJ3QgZGV2ZWxvcCBXZWJTb2NrZXRzIHRoZSB3YXkgaXQgaXMNCj4gY3VycmVudGx5IHNw
ZWNjZWQuDQo+IA0KPiBXaGF0IGlzIHRoZSBwcm9jZXNzIGZvciBwcm9jZWVkaW5nIGluIHRoZSBJ
RVRGIHdoZW4gcGVvcGxlIGhhdmUNCj4gZnVuZGFtZW50YWxseSBkaWZmZXJlbnQgYW5kIG11dHVh
bGx5IGV4Y2x1c2l2ZSBvcGluaW9ucz8NCg0KSSBiZWxpZXZlIHRoYXQgd2UgdXNlIHRoZSBtZXRo
b2RzIG9mIHRoZSBTb3BoaXN0cy4gIFdlIGJlYXQgZWFjaCBvdGhlciBhcm91bmQgdGhlIGhlYWQg
d2l0aCByaGV0b3JpYy4gIFRoZW4gd2UgZWl0aGVyIGNvbWUgdG8gYSBjb21wcm9taXNlLCBzb21l
b25lIGNvbmNlZGVzLCBvciB0aGUgZGlmZmVyZW50IHBhcnRpZXMgYmVnaW4gdG8gZW5qb3kgdGhl
IGFyZ3VtZW50IHRvbyBtdWNoIGFuZCB3ZSBlbmQgdXAgd2l0aCBwcm9wcmlldGFyeSBzb2x1dGlv
bnMuDQoNClRoYW5rZnVsbHksIHdlIGFyZW4ndCBhcmd1aW5nIGluIGEgdmFjdXVtLiAgSSdtIGhh
cHB5IHRvIGNlZGUgdG8gdGhlIHdpbGwgb2YgYSBtYWpvcml0eSBvbiB0aGUgaXNzdWUsIGp1c3Qg
YXMgSSBob3BlIHRoYXQgeW91IGFyZS4gIEFuZCBkZXBsb3ltZW50IGNvdW50cyBmb3IgYSBsb3Qu
ICBVbnRpbCBJIGZlZWwgdGhhdCBJJ20gYXJndWluZyB3aXRob3V0IHN1cHBvcnQsIEkgd2lsbCBj
b250aW51ZSB0byBhcmd1ZSBmb3IgYSB0ZXh0LWJhc2VkIHByb3RvY29sIHdpdGggKG1hcmdpbmFs
bHkpIGdyZWF0ZXIgcHJvdmlzaW9uIGZvciBleHRlbnNpb24gdGhhbiBjdXJyZW50bHkgZXhpc3Rz
Lg0KDQotLU1hcnRpbg0KDQo=

From duerst@it.aoyama.ac.jp  Fri Oct 30 00:10:29 2009
Return-Path: <duerst@it.aoyama.ac.jp>
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 7D4313A67F2 for <hybi@core3.amsl.com>; Fri, 30 Oct 2009 00:10:29 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.451
X-Spam-Level: 
X-Spam-Status: No, score=0.451 tagged_above=-999 required=5 tests=[AWL=0.241,  BAYES_00=-2.599, HELO_EQ_JP=1.244, HOST_EQ_JP=1.265, MIME_8BIT_HEADER=0.3]
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 C0YAbrBP95kV for <hybi@core3.amsl.com>; Fri, 30 Oct 2009 00:10:28 -0700 (PDT)
Received: from scmailgw01.scop.aoyama.ac.jp (scmailgw01.scop.aoyama.ac.jp [133.2.251.41]) by core3.amsl.com (Postfix) with ESMTP id C640B3A63D3 for <hybi@ietf.org>; Fri, 30 Oct 2009 00:10:26 -0700 (PDT)
Received: from scmse01.scbb.aoyama.ac.jp (scmse01.scbb.aoyama.ac.jp [133.2.253.158]) by scmailgw01.scop.aoyama.ac.jp (secret/secret) with SMTP id n9U7AUOs028101 for <hybi@ietf.org>; Fri, 30 Oct 2009 16:10:32 +0900
Received: from (unknown [133.2.206.133]) by scmse01.scbb.aoyama.ac.jp with smtp id 639d_4ea54d82_c523_11de_a886_001d096c566a; Fri, 30 Oct 2009 16:10:30 +0900
Received: from [IPv6:::1] ([133.2.210.1]:51768) by itmail.it.aoyama.ac.jp with [XMail 1.22 ESMTP Server] id <S124BAB8> for <hybi@ietf.org> from <duerst@it.aoyama.ac.jp>; Fri, 30 Oct 2009 16:07:01 +0900
Message-ID: <4AEA9151.9040608@it.aoyama.ac.jp>
Date: Fri, 30 Oct 2009 16:10:09 +0900
From: =?UTF-8?B?Ik1hcnRpbiBKLiBEw7xyc3Qi?= <duerst@it.aoyama.ac.jp>
Organization: Aoyama Gakuin University
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1b3pre) Gecko/20090108 Eudora/3.0b1pre
MIME-Version: 1.0
To: Ian Hickson <ian@hixie.ch>
References: <8B0A9FCBB9832F43971E38010638454F0F1EA72C@SISPE7MB1.commscope.com>	<Pine.LNX.4.62.0910270903080.9145@hixie.dreamhostps.com>	<a9699fd20910270426u4aa508cepf557b362025ae5db@mail.gmail.com>	<Pine.LNX.4.62.0910271824200.25616@hixie.dreamhostps.com>	<4AE76137.8000603@webtide.com>	<Pine.LNX.4.62.0910272118590.25608@hixie.dreamhostps.com>	<20091029123121.GA24268@almeida.jinsky.com>	<4AEA0E6C.1060607@webtide.com> <4AEA5713.8020008@it.aoyama.ac.jp> <Pine.LNX.4.62.0910300346010.25616@hixie.dreamhostps.com>
In-Reply-To: <Pine.LNX.4.62.0910300346010.25616@hixie.dreamhostps.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Cc: hybi@ietf.org
Subject: Re: [hybi] WS framing alternative
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: Fri, 30 Oct 2009 07:10:29 -0000

Hello Ian,

[order of citations somewhat rearranged.]

On 2009/10/30 13:22, Ian Hickson wrote:

> On Fri, 30 Oct 2009, "Martin J. DÃ¼rst" wrote:
>> That said, however, I also agree with some other people on this list that
>> extension points should be considered carefully. Greg's proposal:
>>
>>>    1) WS should allow arbitrary headers in the upgrade request/response

 >On Fri, 30 Oct 2009, Jamie Lokier wrote:
 >> Since you must negotiate any custom protocol layered on top of
 >> WebSocket out of band anyway (e.g. by agreeing what is present on some
 >> URL)

 >Actually the WebSocket-Protocol header lets you negotiate that at
 >connection time.

Does that mean that WS allows arbitrary headers in the upgrade 
request/response? Or that there is one header, WebSocket-Protocol, with 
potentially a lot of data stuffed into it?


>>>    2) WS should define a frame type for transport meta data, whose
>>>       content is defined only as Mime (or just mime headers).
>>>       The semantics of these can be left to other protocols built
>>>       on top of WS.
>> seems to be a very good starting point.
>
> Could you elaborate on what problem this solves?

You seem to assume that Web Sockets communication is basically just 
between a client and a server, without any intermediaries getting 
involved in any significant way. In that case, you are fine. But if 
there's anything where intermediaries get involved in a specific way 
(other than just letting everything through or just blocking), then 
there's probably a need to let these intermediaries know some info. 
Because the payload frames are for data exchange between the client and 
the server, they are essentially opaque to intermediaries, so you can't 
use them for that purpose. That's where a separate frame type comes in 
handy.

Regards,    Martin.

-- 
#-# Martin J. DÃ¼rst, Professor, Aoyama Gakuin University
#-# http://www.sw.it.aoyama.ac.jp   mailto:duerst@it.aoyama.ac.jp

From gregw@webtide.com  Fri Oct 30 01:03:21 2009
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 273D83A69D9 for <hybi@core3.amsl.com>; Fri, 30 Oct 2009 01:03:21 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.382
X-Spam-Level: 
X-Spam-Status: No, score=-2.382 tagged_above=-999 required=5 tests=[AWL=0.217,  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 qiWZmQk9KXUo for <hybi@core3.amsl.com>; Fri, 30 Oct 2009 01:03:20 -0700 (PDT)
Received: from mail-gx0-f228.google.com (mail-gx0-f228.google.com [209.85.217.228]) by core3.amsl.com (Postfix) with ESMTP id C4CDB3A67B1 for <hybi@ietf.org>; Fri, 30 Oct 2009 01:03:19 -0700 (PDT)
Received: by gxk28 with SMTP id 28so2616843gxk.9 for <hybi@ietf.org>; Fri, 30 Oct 2009 01:03:34 -0700 (PDT)
Received: by 10.150.173.17 with SMTP id v17mr2355714ybe.80.1256889813994; Fri, 30 Oct 2009 01:03:33 -0700 (PDT)
Received: from ?10.10.1.9? (60-242-119-126.tpgi.com.au [60.242.119.126]) by mx.google.com with ESMTPS id 14sm1315255gxk.14.2009.10.30.01.03.31 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 30 Oct 2009 01:03:33 -0700 (PDT)
Message-ID: <4AEA9DCE.7000703@webtide.com>
Date: Fri, 30 Oct 2009 19:03:26 +1100
From: Greg Wilkins <gregw@webtide.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090817)
MIME-Version: 1.0
To: hybi@ietf.org
References: <8B0A9FCBB9832F43971E38010638454F0F1EA72C@SISPE7MB1.commscope.com>	<Pine.LNX.4.62.0910270903080.9145@hixie.dreamhostps.com>	<a9699fd20910270426u4aa508cepf557b362025ae5db@mail.gmail.com>	<Pine.LNX.4.62.0910271824200.25616@hixie.dreamhostps.com>	<4AE76137.8000603@webtide.com>	<Pine.LNX.4.62.0910272118590.25608@hixie.dreamhostps.com>	<20091029123121.GA24268@almeida.jinsky.com>	<4AEA0E6C.1060607@webtide.com> <4AEA5713.8020008@it.aoyama.ac.jp> <Pine.LNX.4.62.0910300346010.25616@hixie.dreamhostps.com>
In-Reply-To: <Pine.LNX.4.62.0910300346010.25616@hixie.dreamhostps.com>
X-Enigmail-Version: 0.95.7
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Subject: Re: [hybi] WS framing alternative
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: Fri, 30 Oct 2009 08:03:21 -0000

Ian Hickson wrote:

> The server will know what the clients will generally be sending -- e.g. a 
> chat client is going to be expecting messages in the range of half a 
> kilobyte or less, generally.

Why will the server know what the client will be sending?

The application built on top of the server might well know what
it is expecting, and maybe that will be of a size within a know
range and maybe that wont be able to be influenced by users doing
silly things etc.

but the application knowing and the code that implements the protocol
knowing are two entirely separate issues.

The application could tell the server implementation what size
to expect - but insert all your arguments against buffer size
negotiation on the wire here as arguments against passing
buffers sizes from app to server.

Besides, you keep saying that the people programming this don't
know how to calculate their own messages sizes - so they don't
know the length and couldn't tell you anyway.



> On Fri, 30 Oct 2009, Greg Wilkins wrote:
>> I think having the ability to negotiate such parameters is a good way to 
>> fail fast if a server and client are not compatible (eg client needs to 
>> send larger messages than server is willing to receive).
> 
> How could that ever happen? A client isn't ever going to just randomly 
> connect to a WebSocket server and start sending messages -- it's only 
> going to send messages the server wants to support.

People write new versions of software
Utilities and debugging tools can be written to talk to more than one server.
Mysterious intermediaries are inserted between you and the server.
Layered protocols are written on top of websocket that have options.
Programmers make mistakes



>> However, the problem with making this kind of negotiation optional (and 
>> this goes for my earlier examples of a load balancer communicating SSL 
>> info and/or node stickyness), is that the current WS protocol has no 
>> place for meta data to be added in an optional manner - so that it can 
>> be ignored by implementations that don't care.
> 
> Sure, you just put them in the frames, as part of the higher-level 
> protocol.

But unless you allocate a standard flag for meta data, then
implementations that don't implement these optional features will
crash because they don't understand these injected frames.

If a ws client connects to a ws server, and neither knows if
the other supports some layered protocol - how do they discover
that? neither one can just send a message asking, because it
will break the other end if they don't support it!


>> This limitation of no standard meta-data paths, means that it is nigh 
>> impossible to introduce features like multiplexing, load balancing, 
>> fragmentations, HTTP transport etc. as optional additional 
>> specifications built on top of ws.  Because there is no meta channel, 
>> simple implementations will treat everything as a message and break if 
>> there is any new protocol layered on top.
> 
> This is either completely false, or we have dramatically different goals.

Let's say that we have dramatically different goals.... sometimes that
happens and the sort of changes I'm minimally asking for are absolutely
trivial to the protocol and you can meet your goals and I can meet mine.



> Given the goal of just providing TCP for Web pages, it doesn't really make 
> sense to have a more involved protocol.

I'm not asking for a more involved protocol.
I'm asking for 1 bit to be allocated to indicate that a frame
contains mime-encoded data.    That is mostly sufficient
for layered protocols to be built on.



> It *would* make sense if your goal is something else, like tunneling 
> Jabber over HTTP or something. But that's a different project than 
> WebSockets. It's probably a perfectly reasonable thing for Hybi to work 
> on, but it should be articulated as its own project.

The sensible way to proceed would be to develop a simple but
extensible protocol that provides bidirectionality over the
web for all types of clients.

This can then be extended and/or layered upon for each type
of client.   So browsers could add on their origin security model
for example.

>From a servers/intermediaries point of view, browser are just
not that special that they deserve their entirely their own
protocol.




> I think you are misunderstanding the point of the frame types.

yes - kind of on purpose.

The WS Frame "byte" is really a frame bit, which is also
used indicate content-type (or at least content-encoding).

There are  7 unused bits in that byte. Allocating 1 of them
to indicate a meta data frame seams an entirely simple and
reasonable way to address one of the major concerns raised
by many people on this list.

Are you really saying you need to reserve space for 254 more
types of framing?

It's not like you are suggesting alternative ways to solve
the issues that we are raising.  You just keep saying "these
are not the droids that you are looking for....".  ie you
just say that the problems we raise are not problems for
you, so you don't care about them.


regards

























From salvatore.loreto@ericsson.com  Fri Oct 30 01:10:12 2009
Return-Path: <salvatore.loreto@ericsson.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 56C573A67B1 for <hybi@core3.amsl.com>; Fri, 30 Oct 2009 01:10:12 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.998
X-Spam-Level: 
X-Spam-Status: No, score=-5.998 tagged_above=-999 required=5 tests=[AWL=0.251,  BAYES_00=-2.599, HELO_EQ_SE=0.35, RCVD_IN_DNSWL_MED=-4]
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 IPveAE-Pakf4 for <hybi@core3.amsl.com>; Fri, 30 Oct 2009 01:10:11 -0700 (PDT)
Received: from mailgw4.ericsson.se (mailgw4.ericsson.se [193.180.251.62]) by core3.amsl.com (Postfix) with ESMTP id 0E8913A67A5 for <hybi@ietf.org>; Fri, 30 Oct 2009 01:10:10 -0700 (PDT)
X-AuditID: c1b4fb3e-b7bf6ae000005dda-6f-4aea9f72be2a
Received: from esealmw129.eemea.ericsson.se (Unknown_Domain [153.88.253.124]) by mailgw4.ericsson.se (Symantec Mail Security) with SMTP id DC.69.24026.27F9AEA4; Fri, 30 Oct 2009 09:10:26 +0100 (CET)
Received: from esealmw127.eemea.ericsson.se ([153.88.254.171]) by esealmw129.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.3959);  Fri, 30 Oct 2009 09:10:26 +0100
Received: from mail.lmf.ericsson.se ([131.160.11.50]) by esealmw127.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.3959);  Fri, 30 Oct 2009 09:10:25 +0100
Received: from nomadiclab.lmf.ericsson.se (nomadiclab.lmf.ericsson.se [131.160.33.3]) by mail.lmf.ericsson.se (Postfix) with ESMTP id A327724B7 for <hybi@ietf.org>; Fri, 30 Oct 2009 10:10:25 +0200 (EET)
Received: from nomadiclab.lmf.ericsson.se (localhost [127.0.0.1]) by nomadiclab.lmf.ericsson.se (Postfix) with ESMTP id 63C4F21A22 for <hybi@ietf.org>; Fri, 30 Oct 2009 10:10:25 +0200 (EET)
Received: from localhost.localdomain (localhost [127.0.0.1]) by nomadiclab.lmf.ericsson.se (Postfix) with ESMTP id E997B21A1F for <hybi@ietf.org>; Fri, 30 Oct 2009 10:10:24 +0200 (EET)
Message-ID: <4AEA9F70.5010806@ericsson.com>
Date: Fri, 30 Oct 2009 10:10:24 +0200
From: Salvatore Loreto <salvatore.loreto@ericsson.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090825)
MIME-Version: 1.0
To: "hybi@ietf.org" <hybi@ietf.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: ClamAV using ClamSMTP
X-OriginalArrivalTime: 30 Oct 2009 08:10:25.0935 (UTC) FILETIME=[6FA119F0:01CA5938]
X-Brightmail-Tracker: AAAAAA==
Subject: [hybi] DRAFT Agenda for HyBi BoF at IETF76 (Hiroshima)
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: Fri, 30 Oct 2009 08:10:12 -0000

Please find the *Draft* agenda for HyBi BoF for IETF76 (Hiroshima) here

http://www.ietf.org/proceedings/09nov/agenda/hybi.html

Please let the chairs know about any inconsistencies within this agenda 
asap.

Thank you
Salvatore Loreto

From salvatore.loreto@ericsson.com  Fri Oct 30 01:36:23 2009
Return-Path: <salvatore.loreto@ericsson.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 2F28B3A680B for <hybi@core3.amsl.com>; Fri, 30 Oct 2009 01:36:23 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.01
X-Spam-Level: 
X-Spam-Status: No, score=-6.01 tagged_above=-999 required=5 tests=[AWL=0.239,  BAYES_00=-2.599, HELO_EQ_SE=0.35, RCVD_IN_DNSWL_MED=-4]
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 vKkFXc3CgLbK for <hybi@core3.amsl.com>; Fri, 30 Oct 2009 01:36:22 -0700 (PDT)
Received: from mailgw4.ericsson.se (mailgw4.ericsson.se [193.180.251.62]) by core3.amsl.com (Postfix) with ESMTP id E964D3A67E5 for <hybi@ietf.org>; Fri, 30 Oct 2009 01:36:21 -0700 (PDT)
X-AuditID: c1b4fb3e-b7bf6ae000005dda-4d-4aeaa5952148
Received: from esealmw128.eemea.ericsson.se (Unknown_Domain [153.88.253.124]) by mailgw4.ericsson.se (Symantec Mail Security) with SMTP id 68.1B.24026.595AAEA4; Fri, 30 Oct 2009 09:36:37 +0100 (CET)
Received: from esealmw128.eemea.ericsson.se ([153.88.254.176]) by esealmw128.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.3959);  Fri, 30 Oct 2009 09:35:42 +0100
Received: from mail.lmf.ericsson.se ([131.160.11.50]) by esealmw128.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.3959);  Fri, 30 Oct 2009 09:35:42 +0100
Received: from nomadiclab.lmf.ericsson.se (nomadiclab.lmf.ericsson.se [131.160.33.3]) by mail.lmf.ericsson.se (Postfix) with ESMTP id 3316524B7; Fri, 30 Oct 2009 10:35:42 +0200 (EET)
Received: from nomadiclab.lmf.ericsson.se (localhost [127.0.0.1]) by nomadiclab.lmf.ericsson.se (Postfix) with ESMTP id F24DD21A22; Fri, 30 Oct 2009 10:35:41 +0200 (EET)
Received: from localhost.localdomain (localhost [127.0.0.1]) by nomadiclab.lmf.ericsson.se (Postfix) with ESMTP id 6431621A1F; Fri, 30 Oct 2009 10:35:41 +0200 (EET)
Message-ID: <4AEAA55C.6020401@ericsson.com>
Date: Fri, 30 Oct 2009 10:35:40 +0200
From: Salvatore Loreto <salvatore.loreto@ericsson.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090825)
MIME-Version: 1.0
To: SM <sm@resistor.net>
References: <4AAB7CCB.9010805@ericsson.com> <6.2.5.6.2.20091029132020.03232b88@resistor.net>
In-Reply-To: <6.2.5.6.2.20091029132020.03232b88@resistor.net>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: ClamAV using ClamSMTP
X-OriginalArrivalTime: 30 Oct 2009 08:35:42.0217 (UTC) FILETIME=[F7675F90:01CA593B]
X-Brightmail-Tracker: AAAAAA==
Cc: hybi@ietf.org
Subject: [hybi] Proposed Charter (rev.3) (W3C WebApps-Whatwg)
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: Fri, 30 Oct 2009 08:36:23 -0000

SM wrote:
> From the proposal:
>
> "In particular, the working group will liaison with the W3C
> WebApps working group around the WebSockets protocol and the
> requirements to support the WebSocket API; if agreed by both
> parties, the HyBi working group may take on prime responsibility
> on the specification of the WebSockets protocol."
>
> Are the two working group in agreement on who has prime 
> responsibility? I ask as there seems to be some misunderstanding about 
> how work get done within the IETF. BTW, prime responsibility doesn't 
> mean that the two working groups should not work together.
good point.
let me take this chance to ask people from W3C WebApps and Whatwg wgs
if they agree on IETF taking on prime responsibility on the 
specification of the WebSocket protocol,
continuing of course to work together on the draft;
and if they agree, if it clear for them how work get done within the IETF.

thanks for the collaboration
Salvatore


From ian@hixie.ch  Fri Oct 30 02:17:24 2009
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 2EC3F3A68A3 for <hybi@core3.amsl.com>; Fri, 30 Oct 2009 02:17:24 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.403
X-Spam-Level: 
X-Spam-Status: No, score=-2.403 tagged_above=-999 required=5 tests=[AWL=-0.104, BAYES_00=-2.599, MIME_8BIT_HEADER=0.3]
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 7rDV6wSB-Kjr for <hybi@core3.amsl.com>; Fri, 30 Oct 2009 02:17:23 -0700 (PDT)
Received: from looneymail-a2.g.dreamhost.com (caibbdcaaaaf.dreamhost.com [208.113.200.5]) by core3.amsl.com (Postfix) with ESMTP id 4FA113A67A7 for <hybi@ietf.org>; Fri, 30 Oct 2009 02:17:23 -0700 (PDT)
Received: from hixie.dreamhostps.com (hixie.dreamhost.com [208.113.210.27]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by looneymail-a2.g.dreamhost.com (Postfix) with ESMTP id 2F19716D3E6; Fri, 30 Oct 2009 02:17:40 -0700 (PDT)
Date: Fri, 30 Oct 2009 09:17:40 +0000 (UTC)
From: Ian Hickson <ian@hixie.ch>
To: =?UTF-8?B?Ik1hcnRpbiBKLiBEw7xyc3Qi?= <duerst@it.aoyama.ac.jp>
In-Reply-To: <4AEA9151.9040608@it.aoyama.ac.jp>
Message-ID: <Pine.LNX.4.62.0910300748590.25608@hixie.dreamhostps.com>
References: <8B0A9FCBB9832F43971E38010638454F0F1EA72C@SISPE7MB1.commscope.com> <Pine.LNX.4.62.0910270903080.9145@hixie.dreamhostps.com> <a9699fd20910270426u4aa508cepf557b362025ae5db@mail.gmail.com> <Pine.LNX.4.62.0910271824200.25616@hixie.dreamhostps.com> <4AE76137.8000603@webtide.com> <Pine.LNX.4.62.0910272118590.25608@hixie.dreamhostps.com> <20091029123121.GA24268@almeida.jinsky.com> <4AEA0E6C.1060607@webtide.com> <4AEA5713.8020008@it.aoyama.ac.jp> <Pine.LNX.4.62.0910300346010.25616@hixie.dreamhostps.com> <4AEA9151.9040608@it.aoyama.ac.jp>
Content-Language: en-GB-hixie
Content-Style-Type: text/css
MIME-Version: 1.0
Content-Type: MULTIPART/MIXED; BOUNDARY="1909464018-135474861-1256894260=:25608"
Cc: hybi@ietf.org
Subject: Re: [hybi] WS framing alternative
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: Fri, 30 Oct 2009 09:17:24 -0000

  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

--1909464018-135474861-1256894260=:25608
Content-Type: TEXT/PLAIN; charset=utf-8
Content-Transfer-Encoding: QUOTED-PRINTABLE

On Fri, 30 Oct 2009, "Martin J. D=C3=BCrst" wrote:
> >=20
> >Actually the WebSocket-Protocol header lets you negotiate that at=20
> >connection time.
>=20
> Does that mean that WS allows arbitrary headers in the upgrade=20
> request/response? Or that there is one header, WebSocket-Protocol, with=
=20
> potentially a lot of data stuffed into it?

You can set the desired value for -Protocol header by passing a parameter=
=20
to the WebSocket constructor. That sets the value from the client. The=20
server then responds with the protocol _it_ supports. If the two match,=20
the client provides the connection to the script. To support multiple=20
protocols, the server can use the client-provided value to decide which=20
one to use.


> You seem to assume that Web Sockets communication is basically just=20
> between a client and a server, without any intermediaries getting=20
> involved in any significant way.

Without any independent intermediaries, anyway. On the server side, there=
=20
can be whatever intermediaries the server-side developer likes; they can=20
all be considered to be the server-side implementation from the=20
perspective of the client (and the spec).


> But if there's anything where intermediaries get involved in a specific=
=20
> way (other than just letting everything through or just blocking), then=
=20
> there's probably a need to let these intermediaries know some info.=20
> Because the payload frames are for data exchange between the client and=
=20
> the server, they are essentially opaque to intermediaries, so you can't=
=20
> use them for that purpose. That's where a separate frame type comes in=20
> handy.

What's the use case for independent intermediaries?

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

From ian@hixie.ch  Fri Oct 30 02:57:41 2009
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 3462F3A68CE for <hybi@core3.amsl.com>; Fri, 30 Oct 2009 02:57:41 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.551
X-Spam-Level: 
X-Spam-Status: No, score=-3.551 tagged_above=-999 required=5 tests=[AWL=1.048,  BAYES_00=-2.599, GB_I_INVITATION=-2]
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 Gp6zvud51dAc for <hybi@core3.amsl.com>; Fri, 30 Oct 2009 02:57:39 -0700 (PDT)
Received: from looneymail-a1.g.dreamhost.com (caibbdcaaaaf.dreamhost.com [208.113.200.5]) by core3.amsl.com (Postfix) with ESMTP id C59753A681C for <hybi@ietf.org>; Fri, 30 Oct 2009 02:57:39 -0700 (PDT)
Received: from hixie.dreamhostps.com (hixie.dreamhost.com [208.113.210.27]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by looneymail-a1.g.dreamhost.com (Postfix) with ESMTP id 1414F15D78B; Fri, 30 Oct 2009 02:57:56 -0700 (PDT)
Date: Fri, 30 Oct 2009 09:57:56 +0000 (UTC)
From: Ian Hickson <ian@hixie.ch>
To: Greg Wilkins <gregw@webtide.com>
In-Reply-To: <4AEA9DCE.7000703@webtide.com>
Message-ID: <Pine.LNX.4.62.0910300919250.25608@hixie.dreamhostps.com>
References: <8B0A9FCBB9832F43971E38010638454F0F1EA72C@SISPE7MB1.commscope.com> <Pine.LNX.4.62.0910270903080.9145@hixie.dreamhostps.com> <a9699fd20910270426u4aa508cepf557b362025ae5db@mail.gmail.com> <Pine.LNX.4.62.0910271824200.25616@hixie.dreamhostps.com> <4AE76137.8000603@webtide.com> <Pine.LNX.4.62.0910272118590.25608@hixie.dreamhostps.com> <20091029123121.GA24268@almeida.jinsky.com> <4AEA0E6C.1060607@webtide.com> <4AEA5713.8020008@it.aoyama.ac.jp> <Pine.LNX.4.62.0910300346010.25616@hixie.dreamhostps.com> <4AEA9DCE.7000703@webtide.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] WS framing alternative
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: Fri, 30 Oct 2009 09:57:41 -0000

On Fri, 30 Oct 2009, Greg Wilkins wrote:
> Ian Hickson wrote:
> > 
> > The server will know what the clients will generally be sending -- 
> > e.g. a chat client is going to be expecting messages in the range of 
> > half a kilobyte or less, generally.
> 
> Why will the server know what the client will be sending?

It defines it.

Consider TCP. The server knows what kind of traffic the clients will be 
sending -- it depends on the kind of server. An IMAP server knows that the 
client will be trying to talk IMAP. An HTTP server knows that the client 
will be trying to talk HTTP. An SSH server knows that the client will be 
talking SSH.

The same applies to WebSocket. A Wave server knows that the client will be 
talking Wave. A VoidWars game server knows that the client will be talking 
the VoidWars game protocol.

If you try to talk IMAP to an SSH server, the server's just going to close 
the connection on you. If you try to talk the VoidWars game protocol to a 
Wave server, the Wave server is just going to close the connection on you.

The Wave server can therefore know that it's only expecting messages of a 
certain length, and that it can just close the connection if the messages 
are too long.


> The application built on top of the server might well know what it is 
> expecting, and maybe that will be of a size within a known range and 
> maybe that wont be able to be influenced by users doing silly things 
> etc.
> 
> but the application knowing and the code that implements the protocol 
> knowing are two entirely separate issues.

Only if you make them separate, which seems to just be inviting trouble, 
given how simple the protocol is.

You're proposing making changes to the protocol to make it easier to make 
dedicated frameworks for the protocol.

I'm proposing making the protocol so simple that dedicated frameworks are 
superfluous.


> The application could tell the server implementation what size to expect 
> - but insert all your arguments against buffer size negotiation on the 
> wire here as arguments against passing buffers sizes from app to server.

My argument against on-the-wire buffer size negotiation ("it's 
unnecessary, both sides already know the protocol") doesn't apply in the 
case you are talking about (since by definition, the information is being 
passed from the part of the server implementation that does know the 
protocol to the part that doesn't know the protocol).


> Besides, you keep saying that the people programming this don't know how 
> to calculate their own messages sizes - so they don't know the length 
> and couldn't tell you anyway.

I'm saying that _some_ people programming this don't know how to calculate 
their own messages sizes. That doesn't mean that none do. Making the 
assumption that we have to cater for inexperienced programmers is not the 
same as making the assumption that we should _only_ cater to inexperienced 
programmers. Experts are also part of the ecosystem.

When designing a protocol for the broad range of authors from 
inexperienced to expert, we have to make sure that the inexperienced can 
get simple results easily, and that complexity is handled by the experts. 
This means making the simple things simple and the complex things more 
complex, rather than making everything a middling level of complexity. 
Making everything equally complex is optimising simplicity for the 
experts, who are the group who (by definition) need it the least.


> > On Fri, 30 Oct 2009, Greg Wilkins wrote:
> >> However, the problem with making this kind of negotiation optional 
> >> (and this goes for my earlier examples of a load balancer 
> >> communicating SSL info and/or node stickyness), is that the current 
> >> WS protocol has no place for meta data to be added in an optional 
> >> manner - so that it can be ignored by implementations that don't 
> >> care.
> > 
> > Sure, you just put them in the frames, as part of the higher-level 
> > protocol.
> 
> But unless you allocate a standard flag for meta data, then 
> implementations that don't implement these optional features will crash 
> because they don't understand these injected frames.

Yes, if you define a protocol and people don't implement it right, you'll 
have bugs. The same applies to any protocol.


> If a ws client connects to a ws server, and neither knows if the other 
> supports some layered protocol - how do they discover that?

If a TCP client connects to a TCP server, and neither knows if the other 
supports some layered protocol - how do they discover that?

The answer is the same.


> >> This limitation of no standard meta-data paths, means that it is nigh 
> >> impossible to introduce features like multiplexing, load balancing, 
> >> fragmentations, HTTP transport etc. as optional additional 
> >> specifications built on top of ws.  Because there is no meta channel, 
> >> simple implementations will treat everything as a message and break 
> >> if there is any new protocol layered on top.
> > 
> > This is either completely false, or we have dramatically different 
> > goals.
> 
> Let's say that we have dramatically different goals.... sometimes that 
> happens and the sort of changes I'm minimally asking for are absolutely 
> trivial to the protocol and you can meet your goals and I can meet mine.

I do not see how to meet my goals of making the protocol the simplest 
possible layer on top of TCP if we make it more complicated than the 
simplest possible layer on top of TCP.

That is, I do not see how our goals could ever be met by the same 
protocol, if I understand your goals correctly.


> > Given the goal of just providing TCP for Web pages, it doesn't really 
> > make sense to have a more involved protocol.
> 
> I'm not asking for a more involved protocol.
> I'm asking for 1 bit to be allocated to indicate that a frame
> contains mime-encoded data.    That is mostly sufficient
> for layered protocols to be built on.

Do you mean a third framing mechanism? Or would it reuse the text or 
binary framing mechanism?

If the latter, then it's unnecessary -- you just have to define that all 
frames a MIME encoded, or all frames are MIME encoded if their first 
byte/character is 0x01/U+0001, or some such. It doesn't have to be at the 
WebSocket protocol level.

The WebSocket protocol level basically is just a reflection of the API. 
Just like the API doesn't have a sendDataMimeEncoded() method, and doesn't 
have a message-mime-encoded event, the protocol doesn't have anything 
special for sending or receiving MIME-encoded data. It's purely an 
application-layer concern. Why would we add a sendDataMimeEncoded() 
method? What problem would it solve for scripts?


> > It *would* make sense if your goal is something else, like tunneling 
> > Jabber over HTTP or something. But that's a different project than 
> > WebSockets. It's probably a perfectly reasonable thing for Hybi to 
> > work on, but it should be articulated as its own project.
> 
> The sensible way to proceed would be to develop a simple but extensible 
> protocol that provides bidirectionality over the web for all types of 
> clients.

I disagree that that would be sensible. I think overgeneralisation is one 
of the biggest mistakes one can make in protocol and language design. My 
experience has led me to be a firm believer in picking specific problems
and addressing them directly, rather than trying to solve everything at 
once (especially when one might not know all the problems one is trying to 
solve -- a common problem when discussing extensibility mechanisms).


> So browsers could add on their origin security model for example.

Security is not a feature you bolt on. It's an architecture that has to 
be designed in from the beginning.


> From a servers/intermediaries point of view, browser are just not that 
> special that they deserve their entirely their own protocol.

Browsers are the only reason for WebSocket existing. If it wasn't for the 
needs of scripts in Web pages, TCP would be a perfectly adequate solution 
for bidirectional communication for me, and I wouldn't be here. (Which 
isn't to say that there aren't perfectly valid other needs that deserve 
their own protocols, but those aren't the needs WebSocket was designed to 
address.)


> > I think you are misunderstanding the point of the frame types.
> 
> yes - kind of on purpose.
> 
> The WS Frame "byte" is really a frame bit, which is also used indicate 
> content-type (or at least content-encoding).
> 
> There are 7 unused bits in that byte.

That isn't an invitation to use them up. :-)


> Are you really saying you need to reserve space for 254 more types of 
> framing?

No, I'm saying that if it was possible, I would be just using one bit to 
carry the bit, and not a whole byte.


> It's not like you are suggesting alternative ways to solve the issues 
> that we are raising.

Could I ask you to more concretely describe your problem so that I could 
more concretely (maybe with actual code examples) describe the alternative 
solution that I am describing?

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

From salvatore.loreto@ericsson.com  Fri Oct 30 03:20:45 2009
Return-Path: <salvatore.loreto@ericsson.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 937203A698D for <hybi@core3.amsl.com>; Fri, 30 Oct 2009 03:20:45 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.021
X-Spam-Level: 
X-Spam-Status: No, score=-6.021 tagged_above=-999 required=5 tests=[AWL=0.228,  BAYES_00=-2.599, HELO_EQ_SE=0.35, RCVD_IN_DNSWL_MED=-4]
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 23k5AkVMQ9FG for <hybi@core3.amsl.com>; Fri, 30 Oct 2009 03:20:44 -0700 (PDT)
Received: from mailgw4.ericsson.se (mailgw4.ericsson.se [193.180.251.62]) by core3.amsl.com (Postfix) with ESMTP id 23D483A6972 for <hybi@ietf.org>; Fri, 30 Oct 2009 03:20:43 -0700 (PDT)
X-AuditID: c1b4fb3e-b7bf6ae000005dda-0f-4aeabe0b57cb
Received: from esealmw127.eemea.ericsson.se (Unknown_Domain [153.88.253.124]) by mailgw4.ericsson.se (Symantec Mail Security) with SMTP id 51.04.24026.B0EBAEA4; Fri, 30 Oct 2009 11:20:59 +0100 (CET)
Received: from esealmw129.eemea.ericsson.se ([153.88.254.177]) by esealmw127.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.3959);  Fri, 30 Oct 2009 11:19:48 +0100
Received: from mail.lmf.ericsson.se ([131.160.11.50]) by esealmw129.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.3959);  Fri, 30 Oct 2009 11:19:47 +0100
Received: from nomadiclab.lmf.ericsson.se (nomadiclab.lmf.ericsson.se [131.160.33.3]) by mail.lmf.ericsson.se (Postfix) with ESMTP id 7AEAD2514; Fri, 30 Oct 2009 12:19:45 +0200 (EET)
Received: from nomadiclab.lmf.ericsson.se (localhost [127.0.0.1]) by nomadiclab.lmf.ericsson.se (Postfix) with ESMTP id 3DD4121A22; Fri, 30 Oct 2009 12:19:45 +0200 (EET)
Received: from localhost.localdomain (localhost [127.0.0.1]) by nomadiclab.lmf.ericsson.se (Postfix) with ESMTP id 9EE4821A1F; Fri, 30 Oct 2009 12:19:44 +0200 (EET)
Message-ID: <4AEABDBF.80705@ericsson.com>
Date: Fri, 30 Oct 2009 12:19:43 +0200
From: Salvatore Loreto <salvatore.loreto@ericsson.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090825)
MIME-Version: 1.0
To: Ian Hickson <ian@hixie.ch>
References: <4AE966CA.9090907@ericsson.com> <Pine.LNX.4.62.0910300047310.25608@hixie.dreamhostps.com>
In-Reply-To: <Pine.LNX.4.62.0910300047310.25608@hixie.dreamhostps.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: ClamAV using ClamSMTP
X-OriginalArrivalTime: 30 Oct 2009 10:19:47.0881 (UTC) FILETIME=[821C1190:01CA594A]
X-Brightmail-Tracker: AAAAAA==
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] Proposed Charter for HyBi WG (rev.3)
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: Fri, 30 Oct 2009 10:20:45 -0000

Ian Hickson wrote:
> On Thu, 29 Oct 2009, Salvatore Loreto wrote:
<snip>
>> In particular, the working group will liaison with the W3C WebApps 
>> working group around the WebSockets protocol and the requirements to 
>> support the WebSocket API; if agreed by both parties, the HyBi working 
>> group may take on prime responsibility on the specification of the 
>> WebSockets protocol.
>>     
>
> We should also liason with the WHATWG, since that's where most of the 
> WebSockets work has happened. (The W3C Web Apps working group hasn't 
> worked on the protocol at all, and they already liase with the WHATWG for 
> the API.)
>   
Hi Ian,
thanks for you comments, your are definitively right!
what about the following text?

    In particular, the working group will liaison with:
    - the W3C WebApps working group around the requirements to support 
      the WebSocket API; 
    - the WHATWG around the WebSockets protocol 
    if agreed by both parties, the HyBi working group may take on prime 
    responsibility on the specification of the WebSockets protocol.

one question: how IETF can become aware if WHATWG agrees or not?


/Sal

From pieterh@gmail.com  Fri Oct 30 04:33:56 2009
Return-Path: <pieterh@gmail.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 879AA3A6889 for <hybi@core3.amsl.com>; Fri, 30 Oct 2009 04:33:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.977
X-Spam-Level: 
X-Spam-Status: No, score=-1.977 tagged_above=-999 required=5 tests=[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 8OR0N6o3QFG2 for <hybi@core3.amsl.com>; Fri, 30 Oct 2009 04:33:55 -0700 (PDT)
Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.159]) by core3.amsl.com (Postfix) with ESMTP id 7CACB3A6878 for <hybi@ietf.org>; Fri, 30 Oct 2009 04:33:55 -0700 (PDT)
Received: by fg-out-1718.google.com with SMTP id d23so1284684fga.13 for <hybi@ietf.org>; Fri, 30 Oct 2009 04:34:08 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:from:date:x-google-sender-auth:message-id:subject:to:cc :content-type; bh=yCy6aOj1Qxg3jFPyxleWRmJM50nNQOw9ROBCkyIWp7E=; b=VVidzzbxFHV12np3b+Q6vwuvKCJnWRBtpoB4uVmlKrbGfzNLENUifVI6qxi0EUcJXs /XQVetW14KwnAKnCfze97uMMiBlgPDESY/LXif2BB4bHgHWUzlOeTAWPj47jh5eU2o8S TQcpzBr9JqmPzJR6Ypoe5zqhANyGtn/MPmq2A=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; b=v7/Polmg0e0Y3/e4quNBy4vIjhf8CznTdasBPqM74CWvN7QmvHQJ0X15syJFljQrlv cV/V2vrE5aYu4bx+YzjCAtK7t5qgMh/pmeYA5xxZCqcp7p81uG6Zn13GWXPMOSbTIQ8v DlkmBc5n0jIgKx/n8Bw2J9yUtn+10Lvt4xiFw=
MIME-Version: 1.0
Sender: pieterh@gmail.com
Received: by 10.86.114.29 with SMTP id m29mr247317fgc.7.1256902448152; Fri, 30  Oct 2009 04:34:08 -0700 (PDT)
In-Reply-To: <6.2.5.6.2.20091029214250.028ec768@resistor.net>
References: <8B0A9FCBB9832F43971E38010638454F0F1EA72C@SISPE7MB1.commscope.com> <a9699fd20910270426u4aa508cepf557b362025ae5db@mail.gmail.com>  <Pine.LNX.4.62.0910271824200.25616@hixie.dreamhostps.com>  <4AE76137.8000603@webtide.com> <Pine.LNX.4.62.0910272118590.25608@hixie.dreamhostps.com>  <20091029123121.GA24268@almeida.jinsky.com> <4AEA0E6C.1060607@webtide.com> <4AEA5713.8020008@it.aoyama.ac.jp> <Pine.LNX.4.62.0910300346010.25616@hixie.dreamhostps.com>  <6.2.5.6.2.20091029214250.028ec768@resistor.net>
From: Pieter Hintjens <ph@imatix.com>
Date: Fri, 30 Oct 2009 12:33:48 +0100
X-Google-Sender-Auth: 8e3fec9a0589ee67
Message-ID: <5821ea240910300433r3274d311r5664c1ea3fc56bed@mail.gmail.com>
To: SM <sm@resistor.net>
Content-Type: text/plain; charset=ISO-8859-1
Cc: hybi@ietf.org
Subject: Re: [hybi] WS framing alternative
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: Fri, 30 Oct 2009 11:33:56 -0000

On Fri, Oct 30, 2009 at 6:01 AM, SM <sm@resistor.net> wrote:
> At 21:22 29-10-2009, Ian Hickson wrote:
>>
>> What is the process for proceeding in the IETF when people have
>> fundamentally different and mutually exclusive opinions?

Speaking from experience of the AMQP design process over the last five
years, which was riven by such arguments...

Technical designs should not be opinion-driven at all.  There are
optimal (provably optimal) solutions for any well-defined problem.  If
two people do not agree on such solutions then either they are solving
different problems (this is most common), or they are not aiming for
optimal solutions but instead familiar and/or pre-existing solutions
(this is also common).  Or they are just incompetent with delusions of
competence (perhaps most common).

Even the expression of opinion is a sign that the design process is
failing or will fail to pinpoint the most accurate solution.

A forced compromise often creates a mediocre solution.

A better way to resolve the conflicts of interest that many of us
bring to such discussions is to create competition between solutions,
i.e. multiple protocols that implementors can choose.  Over time that
will drive the solutions towards an optimum.

This is all opinion, of course and does not answer the question of how
the IETF works, but may be a useful guideline for knowing how to
resolve conflicts of opinion.  Namely, if you start by saying "I
think", you are probably wrong.  :-)

-Pieter Hintjens

From gregw@webtide.com  Fri Oct 30 05:08:07 2009
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 A7D013A6A8E for <hybi@core3.amsl.com>; Fri, 30 Oct 2009 05:08:07 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.391
X-Spam-Level: 
X-Spam-Status: No, score=-2.391 tagged_above=-999 required=5 tests=[AWL=0.208,  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 mEJ-hBjUvXye for <hybi@core3.amsl.com>; Fri, 30 Oct 2009 05:08:06 -0700 (PDT)
Received: from mail-ew0-f218.google.com (mail-ew0-f218.google.com [209.85.219.218]) by core3.amsl.com (Postfix) with ESMTP id 16E883A6814 for <hybi@ietf.org>; Fri, 30 Oct 2009 05:08:05 -0700 (PDT)
Received: by ewy18 with SMTP id 18so2637602ewy.43 for <hybi@ietf.org>; Fri, 30 Oct 2009 05:08:18 -0700 (PDT)
Received: by 10.216.87.80 with SMTP id x58mr584462wee.92.1256904498058; Fri, 30 Oct 2009 05:08:18 -0700 (PDT)
Received: from ?10.10.1.9? (60-242-119-126.tpgi.com.au [60.242.119.126]) by mx.google.com with ESMTPS id u14sm2973337gvf.18.2009.10.30.05.08.14 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 30 Oct 2009 05:08:16 -0700 (PDT)
Message-ID: <4AEAD728.9060403@webtide.com>
Date: Fri, 30 Oct 2009 23:08:08 +1100
From: Greg Wilkins <gregw@webtide.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090817)
MIME-Version: 1.0
To: hybi@ietf.org
References: <8B0A9FCBB9832F43971E38010638454F0F1EA72C@SISPE7MB1.commscope.com> <Pine.LNX.4.62.0910270903080.9145@hixie.dreamhostps.com> <a9699fd20910270426u4aa508cepf557b362025ae5db@mail.gmail.com> <Pine.LNX.4.62.0910271824200.25616@hixie.dreamhostps.com> <4AE76137.8000603@webtide.com> <Pine.LNX.4.62.0910272118590.25608@hixie.dreamhostps.com> <20091029123121.GA24268@almeida.jinsky.com> <4AEA0E6C.1060607@webtide.com> <4AEA5713.8020008@it.aoyama.ac.jp> <Pine.LNX.4.62.0910300346010.25616@hixie.dreamhostps.com> <4AEA9DCE.7000703@webtide.com> <Pine.LNX.4.62.0910300919250.25608@hixie.dreamhostps.com>
In-Reply-To: <Pine.LNX.4.62.0910300919250.25608@hixie.dreamhostps.com>
X-Enigmail-Version: 0.95.7
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Subject: Re: [hybi] WS framing alternative
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: Fri, 30 Oct 2009 12:08:07 -0000

Ian Hickson wrote:

> I'm proposing making the protocol so simple that dedicated frameworks are 
> superfluous.

You are proposing a revolution in server infrastructure.

There is just no way that any of the organizations that I work
with are going to allow a server side application developer
access to a raw socket exposed on the internet!

No matter how much you think it a bad idea, there will be frameworks
that implement websocket on the server side - and they will have
little or no idea of the type of application that might be run
on top of them.



>> If a ws client connects to a ws server, and neither knows if the other 
>> supports some layered protocol - how do they discover that?
> 
> If a TCP client connects to a TCP server, and neither knows if the other 
> supports some layered protocol - how do they discover that?
> 
> The answer is the same.

No it's not.

You run an *extensible* protocol like HTTP over TCP, so that
new protocols can be layered on top without breaking clients,
servers or intermediaries.



> That is, I do not see how our goals could ever be met by the same 
> protocol, if I understand your goals correctly.

I don't see how allocating 1 bit of 7 unused can render
the protocol unsuitable for your goals.

You are being a tad melodramatic I think.



>> I'm asking for 1 bit to be allocated to indicate that a frame
>> contains mime-encoded data.    That is mostly sufficient
>> for layered protocols to be built on.
> 
> Do you mean a third framing mechanism? Or would it reuse the text or 
> binary framing mechanism?

I would reuse the text and binary framing mechanism.

I would suggest that for meta-data packets if the framing
type was utf-8 then the packet would contain just headers (which
layered protocols could define to applying to the connection, the next
frame or whatever).

If the framing type was binary, then the packet can contain standard
mime encoded content.


[ I would also advocate that the high bit be just a selection
between utf-8/binary and that all frames be length encoded,
but that's a different debate ]


> If the latter, then it's unnecessary -- you just have to define that all 
> frames a MIME encoded, or all frames are MIME encoded if their first 
> byte/character is 0x01/U+0001, or some such. It doesn't have to be at the 
> WebSocket protocol level.

but how do you know if the other end supports mime encoding at all.
you end up needing to do all sorts of discovery and other complexities.

Browser vendors and server vendors might want to collaborate
on a multiplexing protocol built on top ws.  They could use the
the mime frames to do this - but they would be able to continue
to work with browsers and servers that did not implement the
extension - as they would ignore meta data they didn't understand
that was used to try to negotiate a multi-channel connection.


> The WebSocket protocol level basically is just a reflection of the API. 
> Just like the API doesn't have a sendDataMimeEncoded() method, and doesn't 
> have a message-mime-encoded event, the protocol doesn't have anything 
> special for sending or receiving MIME-encoded data. It's purely an 
> application-layer concern. Why would we add a sendDataMimeEncoded() 
> method? What problem would it solve for scripts?

I'm not asking you to add a sendDataMimeEncoded method for the
application developers to use.

The extra capabilities could be used by the browser, intermediaries
and/or servers.   They need not be exposed to application developers,
you could even argue that they shouldn't be exposed to application
developers.


> I think overgeneralisation is one 
> of the biggest mistakes one can make in protocol and language design. My 
> experience has led me to be a firm believer in picking specific problems
> and addressing them directly, rather than trying to solve everything at 
> once (especially when one might not know all the problems one is trying to 
> solve -- a common problem when discussing extensibility mechanisms).


You have already generalized the protocol by allowing for other
frame types.    The only difference is who controls the use
of that generalization.

You obviously want to control how people extend WS and will only
allocate new frame byte values to what you think is worthy cause.

If there was a meta data frames, then anybody could extend
the protocol without the need to ask permission ( even if it was
to support evil monolithic servers and their unholy load balancing
companions).


What authority do you plan to manage the allocation of frame types
into the future?  IANA?


>> So browsers could add on their origin security model for example.
> 
> Security is not a feature you bolt on. It's an architecture that has to 
> be designed in from the beginning.

RUBBISH!

If this was the case we would have to put the same origin policy
into TCP... no wait into IP... no wait into ethernet..

You can design a good protocol for the security needs of
browser that is built on a more general transport protocol.
It also helps if that transport protocol was designed to
allows such extensions.


> Browsers are the only reason for WebSocket existing. If it wasn't for the 
> needs of scripts in Web pages, TCP would be a perfectly adequate solution 
> for bidirectional communication for me, and I wouldn't be here. 

Well browsers don't do you much good without servers
and other network infrastructure.  So you have to consider
their needs as well.

Plus there are plenty of others here that do care about clients
other than scripts in web pages.

It is my understanding of IETF policy that if you want to
get this protocol approved you need to get a rough consensus
of people with more concerns than just your own.


> Could I ask you to more concretely describe your problem so that I could 
> more concretely (maybe with actual code examples) describe the alternative 
> solution that I am describing?

sticky load balancer with SSL offload that works with any ws app.

multiplexing protocol implemented in browser/server (not in application).

orderly closing a ws connection implemented in an application
independent way.

regards












From jamie@shareable.org  Fri Oct 30 05:34:16 2009
Return-Path: <jamie@shareable.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 B53E33A6AA1 for <hybi@core3.amsl.com>; Fri, 30 Oct 2009 05:34:16 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.39
X-Spam-Level: 
X-Spam-Status: No, score=-2.39 tagged_above=-999 required=5 tests=[AWL=0.209,  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 C7bXDli08uU9 for <hybi@core3.amsl.com>; Fri, 30 Oct 2009 05:34:16 -0700 (PDT)
Received: from mail2.shareable.org (mail2.shareable.org [80.68.89.115]) by core3.amsl.com (Postfix) with ESMTP id E59CE3A68D0 for <hybi@ietf.org>; Fri, 30 Oct 2009 05:34:15 -0700 (PDT)
Received: from jamie by mail2.shareable.org with local (Exim 4.63) (envelope-from <jamie@shareable.org>) id 1N3qgZ-00010P-KF; Fri, 30 Oct 2009 12:34:31 +0000
Date: Fri, 30 Oct 2009 12:34:31 +0000
From: Jamie Lokier <jamie@shareable.org>
To: Greg Wilkins <gregw@webtide.com>
Message-ID: <20091030123431.GB3579@shareable.org>
References: <8B0A9FCBB9832F43971E38010638454F0F1EA72C@SISPE7MB1.commscope.com> <Pine.LNX.4.62.0910270903080.9145@hixie.dreamhostps.com> <a9699fd20910270426u4aa508cepf557b362025ae5db@mail.gmail.com> <Pine.LNX.4.62.0910271824200.25616@hixie.dreamhostps.com> <4AE76137.8000603@webtide.com> <Pine.LNX.4.62.0910272118590.25608@hixie.dreamhostps.com> <20091029123121.GA24268@almeida.jinsky.com> <4AEA0E6C.1060607@webtide.com> <20091030025321.GD20292@shareable.org> <4AEA62B9.6040201@webtide.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4AEA62B9.6040201@webtide.com>
User-Agent: Mutt/1.5.13 (2006-08-11)
Cc: hybi@ietf.org
Subject: Re: [hybi] WS framing alternative
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: Fri, 30 Oct 2009 12:34:16 -0000

Greg Wilkins wrote:
> Jamie Lokier wrote:
> > Let's not get confused about what will and won't work.
> > 
> > It doesn't matter whether WHATWG sanctions any new frame type or not:
> > you can't _use_ a frame type if the other end won't recognise it.
> > 
> > That's because the message boundaries are determined by recognising
> > the frame type byte, then parsing the message in a type-specific way.
> 
> 
> Is this true?
> 
> The high order byte is currently defined as selecting between
> sentinel or length encoding, and the 7 lower order bits are ignored.

No it's not true; you are right.  The frame length is determined
by the high order bit.

Sorry for reading too much into mailing list postings and not enough
reading the spec properly, which I will now do.

-- Jamie

From jamie@shareable.org  Fri Oct 30 05:46:30 2009
Return-Path: <jamie@shareable.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 669803A67B6 for <hybi@core3.amsl.com>; Fri, 30 Oct 2009 05:46:30 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.413
X-Spam-Level: 
X-Spam-Status: No, score=-2.413 tagged_above=-999 required=5 tests=[AWL=0.186,  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 W1YbG-tQG6+R for <hybi@core3.amsl.com>; Fri, 30 Oct 2009 05:46:29 -0700 (PDT)
Received: from mail2.shareable.org (mail2.shareable.org [80.68.89.115]) by core3.amsl.com (Postfix) with ESMTP id 9477E3A6923 for <hybi@ietf.org>; Fri, 30 Oct 2009 05:46:29 -0700 (PDT)
Received: from jamie by mail2.shareable.org with local (Exim 4.63) (envelope-from <jamie@shareable.org>) id 1N3qsO-00013b-3f; Fri, 30 Oct 2009 12:46:44 +0000
Date: Fri, 30 Oct 2009 12:46:44 +0000
From: Jamie Lokier <jamie@shareable.org>
To: Ian Hickson <ian@hixie.ch>
Message-ID: <20091030124644.GC3579@shareable.org>
References: <8B0A9FCBB9832F43971E38010638454F0F1EA72C@SISPE7MB1.commscope.com> <Pine.LNX.4.62.0910270903080.9145@hixie.dreamhostps.com> <a9699fd20910270426u4aa508cepf557b362025ae5db@mail.gmail.com> <Pine.LNX.4.62.0910271824200.25616@hixie.dreamhostps.com> <4AE76137.8000603@webtide.com> <Pine.LNX.4.62.0910272118590.25608@hixie.dreamhostps.com> <20091029123121.GA24268@almeida.jinsky.com> <4AEA0E6C.1060607@webtide.com> <4AEA5713.8020008@it.aoyama.ac.jp> <Pine.LNX.4.62.0910300346010.25616@hixie.dreamhostps.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <Pine.LNX.4.62.0910300346010.25616@hixie.dreamhostps.com>
User-Agent: Mutt/1.5.13 (2006-08-11)
Cc: hybi@ietf.org
Subject: Re: [hybi] WS framing alternative
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: Fri, 30 Oct 2009 12:46:30 -0000

Ian Hickson wrote:
> You are proposing that given a length and a series of bytes encoding text 
> in a variable-sized encoding (UTF-8), the application return a series of 
> characters. My point is that this means that you have two lengths (the 
> length of the string in characters and the length of the string in bytes), 
> so you risk inexperienced software authors making elementary yet dangerous 
> mistakes in terms of how to read (or write) data to the stream. WebSocket 
> tries to avoid ever mixing the two (you either deal with bytes and byte 
> lengths, or you use sentinel bytes and no lengths -- you never have 
> characters and byte lengths mixed together).

Inexperienced authors, especially those writing 100 lines of Perl,
will send ISO-8859-1 or other text which occasionally contains 0xff
bytes in the middle.

Even experience authors will make that mistake sometimes.  What do you
think will happen when someone does something like this:

    - Read list of filenames in a directory.  They're UTF-8 (assumed),
      or the author is unfamiliar with character encodings and everything
      works fine in their ASCII development environment.

    - Concatenate the list with newlines, as people do.

    - Send the result as a frame.

Or this:

    - Read lines from a text file, which is in UTF-8 encoding.

    - Send each line as a frame.

    - (Oops, one of the text files you gave me had an 0xff byte in it.)

Result: Because of assumptions, 0xff bytes will be sent occasionally
in the middle of a frame.  Everything afterwards will break, but it'll
be rare enough that the author doesn't notice.  For the same reason
you've explained authors get lengths wrong.

The sentinel approach does not solve this fragility problem, it merely
shifts it around to a different place.

-- Jamie

From jamie@shareable.org  Fri Oct 30 06:10:47 2009
Return-Path: <jamie@shareable.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 4DAFD3A6896 for <hybi@core3.amsl.com>; Fri, 30 Oct 2009 06:10:47 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.432
X-Spam-Level: 
X-Spam-Status: No, score=-2.432 tagged_above=-999 required=5 tests=[AWL=0.167,  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 byx8H0evWqi7 for <hybi@core3.amsl.com>; Fri, 30 Oct 2009 06:10:46 -0700 (PDT)
Received: from mail2.shareable.org (mail2.shareable.org [80.68.89.115]) by core3.amsl.com (Postfix) with ESMTP id 5FF3C3A67D3 for <hybi@ietf.org>; Fri, 30 Oct 2009 06:10:46 -0700 (PDT)
Received: from jamie by mail2.shareable.org with local (Exim 4.63) (envelope-from <jamie@shareable.org>) id 1N3rFs-000197-BA; Fri, 30 Oct 2009 13:11:00 +0000
Date: Fri, 30 Oct 2009 13:11:00 +0000
From: Jamie Lokier <jamie@shareable.org>
To: Greg Wilkins <gregw@webtide.com>
Message-ID: <20091030131100.GD3579@shareable.org>
References: <Pine.LNX.4.62.0910271824200.25616@hixie.dreamhostps.com> <4AE76137.8000603@webtide.com> <Pine.LNX.4.62.0910272118590.25608@hixie.dreamhostps.com> <20091029123121.GA24268@almeida.jinsky.com> <4AEA0E6C.1060607@webtide.com> <4AEA5713.8020008@it.aoyama.ac.jp> <Pine.LNX.4.62.0910300346010.25616@hixie.dreamhostps.com> <4AEA9DCE.7000703@webtide.com> <Pine.LNX.4.62.0910300919250.25608@hixie.dreamhostps.com> <4AEAD728.9060403@webtide.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4AEAD728.9060403@webtide.com>
User-Agent: Mutt/1.5.13 (2006-08-11)
Cc: hybi@ietf.org
Subject: Re: [hybi] WS framing alternative
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: Fri, 30 Oct 2009 13:10:47 -0000

Greg Wilkins wrote:
> > Could I ask you to more concretely describe your problem so that I could 
> > more concretely (maybe with actual code examples) describe the alternative 
> > solution that I am describing?
> 
> sticky load balancer with SSL offload that works with any ws app.

This is the key thing, I believe.

WebSockets forces all negotiation of extensions to be done by the
application.

This prevents automatic extensions being done below the application,
so "works with any WS app" is prevented by the current proposal.

Here's an example: Just like HTTP, there could be value in an
extension which compresses some frames.  If it worked well, that'd be
a good thing to do _transparently_ in the browser+server, without
awareness by the WS application.

But you can't provide a transparent compression extension, because the
browser has no way to signal to the server "I handle this extension".

In this respect, WS is like TCP where it's hard to modify
transparently.  This may be intentional: WS is meant to be a web
application compatible TCP after all.  But there is some value in
automatic extensions below the application, as we've seen in HTTP.

Given that the only thing blocking this is the client's inability to
signal the server that it supports an extension, and that is so easy
and natural to do by allowing clients to add headers to the initial
request, I think that should be at least seriously considered.  Not
dismissed summarily.

> multiplexing protocol implemented in browser/server (not in application).

That's similar to the compression example above.

> orderly closing a ws connection implemented in an application
> independent way.

Orderly close is more important than people realise.

A major problem with HTTP pipelining is you can't use it for
non-idempotent requests because the server may close the connection
any time, without implying an error condition.  That's one of the many
reasons HTTP pipelining often cannot be used, and that makes HTTP in
general slower and less network efficient than it could be.

The same applies to other request-response based protocols, such as
many of those expected to run over WebSocket.

Another problem with closing is that thing not mentioned in the HTTP
RFCs, but essential: lingering half-closed sockets.  If a server sends
a response followed by closing the socket fully, some clients sometimes
don't receive the whole response because of the way TCP and pipelined
requests clash.

Both of these are why orderly close is important - more important than
it appears.  Because it makes it safe to do other things.

I expect "pipelining" in the meaning used by HTTP, that is sending
multiple messages before getting a response to each one, to be quite
prevalant with protocols running over WebSocket.

That makes orderly close important for WebSocket, to avoid fragile
applications.  Hopefully I've illustrated the kinds of problems to
expect.  Unfortunately it's all a bit arcane.

There's nothing wrong with doing it in the application.  But I don't
have high expectation of it being done correctly in those "we don't
need no steenkin' framework" 100 line Perl scripts by inexperienced
authors.

-- Jamie

From mike@jay.w3.org  Fri Oct 30 11:24:30 2009
Return-Path: <mike@jay.w3.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 53AB53A682B for <hybi@core3.amsl.com>; Fri, 30 Oct 2009 11:24:30 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.744
X-Spam-Level: 
X-Spam-Status: No, score=-9.744 tagged_above=-999 required=5 tests=[AWL=0.255,  BAYES_00=-2.599, J_CHICKENPOX_42=0.6, RCVD_IN_DNSWL_HI=-8]
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 JGYiilElTdLe for <hybi@core3.amsl.com>; Fri, 30 Oct 2009 11:24:29 -0700 (PDT)
Received: from jay.w3.org (ssh.w3.org [128.30.52.60]) by core3.amsl.com (Postfix) with ESMTP id 6B9083A6808 for <hybi@ietf.org>; Fri, 30 Oct 2009 11:24:29 -0700 (PDT)
Received: from localhost ([127.0.0.1] helo=yarukinai) by jay.w3.org with esmtp (Exim 4.69) (envelope-from <mike@jay.w3.org>) id 1N3w9V-0003rA-0j; Fri, 30 Oct 2009 14:24:45 -0400
Date: Sat, 31 Oct 2009 03:24:41 +0900
From: "Michael(tm) Smith" <mike@w3.org>
To: Salvatore Loreto <salvatore.loreto@ericsson.com>
Message-ID: <20091030182437.GA9590@sideshowbarker>
References: <4AAB7CCB.9010805@ericsson.com> <6.2.5.6.2.20091029132020.03232b88@resistor.net> <4AEAA55C.6020401@ericsson.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4AEAA55C.6020401@ericsson.com>
User-Agent: Mutt/r6027+poontang (2009-09-22 23:29:11+09:00)
Cc: hybi@ietf.org
Subject: Re: [hybi] Proposed Charter (rev.3) (W3C WebApps-Whatwg)
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: Fri, 30 Oct 2009 18:24:30 -0000

Salvatore Loreto <salvatore.loreto@ericsson.com>, 2009-10-30 10:35 +0200:

>  let me take this chance to ask people from W3C WebApps and Whatwg wgs
>  if they agree on IETF taking on prime responsibility on the specification of 
>  the WebSocket protocol,
>  continuing of course to work together on the draft;
>  and if they agree, if it clear for them how work get done within the IETF.

It seems like we're making genuine progress in getting the
protocol spec'ed within the IETF, and I think that's where
everybody would ideally like to see it happen.

  --Mike

P.S. The only recent problem I can think of that we have run into
around "prime responsibility" have been for the Origin spec, and
that was because the response was that there was no WG with IETF
that wanted to take on the work, and if that continues to be the
case, we'll need to look at taking that spec through the
publication process in the WebApps WG instead.

-- 
Michael(tm) Smith
http://people.w3.org/mike/

From sm@resistor.net  Fri Oct 30 12:12:30 2009
Return-Path: <sm@resistor.net>
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 6EAF63A6AAE for <hybi@core3.amsl.com>; Fri, 30 Oct 2009 12:12:30 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.534
X-Spam-Level: 
X-Spam-Status: No, score=-2.534 tagged_above=-999 required=5 tests=[AWL=0.065,  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 z2jK6erwirnm for <hybi@core3.amsl.com>; Fri, 30 Oct 2009 12:12:29 -0700 (PDT)
Received: from ns1.qubic.net (ns1.qubic.net [208.69.177.116]) by core3.amsl.com (Postfix) with ESMTP id 8D48A3A696E for <hybi@ietf.org>; Fri, 30 Oct 2009 12:12:29 -0700 (PDT)
Received: from subman.resistor.net ([10.0.0.1]) (authenticated bits=0) by ns1.qubic.net (8.14.4.Beta0/8.14.4.Beta0) with ESMTP id n9UJCPrZ018173 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 30 Oct 2009 12:12:31 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=resistor.net; s=mail; t=1256929953; x=1257016353; bh=w2RR7qdrESSKnF/Y+eWZaeS9NJ+wkMHv2gT28I5sCTY=; h=Message-Id:Date:To:From:Subject:Cc:In-Reply-To:References: Mime-Version:Content-Type; b=eGpay6ViSZrrmla0EZhY1yGz38Q3vplqtzOAgoc2nzUOqqs8H1MwPpUe8Kle7pPaz ut6vPrZD5fFk5x5ZbXTE8lY78dWtFzwjGMbZZ11gc2k0Jq/g9ol285kjvqRyMz9Q3n I+8jaaLi7IWA/QXC8MbSYBW4ExiBuRp4WiyvuuWw=
DomainKey-Signature: a=rsa-sha1; s=mail; d=resistor.net; c=simple; q=dns; b=Wz+K9/xRjkEcOmbksB5TquH3zrSKXbK+b/9U6kNcSmjq9LYNpIZ0yVXcyjabBzhVR /LURfhwSB01QBITgVRn5xbdXv6iQK654SR1IyXyeC7KVUklNcL0rktEVDcEx5vp3eVp OM1j5lFGykWM+lFAasrouULbRaJaxDZY+IQSUsI=
Message-Id: <6.2.5.6.2.20091030120030.043cff78@resistor.net>
X-Mailer: QUALCOMM Windows Eudora Version 6.2.5.6
Date: Fri, 30 Oct 2009 12:11:21 -0700
To: Salvatore Loreto <salvatore.loreto@ericsson.com>
From: SM <sm@resistor.net>
In-Reply-To: <4AEABDBF.80705@ericsson.com>
References: <4AE966CA.9090907@ericsson.com> <Pine.LNX.4.62.0910300047310.25608@hixie.dreamhostps.com> <4AEABDBF.80705@ericsson.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; format=flowed
Cc: hybi@ietf.org
Subject: Re: [hybi] Proposed Charter for HyBi WG (rev.3)
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: Fri, 30 Oct 2009 19:12:30 -0000

Hi Sal,
At 03:19 30-10-2009, Salvatore Loreto wrote:
>    In particular, the working group will liaison with:
>    - the W3C WebApps working group around the requirements to 
> support      the WebSocket API;    - the WHATWG around the 
> WebSockets protocol    if agreed by both parties, the HyBi working 
> group may take on prime    responsibility on the specification of 
> the WebSockets protocol.

If there is any disagreement between W3C WebApps and WHATWG, it may 
turn into a complicated situation for the proposed Working Group.  Is 
the HyBi work (the I-Ds) about the protocol or the API?

>one question: how IETF can become aware if WHATWG agrees or not?

I suggest that you talk to Lisa about that.

Regards,
-sm 


From julian.reschke@gmx.de  Fri Oct 30 12:51:36 2009
Return-Path: <julian.reschke@gmx.de>
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 994F73A68B7 for <hybi@core3.amsl.com>; Fri, 30 Oct 2009 12:51:36 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level: 
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[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 X6p+XNnNfoSO for <hybi@core3.amsl.com>; Fri, 30 Oct 2009 12:51:35 -0700 (PDT)
Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by core3.amsl.com (Postfix) with SMTP id 619893A6867 for <hybi@ietf.org>; Fri, 30 Oct 2009 12:51:35 -0700 (PDT)
Received: (qmail invoked by alias); 30 Oct 2009 19:51:50 -0000
Received: from h-69-3-89-146.snvacaid.static.covad.net (EHLO [42.90.94.90]) [69.3.89.146] by mail.gmx.net (mp055) with SMTP; 30 Oct 2009 20:51:50 +0100
X-Authenticated: #1915285
X-Provags-ID: V01U2FsdGVkX1+qVLolLUaqhB5qkU/5EST04HU4EKmsb+I0XsWhge r3Pmg8FqfSZXdt
Message-ID: <4AEB43D0.5010304@gmx.de>
Date: Fri, 30 Oct 2009 20:51:44 +0100
From: Julian Reschke <julian.reschke@gmx.de>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.0.4) Gecko/20060516 Thunderbird/1.5.0.4 Mnenhy/0.7.4.666
MIME-Version: 1.0
To: "Michael(tm) Smith" <mike@w3.org>
References: <4AAB7CCB.9010805@ericsson.com>	<6.2.5.6.2.20091029132020.03232b88@resistor.net>	<4AEAA55C.6020401@ericsson.com> <20091030182437.GA9590@sideshowbarker>
In-Reply-To: <20091030182437.GA9590@sideshowbarker>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Y-GMX-Trusted: 0
X-FuHaFi: 0.6899999999999999
Cc: hybi@ietf.org
Subject: Re: [hybi] Proposed Charter (rev.3) (W3C WebApps-Whatwg)
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: Fri, 30 Oct 2009 19:51:36 -0000

Michael(tm) Smith wrote:
> ...
> P.S. The only recent problem I can think of that we have run into
> around "prime responsibility" have been for the Origin spec, and
> that was because the response was that there was no WG with IETF
> that wanted to take on the work, and if that continues to be the
> case, we'll need to look at taking that spec through the
> publication process in the WebApps WG instead.
> ...

Not having a WG just means that you, if you want to publish on the 
standards track, will need to convince one of the Application Area 
Directors that this is a good idea. It doesn't *necessarily* mean it 
can't be done in the IETF.

BR, Julian


From sm@resistor.net  Fri Oct 30 13:42:59 2009
Return-Path: <sm@resistor.net>
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 1977E3A6A25 for <hybi@core3.amsl.com>; Fri, 30 Oct 2009 13:42:59 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.537
X-Spam-Level: 
X-Spam-Status: No, score=-2.537 tagged_above=-999 required=5 tests=[AWL=0.062,  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 mqf3BQBzF-nX for <hybi@core3.amsl.com>; Fri, 30 Oct 2009 13:42:58 -0700 (PDT)
Received: from ns1.qubic.net (ns1.qubic.net [208.69.177.116]) by core3.amsl.com (Postfix) with ESMTP id 02E8A28B23E for <hybi@ietf.org>; Fri, 30 Oct 2009 13:42:57 -0700 (PDT)
Received: from subman.resistor.net ([10.0.0.1]) (authenticated bits=0) by ns1.qubic.net (8.14.4.Beta0/8.14.4.Beta0) with ESMTP id n9UKh5HA003790 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 30 Oct 2009 13:43:11 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=resistor.net; s=mail; t=1256935393; x=1257021793; bh=1Of3R26CFdjJRus+ifZvn3JpfjrhBtRYXXtdu5ehmh8=; h=Message-Id:Date:To:From:Subject:Cc:In-Reply-To:References: Mime-Version:Content-Type; b=yziZ3iEU0b8EveXCL77AEtvMMuf3NPa64LdhYfsEn34ksSDVEDvNtk8aqZhUSg0LN NcJVH7ZRLqfx2MvmsACtHppaF0tla7ivYR692y/kp0Nvq5muZvSt6qPLL1+Nhf14on fs/hkkFJXtzuZ0Dzj4IUdhVnGOt+tkWnCf2wMpeI=
DomainKey-Signature: a=rsa-sha1; s=mail; d=resistor.net; c=simple; q=dns; b=yh9EPQ1wxDGORLCuH1dP0Me8VWUg2vwBMc88sUU0zqADEiTcReVMtAuO5s2dkfHxc 6VR8MOze03JS5ywohXWHDugLqjSDPNNBJmOv3kTNCWqb4WBbnoluZFVcKxAjTYj5aKK FaCpx/fZ3LuREQhNdanTGQ1xTmHbMVX5qvClIBE=
Message-Id: <6.2.5.6.2.20091030131320.030108d8@resistor.net>
X-Mailer: QUALCOMM Windows Eudora Version 6.2.5.6
Date: Fri, 30 Oct 2009 13:30:43 -0700
To: Pieter Hintjens <ph@imatix.com>
From: SM <sm@resistor.net>
In-Reply-To: <5821ea240910300433r3274d311r5664c1ea3fc56bed@mail.gmail.co m>
References: <8B0A9FCBB9832F43971E38010638454F0F1EA72C@SISPE7MB1.commscope.com> <a9699fd20910270426u4aa508cepf557b362025ae5db@mail.gmail.com> <Pine.LNX.4.62.0910271824200.25616@hixie.dreamhostps.com> <4AE76137.8000603@webtide.com> <Pine.LNX.4.62.0910272118590.25608@hixie.dreamhostps.com> <20091029123121.GA24268@almeida.jinsky.com> <4AEA0E6C.1060607@webtide.com> <4AEA5713.8020008@it.aoyama.ac.jp> <Pine.LNX.4.62.0910300346010.25616@hixie.dreamhostps.com> <6.2.5.6.2.20091029214250.028ec768@resistor.net> <5821ea240910300433r3274d311r5664c1ea3fc56bed@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; format=flowed
Cc: hybi@ietf.org
Subject: Re: [hybi] WS framing alternative
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: Fri, 30 Oct 2009 20:42:59 -0000

Hi Pieter,
At 04:33 30-10-2009, Pieter Hintjens wrote:
>Technical designs should not be opinion-driven at all.  There are
>optimal (provably optimal) solutions for any well-defined problem.  If
>two people do not agree on such solutions then either they are solving
>different problems (this is most common), or they are not aiming for
>optimal solutions but instead familiar and/or pre-existing solutions
>(this is also common).  Or they are just incompetent with delusions of
>competence (perhaps most common).

It is much more complicated that that and it is not always about 
finding the optimal solution.

>A better way to resolve the conflicts of interest that many of us
>bring to such discussions is to create competition between solutions,
>i.e. multiple protocols that implementors can choose.  Over time that
>will drive the solutions towards an optimum.

Having multiple protocols for the same problem space doesn't favor 
interoperability.  One or more of the protocols will take over which 
is like "let the market decide".

>This is all opinion, of course and does not answer the question of how
>the IETF works, but may be a useful guideline for knowing how to
>resolve conflicts of opinion.  Namely, if you start by saying "I
>think", you are probably wrong.  :-)

I don't think there is a guideline for knowing how to resolve 
conflicts of opinion. :-)  There are a lot of factors 
involved.  Strong opposing opinions are resolved in different 
ways.  There is generally a person or a group of persons who come up 
with a proposal on how to reach consensus.

Regards,
-sm 


From jduell.mcbugs@gmail.com  Fri Oct 30 14:58:38 2009
Return-Path: <jduell.mcbugs@gmail.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 4E1FA3A6A2D for <hybi@core3.amsl.com>; Fri, 30 Oct 2009 14:58:38 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level: 
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, J_CHICKENPOX_42=0.6]
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 FLISbG6AHTDg for <hybi@core3.amsl.com>; Fri, 30 Oct 2009 14:58:37 -0700 (PDT)
Received: from mail-px0-f171.google.com (mail-px0-f171.google.com [209.85.216.171]) by core3.amsl.com (Postfix) with ESMTP id 45F013A6A13 for <hybi@ietf.org>; Fri, 30 Oct 2009 14:58:37 -0700 (PDT)
Received: by pxi1 with SMTP id 1so2284269pxi.32 for <hybi@ietf.org>; Fri, 30 Oct 2009 14:58:50 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=WJnyWq31ueJMcbaN65hEnrRF9q9zjF6qDKrJ8emwdqo=; b=Ek4Nr408r0K5ykiyMxuEAE5kbEsjnwzjworq9LnypVIarqCSNWC77mljhOlkmNqtpi /FUcK7hSZqA4dvJvlYUV40JDaNQ3TxOohKQzMUM0cKUS3u+PPphHU7hW3glhG1JehbMN diIMVl71LTuXBsQvCTgOwrsKeDg2fl5E70+iQ=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=oaQv+slApyVzNWiod15DihjF/TvBXUkIobwle2ow7tCEMqUVSCW+QRNz2JPthAzC+K 0Pol+l8oS5AuOebgPEjMx7vwye4j84WGUCwOHd+0LhOnT+hPJVrkahJkwD5xJBZQYI7/ DyyXESw4wbERlmovtf/FhScDDekHedaqEe2Qc=
MIME-Version: 1.0
Received: by 10.143.20.36 with SMTP id x36mr208790wfi.231.1256939930134; Fri,  30 Oct 2009 14:58:50 -0700 (PDT)
In-Reply-To: <mailman.3820.1256908248.4669.hybi@ietf.org>
References: <mailman.3820.1256908248.4669.hybi@ietf.org>
From: Jason Duell <jduell.mcbugs@gmail.com>
Date: Fri, 30 Oct 2009 14:58:30 -0700
Message-ID: <91a5e3ea0910301458q465e5778kb46bcaedc65595a6@mail.gmail.com>
To: hybi@ietf.org
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Subject: Re: [hybi] hybi Digest, Vol 8, Issue 41
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: Fri, 30 Oct 2009 21:58:38 -0000

Greetings, all.  I'm one of the developers on the Mozilla networking
stack.   We have a rather obvious interest in the discussion here, so
I'll be keeping at least roughly abreast of the conversations here and
chiming in when it seems useful.

> > Could I ask you to more concretely describe your problem so that I coul=
d
> > more concretely (maybe with actual code examples) describe the alternat=
ive
> > solution that I am describing?

>From my reading of the last few days' posts, it does seem like
focusing on use cases might be the best way to move the conversation
forward.  The more concrete the use cases, the better.

> > sticky load balancer with SSL offload that works with any ws app.

Is there any particular reason one couldn't do sticky load-balancing
just by remembering the TCP IP/port four-tuple for a given web socket?

> Here's an example: Just like HTTP, there could be value in an
> extension which compresses some frames. =A0If it worked well, that'd be
> a good thing to do _transparently_ in the browser+server, without
> awareness by the WS application.
>
> But you can't provide a transparent compression extension, because the
> browser has no way to signal to the server "I handle this extension".

This strikes me as a good example for why we might want meta-data, if
we can easily get it into the spec (by which I *really* mean easily
get it into the almost-ready implementations of the current ws
protocol/API drafts we already have in Mozilla and other browsers).
But more use cases would be nice, beyond compression.

> multiplexing protocol implemented in browser/server (not in application).

What's the use case here?  If a browser has two pages open that each
want to connect to the same server?  How likely is that?

> orderly closing a ws connection implemented in an application
> independent way.

I'm quite sympathetic to providing guarantees about closing (or
really, about delivery, which is what one really cares about usually).
 But I'm not clear on what the proposal is here.  Yes, HTTP allows
servers to arbitrarily close sockets, and thus we can't shove POSTS or
other non-idempotent requests into a pipeline.  But I don't see
anything in the ws spec that is equivalent.  So I'd like to see more
detail here.  What's the solution here (and to what problem(s)?)

<brief rant>It's notable the in the current Internet, the main
obstacle to things like pipelining are the existence of badly written
proxies and intermediaries.  These are the beasties that are still
preventing us from turning on HTTP pipelining by default (even for
GETs), all these years after HTTP 1.1 was specified.  So a cynical
part of me is tempted to believe that the easiest way to provide more
predictable close semantics for ws applications is to ram the protocol
past proxies via port 443/TSL, so that they can't muck up the works
with their "extended" behaviors... </brief rant>.

I feel better now.

Anyway, I look forward to more conversation on all of this.  I hope we
can find a good balancing point between the need to keep things
simple, implementable, and quickly deliverable on the one hand, and as
fully-featured as is useful/practical on the other.

Jason Duell
Mozilla

From ted.goddard@icesoft.com  Fri Oct 30 15:41:54 2009
Return-Path: <ted.goddard@icesoft.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 9DAAD3A68B1 for <hybi@core3.amsl.com>; Fri, 30 Oct 2009 15:41:54 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.74
X-Spam-Level: 
X-Spam-Status: No, score=-0.74 tagged_above=-999 required=5 tests=[BAYES_20=-0.74]
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 AGoDKlDFmbw1 for <hybi@core3.amsl.com>; Fri, 30 Oct 2009 15:41:53 -0700 (PDT)
Received: from mail.icesoft.com (mail.icesoft.com [64.40.113.99]) by core3.amsl.com (Postfix) with ESMTP id 3408A3A6843 for <hybi@ietf.org>; Fri, 30 Oct 2009 15:41:53 -0700 (PDT)
Received: from tetra.icesoft.domain ([64.141.118.170]) (authenticated user tgoddard@icesoft.com) by mail.icesoft.com (Kerio MailServer 6.7.0) (using TLSv1/SSLv3 with cipher AES128-SHA (128 bits)); Fri, 30 Oct 2009 15:42:07 -0700
Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes
Mime-Version: 1.0 (Apple Message framework v1076)
From: Ted Goddard <ted.goddard@icesoft.com>
In-Reply-To: <91a5e3ea0910301458q465e5778kb46bcaedc65595a6@mail.gmail.com>
Date: Fri, 30 Oct 2009 16:42:07 -0600
Content-Transfer-Encoding: 7bit
Message-Id: <52F2D33D-DEEF-48CE-B510-1FD322ACBBDB@icesoft.com>
References: <mailman.3820.1256908248.4669.hybi@ietf.org> <91a5e3ea0910301458q465e5778kb46bcaedc65595a6@mail.gmail.com>
To: hybi@ietf.org, Jason Duell <jduell.mcbugs@gmail.com>
X-Mailer: Apple Mail (2.1076)
Subject: Re: [hybi] hybi Digest, Vol 8, Issue 41
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: Fri, 30 Oct 2009 22:41:54 -0000

Without multiplexing, I expect we will see each Ajax component
in each page opening its own socket, and multiple pages open
to the same server is very common (users often forget that
they already have a window open in their browser) so a hundred
connections to a single server would not be unexpected.

It's easy to ignore this at the moment because we are so accustomed
to the multiplexing in HTTP 1.1 (think back to the network overhead
of HTTP 1.0).

Regards,
Ted.

On 2009-10-30, at 3:58 PM, Jason Duell wrote:

>> multiplexing protocol implemented in browser/server (not in  
>> application).
>
> What's the use case here?  If a browser has two pages open that each
> want to connect to the same server?  How likely is that?



From gregw@webtide.com  Fri Oct 30 16:20:04 2009
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 F3A463A68B1 for <hybi@core3.amsl.com>; Fri, 30 Oct 2009 16:20:03 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.399
X-Spam-Level: 
X-Spam-Status: No, score=-2.399 tagged_above=-999 required=5 tests=[AWL=0.200,  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 wKGZAfEQed9u for <hybi@core3.amsl.com>; Fri, 30 Oct 2009 16:20:03 -0700 (PDT)
Received: from mail-gx0-f228.google.com (mail-gx0-f228.google.com [209.85.217.228]) by core3.amsl.com (Postfix) with ESMTP id 2A5973A6844 for <hybi@ietf.org>; Fri, 30 Oct 2009 16:20:02 -0700 (PDT)
Received: by gxk28 with SMTP id 28so3340494gxk.9 for <hybi@ietf.org>; Fri, 30 Oct 2009 16:20:17 -0700 (PDT)
Received: by 10.150.46.30 with SMTP id t30mr4165276ybt.50.1256944817673; Fri, 30 Oct 2009 16:20:17 -0700 (PDT)
Received: from ?10.10.1.9? (60-242-119-126.tpgi.com.au [60.242.119.126]) by mx.google.com with ESMTPS id 16sm239620gxk.11.2009.10.30.16.20.14 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 30 Oct 2009 16:20:16 -0700 (PDT)
Message-ID: <4AEB74A8.50708@webtide.com>
Date: Sat, 31 Oct 2009 10:20:08 +1100
From: Greg Wilkins <gregw@webtide.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090817)
MIME-Version: 1.0
To: Pieter Hintjens <ph@imatix.com>
References: <8B0A9FCBB9832F43971E38010638454F0F1EA72C@SISPE7MB1.commscope.com>	<a9699fd20910270426u4aa508cepf557b362025ae5db@mail.gmail.com> <Pine.LNX.4.62.0910271824200.25616@hixie.dreamhostps.com> <4AE76137.8000603@webtide.com>	<Pine.LNX.4.62.0910272118590.25608@hixie.dreamhostps.com> <20091029123121.GA24268@almeida.jinsky.com>	<4AEA0E6C.1060607@webtide.com> <4AEA5713.8020008@it.aoyama.ac.jp>	<Pine.LNX.4.62.0910300346010.25616@hixie.dreamhostps.com> <6.2.5.6.2.20091029214250.028ec768@resistor.net> <5821ea240910300433r3274d311r5664c1ea3fc56bed@mail.gmail.com>
In-Reply-To: <5821ea240910300433r3274d311r5664c1ea3fc56bed@mail.gmail.com>
X-Enigmail-Version: 0.95.7
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: hybi@ietf.org
Subject: Re: [hybi] WS framing alternative
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: Fri, 30 Oct 2009 23:20:04 -0000

Pieter Hintjens wrote:
> A better way to resolve the conflicts of interest that many of us
> bring to such discussions is to create competition between solutions,
> i.e. multiple protocols that implementors can choose.  Over time that
> will drive the solutions towards an optimum.

Pieter,

After initial failures to get my concerns addressed in WS, I
did decide to propose alternative solutions. BWTP mk I and BWTP mk II
resulted.

But now it appears that a working group cannot be formed to consider
multiple solutions and that it will be free to consider any solution
so long as it is websocket.

Thus I've stopped efforts on developing BWTP as it appears it will
be wasted effort.

We are in the strange circumstance that whatwg does not want to
deal with concerns other than js in browsers and the IETF does not
want to consider solutions other than what the whatwg is proposing.

I do feel that the process has been setup for failure and unless
we can broaden the requirements or consider other alternatives
then we are doomed to endless unproductive debates between people
with different agendas.

regards

From gregw@webtide.com  Fri Oct 30 16:46:23 2009
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 5167A3A6A21 for <hybi@core3.amsl.com>; Fri, 30 Oct 2009 16:46:23 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.107
X-Spam-Level: 
X-Spam-Status: No, score=-2.107 tagged_above=-999 required=5 tests=[AWL=-0.108, BAYES_00=-2.599, J_CHICKENPOX_42=0.6]
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 crMM2YPGWRdV for <hybi@core3.amsl.com>; Fri, 30 Oct 2009 16:46:22 -0700 (PDT)
Received: from mail-yw0-f183.google.com (mail-yw0-f183.google.com [209.85.211.183]) by core3.amsl.com (Postfix) with ESMTP id 31CE93A6A16 for <hybi@ietf.org>; Fri, 30 Oct 2009 16:46:22 -0700 (PDT)
Received: by ywh13 with SMTP id 13so3615167ywh.29 for <hybi@ietf.org>; Fri, 30 Oct 2009 16:46:37 -0700 (PDT)
Received: by 10.150.120.3 with SMTP id s3mr4144364ybc.126.1256946396885; Fri, 30 Oct 2009 16:46:36 -0700 (PDT)
Received: from ?10.10.1.9? (60-242-119-126.tpgi.com.au [60.242.119.126]) by mx.google.com with ESMTPS id 15sm233739gxk.12.2009.10.30.16.46.30 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 30 Oct 2009 16:46:35 -0700 (PDT)
Message-ID: <4AEB7AD1.7050509@webtide.com>
Date: Sat, 31 Oct 2009 10:46:25 +1100
From: Greg Wilkins <gregw@webtide.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090817)
MIME-Version: 1.0
To: Jason Duell <jduell.mcbugs@gmail.com>
References: <mailman.3820.1256908248.4669.hybi@ietf.org> <91a5e3ea0910301458q465e5778kb46bcaedc65595a6@mail.gmail.com>
In-Reply-To: <91a5e3ea0910301458q465e5778kb46bcaedc65595a6@mail.gmail.com>
X-Enigmail-Version: 0.95.7
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: hybi@ietf.org
Subject: Re: [hybi] hybi Digest, Vol 8, Issue 41
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: Fri, 30 Oct 2009 23:46:23 -0000

Jason Duell wrote:
> Greetings, all.  I'm one of the developers on the Mozilla networking
> stack.   We have a rather obvious interest in the discussion here, so
> I'll be keeping at least roughly abreast of the conversations here and
> chiming in when it seems useful.
> 
>>> Could I ask you to more concretely describe your problem so that I could
>>> more concretely (maybe with actual code examples) describe the alternative
>>> solution that I am describing?
> 
> From my reading of the last few days' posts, it does seem like
> focusing on use cases might be the best way to move the conversation
> forward.  The more concrete the use cases, the better.
> 
>>> sticky load balancer with SSL offload that works with any ws app.
> 
> Is there any particular reason one couldn't do sticky load-balancing
> just by remembering the TCP IP/port four-tuple for a given web socket?

IP stickiness is a reasonable solution when cookies are not available,
but it is far from perfect.  Every user from AOL will look to be
coming from just a few IP addresses - which can and do frequently
change for any given user.

Cookie based sticky load balancing is well established and understood
and surely is a good basis to start with.

Note also that load balancers also communicate meta data to the server
they are balancing for:
  + SSL session IDs and client certificates.
  + X-Forwarded-For headers



>> multiplexing protocol implemented in browser/server (not in application).
> 
> What's the use case here?  If a browser has two pages open that each
> want to connect to the same server?  How likely is that?

it's not just two pages, but multiple widgets, iframes and tabs.

This is one of the biggest pain points that I currently have
deploying reliable comet/push applications at the moment.


While I  think multiplexing should be supported in the base
protocol,  I'm currently not advocating that we support it
in the ws protocol.

All I'm currently asking is that ws allows the easy transport
of meta-data so that multiplexing can be transparently implemented
without explicit support from the application code and without
breaking non multiplexing interoperability.



>> orderly closing a ws connection implemented in an application
>> independent way.
> 
> I'm quite sympathetic to providing guarantees about closing (or
> really, about delivery, which is what one really cares about usually).
>  But I'm not clear on what the proposal is here.  Yes, HTTP allows
> servers to arbitrarily close sockets, and thus we can't shove POSTS or
> other non-idempotent requests into a pipeline.  But I don't see
> anything in the ws spec that is equivalent.  So I'd like to see more
> detail here.  What's the solution here (and to what problem(s)?)

The primary problem that I would like to see addressed is
the issue of idle shutdown of connections.   Currently the client,
server or intermediary may decide a connection is idle too long
and close it.   But there are no common timeouts, no way to
discover these timeouts and not way to negotiate these timeouts.

Thus clients will often select and idle connection and try to use
it only to discover that it has been closed.   Lack of orderly
shutdown means that the client has no idea if the messages sent
have been delivered or not.

Websocket will make this a server problem as well, because
servers can now try to use a connection that has been idle
closed by an intermediary or client.

Having an orderly close will allow implementations to distinguish
between a failure (for which there is nothing much that can be done
short of a reliable protocol on top) and a routine idle shutdown,
which would now be able to be handled without any message loss.





> <brief rant>It's notable the in the current Internet, the main
> obstacle to things like pipelining are the existence of badly written
> proxies and intermediaries.  These are the beasties that are still
> preventing us from turning on HTTP pipelining by default (even for
> GETs), all these years after HTTP 1.1 was specified.  So a cynical
> part of me is tempted to believe that the easiest way to provide more
> predictable close semantics for ws applications is to ram the protocol
> past proxies via port 443/TSL, so that they can't muck up the works
> with their "extended" behaviors... </brief rant>.
> 
> I feel better now.

Trying to do an end run around the intermediary vendors and their
particular concerns (and business interests in providing value add)
is hardly going to encourage better future compliance to internet
standards.

Perhaps by considering their concerns and involving them in the
process, a widely implemented solution can be achieved.



> Anyway, I look forward to more conversation on all of this.  I hope we
> can find a good balancing point between the need to keep things
> simple, implementable, and quickly deliverable on the one hand, and as
> fully-featured as is useful/practical on the other.

regards


From gregw@webtide.com  Fri Oct 30 16:55:14 2009
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 3B4E23A6992 for <hybi@core3.amsl.com>; Fri, 30 Oct 2009 16:55:14 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.403
X-Spam-Level: 
X-Spam-Status: No, score=-2.403 tagged_above=-999 required=5 tests=[AWL=0.196,  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 XgimKrOUkGx5 for <hybi@core3.amsl.com>; Fri, 30 Oct 2009 16:55:13 -0700 (PDT)
Received: from mail-yx0-f192.google.com (mail-yx0-f192.google.com [209.85.210.192]) by core3.amsl.com (Postfix) with ESMTP id 6EF6D3A68DE for <hybi@ietf.org>; Fri, 30 Oct 2009 16:55:13 -0700 (PDT)
Received: by yxe30 with SMTP id 30so3635838yxe.29 for <hybi@ietf.org>; Fri, 30 Oct 2009 16:55:28 -0700 (PDT)
Received: by 10.150.142.13 with SMTP id p13mr4222699ybd.25.1256946928378; Fri, 30 Oct 2009 16:55:28 -0700 (PDT)
Received: from ?10.10.1.9? (60-242-119-126.tpgi.com.au [60.242.119.126]) by mx.google.com with ESMTPS id 16sm255410gxk.11.2009.10.30.16.55.25 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 30 Oct 2009 16:55:26 -0700 (PDT)
Message-ID: <4AEB7CE7.8090903@webtide.com>
Date: Sat, 31 Oct 2009 10:55:19 +1100
From: Greg Wilkins <gregw@webtide.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090817)
MIME-Version: 1.0
To: hybi@ietf.org
References: <8B0A9FCBB9832F43971E38010638454F0F1EA72C@SISPE7MB1.commscope.com>	<Pine.LNX.4.62.0910270903080.9145@hixie.dreamhostps.com>	<a9699fd20910270426u4aa508cepf557b362025ae5db@mail.gmail.com>	<Pine.LNX.4.62.0910271824200.25616@hixie.dreamhostps.com>	<4AE76137.8000603@webtide.com>	<Pine.LNX.4.62.0910272118590.25608@hixie.dreamhostps.com>	<20091029123121.GA24268@almeida.jinsky.com>	<4AEA0E6C.1060607@webtide.com> <4AEA5713.8020008@it.aoyama.ac.jp>	<Pine.LNX.4.62.0910300346010.25616@hixie.dreamhostps.com> <20091030124644.GC3579@shareable.org>
In-Reply-To: <20091030124644.GC3579@shareable.org>
X-Enigmail-Version: 0.95.7
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Subject: Re: [hybi] WS framing alternative
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: Fri, 30 Oct 2009 23:55:14 -0000

Jamie Lokier wrote:

> Result: Because of assumptions, 0xff bytes will be sent occasionally
> in the middle of a frame.  Everything afterwards will break, but it'll
> be rare enough that the author doesn't notice.  For the same reason
> you've explained authors get lengths wrong.
> 
> The sentinel approach does not solve this fragility problem, it merely
> shifts it around to a different place.

The sentinel approach also opens an easy attack vector.   If user data
is sent, then tricking a poor implementation into sending an OxFF
will allow packet insertion.

This is similar to CRLFCRLF insertion attacks that can happen
if user data is set unfiltered into a HTTP header and/or cookie.

length framing avoids this vulnerability.

Note also that my proposal for a meta-data bit would allow
headers to be sent in one length frame and data in another, so
the CRLFCRLF sentinel would not be needed and that vulnerability
would also be avoided.


regards

From jamie@shareable.org  Fri Oct 30 19:23:18 2009
Return-Path: <jamie@shareable.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 808343A69AA for <hybi@core3.amsl.com>; Fri, 30 Oct 2009 19:23:18 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.441
X-Spam-Level: 
X-Spam-Status: No, score=-1.441 tagged_above=-999 required=5 tests=[AWL=-0.854, BAYES_00=-2.599, FAKE_REPLY_C=2.012]
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 dBSVHsWEsX+8 for <hybi@core3.amsl.com>; Fri, 30 Oct 2009 19:23:17 -0700 (PDT)
Received: from mail2.shareable.org (mail2.shareable.org [80.68.89.115]) by core3.amsl.com (Postfix) with ESMTP id A69FD3A6781 for <hybi@ietf.org>; Fri, 30 Oct 2009 19:23:17 -0700 (PDT)
Received: from jamie by mail2.shareable.org with local (Exim 4.63) (envelope-from <jamie@shareable.org>) id 1N43cq-0004eN-Sl; Sat, 31 Oct 2009 02:23:32 +0000
Date: Sat, 31 Oct 2009 02:23:32 +0000
From: Jamie Lokier <jamie@shareable.org>
To: Ted Goddard <ted.goddard@icesoft.com>
Message-ID: <20091031022332.GA17680@shareable.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <52F2D33D-DEEF-48CE-B510-1FD322ACBBDB@icesoft.com>
User-Agent: Mutt/1.5.13 (2006-08-11)
Cc: hybi@ietf.org, Jason Duell <jduell.mcbugs@gmail.com>
Subject: Re: [hybi] hybi Digest, Vol 8, Issue 41
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: Sat, 31 Oct 2009 02:23:18 -0000

Ted Goddard wrote:
> Without multiplexing, I expect we will see each Ajax component
> in each page opening its own socket, and multiple pages open
> to the same server is very common (users often forget that
> they already have a window open in their browser) so a hundred
> connections to a single server would not be unexpected.

Yes, this is exactly what I expect to happen.

(I'll add that deliberately opening multiple tabs to the same server
is quite common too.  Like, when you want to read 10 different
articles from the same news/blog site, many people open 10 tabs by
right-clicking from the headline page, let the pages load in the
background, and work their way through them)

Sharing WebSockets between components on different pages is difficult
for the simple reason that browser tabs are quite independent.  (But I
haven't seen anyone advocate that they should use separate HTTP
connections...)

On a single page, Ajax component authors _could_ cooperate so their
components share connections, but how likely is that?

Even with good intentions, it's technically *quite hard* to share
connections between independent components on a single page.

That's because one component sending a large message can block
progress of all other components on the page, if they share.  And one
component taking a long time to accept messages can block all the
others even if it's a short message.

But if they all have separate connections, they do not block each
other, so there's a strong motivation to do that.  It is, after all,
easier to program as well.

That is why I advocate a slightly more advanced multiplexing, akin to
interleaved HTTP chunks, where no component can block the progress of
any others, and chunks can be interleaved in a fair, orderly and
network-efficient manner.  I'm pretty sure that would improve the
browser experience unequivocally for almost everyone.

-- Jamie

From ian@hixie.ch  Fri Oct 30 20:35:09 2009
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 A02973A6957 for <hybi@core3.amsl.com>; Fri, 30 Oct 2009 20:35:09 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.976
X-Spam-Level: 
X-Spam-Status: No, score=-1.976 tagged_above=-999 required=5 tests=[AWL=-0.577, BAYES_00=-2.599, J_CHICKENPOX_44=0.6, J_CHICKENPOX_84=0.6]
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 T8+hfonjOi0m for <hybi@core3.amsl.com>; Fri, 30 Oct 2009 20:35:08 -0700 (PDT)
Received: from looneymail-a1.g.dreamhost.com (caibbdcaaaaf.dreamhost.com [208.113.200.5]) by core3.amsl.com (Postfix) with ESMTP id 907133A67C0 for <hybi@ietf.org>; Fri, 30 Oct 2009 20:35:08 -0700 (PDT)
Received: from hixie.dreamhostps.com (hixie.dreamhost.com [208.113.210.27]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by looneymail-a1.g.dreamhost.com (Postfix) with ESMTP id 9F7BE15D562 for <hybi@ietf.org>; Fri, 30 Oct 2009 20:35:24 -0700 (PDT)
Date: Sat, 31 Oct 2009 03:35:33 +0000 (UTC)
From: Ian Hickson <ian@hixie.ch>
To: "hybi@ietf.org" <hybi@ietf.org>
In-Reply-To: <44abafb90910281604o2a73b490l6b1ae5ca1fba37ba@mail.gmail.com>
Message-ID: <Pine.LNX.4.62.0910310127390.25616@hixie.dreamhostps.com>
References: <4AE7F0AE.1000102@gmx.de> <Pine.LNX.4.62.0910280740540.25608@hixie.dreamhostps.com> <4AE7FFC4.8050405@gmx.de> <4AE806AA.60901@ericsson.com> <Pine.LNX.4.62.0910280938560.25608@hixie.dreamhostps.com> <4AE86513.4060600@ericsson.com> <3a880e2c0910281301j5d1e4cdclfe2391b28eadda0e@mail.gmail.com> <4AE8CA69.2040105@webtide.com> <44abafb90910281604o2a73b490l6b1ae5ca1fba37ba@mail.gmail.com>
Content-Language: en-GB-hixie
Content-Style-Type: text/css
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Subject: Re: [hybi] web socket protocol in "last call"?
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: Sat, 31 Oct 2009 03:35:09 -0000

On Wed, 28 Oct 2009, Salvatore Loreto wrote:
> Ian Hickson wrote:
> > 
> > There's a couple of e-mails from earlier today that I haven't yet 
> > considered, but other than that, I've read and considered all the 
> > e-mails to this list, and provided detailed reasons for rejecting any 
> > proposals I've not adopted. If I missed one, please let me know.
> 
> actually in the IETF process one of the main reason to accept or reject 
> a proposal/issue/"request to change something" is based on *"rough 
> consensus"* reached among people involved in the mailing list 
> discussion, especially when the reason for accepting or rejecting are 
> based more on philosophical then technical issues.

I must admit to being more interested in technical soundness than 
consensus. However, if we are to base things on consensus, then we need an 
objective definition of consensus, so that it can be determined when we do 
or do not have consensus. Is there such a definition?


> The decision to adopt or not a proposal should come from the consensus 
> and not from the decision of a single person. I am sorry to notice, 
> following the ml discussion, that a lot of the proposals have been 
> discarded for philosophical reasons even if the majority of the people 
> in the ml were in favour. I am not saying that you should adopt them 
> straight, but only that you should keep open the discussion on 
> controversial issues and seek a sort of consensus, among people involved 
> in the discussion, on how to solve them

I thought that's what I was doing: responding to proposals with counter 
proposals, evaluating arguments on technical merit, and taking part in the 
continuing debates. Surely you are not suggesting that anybody has been 
preventing anyone from continuing the discussions?


On Wed, 28 Oct 2009, Infinity Linden (Meadhbh Hamrick) wrote:
>
> wow. WS is in last call? not being able to continue work on putting 
> something like RHTTP or BWTP over WS is a bit of a deal-breaker for me.

Nobody is suggesting stopping work on anything, as far as I am aware.


> i guess there's also no reason now to meet at apachecon next week about 
> WS. i mean, why bother meeting about something you can't change?

"Last call" is not the end of the process. If you have feedback, please 
don't hesitate to send it.


> WS is essentially unusable for me in it's current form. or rather, i 
> could use it, but why? my use case of establishing reverse 
> request-response semantic recognizable by intermediaries that supports 
> channel multiplexing is possible over WS, but then again, it's also 
> possible by extending HTTP, so why not just do that?

Could you elaborate on your use case?

WebSocket is a better substrate for bidirectional communication than HTTP 
in some specific ways: the latency involved in having to establish new TCP 
connections for each HTTP message is non-existent in WebSocket, the 
overhead of HTTP headers with each request (leading to 1000:1 
overhead:data ratios when sending simple messages like "the user pressed 
'a'") is minimised in WebSocket (the kilobytes of headers overhead in HTTP 
is reduced to two bytes in WebSocket), and the difficulties on the 
server-side of associating outgoing connections with incoming connections 
is removed (there's only one TCP connection in WebSocket).

What problems are you having that WebSocket _doesn't_ solve, or prevents 
you from solving?


On Wed, 28 Oct 2009, Infinity Linden (Meadhbh Hamrick) wrote:
> 
> HyBi has a few people who are interested primarily in (bidirectional) 
> HTTP as a substrate for other application layer protocols. is there a 
> similar constituency in WHATWG? (probably should have asked this way 
> earlier.) in other words, while i think pushing HTML+JPEG over HTTP is 
> cool and about the only use case browser vendors are going to worry 
> about; my personal interest is in pushing xml, json, and random weird 
> BASE64 encoded binary blobs with metadata over the connection.

As far as I can tell, the use case of sending occasional large blobs of 
data to the server from the client is already addressed by HTTP (via 
XMLHttpRequest on the client), so I don't think there's a need for Web 
browsers to implement new protocols to support it. However, I have no 
objection to the working group developing a technology to support this.


On Thu, 29 Oct 2009, Greg Wilkins wrote:
> 
> I completely agree with this sentiment.  WS is usable, but provides no 
> significant benefit over HTTP other than a warm philosophical feeling 
> that you are not abusing HTTP, is a little more byte efficient and 
> marginally better latency.

Reducing kilobytes of data to 2 bytes is more than "a little more byte 
efficient", and reducing latency from 150ms (TCP round trip to set up the 
connection plus a packet for the message) to 50ms (just the packet for the 
message) is far more than marginal. In fact, these two factors alone are 
enough to make WebSocket seriously interesting to Google.


> But it is not going to scale for my use-cases because of the connection 
> bloat.

It halves the number of connections relative to current solutions. I would 
hardly characterise one connection per user as bloat -- it's the same 
model used by IMAP, SSH, and IRC, to name but three protocols I'm using 
right now. 


> It's going to break all the load balancers I work with and the SSL 
> offloaders and most other network infrastructure.

Could you elaborate on what requirements your load balancers and SSL 
offloaders have which, if addressed, would lead to WebSocket working with 
them to your satisfaction?


> Failing consensus on the protocol, I would have really liked the 
> opportunity of having a service provider API in the browser - so I could 
> intercept standard ws API and transport it over something that would 
> work my use-cases, or inserting layers between app API and transport.

I don't think that's impossible -- as with any browser feature, the first 
step is convincing browser vendors that they should implement such a 
feature. Generally I work the other way around -- I listen to browser 
vendors, then spec what they say they want to implement. But sometimes 
it's possible to convince browser vendors that they want to implement 
something. However, it doesn't matter what the Hybi group does -- browser 
vendors don't automatically implement something the IETF or W3C invent. 
They have to want to implement it.

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

From ian@hixie.ch  Fri Oct 30 20:58:58 2009
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 BACFB3A679C for <hybi@core3.amsl.com>; Fri, 30 Oct 2009 20:58:58 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.562
X-Spam-Level: 
X-Spam-Status: No, score=-2.562 tagged_above=-999 required=5 tests=[AWL=0.037,  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 vEWJC58U8-2i for <hybi@core3.amsl.com>; Fri, 30 Oct 2009 20:58:57 -0700 (PDT)
Received: from looneymail-a1.g.dreamhost.com (caibbdcaaaaf.dreamhost.com [208.113.200.5]) by core3.amsl.com (Postfix) with ESMTP id 5F0483A6849 for <hybi@ietf.org>; Fri, 30 Oct 2009 20:58:57 -0700 (PDT)
Received: from hixie.dreamhostps.com (hixie.dreamhost.com [208.113.210.27]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by looneymail-a1.g.dreamhost.com (Postfix) with ESMTP id C8DA115D7CF; Fri, 30 Oct 2009 20:59:13 -0700 (PDT)
Date: Sat, 31 Oct 2009 03:59:23 +0000 (UTC)
From: Ian Hickson <ian@hixie.ch>
To: Greg Wilkins <gregw@webtide.com>, Salvatore Loreto <salvatore.loreto@ericsson.com>, SM <sm@resistor.net>
In-Reply-To: <6.2.5.6.2.20091030120030.043cff78@resistor.net>
Message-ID: <Pine.LNX.4.62.0910310335580.25616@hixie.dreamhostps.com>
References: <4AE966CA.9090907@ericsson.com> <Pine.LNX.4.62.0910300047310.25608@hixie.dreamhostps.com> <4AEABDBF.80705@ericsson.com> <6.2.5.6.2.20091030120030.043cff78@resistor.net>
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" <hybi@ietf.org>
Subject: Re: [hybi] Proposed Charter for HyBi WG (rev.3)
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: Sat, 31 Oct 2009 03:58:58 -0000

On Fri, 30 Oct 2009, Greg Wilkins wrote:
> Ian Hickson wrote:
> > I think that's the wrong characterisation of the spaces that people 
> > want to work in. I think a better way to characterise it would be that 
> > there are three use cases people are interested in, with different 
> > needs:
> > 
> >  * Providing a standard way of doing two-way communication tunneled over 
> >    HTTP, for use by applications that cannot use TCP, Jabber, BEEP, or 
> >    other existing solutions in that space due to intermediaries, 
> >    firewalls, NATs, etc.
> >
> >  * Providing something as close to TCP as possible to Web applications 
> >    (i.e. JavaScript running in HTML on Web browsers), while maintaining 
> >    the Web origin security model and fitting the Web development model 
> >    (e.g. event-based, not stream-based).
> >
> >  * Providing a standard way of doing "hanging-GET" two-way communication 
> >    to HTTP servers along the lines of what interactive AJAX pages do.
> 
> I don't see why you consider the first two as entirely different 
> audiences.  Web applications (i.e. JavaScript running in HTML on Web 
> browsers) are just any other application (like Jabber, BEEP etc) that 
> wants two-way communication over the web.

They have different requirements, primarily due to the differing security 
models. The origin security model makes no sense for a standalone app, 
since it controls what it sends down the wire. Such a model only makes 
sense when the handshake is done by a different party than the application 
-- indeed, it only makes sense when the application is assumed to be 
hostile. Most environments assume the application is benign.


> From the point of view of server or an intermediary, there is very 
> little difference between any of the different client application types 
> that might be out there and I don't want to have to double my effort to 
> consider them differently.

Could you describe concretely what use case you have in mind here? I could 
imagine, e.g., a third-party native Google Mail client wanting to pretend 
to be the GMail Web app so that it can use the same API as the web app, 
but that seems likely to be relatively infrequent compared to the number 
of cases that would just be Web apps. (It would also work fine, if that 
was really desired.) However, it seems like a much better for such an app 
to just use IMAP directly, rather than trying to reverse-engineer Google's 
internal server-client protocol.


> I agree that webapps/browsers have some specific requirements - eg in 
> regards to the Web origin security model - but surely those extra 
> requirements should be layered on top of the protocol, not baked in as 
> assumptions that will force an entirely new protocol to be used for 
> non-browser clients.

That's exactly what WebSocket is -- it is the layer on top of TCP that 
adds just the features that are needed for browsers. It adds nothing else. 
TCP is the protocol on which this is being layered.

The protocol stack I'm proposing looks something like this:

   |\/\/\/\/\/\/\/\/\/\/\/\/\/\/|
   | Application-level protocol | user application features
   +----------------------------+
   | WebSocket protocol         | browser security model, event wrapper
   +----------------------------+
   | TCP                        | reliability, connection wrapper
   +----------------------------+
   | IP                         | packet abstraction, routing
   +----------------------------+
   | Ethernet                   | link-level routing
   |/\/\/\/\/\/\/\/\/\/\/\/\/\/\|


What is the protocol stack you are imagining? What are the features that 
TCP lacks that you think need to be added between the "IP" and 
"Application-level protocol" layers of the stack above? Where do you think 
features like the browser-level origin model should fit?


On Fri, 30 Oct 2009, Salvatore Loreto wrote:
> Ian Hickson wrote:
> > 
> > We should also liason with the WHATWG, since that's where most of the 
> > WebSockets work has happened. (The W3C Web Apps working group hasn't 
> > worked on the protocol at all, and they already liase with the WHATWG 
> > for the API.)
>
> what about the following text?
> 
>    In particular, the working group will liaison with:
>    - the W3C WebApps working group around the requirements to support      the
> WebSocket API;    - the WHATWG around the WebSockets protocol    if agreed by
> both parties, the HyBi working group may take on prime    responsibility on
> the specification of the WebSockets protocol.
>
> one question: how IETF can become aware if WHATWG agrees or not?

The WHATWG is happy to work with anyone. I don't understand what you mean 
by "liason with" juxtaposed by "take on prime responsibility", though. In 
what sense is it a liason if the other group no longer has responsibility? 
Surely a joint effort implies joint responsibility.

It should be noted that the WHATWG's work is based on technical merit and 
not on consensus. If even just one person raises a valid technical issue 
in the WHATWG, they cannot be overridden by the rest of the group having 
complete agreement that they should just ignore the technical issue. There 
is also a firm philosophy that the specs match interoperable deployed 
implementations, and that the specs not leave things undefined.

Does the IETF/Hybi agree?

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

From gregw@webtide.com  Fri Oct 30 22:22:29 2009
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 0E0493A6922 for <hybi@core3.amsl.com>; Fri, 30 Oct 2009 22:22:29 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.41
X-Spam-Level: 
X-Spam-Status: No, score=-2.41 tagged_above=-999 required=5 tests=[AWL=0.189,  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 g619tDC4ZAgN for <hybi@core3.amsl.com>; Fri, 30 Oct 2009 22:22:27 -0700 (PDT)
Received: from mail-gx0-f212.google.com (mail-gx0-f212.google.com [209.85.217.212]) by core3.amsl.com (Postfix) with ESMTP id 61EBE3A6405 for <hybi@ietf.org>; Fri, 30 Oct 2009 22:22:27 -0700 (PDT)
Received: by gxk4 with SMTP id 4so2605506gxk.8 for <hybi@ietf.org>; Fri, 30 Oct 2009 22:22:41 -0700 (PDT)
Received: by 10.150.1.18 with SMTP id 18mr4473449yba.156.1256966561419; Fri, 30 Oct 2009 22:22:41 -0700 (PDT)
Received: from ?10.10.1.9? (60-242-119-126.tpgi.com.au [60.242.119.126]) by mx.google.com with ESMTPS id 14sm111497gxk.6.2009.10.30.22.22.38 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 30 Oct 2009 22:22:40 -0700 (PDT)
Message-ID: <4AEBC997.1030409@webtide.com>
Date: Sat, 31 Oct 2009 16:22:31 +1100
From: Greg Wilkins <gregw@webtide.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090817)
MIME-Version: 1.0
To: Ian Hickson <ian@hixie.ch>
References: <4AE966CA.9090907@ericsson.com> <Pine.LNX.4.62.0910300047310.25608@hixie.dreamhostps.com> <4AEABDBF.80705@ericsson.com> <6.2.5.6.2.20091030120030.043cff78@resistor.net> <Pine.LNX.4.62.0910310335580.25616@hixie.dreamhostps.com>
In-Reply-To: <Pine.LNX.4.62.0910310335580.25616@hixie.dreamhostps.com>
X-Enigmail-Version: 0.95.7
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] Proposed Charter for HyBi WG (rev.3)
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: Sat, 31 Oct 2009 05:22:29 -0000

Ian Hickson wrote:




> The protocol stack I'm proposing looks something like this:
> 
>    |\/\/\/\/\/\/\/\/\/\/\/\/\/\/|
>    | Application-level protocol | user application features
>    +----------------------------+
>    | WebSocket protocol         | browser security model, event wrapper
>    +----------------------------+
>    | TCP                        | reliability, connection wrapper
>    +----------------------------+
>    | IP                         | packet abstraction, routing
>    +----------------------------+
>    | Ethernet                   | link-level routing
>    |/\/\/\/\/\/\/\/\/\/\/\/\/\/\|
> 
> 

Currently you are insisting that there
are no layers between websocket and TCP or
between the application and websocket.
That is hardly and endorsement of a layered
approach.


> What is the protocol stack you are imagining? 


What I'd like to see is:

   |\/\/\/\/\/\/\/\/\/\/\/\/\/\/|
   | Application-level protocol | user application features
   +----------------------------+
   | BWT browser binding        | browser security model
   +----------------------------+
   | Optional transport features| Multiplexing, compression, etc.
   +----------------------------+
   | Bidirectional Web Transport| Two way communications through firewalls etc.
   +----------------------------+
   | TCP                        | reliability, connection wrapper
   +----------------------------+
   | IP                         | packet abstraction, routing
   +----------------------------+
   | Ethernet                   | link-level routing
   |/\/\/\/\/\/\/\/\/\/\/\/\/\/\|



What I'm currently trying to compromise on is:



   |\/\/\/\/\/\/\/\/\/\/\/\/\/\/|
   | Application-level protocol | user application features
   +----------------------------+
   | Optional transport features| Multiplexing, compression, etc.
   +----------------------------+
   | Websocket protocol         | Two way comms, browser security model
   +----------------------------+
   | TCP                        | reliability, connection wrapper
   +----------------------------+
   | IP                         | packet abstraction, routing
   +----------------------------+
   | Ethernet                   | link-level routing
   |/\/\/\/\/\/\/\/\/\/\/\/\/\/\|



> What are the features that
> TCP lacks that you think need to be added between the "IP" and
> "Application-level protocol" layers of the stack above?

I want a transport that will provide bidirectional communications
through the web - where my definition of the web is the internet as
deployed with firewalls, NAT routers, aggregation, load balancers,
SSL offload, etc.

HTTP is a reasonable web transport, but it is not bidirectional


> Where do you think features like the browser-level origin model should fit?

Above the transport layer.
Below the application layer.


Where do you think features like multiplexing should fit?
I think you are advocating in the application layer - which is
just wrong!


> The origin security model makes no sense for a standalone app,
> since it controls what it sends down the wire. Such a model only makes
> sense when the handshake is done by a different party than the application
> -- indeed, it only makes sense when the application is assumed to be
> hostile. Most environments assume the application is benign.


And because the origin model implementation uses a standard
meta data channel (HTTP headers), applications that don't care about
it can simply ignore it and still work!!!!   Websocket is using
this technique in it's own handshake, but denying the same
technique to anything built on top of websocket.





Ian Hickson wrote:
> I must admit to being more interested in technical soundness than 
> consensus. 

Do you realize how arrogant that reads and how
non-constructive that is towards creating a civil
conversation?

We've not question your technical credentials to
participate in this forum, so please do not imply that
those that disagree with you cannot propose technically
sound solutions.


> I thought that's what I was doing: responding to proposals with counter 
> proposals, 

I'm still waiting for a single counter proposal other than
to say the application layer can do it all.



> Reducing kilobytes of data to 2 bytes is more than "a little more byte 
> efficient", 

HTTP headers used for most comet interactions are not kilobytes.

Even if there were, there are proposals that can be made to
browser/server developers to greatly reduce the overheads of
headers.

Data rate is not a big problem for me - but I acknowledge
others might want to do better.


> and reducing latency from 150ms (TCP round trip to set up the
> connection plus a packet for the message) to 50ms (just the packet for the 
> message) is far more than marginal.

We just benchmarked a comet installation using HTTP long
polling that handled 8000 clients with an average 60ms
latency.

Latency is not a big problem for me - but I acknowledge
others might want to do better (specially for max latency).


> It halves the number of connections relative to current solutions. 
> I would  hardly characterise one connection per user as bloat --


It does not decrease the connections.  At the very least it
will add one connection because it can't be used for normal
HTTP - so those connections will still be used for normal
ajax stuff (or just held idle)

It is not one connection per user.    It is one connection
per end point that the application creates per frame, per tab
per window per user.

The number of connections IS a problem for me and others -
but I acknowledge that others don't give a damn.


Ideally if we had shared multiplexed with fragmentation that
were capable of carrying HTTP as well as bidirectional datagrams,
then we would be able to truly have 1 connection per client.


>> It's going to break all the load balancers I work with and the SSL 
>> offloaders and most other network infrastructure.
> 
> Could you elaborate on what requirements your load balancers and SSL 
> offloaders have which, if addressed, would lead to WebSocket working with 
> them to your satisfaction?

It's not "my satisfaction".    I'm just telling you that there is a
big industry in developing intermediaries that do all sorts of funky
stuff with HTTP - mostly based on the ability to pass meta data.

I don't know what they all do... I don't even think all the ones I
know about are good ideas.

But yet they still exist.  Like it or not, they will continue to
exit.    Trying to ignore them is just not going to be helpful.

I've already given you plenty of examples








From sm@resistor.net  Sat Oct 31 09:36:15 2009
Return-Path: <sm@resistor.net>
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 C33C63A6831 for <hybi@core3.amsl.com>; Sat, 31 Oct 2009 09:36:15 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.542
X-Spam-Level: 
X-Spam-Status: No, score=-2.542 tagged_above=-999 required=5 tests=[AWL=0.057,  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 2u+kdofK7WNJ for <hybi@core3.amsl.com>; Sat, 31 Oct 2009 09:36:14 -0700 (PDT)
Received: from ns1.qubic.net (ns1.qubic.net [208.69.177.116]) by core3.amsl.com (Postfix) with ESMTP id E3FD23A6783 for <hybi@ietf.org>; Sat, 31 Oct 2009 09:36:14 -0700 (PDT)
Received: from subman.resistor.net ([10.0.0.1]) (authenticated bits=0) by ns1.qubic.net (8.14.4.Beta0/8.14.4.Beta0) with ESMTP id n9VGaJq8011247 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 31 Oct 2009 09:36:25 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=resistor.net; s=mail; t=1257006988; x=1257093388; bh=gzVYetV6KSYAtKrwIdEtevb5NF5R8pfdEAECSFSkvkU=; h=Message-Id:Date:To:From:Subject:Cc:In-Reply-To:References: Mime-Version:Content-Type; b=mq6XzMLtK+SaEu8uzsu4Vwm1QusiMkJ/S4uYS7uAtflpaijXT83cWs0cg/RxwKyVR iKQ+3KbCzGpj9DMSN8HweTFNMUmdCpLYAxRdanrD/Zz9SYvUjOZWkPB6+RjjWW037O wl6DUicjnx7QtOz4yqmaLKw2ugpzjN6Q8pWQxBAE=
DomainKey-Signature: a=rsa-sha1; s=mail; d=resistor.net; c=simple; q=dns; b=aFFm6Ie/Txpb7BPAYnaSa1hMYSgXx14XkazHfFg8SVv4z6e2WniXO3dnnmvNTIrR1 3KA8gB74eVQZFCaSaLRrZtGMDeXzB6mpPlOv3mj01UeZ8rFhSM1uTg20aMdmBycn/HF BSfxxqFwK+bU71dRvP2cTpr3nbrezShMEHUwe5g=
Message-Id: <6.2.5.6.2.20091031080527.040fe028@resistor.net>
X-Mailer: QUALCOMM Windows Eudora Version 6.2.5.6
Date: Sat, 31 Oct 2009 09:35:59 -0700
To: Ian Hickson <ian@hixie.ch>, Salvatore Loreto <salvatore.loreto@ericsson.com>
From: SM <sm@resistor.net>
In-Reply-To: <Pine.LNX.4.62.0910310335580.25616@hixie.dreamhostps.com>
References: <4AE966CA.9090907@ericsson.com> <Pine.LNX.4.62.0910300047310.25608@hixie.dreamhostps.com> <4AEABDBF.80705@ericsson.com> <6.2.5.6.2.20091030120030.043cff78@resistor.net> <Pine.LNX.4.62.0910310335580.25616@hixie.dreamhostps.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; format=flowed
Cc: hybi@ietf.org
Subject: Re: [hybi] Proposed Charter for HyBi WG (rev.3)
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: Sat, 31 Oct 2009 16:36:15 -0000

At 20:59 30-10-2009, Ian Hickson wrote:
>The WHATWG is happy to work with anyone. I don't understand what you mean
>by "liason with" juxtaposed by "take on prime responsibility", though. In
>what sense is it a liason if the other group no longer has responsibility?
>Surely a joint effort implies joint responsibility.

Editorial comment:  That should have been "the working group will 
liaise with the ...".

Joint responsibility increases the chances of failure as two working 
groups do not work the same way.

>It should be noted that the WHATWG's work is based on technical merit and
>not on consensus. If even just one person raises a valid technical issue
>in the WHATWG, they cannot be overridden by the rest of the group having
>complete agreement that they should just ignore the technical issue. There
>is also a firm philosophy that the specs match interoperable deployed
>implementations, and that the specs not leave things undefined.

The IETF process is based on consensus.  An IETF Working Group cannot 
change that.  The philosophical questions can be addressed in the 
charter if the group reaches a consensus about that.

My comments are as an individual.  The proposed WG will be part of 
the IETF.  It is not the IETF.  The entire IETF community will be 
asked to comment on the proposal submitted for publication.  The IETF 
does not constrain the solution.  It is up to the IETF participants 
to determine what problem will be solved and how it will be 
solved.  There's the BoF and this mailing to discuss about all that 
and come up with a proposed charter.  People from the W3C WebApps and 
WHATWG are not excluded.  Ask them to join this mailing list and participate.

Regards,
-sm 


From mike@dierken.com  Sat Oct 31 20:29:20 2009
Return-Path: <mike@dierken.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 AD7F33A6781 for <hybi@core3.amsl.com>; Sat, 31 Oct 2009 20:29:20 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.777
X-Spam-Level: 
X-Spam-Status: No, score=-0.777 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, J_CHICKENPOX_44=0.6, J_CHICKENPOX_84=0.6]
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 9gAkZI3DkdwZ for <hybi@core3.amsl.com>; Sat, 31 Oct 2009 20:29:19 -0700 (PDT)
Received: from mail-px0-f171.google.com (mail-px0-f171.google.com [209.85.216.171]) by core3.amsl.com (Postfix) with ESMTP id 7A6673A6359 for <hybi@ietf.org>; Sat, 31 Oct 2009 20:29:19 -0700 (PDT)
Received: by pxi1 with SMTP id 1so2863722pxi.32 for <hybi@ietf.org>; Sat, 31 Oct 2009 20:29:35 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.143.27.41 with SMTP id e41mr316058wfj.218.1257046175437; Sat,  31 Oct 2009 20:29:35 -0700 (PDT)
In-Reply-To: <Pine.LNX.4.62.0910310127390.25616@hixie.dreamhostps.com>
References: <4AE7F0AE.1000102@gmx.de> <Pine.LNX.4.62.0910280740540.25608@hixie.dreamhostps.com> <4AE7FFC4.8050405@gmx.de> <4AE806AA.60901@ericsson.com> <Pine.LNX.4.62.0910280938560.25608@hixie.dreamhostps.com> <4AE86513.4060600@ericsson.com> <3a880e2c0910281301j5d1e4cdclfe2391b28eadda0e@mail.gmail.com> <4AE8CA69.2040105@webtide.com> <44abafb90910281604o2a73b490l6b1ae5ca1fba37ba@mail.gmail.com> <Pine.LNX.4.62.0910310127390.25616@hixie.dreamhostps.com>
Date: Sat, 31 Oct 2009 20:29:35 -0700
Message-ID: <3f5bf96b0910312029l3a0f755ax39349988fefb53b@mail.gmail.com>
From: Mike Dierken <mike@dierken.com>
To: Ian Hickson <ian@hixie.ch>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] web socket protocol in "last call"?
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, 01 Nov 2009 03:29:20 -0000

It's good to see progress on messaging technologies for browsers and
other user agents.

I had one small question about "[..] the latency involved in having to
establish new TCP
connections for each HTTP message is non-existent in WebSocket". I
know that you know that persistent HTTP 1.1 connections reduce the
number of times an open/close of a connection would occur, so I was
curious what's actually happening that connections are created for
each request. (Not that I think the answer will or should change
anything to do with WebSockets, just a curiousity sort of thing).



On Fri, Oct 30, 2009 at 8:35 PM, Ian Hickson <ian@hixie.ch> wrote:
> On Wed, 28 Oct 2009, Salvatore Loreto wrote:
>> Ian Hickson wrote:
>> >
>> > There's a couple of e-mails from earlier today that I haven't yet
>> > considered, but other than that, I've read and considered all the
>> > e-mails to this list, and provided detailed reasons for rejecting any
>> > proposals I've not adopted. If I missed one, please let me know.
>>
>> actually in the IETF process one of the main reason to accept or reject
>> a proposal/issue/"request to change something" is based on *"rough
>> consensus"* reached among people involved in the mailing list
>> discussion, especially when the reason for accepting or rejecting are
>> based more on philosophical then technical issues.
>
> I must admit to being more interested in technical soundness than
> consensus. However, if we are to base things on consensus, then we need a=
n
> objective definition of consensus, so that it can be determined when we d=
o
> or do not have consensus. Is there such a definition?
>
>
>> The decision to adopt or not a proposal should come from the consensus
>> and not from the decision of a single person. I am sorry to notice,
>> following the ml discussion, that a lot of the proposals have been
>> discarded for philosophical reasons even if the majority of the people
>> in the ml were in favour. I am not saying that you should adopt them
>> straight, but only that you should keep open the discussion on
>> controversial issues and seek a sort of consensus, among people involved
>> in the discussion, on how to solve them
>
> I thought that's what I was doing: responding to proposals with counter
> proposals, evaluating arguments on technical merit, and taking part in th=
e
> continuing debates. Surely you are not suggesting that anybody has been
> preventing anyone from continuing the discussions?
>
>
> On Wed, 28 Oct 2009, Infinity Linden (Meadhbh Hamrick) wrote:
>>
>> wow. WS is in last call? not being able to continue work on putting
>> something like RHTTP or BWTP over WS is a bit of a deal-breaker for me.
>
> Nobody is suggesting stopping work on anything, as far as I am aware.
>
>
>> i guess there's also no reason now to meet at apachecon next week about
>> WS. i mean, why bother meeting about something you can't change?
>
> "Last call" is not the end of the process. If you have feedback, please
> don't hesitate to send it.
>
>
>> WS is essentially unusable for me in it's current form. or rather, i
>> could use it, but why? my use case of establishing reverse
>> request-response semantic recognizable by intermediaries that supports
>> channel multiplexing is possible over WS, but then again, it's also
>> possible by extending HTTP, so why not just do that?
>
> Could you elaborate on your use case?
>
> WebSocket is a better substrate for bidirectional communication than HTTP
> in some specific ways: the latency involved in having to establish new TC=
P
> connections for each HTTP message is non-existent in WebSocket, the
> overhead of HTTP headers with each request (leading to 1000:1
> overhead:data ratios when sending simple messages like "the user pressed
> 'a'") is minimised in WebSocket (the kilobytes of headers overhead in HTT=
P
> is reduced to two bytes in WebSocket), and the difficulties on the
> server-side of associating outgoing connections with incoming connections
> is removed (there's only one TCP connection in WebSocket).
>
> What problems are you having that WebSocket _doesn't_ solve, or prevents
> you from solving?
>
>
> On Wed, 28 Oct 2009, Infinity Linden (Meadhbh Hamrick) wrote:
>>
>> HyBi has a few people who are interested primarily in (bidirectional)
>> HTTP as a substrate for other application layer protocols. is there a
>> similar constituency in WHATWG? (probably should have asked this way
>> earlier.) in other words, while i think pushing HTML+JPEG over HTTP is
>> cool and about the only use case browser vendors are going to worry
>> about; my personal interest is in pushing xml, json, and random weird
>> BASE64 encoded binary blobs with metadata over the connection.
>
> As far as I can tell, the use case of sending occasional large blobs of
> data to the server from the client is already addressed by HTTP (via
> XMLHttpRequest on the client), so I don't think there's a need for Web
> browsers to implement new protocols to support it. However, I have no
> objection to the working group developing a technology to support this.
>
>
> On Thu, 29 Oct 2009, Greg Wilkins wrote:
>>
>> I completely agree with this sentiment. =A0WS is usable, but provides no
>> significant benefit over HTTP other than a warm philosophical feeling
>> that you are not abusing HTTP, is a little more byte efficient and
>> marginally better latency.
>
> Reducing kilobytes of data to 2 bytes is more than "a little more byte
> efficient", and reducing latency from 150ms (TCP round trip to set up the
> connection plus a packet for the message) to 50ms (just the packet for th=
e
> message) is far more than marginal. In fact, these two factors alone are
> enough to make WebSocket seriously interesting to Google.
>
>
>> But it is not going to scale for my use-cases because of the connection
>> bloat.
>
> It halves the number of connections relative to current solutions. I woul=
d
> hardly characterise one connection per user as bloat -- it's the same
> model used by IMAP, SSH, and IRC, to name but three protocols I'm using
> right now.
>
>
>> It's going to break all the load balancers I work with and the SSL
>> offloaders and most other network infrastructure.
>
> Could you elaborate on what requirements your load balancers and SSL
> offloaders have which, if addressed, would lead to WebSocket working with
> them to your satisfaction?
>
>
>> Failing consensus on the protocol, I would have really liked the
>> opportunity of having a service provider API in the browser - so I could
>> intercept standard ws API and transport it over something that would
>> work my use-cases, or inserting layers between app API and transport.
>
> I don't think that's impossible -- as with any browser feature, the first
> step is convincing browser vendors that they should implement such a
> feature. Generally I work the other way around -- I listen to browser
> vendors, then spec what they say they want to implement. But sometimes
> it's possible to convince browser vendors that they want to implement
> something. However, it doesn't matter what the Hybi group does -- browser
> vendors don't automatically implement something the IETF or W3C invent.
> They have to want to implement it.
>
> --
> Ian Hickson =A0 =A0 =A0 =A0 =A0 =A0 =A0 U+1047E =A0 =A0 =A0 =A0 =A0 =A0 =
=A0 =A0)\._.,--....,'``. =A0 =A0fL
> http://ln.hixie.ch/ =A0 =A0 =A0 U+263A =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0/, =
=A0 _.. \ =A0 _\ =A0;`._ ,.
> Things that are impossible just take longer. =A0 `._.-(,_..'--(,_..'`-.;.=
'
> _______________________________________________
> hybi mailing list
> hybi@ietf.org
> https://www.ietf.org/mailman/listinfo/hybi
>
