
From gregw@webtide.com  Sat Aug  1 17:41:11 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 F13563A6819 for <hybi@core3.amsl.com>; Sat,  1 Aug 2009 17:41:10 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.975
X-Spam-Level: 
X-Spam-Status: No, score=-1.975 tagged_above=-999 required=5 tests=[AWL=0.624,  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 aXQQZlrCCTTX for <hybi@core3.amsl.com>; Sat,  1 Aug 2009 17:41:09 -0700 (PDT)
Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.178]) by core3.amsl.com (Postfix) with ESMTP id C074A3A69D8 for <hybi@ietf.org>; Sat,  1 Aug 2009 17:41:09 -0700 (PDT)
Received: by wa-out-1112.google.com with SMTP id v27so393149wah.5 for <hybi@ietf.org>; Sat, 01 Aug 2009 17:41:10 -0700 (PDT)
Received: by 10.114.12.2 with SMTP id 2mr6314712wal.166.1249173670420; Sat, 01 Aug 2009 17:41:10 -0700 (PDT)
Received: from ?10.10.1.11? (60-242-119-126.tpgi.com.au [60.242.119.126]) by mx.google.com with ESMTPS id 7sm9815513pxi.70.2009.08.01.17.41.08 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 01 Aug 2009 17:41:09 -0700 (PDT)
Message-ID: <4A74E09E.20705@webtide.com>
Date: Sun, 02 Aug 2009 10:41:02 +1000
From: Greg Wilkins <gregw@webtide.com>
User-Agent: Thunderbird 2.0.0.22 (X11/20090608)
MIME-Version: 1.0
To: Salvatore Loreto <salvatore.loreto@ericsson.com>
References: <4A714D45.9080405@stpeter.im> <4A72DBDC.5090109@ericsson.com>
In-Reply-To: <4A72DBDC.5090109@ericsson.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: hybi@ietf.org
Subject: Re: [hybi] breakfast BoF minutes
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, 02 Aug 2009 00:41:11 -0000

Salvatore Loreto wrote:
> 
> here you can find the slide we wasn't able to show during the meeting
> due to the lack of  a beamer
> in the room :
> www.sloreto.com/tmp/HyBi BarBof.ppt

Sal,

I note in those slides that the "Long term solution" is stated
to be the agreement between W3C and IETF and that it is the
websocket protocol?    Also the minutes talk about the
"political" agreement with the W3C.

Does this mean that efforts on alternative proposals such as BWTP
are  non-starters?  If the political/technical decision has already
been  made that the solution will be the WebSocket protocol, then
I will switch my efforts back to trying to influence the websocket
protocol.

regards

From salvatore.loreto@ericsson.com  Tue Aug  4 10:32: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 B144328C3AA for <hybi@core3.amsl.com>; Tue,  4 Aug 2009 10:32:48 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.554
X-Spam-Level: 
X-Spam-Status: No, score=-3.554 tagged_above=-999 required=5 tests=[AWL=-1.305, BAYES_00=-2.599, HELO_EQ_SE=0.35]
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 QHJvlAX6G6nU for <hybi@core3.amsl.com>; Tue,  4 Aug 2009 10:32:47 -0700 (PDT)
Received: from mailgw5.ericsson.se (mailgw5.ericsson.se [193.180.251.36]) by core3.amsl.com (Postfix) with ESMTP id 5A4EF28C375 for <hybi@ietf.org>; Tue,  4 Aug 2009 10:32:47 -0700 (PDT)
X-AuditID: c1b4fb24-b7c01ae00000498b-ca-4a7870c0d76a
Received: from esealmw127.eemea.ericsson.se (Unknown_Domain [153.88.253.124]) by mailgw5.ericsson.se (Symantec Brightmail Gateway) with SMTP id 39.99.18827.0C0787A4; Tue,  4 Aug 2009 19:32:48 +0200 (CEST)
Received: from esealmw127.eemea.ericsson.se ([153.88.254.175]) by esealmw127.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.3959);  Tue, 4 Aug 2009 19:31:30 +0200
Received: from mail.lmf.ericsson.se ([131.160.11.50]) by esealmw127.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.3959);  Tue, 4 Aug 2009 19:31:30 +0200
Received: from nomadiclab.lmf.ericsson.se (nomadiclab.lmf.ericsson.se [131.160.33.3]) by mail.lmf.ericsson.se (Postfix) with ESMTP id 0F0CE24D0; Tue,  4 Aug 2009 20:31:30 +0300 (EEST)
Received: from nomadiclab.lmf.ericsson.se (localhost [127.0.0.1]) by nomadiclab.lmf.ericsson.se (Postfix) with ESMTP id CDB7121A0F; Tue,  4 Aug 2009 20:31:29 +0300 (EEST)
Received: from localhost.localdomain (localhost [127.0.0.1]) by nomadiclab.lmf.ericsson.se (Postfix) with ESMTP id 73E0C2197A; Tue,  4 Aug 2009 20:31:29 +0300 (EEST)
Message-ID: <4A787071.30708@ericsson.com>
Date: Tue, 04 Aug 2009 20:31:29 +0300
From: Salvatore Loreto <salvatore.loreto@ericsson.com>
User-Agent: Thunderbird 2.0.0.21 (X11/20090320)
MIME-Version: 1.0
To: Greg Wilkins <gregw@webtide.com>
References: <4A714D45.9080405@stpeter.im> <4A72DBDC.5090109@ericsson.com> <4A74E09E.20705@webtide.com>
In-Reply-To: <4A74E09E.20705@webtide.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: ClamAV using ClamSMTP
X-OriginalArrivalTime: 04 Aug 2009 17:31:30.0376 (UTC) FILETIME=[6742E480:01CA1529]
X-Brightmail-Tracker: AAAAAA==
Cc: hybi@ietf.org
Subject: Re: [hybi] breakfast BoF minutes
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, 04 Aug 2009 17:32:48 -0000

Hi Greg,

during the BoF meeting we had some discussion about the situation in W3C and
the agreement between IETF and W3C, but actually there hasn't been any 
decision on this.

No political neither technical decision has already been made at least 
within IETF
about the solution for the so called "long term" solution.

It seems to me that W3C  is pushing for standardize WebSocket (not sure 
if W3C has an unique position on it)
as  HTML5 also "/defines an API that enables  Web pages to use the Web 
Sockets protocol for two-way communication with a remote host/":
( http://dev.w3.org/html5/websockets/ )

there has been some discussion on the WhatWg mailing list about both the 
WebSocket API and the protocol:
http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2009-July/021422.html

cheers
Sal



Greg Wilkins wrote:
> Salvatore Loreto wrote:
>   
>> here you can find the slide we wasn't able to show during the meeting
>> due to the lack of  a beamer
>> in the room :
>> www.sloreto.com/tmp/HyBi BarBof.ppt
>>     
>
> Sal,
>
> I note in those slides that the "Long term solution" is stated
> to be the agreement between W3C and IETF and that it is the
> websocket protocol?    Also the minutes talk about the
> "political" agreement with the W3C.
>
> Does this mean that efforts on alternative proposals such as BWTP
> are  non-starters?  If the political/technical decision has already
> been  made that the solution will be the WebSocket protocol, then
> I will switch my efforts back to trying to influence the websocket
> protocol.
>
> regards
>   


From ian@hixie.ch  Thu Aug  6 22:35:15 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 328B13A6B0B; Thu,  6 Aug 2009 22:35:15 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.649
X-Spam-Level: 
X-Spam-Status: No, score=-3.649 tagged_above=-999 required=5 tests=[AWL=-1.050, 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 6uL7sgQht5HJ; Thu,  6 Aug 2009 22:35: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 7673A3A6AF4; Thu,  6 Aug 2009 22:35: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 60AE716D3DA; Thu,  6 Aug 2009 22:35:17 -0700 (PDT)
Date: Fri, 7 Aug 2009 05:35:16 +0000 (UTC)
From: Ian Hickson <ian@hixie.ch>
To: uri-review@ietf.org
Message-ID: <Pine.LNX.4.62.0908070531430.28566@hixie.dreamhostps.com>
Content-Language: en-GB-hixie
Content-Style-Type: text/css
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Cc: uri@w3.org, hybi@ietf.org
Subject: [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: Fri, 07 Aug 2009 05:35:15 -0000

The formal registrations for the ws: and wss: schemes, part of the Web 
Socket protocol, will be available in the Web Socket protocol ID as soon 
as the IETF upload process completes:

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

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

From julian.reschke@gmx.de  Thu Aug  6 23:01:44 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 029703A6C78 for <hybi@core3.amsl.com>; Thu,  6 Aug 2009 23:01:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.949
X-Spam-Level: 
X-Spam-Status: No, score=-4.949 tagged_above=-999 required=5 tests=[AWL=-2.350, 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 KxJHocPKMjzC for <hybi@core3.amsl.com>; Thu,  6 Aug 2009 23:01:43 -0700 (PDT)
Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by core3.amsl.com (Postfix) with SMTP id B13623A6C36 for <hybi@ietf.org>; Thu,  6 Aug 2009 23:01:41 -0700 (PDT)
Received: (qmail invoked by alias); 07 Aug 2009 06:01:42 -0000
Received: from p508FF540.dip.t-dialin.net (EHLO [192.168.178.33]) [80.143.245.64] by mail.gmx.net (mp041) with SMTP; 07 Aug 2009 08:01:42 +0200
X-Authenticated: #1915285
X-Provags-ID: V01U2FsdGVkX18ajVklXaAajbo2BHSVQEzJmHOuU36AQiV+VSdnUn SPk2wUZ6R3aTg4
Message-ID: <4A7BC33E.5070805@gmx.de>
Date: Fri, 07 Aug 2009 08:01:34 +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: <Pine.LNX.4.62.0908070531430.28566@hixie.dreamhostps.com>
In-Reply-To: <Pine.LNX.4.62.0908070531430.28566@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: uri-review@ietf.org, hybi@ietf.org, uri@w3.org
Subject: Re: [hybi] [Uri-review] 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: Fri, 07 Aug 2009 06:01:44 -0000

Ian Hickson wrote:
> The formal registrations for the ws: and wss: schemes, part of the Web 
> Socket protocol, will be available in the Web Socket protocol ID as soon 
> as the IETF upload process completes:
> 
>    http://tools.ietf.org/html/draft-hixie-thewebsocketprotocol#section-7

Looking at:

> 7.1. Registrarion of ws: scheme
> 
> 
>    URI scheme name.
>       ws
> 
>    Status.
>       Permanent.
> 
>    URI scheme syntax.
>       "ws" ":" hier-part [ "?" query ]

I assume you are using ABNF syntax (RFC5234) and terminology from the 
URI spec, but you really need to state that.

>    URI scheme semantics.
>       The only operation for this scheme is to open a connection using
>       the Web Socket protocol.
> 
>    Encoding considerations.
>       UTF-8 only.

What does this mean?

>    Applications/protocols that use this URI scheme name.
>       Web Socket protocol.
> 
>    Interoperability considerations.
>       None.
> 
>    Security considerations.
>       See "Security considerations" section above.
> 
>    Contact.
>       Ian Hickson <ian@hixie.ch>
> 
>    Author/Change controller.
>       Ian Hickson <ian@hixie.ch>
> ...

I believe that for a permanent registry on the standards track, change 
control will have to move to IETF or IESG.

BR, Julian

From julian.reschke@gmx.de  Fri Aug  7 00:10:53 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 DC0193A6DAD for <hybi@core3.amsl.com>; Fri,  7 Aug 2009 00:10:53 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.888
X-Spam-Level: 
X-Spam-Status: No, score=-4.888 tagged_above=-999 required=5 tests=[AWL=-2.289, 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 Ek1i5o0Ek1c9 for <hybi@core3.amsl.com>; Fri,  7 Aug 2009 00:10:53 -0700 (PDT)
Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by core3.amsl.com (Postfix) with SMTP id 41FA23A6A33 for <hybi@ietf.org>; Fri,  7 Aug 2009 00:10:53 -0700 (PDT)
Received: (qmail invoked by alias); 07 Aug 2009 07:04:16 -0000
Received: from p508FF540.dip.t-dialin.net (EHLO [192.168.178.33]) [80.143.245.64] by mail.gmx.net (mp007) with SMTP; 07 Aug 2009 09:04:16 +0200
X-Authenticated: #1915285
X-Provags-ID: V01U2FsdGVkX1/rPPsEj9brwJcm/9wSilJ5+/kblknwzD5e+btdPd DkYiwrslr0hEo3
Message-ID: <4A7BD1EA.1060000@gmx.de>
Date: Fri, 07 Aug 2009 09:04:10 +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: <Pine.LNX.4.62.0908070531430.28566@hixie.dreamhostps.com> <4A7BC33E.5070805@gmx.de>
In-Reply-To: <4A7BC33E.5070805@gmx.de>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Y-GMX-Trusted: 0
X-FuHaFi: 0.64
Cc: uri-review@ietf.org, hybi@ietf.org, uri@w3.org
Subject: Re: [hybi] [Uri-review] 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: Fri, 07 Aug 2009 07:10:53 -0000

Julian Reschke wrote:
> ...
>>    URI scheme syntax.
>>       "ws" ":" hier-part [ "?" query ]
> 
> I assume you are using ABNF syntax (RFC5234) and terminology from the 
> URI spec, but you really need to state that.
> ...

Furthermore I see no mention at all of these URI schemes in the 
remainder of the spec. So is the IANA registration template supposed to 
*be* the definition?

In particular:

1) What does a "ws" URI identify?

2) What is the semantics of "hier-part" and "query"?

BR, Julian

From gregw@webtide.com  Fri Aug  7 01:23: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 EA80F3A6DAD; Fri,  7 Aug 2009 01:23:06 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.044
X-Spam-Level: 
X-Spam-Status: No, score=-2.044 tagged_above=-999 required=5 tests=[AWL=0.555,  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 td5v3QAn9RqL; Fri,  7 Aug 2009 01:23:06 -0700 (PDT)
Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.225]) by core3.amsl.com (Postfix) with ESMTP id 09BC83A6CE9; Fri,  7 Aug 2009 01:23:05 -0700 (PDT)
Received: by rv-out-0506.google.com with SMTP id f9so343196rvb.49 for <multiple recipients>; Fri, 07 Aug 2009 01:23:07 -0700 (PDT)
Received: by 10.140.193.9 with SMTP id q9mr347515rvf.127.1249633387552; Fri, 07 Aug 2009 01:23:07 -0700 (PDT)
Received: from ?10.10.1.11? (60-242-119-126.tpgi.com.au [60.242.119.126]) by mx.google.com with ESMTPS id c20sm4834566rvf.1.2009.08.07.01.23.04 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 07 Aug 2009 01:23:07 -0700 (PDT)
Message-ID: <4A7BE463.5000507@webtide.com>
Date: Fri, 07 Aug 2009 18:22:59 +1000
From: Greg Wilkins <gregw@webtide.com>
User-Agent: Thunderbird 2.0.0.22 (X11/20090608)
MIME-Version: 1.0
To: Julian Reschke <julian.reschke@gmx.de>
References: <Pine.LNX.4.62.0908070531430.28566@hixie.dreamhostps.com>	<4A7BC33E.5070805@gmx.de> <4A7BD1EA.1060000@gmx.de>
In-Reply-To: <4A7BD1EA.1060000@gmx.de>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: uri-review@ietf.org, hybi@ietf.org, uri@w3.org
Subject: Re: [hybi] [Uri-review] 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: Fri, 07 Aug 2009 08:23:07 -0000

Julian Reschke wrote:

> 1) What does a "ws" URI identify?

Note also that ws is commonly used to denote Web Service.
For example:

  http://www.w3.org/TR/ws-arch/
  http://www.w3.org/TR/ws-i18n/
  http://ws.apache.org/
  http://www.ws-i.org/
  https://jax-ws.dev.java.net/


While you will never avoid all name clashes, it would be desirable
to avoid a clash within the same field of endeavour.

Perhaps  wskt  would be a better scheme name for WebSocKeT, unless
here are any objections from Wichita Southeast Kansas Transit Inc
http://acronyms.thefreedictionary.com/Wichita+Southeast+Kansas+Transit+Inc.
(note wsock is already used for winSock drivers).

regards





From ian@hixie.ch  Fri Aug  7 12:40: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 0D14B3A695F; Fri,  7 Aug 2009 12:40:22 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.554
X-Spam-Level: 
X-Spam-Status: No, score=-3.554 tagged_above=-999 required=5 tests=[AWL=-0.955, 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 MwsPEji6xy10; Fri,  7 Aug 2009 12:40: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 0D23B3A6F59; Fri,  7 Aug 2009 12:40:21 -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 2C27227B2B; Fri,  7 Aug 2009 12:40:24 -0700 (PDT)
Date: Fri, 7 Aug 2009 19:40:24 +0000 (UTC)
From: Ian Hickson <ian@hixie.ch>
To: David Booth <david@dbooth.org>
In-Reply-To: <1249651007.25446.8934.camel@dbooth-laptop>
Message-ID: <Pine.LNX.4.62.0908071940050.28566@hixie.dreamhostps.com>
References: <Pine.LNX.4.62.0908070531430.28566@hixie.dreamhostps.com> <1249651007.25446.8934.camel@dbooth-laptop>
Content-Language: en-GB-hixie
Content-Style-Type: text/css
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Cc: uri-review@ietf.org, hybi@ietf.org, uri@w3.org
Subject: Re: [hybi] [Uri-review] 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: Fri, 07 Aug 2009 19:40:22 -0000

On Fri, 7 Aug 2009, David Booth wrote:
>
> This looks to me like a perfect example of a case where a new scheme is
> not needed, as the same thing can be accomplished by defining an http
> URI prefix, as described in "Converting New URI Schemes or URN
> Sub-Schemes to HTTP":
> http://dbooth.org/2006/urn2http/
> Note that I am talking about the *scheme*, not the protocol.  In
> essence, a URI prefix such as "http://wss.example/" can be defined that
> would serve the same purpose as a "wss:" scheme: an agent that
> recognizes this prefix will know to attempt the WSS protocol.  But an
> agent that doesn't *might* still be able to fall back to doing something
> useful with the URI if it were an http URI, whereas it couldn't if it
> were a "wss:" URI.

This is only expected to be used from a WebSocket API call. What fallback 
behaviour did you have in mind?

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

From mjs@apple.com  Fri Aug  7 15:28:32 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 34D4F3A6FAD; Fri,  7 Aug 2009 15:28:32 -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 8lHFwc0XmUmh; Fri,  7 Aug 2009 15:28:31 -0700 (PDT)
Received: from mail-out3.apple.com (mail-out3.apple.com [17.254.13.22]) by core3.amsl.com (Postfix) with ESMTP id 267D73A6FA6; Fri,  7 Aug 2009 15:28:31 -0700 (PDT)
Received: from relay13.apple.com (relay13.apple.com [17.128.113.29]) by mail-out3.apple.com (Postfix) with ESMTP id E76CB6CF2C35; Fri,  7 Aug 2009 15:14:45 -0700 (PDT)
X-AuditID: 1180711d-b7c7aae0000053b3-fd-4a7ca7557974
Received: from elliott.apple.com (elliott.apple.com [17.151.62.13]) by relay13.apple.com (Apple SCV relay) with SMTP id FF.84.21427.557AC7A4; Fri,  7 Aug 2009 15:14:45 -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 elliott.apple.com (Sun Java(tm) System Messaging Server 6.3-7.04 (built Sep 26 2008; 32bit)) with ESMTPSA id <0KO100KU01SLOG40@elliott.apple.com>; Fri, 07 Aug 2009 15:14:45 -0700 (PDT)
Message-id: <9378A8F5-A8E2-4002-9C06-CD9144D27B5D@apple.com>
From: Maciej Stachowiak <mjs@apple.com>
To: Greg Wilkins <gregw@webtide.com>
In-reply-to: <4A7BE463.5000507@webtide.com>
Date: Fri, 07 Aug 2009 15:14:44 -0700
References: <Pine.LNX.4.62.0908070531430.28566@hixie.dreamhostps.com> <4A7BC33E.5070805@gmx.de> <4A7BD1EA.1060000@gmx.de> <4A7BE463.5000507@webtide.com>
X-Mailer: Apple Mail (2.935.3)
X-Brightmail-Tracker: AAAAAQAAAZE=
Cc: uri-review@ietf.org, hybi@ietf.org, uri@w3.org
Subject: Re: [hybi] [Uri-review] 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: Fri, 07 Aug 2009 22:28:32 -0000

On Aug 7, 2009, at 1:22 AM, Greg Wilkins wrote:

> Julian Reschke wrote:
>
>> 1) What does a "ws" URI identify?
>
> Note also that ws is commonly used to denote Web Service.

I think it's unlikely the "ws" family of formats and protocols will  
want to register their own URI scheme. That being said, how about  
"wsp" for WebSocket Protocol?

  - Maciej


From jchris@gmail.com  Fri Aug  7 15:52:55 2009
Return-Path: <jchris@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 2EA3A3A68F3; Fri,  7 Aug 2009 15:52:55 -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 XjsOuDxsIaN6; Fri,  7 Aug 2009 15:52:51 -0700 (PDT)
Received: from mail-vw0-f196.google.com (mail-vw0-f196.google.com [209.85.212.196]) by core3.amsl.com (Postfix) with ESMTP id 030A03A68E5; Fri,  7 Aug 2009 15:52:50 -0700 (PDT)
Received: by vws34 with SMTP id 34so1833844vws.31 for <multiple recipients>; Fri, 07 Aug 2009 15:52:52 -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=Wucsxda26Bh03V1ol10BC6WiX9Zy4/7V0KhaJi2JFvI=; b=eUXVumzzzL7L3M73ldU2IWAoD0tQJYp6YoiigBxzPKeyZDs3IFixwd3FCwwkLXSWU/ 4OcxBdipYpcVUiS4ghqis5jLIg7xKYz8V0HZGuDVJjL1O5wo3ShCORm4EjZ+ifYPj8vY uRIQhOPzX2aKvKIlLCCm/tVZ43UlBcQu5tu4I=
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=jiQbZKje0RmmbS+21c4BjRS0e2gfniEcRDmy3oZVBB7ZSFVpcd3FgyzJnqMv02U3iP CBednoBIY8fnju91O45nUw9ZrUvmhlz2u3AcKHWPeAqsO9AhdyXBCKZtFmaEZ874iF7z OJYEqRB6torq1/oLCnBzpXvLwyE3ardQBZDBs=
MIME-Version: 1.0
Sender: jchris@gmail.com
Received: by 10.220.70.209 with SMTP id e17mr1685540vcj.69.1249685572228; Fri,  07 Aug 2009 15:52:52 -0700 (PDT)
In-Reply-To: <9378A8F5-A8E2-4002-9C06-CD9144D27B5D@apple.com>
References: <Pine.LNX.4.62.0908070531430.28566@hixie.dreamhostps.com> <4A7BC33E.5070805@gmx.de> <4A7BD1EA.1060000@gmx.de> <4A7BE463.5000507@webtide.com> <9378A8F5-A8E2-4002-9C06-CD9144D27B5D@apple.com>
Date: Fri, 7 Aug 2009 15:52:52 -0700
X-Google-Sender-Auth: 3e971c1a70cb784c
Message-ID: <e282921e0908071552g1128d177xea3937292b26952d@mail.gmail.com>
From: Chris Anderson <jchris@apache.org>
To: Maciej Stachowiak <mjs@apple.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: uri-review@ietf.org, hybi@ietf.org, uri@w3.org
Subject: Re: [hybi] [Uri-review] 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: Fri, 07 Aug 2009 22:54:59 -0000

On Fri, Aug 7, 2009 at 3:14 PM, Maciej Stachowiak<mjs@apple.com> wrote:
>
> On Aug 7, 2009, at 1:22 AM, Greg Wilkins wrote:
>
>> Julian Reschke wrote:
>>
>>> 1) What does a "ws" URI identify?
>>
>> Note also that ws is commonly used to denote Web Service.
>
> I think it's unlikely the "ws" family of formats and protocols will want to
> register their own URI scheme. That being said, how about "wsp" for
> WebSocket Protocol?

As long as we are throwing out acronyms, my suggestion would be for
the simple "websocket" or maybe "websock" if bytes are considered
expensive. I'm a big fan of the mailto: link b/c it's easy to
understand what it means.

Cheers,
Chris


-- 
Chris Anderson
http://jchrisa.net
http://couch.io

From mnot@mnot.net  Sat Aug  8 11:51:02 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 5E8473A67F6; Sat,  8 Aug 2009 11:51:02 -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 OXfxkvskYOxZ; Sat,  8 Aug 2009 11:51:01 -0700 (PDT)
Received: from mxout-07.mxes.net (mxout-07.mxes.net [216.86.168.182]) by core3.amsl.com (Postfix) with ESMTP id 4EC553A6AB8; Sat,  8 Aug 2009 11:51:01 -0700 (PDT)
Received: from [192.168.5.196] (unknown [162.112.38.5]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id A079A22E247; Sat,  8 Aug 2009 14:50:57 -0400 (EDT)
Message-Id: <DD10513A-6456-4147-8C9C-2CFF6A3A993A@mnot.net>
From: Mark Nottingham <mnot@mnot.net>
To: Chris Anderson <jchris@apache.org>
In-Reply-To: <e282921e0908071552g1128d177xea3937292b26952d@mail.gmail.com>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes
Content-Transfer-Encoding: 7bit
Mime-Version: 1.0 (Apple Message framework v935.3)
Date: Sun, 9 Aug 2009 06:50:54 +1200
References: <Pine.LNX.4.62.0908070531430.28566@hixie.dreamhostps.com> <4A7BC33E.5070805@gmx.de> <4A7BD1EA.1060000@gmx.de> <4A7BE463.5000507@webtide.com> <9378A8F5-A8E2-4002-9C06-CD9144D27B5D@apple.com> <e282921e0908071552g1128d177xea3937292b26952d@mail.gmail.com>
X-Mailer: Apple Mail (2.935.3)
Cc: uri-review@ietf.org, hybi@ietf.org, uri@w3.org
Subject: Re: [hybi] [Uri-review] 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: Sat, 08 Aug 2009 18:51:02 -0000

My .02 -

websock seems like a good balance...


On 08/08/2009, at 10:52 AM, Chris Anderson wrote:

> On Fri, Aug 7, 2009 at 3:14 PM, Maciej Stachowiak<mjs@apple.com>  
> wrote:
>>
>> On Aug 7, 2009, at 1:22 AM, Greg Wilkins wrote:
>>
>>> Julian Reschke wrote:
>>>
>>>> 1) What does a "ws" URI identify?
>>>
>>> Note also that ws is commonly used to denote Web Service.
>>
>> I think it's unlikely the "ws" family of formats and protocols will  
>> want to
>> register their own URI scheme. That being said, how about "wsp" for
>> WebSocket Protocol?
>
> As long as we are throwing out acronyms, my suggestion would be for
> the simple "websocket" or maybe "websock" if bytes are considered
> expensive. I'm a big fan of the mailto: link b/c it's easy to
> understand what it means.
>
> Cheers,
> Chris
>
>
> -- 
> Chris Anderson
> http://jchrisa.net
> http://couch.io
>


--
Mark Nottingham     http://www.mnot.net/


From pieterh@gmail.com  Sat Aug  8 15:00:43 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 042033A67E6; Sat,  8 Aug 2009 15:00:43 -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 AOmgJ47L2ITG; Sat,  8 Aug 2009 15:00:42 -0700 (PDT)
Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.155]) by core3.amsl.com (Postfix) with ESMTP id B850C3A659A; Sat,  8 Aug 2009 15:00:41 -0700 (PDT)
Received: by fg-out-1718.google.com with SMTP id 16so520298fgg.18 for <multiple recipients>; Sat, 08 Aug 2009 15:00:43 -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:content-transfer-encoding; bh=w+Us4eiBQ4dB1uI/Qx4avCXk7pXl2QZWXv3M4x2d84Y=; b=NiIMVkAg94AMqe+diss7WHD33g9PiK2KztCtHt3v3aanlZHzwqPnqaxas1T5GoUPL8 dXKc6ynN9dCi8j4gJ7kWx4INeTdkXQm2gWVsbZcbK0FKm822I3xnKMt/CRV3ailUGb2Y Z2EywWY0DH0DX20De+c1dGiLkvKdHsOIfccXw=
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 :content-transfer-encoding; b=Uj2NC4bf/pUDWcwWiMrz3qv5vYVVA2DvppMXVOpSnHkUibl8utV4nZ9mANfMF91o8b FNdBTHt//3fnrSEHbWe7a4eeXz+s+KX42cOG4ePWJcwmfPvpTAQLyQh1fN8IxowG7sYW 7WHGcbf5HY04WSUDoXw2gXN0hbshUHdQpR7BU=
MIME-Version: 1.0
Sender: pieterh@gmail.com
Received: by 10.86.92.4 with SMTP id p4mr1034803fgb.26.1249768843060; Sat, 08  Aug 2009 15:00:43 -0700 (PDT)
In-Reply-To: <DD10513A-6456-4147-8C9C-2CFF6A3A993A@mnot.net>
References: <Pine.LNX.4.62.0908070531430.28566@hixie.dreamhostps.com>  <4A7BC33E.5070805@gmx.de> <4A7BD1EA.1060000@gmx.de> <4A7BE463.5000507@webtide.com>  <9378A8F5-A8E2-4002-9C06-CD9144D27B5D@apple.com> <e282921e0908071552g1128d177xea3937292b26952d@mail.gmail.com>  <DD10513A-6456-4147-8C9C-2CFF6A3A993A@mnot.net>
From: Pieter Hintjens <ph@imatix.com>
Date: Sun, 9 Aug 2009 00:00:23 +0200
X-Google-Sender-Auth: 10a496f9f6ed4be6
Message-ID: <5821ea240908081500q11b00d0eh54c94fd9f5f4fa1b@mail.gmail.com>
To: Mark Nottingham <mnot@mnot.net>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: hybi@ietf.org, uri-review@ietf.org, uri@w3.org
Subject: Re: [hybi] [Uri-review] 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: Sat, 08 Aug 2009 22:00:43 -0000

On Sat, Aug 8, 2009 at 8:50 PM, Mark Nottingham<mnot@mnot.net> wrote:

> websock seems like a good balance...

Apologies for the cross-list posting.  I have to vote with Chris on this.

'ws' is confusing to many and cryptic to the rest.  'websock' has the
advantage of immediate clarity to all.  The 5-characters difference is
not worth the cost of defining a new abbreviation that adds no value.

Think of this as an opportunity for marketing.  "websock" reinforces
the brand, while "ws" weakens it.

-Pieter Hintjens

From jamie@shareable.org  Sat Aug  8 15:34:17 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 B66F63A6914; Sat,  8 Aug 2009 15:34:17 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.99
X-Spam-Level: 
X-Spam-Status: No, score=-4.99 tagged_above=-999 required=5 tests=[AWL=-2.391,  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 h7pP+fr18RK1; Sat,  8 Aug 2009 15:34:17 -0700 (PDT)
Received: from mail2.shareable.org (mail2.shareable.org [80.68.89.115]) by core3.amsl.com (Postfix) with ESMTP id CCDE53A67E6; Sat,  8 Aug 2009 15:34:16 -0700 (PDT)
Received: from jamie by mail2.shareable.org with local (Exim 4.63) (envelope-from <jamie@shareable.org>) id 1MZuUQ-0005Gn-VN; Sat, 08 Aug 2009 23:34:14 +0100
Date: Sat, 8 Aug 2009 23:34:14 +0100
From: Jamie Lokier <jamie@shareable.org>
To: Ian Hickson <ian@hixie.ch>
Message-ID: <20090808223414.GA20199@shareable.org>
References: <Pine.LNX.4.62.0908070531430.28566@hixie.dreamhostps.com> <1249651007.25446.8934.camel@dbooth-laptop> <Pine.LNX.4.62.0908071940050.28566@hixie.dreamhostps.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <Pine.LNX.4.62.0908071940050.28566@hixie.dreamhostps.com>
User-Agent: Mutt/1.5.13 (2006-08-11)
Cc: uri-review@ietf.org, hybi@ietf.org, uri@w3.org, David Booth <david@dbooth.org>
Subject: Re: [hybi] [Uri-review] 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: Sat, 08 Aug 2009 22:34:17 -0000

Ian Hickson wrote:
> On Fri, 7 Aug 2009, David Booth wrote:
> >
> > This looks to me like a perfect example of a case where a new scheme is
> > not needed, as the same thing can be accomplished by defining an http
> > URI prefix, as described in "Converting New URI Schemes or URN
> > Sub-Schemes to HTTP":
> > http://dbooth.org/2006/urn2http/
> > Note that I am talking about the *scheme*, not the protocol.  In
> > essence, a URI prefix such as "http://wss.example/" can be defined that
> > would serve the same purpose as a "wss:" scheme: an agent that
> > recognizes this prefix will know to attempt the WSS protocol.  But an
> > agent that doesn't *might* still be able to fall back to doing something
> > useful with the URI if it were an http URI, whereas it couldn't if it
> > were a "wss:" URI.
> 
> This is only expected to be used from a WebSocket API call. What fallback 
> behaviour did you have in mind?

Tunnelling WebSocket two-way communications over standard HTTP
messages, using any of the methods used for that, would be natural and
probably useful behaviour.

-- Jamie

From julian.reschke@gmx.de  Sun Aug  9 01:04:58 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 E99783A6B83 for <hybi@core3.amsl.com>; Sun,  9 Aug 2009 01:04:58 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.777
X-Spam-Level: 
X-Spam-Status: No, score=-4.777 tagged_above=-999 required=5 tests=[AWL=-2.178, 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 7ZMFk5FroGBl for <hybi@core3.amsl.com>; Sun,  9 Aug 2009 01:04:58 -0700 (PDT)
Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by core3.amsl.com (Postfix) with SMTP id 5078D3A6B7F for <hybi@ietf.org>; Sun,  9 Aug 2009 01:04:58 -0700 (PDT)
Received: (qmail invoked by alias); 09 Aug 2009 07:58:19 -0000
Received: from p508FD852.dip.t-dialin.net (EHLO [192.168.178.33]) [80.143.216.82] by mail.gmx.net (mp053) with SMTP; 09 Aug 2009 09:58:19 +0200
X-Authenticated: #1915285
X-Provags-ID: V01U2FsdGVkX19SMsdDdp5SAnNa8gmhww2x/QAPGvcX+a/JvQJDpP GxkCV84IVpaZze
Message-ID: <4A7E8192.6040404@gmx.de>
Date: Sun, 09 Aug 2009 09:58:10 +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: <Pine.LNX.4.62.0908070531430.28566@hixie.dreamhostps.com> <1249651007.25446.8934.camel@dbooth-laptop> <Pine.LNX.4.62.0908071940050.28566@hixie.dreamhostps.com>
In-Reply-To: <Pine.LNX.4.62.0908071940050.28566@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.62
Cc: uri-review@ietf.org, hybi@ietf.org, uri@w3.org, David Booth <david@dbooth.org>
Subject: Re: [hybi] [Uri-review] 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: Sun, 09 Aug 2009 08:04:59 -0000

Ian Hickson wrote:
> On Fri, 7 Aug 2009, David Booth wrote:
>> This looks to me like a perfect example of a case where a new scheme is
>> not needed, as the same thing can be accomplished by defining an http
>> URI prefix, as described in "Converting New URI Schemes or URN
>> Sub-Schemes to HTTP":
>> http://dbooth.org/2006/urn2http/
>> Note that I am talking about the *scheme*, not the protocol.  In
>> essence, a URI prefix such as "http://wss.example/" can be defined that
>> would serve the same purpose as a "wss:" scheme: an agent that
>> recognizes this prefix will know to attempt the WSS protocol.  But an
>> agent that doesn't *might* still be able to fall back to doing something
>> useful with the URI if it were an http URI, whereas it couldn't if it
>> were a "wss:" URI.
> 
> This is only expected to be used from a WebSocket API call. What fallback 
> behaviour did you have in mind?

Are you saying the URI scheme is *only* needed within WebSocket's API? 
Why do you need a URI scheme in the first place, then?

BR, Julian


From david@dbooth.org  Sun Aug  9 18:59:11 2009
Return-Path: <david@dbooth.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 7CABC3A6D9F for <hybi@core3.amsl.com>; Sun,  9 Aug 2009 18:59:11 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.599
X-Spam-Level: 
X-Spam-Status: No, score=-3.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
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 PFQrzOyumoQg for <hybi@core3.amsl.com>; Sun,  9 Aug 2009 18:59:11 -0700 (PDT)
Received: from relay03.pair.com (relay03.pair.com [209.68.5.17]) by core3.amsl.com (Postfix) with SMTP id 6A55B3A6D86 for <hybi@ietf.org>; Sun,  9 Aug 2009 18:58:41 -0700 (PDT)
Received: (qmail 22030 invoked from network); 10 Aug 2009 01:52:03 -0000
Received: from 209.6.102.232 (HELO ?192.168.7.6?) (209.6.102.232) by relay03.pair.com with SMTP; 10 Aug 2009 01:52:03 -0000
X-pair-Authenticated: 209.197.102.232
From: David Booth <david@dbooth.org>
To: "Daniel R. Tobias" <dan@tobias.name>
In-Reply-To: <4A7CD53D.13936.1264B606@dan.tobias.name>
References: <Pine.LNX.4.62.0908070531430.28566@hixie.dreamhostps.com> , <1249651007.25446.8934.camel@dbooth-laptop> <4A7CD53D.13936.1264B606@dan.tobias.name>
Content-Type: text/plain
Date: Sun, 09 Aug 2009 21:52:02 -0400
Message-Id: <1249869122.20315.388.camel@dbooth-laptop>
Mime-Version: 1.0
X-Mailer: Evolution 2.26.1 
Content-Transfer-Encoding: 7bit
X-Mailman-Approved-At: Tue, 11 Aug 2009 16:15:07 -0700
Cc: uri-review@ietf.org, hybi@ietf.org, uri@w3.org
Subject: Re: [hybi] [Uri-review] 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: Mon, 10 Aug 2009 01:59:11 -0000

On Fri, 2009-08-07 at 21:30 -0400, Daniel R. Tobias wrote:
> On 7 Aug 2009 at 9:16, David Booth wrote:
> 
> > Note that I am talking about the *scheme*, not the protocol.  In
> > essence, a URI prefix such as "http://wss.example/" can be defined that
> > would serve the same purpose as a "wss:" scheme: an agent that
> > recognizes this prefix will know to attempt the WSS protocol.
> 
> It seems like a bad idea to me, to have to build special exceptions 
> to how a user agent processes URIs, where the protocol specified in 
> the URI isn't actually the one that is used, based on "magic strings" 
> within other parts than the scheme.

I can't see that as a significant issue, as there is only a trivial
difference between dispatching based on the string prefix
"http://wss.example/" and the string prefix "wss:".  Both are simple,
constant strings and both are equally "magic": they cause agent to
attempt the WSS protocol.



-- 
David Booth, Ph.D.
Cleveland Clinic (contractor)

Opinions expressed herein are those of the author and do not necessarily
reflect those of Cleveland Clinic.


From david@dbooth.org  Sun Aug  9 19:05:11 2009
Return-Path: <david@dbooth.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 0557E3A6CFE for <hybi@core3.amsl.com>; Sun,  9 Aug 2009 19:05:11 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.599
X-Spam-Level: 
X-Spam-Status: No, score=-3.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
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 NChTm8QDFOrw for <hybi@core3.amsl.com>; Sun,  9 Aug 2009 19:05:10 -0700 (PDT)
Received: from relay01.pair.com (relay01.pair.com [209.68.5.15]) by core3.amsl.com (Postfix) with SMTP id 01C753A6929 for <hybi@ietf.org>; Sun,  9 Aug 2009 19:05:09 -0700 (PDT)
Received: (qmail 8095 invoked from network); 10 Aug 2009 02:05:12 -0000
Received: from 209.6.102.232 (HELO ?192.168.7.6?) (209.6.102.232) by relay01.pair.com with SMTP; 10 Aug 2009 02:05:12 -0000
X-pair-Authenticated: 209.197.102.232
From: David Booth <david@dbooth.org>
To: Jamie Lokier <jamie@shareable.org>
In-Reply-To: <20090808223414.GA20199@shareable.org>
References: <Pine.LNX.4.62.0908070531430.28566@hixie.dreamhostps.com> <1249651007.25446.8934.camel@dbooth-laptop> <Pine.LNX.4.62.0908071940050.28566@hixie.dreamhostps.com> <20090808223414.GA20199@shareable.org>
Content-Type: text/plain
Date: Sun, 09 Aug 2009 22:05:12 -0400
Message-Id: <1249869912.20315.403.camel@dbooth-laptop>
Mime-Version: 1.0
X-Mailer: Evolution 2.26.1 
Content-Transfer-Encoding: 7bit
X-Mailman-Approved-At: Tue, 11 Aug 2009 16:15:07 -0700
Cc: uri-review@ietf.org, hybi@ietf.org, uri@w3.org
Subject: Re: [hybi] [Uri-review] 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: Mon, 10 Aug 2009 02:05:11 -0000

On Sat, 2009-08-08 at 23:34 +0100, Jamie Lokier wrote:
> Ian Hickson wrote:
> > On Fri, 7 Aug 2009, David Booth wrote:
> > >
> > > This looks to me like a perfect example of a case where a new scheme is
> > > not needed, as the same thing can be accomplished by defining an http
> > > URI prefix, as described in "Converting New URI Schemes or URN
> > > Sub-Schemes to HTTP":
> > > http://dbooth.org/2006/urn2http/
> > > Note that I am talking about the *scheme*, not the protocol.  In
> > > essence, a URI prefix such as "http://wss.example/" can be defined that
> > > would serve the same purpose as a "wss:" scheme: an agent that
> > > recognizes this prefix will know to attempt the WSS protocol.  But an
> > > agent that doesn't *might* still be able to fall back to doing something
> > > useful with the URI if it were an http URI, whereas it couldn't if it
> > > were a "wss:" URI.
> > 
> > This is only expected to be used from a WebSocket API call. What fallback 
> > behaviour did you have in mind?
> 
> Tunnelling WebSocket two-way communications over standard HTTP
> messages, using any of the methods used for that, would be natural and
> probably useful behaviour.

Sounds like a good idea to me, and an excellent reason to use an http
prefix instead of a new scheme.



-- 
David Booth, Ph.D.
Cleveland Clinic (contractor)

Opinions expressed herein are those of the author and do not necessarily
reflect those of Cleveland Clinic.


From giecrilj@stegny.2a.pl  Tue Aug 11 09:36:05 2009
Return-Path: <giecrilj@stegny.2a.pl>
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 944C53A7043; Tue, 11 Aug 2009 09:36:05 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 2.9
X-Spam-Level: **
X-Spam-Status: No, score=2.9 tagged_above=-999 required=5 tests=[BAYES_40=-0.185, HELO_EQ_PL=1.135, HOST_EQ_PL=1.95]
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 YZBpeBqsd3st; Tue, 11 Aug 2009 09:36:04 -0700 (PDT)
Received: from shark.2a.pl (shark.2a.pl [195.117.102.3]) by core3.amsl.com (Postfix) with ESMTP id 799983A6BF0; Tue, 11 Aug 2009 09:36:04 -0700 (PDT)
Received: from av.2a.pl (av.2a.pl [195.117.102.9]) by shark.2a.pl (Postfix) with ESMTP id 808C92A6A86; Tue, 11 Aug 2009 18:35:00 +0200 (CEST)
X-Virus-Scanned: amavisd-new at 2a.pl
Received: from shark.2a.pl ([195.117.102.3]) by av.2a.pl (av.2a.pl [195.117.102.9]) (amavisd-new, port 10024) with ESMTP id eVVznWpueRYO; Tue, 11 Aug 2009 18:34:53 +0200 (CEST)
Received: from POCZTOWIEC (unknown [10.8.1.26]) by shark.2a.pl (Postfix) with ESMTPA id AB2562A6A5D; Tue, 11 Aug 2009 18:34:53 +0200 (CEST)
From: =?us-ascii?Q?Kristof_Zelechovski?= <giecrilj@stegny.2a.pl>
To: "'David Booth'" <david@dbooth.org>, "'Ian Hickson'" <ian@hixie.ch>
References: <Pine.LNX.4.62.0908070531430.28566@hixie.dreamhostps.com> <1249651007.25446.8934.camel@dbooth-laptop>
Date: Tue, 11 Aug 2009 18:35:46 +0200
Message-ID: <0B450D619CC0486E8BD51C31FBA214AD@POCZTOWIEC>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook 11
Thread-Index: AcoXYks87RRlmbyMQSKLSGIMqf4SLwDPeJmg
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
In-Reply-To: <1249651007.25446.8934.camel@dbooth-laptop>
X-Mailman-Approved-At: Tue, 11 Aug 2009 16:15:07 -0700
Cc: uri-review@ietf.org, hybi@ietf.org, uri@w3.org
Subject: Re: [hybi] [Uri-review] 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, 11 Aug 2009 16:36:05 -0000

 1.  The document "Converting New URI Schemes or URN Sub-Schemes to HTTP"
[1] specifically addresses the use case where the custom URL is presented to
a casual user.  Since there are no legitimate casual users of the Web
Sockets protocol that is designed to be used by Web applications only, there
are no benefits to introducing the additional complexity of using an http
alias.

 2.  Additionally, the proposed solution of using the URI prefix
"http://wss.example/" is suited for custom protocols, according to the
description at [1].  A protocol promulgated by the WWW Corporation can
hardly be viewed as custom.

IMHO,
Chris

[1] <URL:http://dbooth.org/2006/urn2http/>

-----Original Message-----
From: uri-review-bounces@ietf.org [mailto:uri-review-bounces@ietf.org] On
Behalf Of David Booth
Sent: Friday, August 07, 2009 3:17 PM
To: Ian Hickson
Cc: uri-review@ietf.org; hybi@ietf.org; uri@w3.org
Subject: Re: [Uri-review] ws: and wss: schemes

On Fri, 2009-08-07 at 05:35 +0000, Ian Hickson wrote:
> The formal registrations for the ws: and wss: schemes, part of the Web 
> Socket protocol, will be available in the Web Socket protocol ID as soon 
> as the IETF upload process completes:
> 
>    http://tools.ietf.org/html/draft-hixie-thewebsocketprotocol#section-7
> 

This looks to me like a perfect example of a case where a new scheme is
not needed, as the same thing can be accomplished by defining an http
URI prefix, as described in "Converting New URI Schemes or URN
Sub-Schemes to HTTP":
http://dbooth.org/2006/urn2http/
Note that I am talking about the *scheme*, not the protocol.  In
essence, a URI prefix such as "http://wss.example/" can be defined that
would serve the same purpose as a "wss:" scheme: an agent that
recognizes this prefix will know to attempt the WSS protocol.  But an
agent that doesn't *might* still be able to fall back to doing something
useful with the URI if it were an http URI, whereas it couldn't if it
were a "wss:" URI.

-- 
David Booth, Ph.D.



From giecrilj@stegny.2a.pl  Tue Aug 11 13:35:40 2009
Return-Path: <giecrilj@stegny.2a.pl>
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 0F0B43A6906; Tue, 11 Aug 2009 13:35:40 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 2.993
X-Spam-Level: **
X-Spam-Status: No, score=2.993 tagged_above=-999 required=5 tests=[AWL=-0.093,  BAYES_50=0.001, HELO_EQ_PL=1.135, HOST_EQ_PL=1.95]
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 8LjNO1xyooJl; Tue, 11 Aug 2009 13:35:39 -0700 (PDT)
Received: from shark.2a.pl (shark.2a.pl [195.117.102.3]) by core3.amsl.com (Postfix) with ESMTP id 4E83F3A6B72; Tue, 11 Aug 2009 13:35:35 -0700 (PDT)
Received: from av.2a.pl (av.2a.pl [195.117.102.9]) by shark.2a.pl (Postfix) with ESMTP id 50C792A6A85; Tue, 11 Aug 2009 22:34:44 +0200 (CEST)
X-Virus-Scanned: amavisd-new at 2a.pl
Received: from shark.2a.pl ([195.117.102.3]) by av.2a.pl (av.2a.pl [195.117.102.9]) (amavisd-new, port 10024) with ESMTP id izpOOyMwOW2Y; Tue, 11 Aug 2009 22:34:38 +0200 (CEST)
Received: from POCZTOWIEC (unknown [10.8.1.26]) by shark.2a.pl (Postfix) with ESMTPA id 0B75E2A69F3; Tue, 11 Aug 2009 22:34:38 +0200 (CEST)
From: =?us-ascii?Q?Kristof_Zelechovski?= <giecrilj@stegny.2a.pl>
To: "'David Booth'" <david@dbooth.org>, "'Daniel R. Tobias'" <dan@tobias.name>
References: <Pine.LNX.4.62.0908070531430.28566@hixie.dreamhostps.com>, <1249651007.25446.8934.camel@dbooth-laptop><4A7CD53D.13936.1264B606@dan.tobias.name> <1249869122.20315.388.camel@dbooth-laptop>
Date: Tue, 11 Aug 2009 22:34:32 +0200
Message-ID: <E8792E2A812C4D0E95BF079B44549CBC@POCZTOWIEC>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook 11
Thread-Index: AcoZXTSuPHQxtnmpQaauaVf5HjpQlwBZPjfQ
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
In-Reply-To: <1249869122.20315.388.camel@dbooth-laptop>
X-Mailman-Approved-At: Tue, 11 Aug 2009 16:15:07 -0700
Cc: uri-review@ietf.org, hybi@ietf.org, uri@w3.org
Subject: Re: [hybi] [Uri-review] 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, 11 Aug 2009 20:35:40 -0000

Whether the readability disadvantage of having a longer aliased prefix is
serious depends on how often such code has to be written or used.  If Web
application developers feel the need to say { ws+"host/path" } instead of {
"ws://host/path" }, the hypercorrectness has really gone over the edge.

IMHO,
Chris

-----Original Message-----
From: uri-review-bounces@ietf.org [mailto:uri-review-bounces@ietf.org] On
Behalf Of David Booth
Sent: Monday, August 10, 2009 3:52 AM
To: Daniel R. Tobias
Cc: uri-review@ietf.org; hybi@ietf.org; uri@w3.org
Subject: Re: [Uri-review] ws: and wss: schemes

I can't see that as a significant issue, as there is only a trivial
difference between dispatching based on the string prefix
"http://wss.example/" and the string prefix "wss:".  Both are simple,
constant strings and both are equally "magic": they cause agent to
attempt the WSS protocol.



-- 
David Booth, Ph.D.



From giecrilj@stegny.2a.pl  Tue Aug 11 14:16:25 2009
Return-Path: <giecrilj@stegny.2a.pl>
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 5B06C3A6D15; Tue, 11 Aug 2009 14:16:25 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 3.039
X-Spam-Level: ***
X-Spam-Status: No, score=3.039 tagged_above=-999 required=5 tests=[AWL=-0.046,  BAYES_50=0.001, HELO_EQ_PL=1.135, HOST_EQ_PL=1.95]
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 GDqwpi6DYrig; Tue, 11 Aug 2009 14:16:24 -0700 (PDT)
Received: from shark.2a.pl (shark.2a.pl [195.117.102.3]) by core3.amsl.com (Postfix) with ESMTP id 686253A68F2; Tue, 11 Aug 2009 14:16:24 -0700 (PDT)
Received: from av.2a.pl (av.2a.pl [195.117.102.9]) by shark.2a.pl (Postfix) with ESMTP id 00BF82A6A4E; Tue, 11 Aug 2009 23:14:06 +0200 (CEST)
X-Virus-Scanned: amavisd-new at 2a.pl
Received: from shark.2a.pl ([195.117.102.3]) by av.2a.pl (av.2a.pl [195.117.102.9]) (amavisd-new, port 10024) with ESMTP id pI4HEhW0bn3N; Tue, 11 Aug 2009 23:14:00 +0200 (CEST)
Received: from POCZTOWIEC (unknown [10.8.1.26]) by shark.2a.pl (Postfix) with ESMTPA id ADBA32A6A4D; Tue, 11 Aug 2009 23:13:59 +0200 (CEST)
From: =?us-ascii?Q?Kristof_Zelechovski?= <giecrilj@stegny.2a.pl>
To: "'David Booth'" <david@dbooth.org>, "'Ian Hickson'" <ian@hixie.ch>
References: <Pine.LNX.4.62.0908070531430.28566@hixie.dreamhostps.com><1249651007.25446.8934.camel@dbooth-laptop><Pine.LNX.4.62.0908071940050.28566@hixie.dreamhostps.com> <1249690925.3937.32.camel@dbooth-laptop>
Date: Tue, 11 Aug 2009 23:13:54 +0200
Message-ID: <B48C5B944F4042979C8EB337268860B9@POCZTOWIEC>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook 11
Thread-Index: AcoXvlPDY9TJpYrAS8CaD9sf3KkNjQDCdeNw
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
In-Reply-To: <1249690925.3937.32.camel@dbooth-laptop>
X-Mailman-Approved-At: Tue, 11 Aug 2009 16:15:07 -0700
Cc: uri-review@ietf.org, hybi@ietf.org, uri@w3.org
Subject: Re: [hybi] [Uri-review] 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, 11 Aug 2009 21:16:25 -0000

The Web Socket API is currently described by
<URL:http://www.whatwg.org/specs/web-workers/current-work/>.
HTH,
Chris

-----Original Message-----
From: uri-review-bounces@ietf.org [mailto:uri-review-bounces@ietf.org] On
Behalf Of David Booth
Sent: Saturday, August 08, 2009 2:22 AM
To: Ian Hickson
Cc: uri-review@ietf.org; hybi@ietf.org; uri@w3.org
Subject: Re: [Uri-review] ws: and wss: schemes

Where should I look for the info that gives the context for the
WebSocket API?  OTOH, protocols have a way of finding uses far beyond
those for which they were originally envisioned.  


-- 
David Booth, Ph.D.


From david@dbooth.org  Tue Aug 11 14:20:42 2009
Return-Path: <david@dbooth.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 429C528C136 for <hybi@core3.amsl.com>; Tue, 11 Aug 2009 14:20:42 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.98
X-Spam-Level: 
X-Spam-Status: No, score=-2.98 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1, RCVD_IN_SORBS_WEB=0.619]
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 ZPsnyYjRgd1Y for <hybi@core3.amsl.com>; Tue, 11 Aug 2009 14:20:37 -0700 (PDT)
Received: from relay00.pair.com (relay00.pair.com [209.68.5.9]) by core3.amsl.com (Postfix) with SMTP id A9DE53A68F2 for <hybi@ietf.org>; Tue, 11 Aug 2009 14:20:37 -0700 (PDT)
Received: (qmail 50981 invoked from network); 11 Aug 2009 21:19:04 -0000
Received: from 192.35.79.70 (HELO ?10.78.165.63?) (192.35.79.70) by relay00.pair.com with SMTP; 11 Aug 2009 21:19:04 -0000
X-pair-Authenticated: 192.35.79.70
From: David Booth <david@dbooth.org>
To: Kristof Zelechovski <giecrilj@stegny.2a.pl>
In-Reply-To: <0B450D619CC0486E8BD51C31FBA214AD@POCZTOWIEC>
References: <Pine.LNX.4.62.0908070531430.28566@hixie.dreamhostps.com> <1249651007.25446.8934.camel@dbooth-laptop> <0B450D619CC0486E8BD51C31FBA214AD@POCZTOWIEC>
Content-Type: text/plain
Date: Tue, 11 Aug 2009 17:19:03 -0400
Message-Id: <1250025544.3990.1565.camel@dbooth-laptop>
Mime-Version: 1.0
X-Mailer: Evolution 2.26.1 
Content-Transfer-Encoding: 7bit
X-Mailman-Approved-At: Tue, 11 Aug 2009 16:15:07 -0700
Cc: uri-review@ietf.org, hybi@ietf.org, uri@w3.org
Subject: Re: [hybi] [Uri-review] 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, 11 Aug 2009 21:20:42 -0000

On Tue, 2009-08-11 at 18:35 +0200, Kristof Zelechovski wrote:
> 1.  The document "Converting New URI Schemes or URN Sub-Schemes to HTTP"
> [1] specifically addresses the use case where the custom URL is presented to
> a casual user.  Since there are no legitimate casual users of the Web
> Sockets protocol that is designed to be used by Web applications only, there
> are no benefits to introducing the additional complexity of using an http
> alias.

I respectfully disagree.  I think it is a virtual certainty that if the
WSS protocol is useful, it will be used in ways far beyond its original
intent.  I don't think it would be wise to artificially constrain the
applicability of a new protocol by claiming that casual users are not
'legitimate'.

> 
>  2.  Additionally, the proposed solution of using the URI prefix
> "http://wss.example/" is suited for custom protocols, according to the
> description at [1].  A protocol promulgated by the WWW Corporation can
> hardly be viewed as custom.

I don't know exactly what you mean by "custom protocol", but WSS is
*exactly* the kind of protocol that [1] was talking about.  The
introduction uses "XyzConsortium" as an example, but you can think "WWW
Corporation" instead.

David

> 
> IMHO,
> Chris
> 
> [1] <URL:http://dbooth.org/2006/urn2http/>
> 
> -----Original Message-----
> From: uri-review-bounces@ietf.org [mailto:uri-review-bounces@ietf.org] On
> Behalf Of David Booth
> Sent: Friday, August 07, 2009 3:17 PM
> To: Ian Hickson
> Cc: uri-review@ietf.org; hybi@ietf.org; uri@w3.org
> Subject: Re: [Uri-review] ws: and wss: schemes
> 
> On Fri, 2009-08-07 at 05:35 +0000, Ian Hickson wrote:
> > The formal registrations for the ws: and wss: schemes, part of the Web 
> > Socket protocol, will be available in the Web Socket protocol ID as soon 
> > as the IETF upload process completes:
> > 
> >    http://tools.ietf.org/html/draft-hixie-thewebsocketprotocol#section-7
> > 
> 
> This looks to me like a perfect example of a case where a new scheme is
> not needed, as the same thing can be accomplished by defining an http
> URI prefix, as described in "Converting New URI Schemes or URN
> Sub-Schemes to HTTP":
> http://dbooth.org/2006/urn2http/
> Note that I am talking about the *scheme*, not the protocol.  In
> essence, a URI prefix such as "http://wss.example/" can be defined that
> would serve the same purpose as a "wss:" scheme: an agent that
> recognizes this prefix will know to attempt the WSS protocol.  But an
> agent that doesn't *might* still be able to fall back to doing something
> useful with the URI if it were an http URI, whereas it couldn't if it
> were a "wss:" URI.
> 
-- 
David Booth, Ph.D.
Cleveland Clinic (contractor)

Opinions expressed herein are those of the author and do not necessarily
reflect those of Cleveland Clinic.


From giecrilj@stegny.2a.pl  Tue Aug 11 14:59:54 2009
Return-Path: <giecrilj@stegny.2a.pl>
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 3B6563A6EA0; Tue, 11 Aug 2009 14:59:54 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 2.684
X-Spam-Level: **
X-Spam-Status: No, score=2.684 tagged_above=-999 required=5 tests=[AWL=0.339,  BAYES_20=-0.74, HELO_EQ_PL=1.135, HOST_EQ_PL=1.95]
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 9w6hqSRN7LOt; Tue, 11 Aug 2009 14:59:53 -0700 (PDT)
Received: from shark.2a.pl (shark.2a.pl [195.117.102.3]) by core3.amsl.com (Postfix) with ESMTP id B5B5F3A6EC9; Tue, 11 Aug 2009 14:59:25 -0700 (PDT)
Received: from av.2a.pl (av.2a.pl [195.117.102.9]) by shark.2a.pl (Postfix) with ESMTP id C0AB42A6A83; Tue, 11 Aug 2009 23:56:20 +0200 (CEST)
X-Virus-Scanned: amavisd-new at 2a.pl
Received: from shark.2a.pl ([195.117.102.3]) by av.2a.pl (av.2a.pl [195.117.102.9]) (amavisd-new, port 10024) with ESMTP id PlFT1aowL0+G; Tue, 11 Aug 2009 23:56:14 +0200 (CEST)
Received: from POCZTOWIEC (unknown [10.8.1.26]) by shark.2a.pl (Postfix) with ESMTPA id DA4E62A6AA0; Tue, 11 Aug 2009 23:56:13 +0200 (CEST)
From: =?us-ascii?Q?Kristof_Zelechovski?= <giecrilj@stegny.2a.pl>
To: "'David Booth'" <david@dbooth.org>
References: <Pine.LNX.4.62.0908070531430.28566@hixie.dreamhostps.com> <1249651007.25446.8934.camel@dbooth-laptop> <0B450D619CC0486E8BD51C31FBA214AD@POCZTOWIEC> <1250025544.3990.1565.camel@dbooth-laptop>
Date: Tue, 11 Aug 2009 23:56:08 +0200
Message-ID: <2B6D2E5A840A49A0A40C97D25BCCF721@POCZTOWIEC>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook 11
Thread-Index: AcoaylG0VmKLxYDVTn2NWdc9zaGjcAAA2Kww
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
In-Reply-To: <1250025544.3990.1565.camel@dbooth-laptop>
X-Mailman-Approved-At: Tue, 11 Aug 2009 16:15:07 -0700
Cc: uri-review@ietf.org, hybi@ietf.org, uri@w3.org
Subject: Re: [hybi] [Uri-review] 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, 11 Aug 2009 21:59:54 -0000

A "custom protocol" is, using David's terms, an owner-dependent protocol,
whereas a "standard protocol" is an owner-independent protocol.  "Owner" is
the owner of the aliasing domain.  A protocol is owner-dependent if the
server is guaranteed to belong to the owner (e.g. a bank or an ISP).
HTH,
Chris

-----Original Message-----
From: David Booth [mailto:david@dbooth.org] 
Sent: Tuesday, August 11, 2009 11:19 PM
To: Kristof Zelechovski
Cc: 'Ian Hickson'; uri-review@ietf.org; hybi@ietf.org; uri@w3.org
Subject: RE: [Uri-review] ws: and wss: schemes

On Tue, 2009-08-11 at 18:35 +0200, Kristof Zelechovski wrote:
> 
>  2.  Additionally, the proposed solution of using the URI prefix
> "http://wss.example/" is suited for custom protocols, according to the
> description at [1].  A protocol promulgated by the WWW Corporation can
> hardly be viewed as custom.

I don't know exactly what you mean by "custom protocol", but WSS is
*exactly* the kind of protocol that [1] was talking about.  The
introduction uses "XyzConsortium" as an example, but you can think "WWW
Corporation" instead.

David




From gregw@webtide.com  Tue Aug 11 16:54:56 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 1D21A3A6BAB for <hybi@core3.amsl.com>; Tue, 11 Aug 2009 16:54:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.1
X-Spam-Level: 
X-Spam-Status: No, score=-2.1 tagged_above=-999 required=5 tests=[AWL=0.499, 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 sqwHz51tS0-z for <hybi@core3.amsl.com>; Tue, 11 Aug 2009 16:54:55 -0700 (PDT)
Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.233]) by core3.amsl.com (Postfix) with ESMTP id 85F8A3A69FD for <hybi@ietf.org>; Tue, 11 Aug 2009 16:54:33 -0700 (PDT)
Received: by rv-out-0506.google.com with SMTP id f9so1157055rvb.49 for <hybi@ietf.org>; Tue, 11 Aug 2009 16:53:54 -0700 (PDT)
Received: by 10.140.164.1 with SMTP id m1mr308329rve.109.1250034833955; Tue, 11 Aug 2009 16:53:53 -0700 (PDT)
Received: from ?10.10.1.11? (60-242-119-126.tpgi.com.au [60.242.119.126]) by mx.google.com with ESMTPS id g31sm35109307rvb.36.2009.08.11.16.53.52 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 11 Aug 2009 16:53:53 -0700 (PDT)
Message-ID: <4A820483.2000801@webtide.com>
Date: Wed, 12 Aug 2009 09:53:39 +1000
From: Greg Wilkins <gregw@webtide.com>
User-Agent: Thunderbird 2.0.0.22 (X11/20090608)
MIME-Version: 1.0
To: hybi@ietf.org
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Subject: [hybi] BWTP thread on 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: Tue, 11 Aug 2009 23:54:56 -0000

FYI

I started a thread discussing BWTP and bidirectional concerns of websocket
on the whatwg mailing list:

See

  http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2009-August/021797.html


cheers

From gregw@webtide.com  Tue Aug 11 17:02:45 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 449BA3A6ABD; Tue, 11 Aug 2009 17:02:45 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.145
X-Spam-Level: 
X-Spam-Status: No, score=-2.145 tagged_above=-999 required=5 tests=[AWL=0.454,  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 Juo+OWSJCUzm; Tue, 11 Aug 2009 17:02:44 -0700 (PDT)
Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.234]) by core3.amsl.com (Postfix) with ESMTP id 7B1493A6A74; Tue, 11 Aug 2009 17:02:44 -0700 (PDT)
Received: by rv-out-0506.google.com with SMTP id f9so1157797rvb.49 for <multiple recipients>; Tue, 11 Aug 2009 17:00:06 -0700 (PDT)
Received: by 10.140.203.8 with SMTP id a8mr412338rvg.83.1250035206540; Tue, 11 Aug 2009 17:00:06 -0700 (PDT)
Received: from ?10.10.1.11? (60-242-119-126.tpgi.com.au [60.242.119.126]) by mx.google.com with ESMTPS id l31sm6143207rvb.34.2009.08.11.17.00.03 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 11 Aug 2009 17:00:05 -0700 (PDT)
Message-ID: <4A8205F3.8040509@webtide.com>
Date: Wed, 12 Aug 2009 09:59:47 +1000
From: Greg Wilkins <gregw@webtide.com>
User-Agent: Thunderbird 2.0.0.22 (X11/20090608)
MIME-Version: 1.0
To: David Booth <david@dbooth.org>
References: <Pine.LNX.4.62.0908070531430.28566@hixie.dreamhostps.com>	<1249651007.25446.8934.camel@dbooth-laptop>	<0B450D619CC0486E8BD51C31FBA214AD@POCZTOWIEC> <1250025544.3990.1565.camel@dbooth-laptop>
In-Reply-To: <1250025544.3990.1565.camel@dbooth-laptop>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: Kristof Zelechovski <giecrilj@stegny.2a.pl>, uri-review@ietf.org, hybi@ietf.org, uri@w3.org
Subject: Re: [hybi] [Uri-review] 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: Wed, 12 Aug 2009 00:02:45 -0000

David Booth wrote:
> I respectfully disagree.  I think it is a virtual certainty that if the
> WSS protocol is useful, it will be used in ways far beyond its original
> intent.  I don't think it would be wise to artificially constrain the
> applicability of a new protocol by claiming that casual users are not
> 'legitimate'.


And this is EXACTLY where I have a big problem with the process to date.

The ws protocol has been designed in respect to a single proposed
javascript API to run within a browser.

There are many many uses for bidirectional web which go beyond
that simple restricted example.

I really believe that we should pause and consider the big picture.

It should be the IETF's remit to design a bidirectional protocol
for the web that is usable by a wide range of possible uses.

The W3C's websocket API should be just one consumer of that
protocol.

I really think that the hybi effort needs to be elevated to a
working group to progress this.

cheers






From mjs@apple.com  Tue Aug 11 17:25:02 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 831303A68B6; Tue, 11 Aug 2009 17:25:02 -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 acHsweeDJIgh; Tue, 11 Aug 2009 17:25:01 -0700 (PDT)
Received: from mail-out4.apple.com (mail-out4.apple.com [17.254.13.23]) by core3.amsl.com (Postfix) with ESMTP id C0EBB3A68AF; Tue, 11 Aug 2009 17:25:01 -0700 (PDT)
Received: from relay15.apple.com (relay15.apple.com [17.128.113.54]) by mail-out4.apple.com (Postfix) with ESMTP id A677E714FC7A; Tue, 11 Aug 2009 17:23:45 -0700 (PDT)
X-AuditID: 11807136-b7b3cae0000059ab-36-4a820b91b2a1
Received: from et.apple.com (et.apple.com [17.151.62.12]) by relay15.apple.com (Apple SCV relay) with SMTP id 5D.0F.22955.19B028A4; Tue, 11 Aug 2009 17:23:45 -0700 (PDT)
MIME-version: 1.0
Content-transfer-encoding: 7BIT
Content-type: text/plain; charset=US-ASCII; format=flowed; delsp=yes
Received: from il0301a-dhcp33.apple.com (il0301a-dhcp33.apple.com [17.203.14.161]) by et.apple.com (Sun Java(tm) System Messaging Server 6.3-7.04 (built Sep 26 2008; 32bit)) with ESMTPSA id <0KO8001PEMEAKR60@et.apple.com>; Tue, 11 Aug 2009 17:23:45 -0700 (PDT)
Message-id: <4E34F2AF-C737-4A7D-AD9F-07AD177313BA@apple.com>
From: Maciej Stachowiak <mjs@apple.com>
To: David Booth <david@dbooth.org>
In-reply-to: <1249869122.20315.388.camel@dbooth-laptop>
Date: Tue, 11 Aug 2009 17:23:45 -0700
References: <Pine.LNX.4.62.0908070531430.28566@hixie.dreamhostps.com> <1249651007.25446.8934.camel@dbooth-laptop> <4A7CD53D.13936.1264B606@dan.tobias.name> <1249869122.20315.388.camel@dbooth-laptop>
X-Mailer: Apple Mail (2.936)
X-Brightmail-Tracker: AAAAAQAAAZE=
Cc: "Daniel R. Tobias" <dan@tobias.name>, uri-review@ietf.org, hybi@ietf.org, uri@w3.org
Subject: Re: [hybi] [Uri-review] 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: Wed, 12 Aug 2009 00:25:02 -0000

On Aug 9, 2009, at 6:52 PM, David Booth wrote:

> On Fri, 2009-08-07 at 21:30 -0400, Daniel R. Tobias wrote:
>> On 7 Aug 2009 at 9:16, David Booth wrote:
>>
>>> Note that I am talking about the *scheme*, not the protocol.  In
>>> essence, a URI prefix such as "http://wss.example/" can be defined  
>>> that
>>> would serve the same purpose as a "wss:" scheme: an agent that
>>> recognizes this prefix will know to attempt the WSS protocol.
>>
>> It seems like a bad idea to me, to have to build special exceptions
>> to how a user agent processes URIs, where the protocol specified in
>> the URI isn't actually the one that is used, based on "magic strings"
>> within other parts than the scheme.
>
> I can't see that as a significant issue, as there is only a trivial
> difference between dispatching based on the string prefix
> "http://wss.example/" and the string prefix "wss:".  Both are simple,
> constant strings and both are equally "magic": they cause agent to
> attempt the WSS protocol.

The difference is that "http://wss.example/" already has a meaning,  
which is not the intended one. Whereas "wss:" currently has no  
meaning. Thus the former has greater risk of either colliding with an  
existing resource, or being misinterpreted by a legacy client (instead  
of just rejected).

Regards,
Maciej


From jamie@shareable.org  Tue Aug 11 19:20:51 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 778833A6A3D; Tue, 11 Aug 2009 19:20:51 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.944
X-Spam-Level: 
X-Spam-Status: No, score=-4.944 tagged_above=-999 required=5 tests=[AWL=-2.345, 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 cwAPuGuIlwWU; Tue, 11 Aug 2009 19:20:50 -0700 (PDT)
Received: from mail2.shareable.org (mail2.shareable.org [80.68.89.115]) by core3.amsl.com (Postfix) with ESMTP id B68B53A69D0; Tue, 11 Aug 2009 19:20:50 -0700 (PDT)
Received: from jamie by mail2.shareable.org with local (Exim 4.63) (envelope-from <jamie@shareable.org>) id 1Mb3R0-00057S-2z; Wed, 12 Aug 2009 03:19:26 +0100
Date: Wed, 12 Aug 2009 03:19:26 +0100
From: Jamie Lokier <jamie@shareable.org>
To: Kristof Zelechovski <giecrilj@stegny.2a.pl>
Message-ID: <20090812021926.GC19298@shareable.org>
References: <Pine.LNX.4.62.0908070531430.28566@hixie.dreamhostps.com> <1249651007.25446.8934.camel@dbooth-laptop> <0B450D619CC0486E8BD51C31FBA214AD@POCZTOWIEC>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <0B450D619CC0486E8BD51C31FBA214AD@POCZTOWIEC>
User-Agent: Mutt/1.5.13 (2006-08-11)
Cc: uri-review@ietf.org, hybi@ietf.org, uri@w3.org, 'David Booth' <david@dbooth.org>
Subject: Re: [hybi] [Uri-review] 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: Wed, 12 Aug 2009 02:20:51 -0000

Kristof Zelechovski wrote:
>  1.  The document "Converting New URI Schemes or URN Sub-Schemes to HTTP"
> [1] specifically addresses the use case where the custom URL is presented to
> a casual user. 
>

> Since there are no legitimate casual users of the Web
> Sockets protocol that is designed to be used by Web applications only,

I disagree.  ws:// URLs *will* be entered on web forms at some point,
you can count on it.

Someone will write a web form that says something like "Tell me the
address of a FOOCHAT server to begin your FOOCHAT session", expecting
a ws:// URL to be entered if WebSockets is the protocol to be used.

That's a legitimate use.

-- Jamie

From mjs@apple.com  Tue Aug 11 20:10:47 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 6CE283A6875; Tue, 11 Aug 2009 20:10:47 -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 D7Hu12TIitXr; Tue, 11 Aug 2009 20:10:46 -0700 (PDT)
Received: from mail-out4.apple.com (mail-out4.apple.com [17.254.13.23]) by core3.amsl.com (Postfix) with ESMTP id 9500F3A685C; Tue, 11 Aug 2009 20:10:46 -0700 (PDT)
Received: from relay11.apple.com (relay11.apple.com [17.128.113.48]) by mail-out4.apple.com (Postfix) with ESMTP id 769EA715537C; Tue, 11 Aug 2009 20:09:19 -0700 (PDT)
X-AuditID: 11807130-b7bdfae000004bc9-db-4a82325f54f8
Received: from elliott.apple.com (elliott.apple.com [17.151.62.13]) by relay11.apple.com (Apple SCV relay) with SMTP id 59.7A.19401.F52328A4; Tue, 11 Aug 2009 20:09:19 -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 elliott.apple.com (Sun Java(tm) System Messaging Server 6.3-7.04 (built Sep 26 2008; 32bit)) with ESMTPSA id <0KO8003P1U2VZJ00@elliott.apple.com>; Tue, 11 Aug 2009 20:09:19 -0700 (PDT)
Message-id: <87FF3009-5686-43ED-9A64-16D41FE27990@apple.com>
From: Maciej Stachowiak <mjs@apple.com>
To: David Booth <david@dbooth.org>
In-reply-to: <1250045546.3990.1906.camel@dbooth-laptop>
Date: Tue, 11 Aug 2009 20:08:54 -0700
References: <Pine.LNX.4.62.0908070531430.28566@hixie.dreamhostps.com> <1249651007.25446.8934.camel@dbooth-laptop> <4A7CD53D.13936.1264B606@dan.tobias.name> <1249869122.20315.388.camel@dbooth-laptop> <4E34F2AF-C737-4A7D-AD9F-07AD177313BA@apple.com> <1250045546.3990.1906.camel@dbooth-laptop>
X-Mailer: Apple Mail (2.936)
X-Brightmail-Tracker: AAAAAQAAAZE=
Cc: "Daniel R. Tobias" <dan@tobias.name>, uri-review@ietf.org, hybi@ietf.org, uri@w3.org
Subject: Re: [hybi] [Uri-review] 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: Wed, 12 Aug 2009 03:10:47 -0000

On Aug 11, 2009, at 7:52 PM, David Booth wrote:

> On Tue, 2009-08-11 at 17:23 -0700, Maciej Stachowiak wrote:
>> On Aug 9, 2009, at 6:52 PM, David Booth wrote:
>>
>>>
>>> I can't see that as a significant issue, as there is only a trivial
>>> difference between dispatching based on the string prefix
>>> "http://wss.example/" and the string prefix "wss:".  Both are  
>>> simple,
>>> constant strings and both are equally "magic": they cause agent to
>>> attempt the WSS protocol.
>>
>> The difference is that "http://wss.example/" already has a meaning,
>> which is not the intended one. Whereas "wss:" currently has no
>> meaning. Thus the former has greater risk of either colliding with an
>> existing resource, or being misinterpreted by a legacy client  
>> (instead
>> of just rejected).
>
> That's not a risk, that's the *intent*.  The point is that a prefix  
> like
> "http://wss.example/" gives agents that do not know the WSS protocol  
> the
> possibility of doing something useful with the URI, by falling back to
> the HTTP protocol, whereas if a prefix like "wss:" were used those  
> same
> agents would have to reject it entirely.  The "http://wss.example/"  
> URI
> still retains its meaning as an http URI, but it gains *additional*
> meaning as a WSS URI for those agents that know how to handle the WSS
> protocol.

I do not believe it is an advantage for new clients to retroactively  
reinterpret existing http resources as wss resources. There exist  
hosts whose name starts with "wss", so this seems inevitable. This  
seems like a clear disadvantage.

I also do not believe it is an advantage for legacy clients to  
dereference wss: hosts via http; it hypothetically sounds neat but I  
cannot think of a use case where it would actually be beneficial. This  
is not necessarily a disadvantage, but it doesn't seem like much of an  
advantage either.

Finally, I do not think hosting a WebSocket service should require  
having a host set up with "wss" at the start of the name. Parties  
deploying WebSocket services may be in control of their own DNS  
namespace, so this is an onerous requirement. That seems like a clear  
disadvantage of your scheme.

In conclusion, I think your proposal is idiosyncratic, and not a good  
fit for the WebSocket protocol.

Regards,
Maciej


From mjs@apple.com  Tue Aug 11 20:39:54 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 D204A3A6927; Tue, 11 Aug 2009 20:39:54 -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 80hPZws2YGet; Tue, 11 Aug 2009 20:39:53 -0700 (PDT)
Received: from mail-out3.apple.com (mail-out3.apple.com [17.254.13.22]) by core3.amsl.com (Postfix) with ESMTP id 247A73A6925; Tue, 11 Aug 2009 20:39:16 -0700 (PDT)
Received: from relay16.apple.com (relay16.apple.com [17.128.113.55]) by mail-out3.apple.com (Postfix) with ESMTP id D2D8E6D8632E; Tue, 11 Aug 2009 20:38:41 -0700 (PDT)
X-AuditID: 11807137-b7befae000005eb4-de-4a823941fbfe
Received: from et.apple.com (et.apple.com [17.151.62.12]) by relay16.apple.com (Apple SCV relay) with SMTP id 7C.74.24244.149328A4; Tue, 11 Aug 2009 20:38:41 -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 et.apple.com (Sun Java(tm) System Messaging Server 6.3-7.04 (built Sep 26 2008; 32bit)) with ESMTPSA id <0KO8001S1VGBKR80@et.apple.com>; Tue, 11 Aug 2009 20:38:41 -0700 (PDT)
Message-id: <D48153CE-9167-4227-B630-1F9D1368A686@apple.com>
From: Maciej Stachowiak <mjs@apple.com>
To: David Booth <david@dbooth.org>
In-reply-to: <1250047659.3990.1971.camel@dbooth-laptop>
Date: Tue, 11 Aug 2009 20:38:34 -0700
References: <Pine.LNX.4.62.0908070531430.28566@hixie.dreamhostps.com> <1249651007.25446.8934.camel@dbooth-laptop> <4A7CD53D.13936.1264B606@dan.tobias.name> <1249869122.20315.388.camel@dbooth-laptop> <4E34F2AF-C737-4A7D-AD9F-07AD177313BA@apple.com> <1250045546.3990.1906.camel@dbooth-laptop> <87FF3009-5686-43ED-9A64-16D41FE27990@apple.com> <1250047659.3990.1971.camel@dbooth-laptop>
X-Mailer: Apple Mail (2.936)
X-Brightmail-Tracker: AAAAAQAAAZE=
Cc: "Daniel R. Tobias" <dan@tobias.name>, uri-review@ietf.org, hybi@ietf.org, uri@w3.org
Subject: Re: [hybi] [Uri-review] 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: Wed, 12 Aug 2009 03:39:54 -0000

On Aug 11, 2009, at 8:27 PM, David Booth wrote:

> On Tue, 2009-08-11 at 20:08 -0700, Maciej Stachowiak wrote:
>> On Aug 11, 2009, at 7:52 PM, David Booth wrote:
>>
>>> On Tue, 2009-08-11 at 17:23 -0700, Maciej Stachowiak wrote:
>>>> On Aug 9, 2009, at 6:52 PM, David Booth wrote:
>>>>
>>>>>
>>>>> I can't see that as a significant issue, as there is only a  
>>>>> trivial
>>>>> difference between dispatching based on the string prefix
>>>>> "http://wss.example/" and the string prefix "wss:".  Both are
>>>>> simple,
>>>>> constant strings and both are equally "magic": they cause agent to
>>>>> attempt the WSS protocol.
>>>>
>>>> The difference is that "http://wss.example/" already has a meaning,
>>>> which is not the intended one. Whereas "wss:" currently has no
>>>> meaning. Thus the former has greater risk of either colliding  
>>>> with an
>>>> existing resource, or being misinterpreted by a legacy client
>>>> (instead
>>>> of just rejected).
>>>
>>> That's not a risk, that's the *intent*.  The point is that a prefix
>>> like
>>> "http://wss.example/" gives agents that do not know the WSS protocol
>>> the
>>> possibility of doing something useful with the URI, by falling  
>>> back to
>>> the HTTP protocol, whereas if a prefix like "wss:" were used those
>>> same
>>> agents would have to reject it entirely.  The "http://wss.example/"
>>> URI
>>> still retains its meaning as an http URI, but it gains *additional*
>>> meaning as a WSS URI for those agents that know how to handle the  
>>> WSS
>>> protocol.
>>
>> I do not believe it is an advantage for new clients to retroactively
>> reinterpret existing http resources as wss resources. There exist
>> hosts whose name starts with "wss", so this seems inevitable. This
>> seems like a clear disadvantage.
>
> You've misunderstood.  This would not apply to arbitrary hosts whose
> name starts with "wss".  Please re-read
> http://dbooth.org/2006/urn2http/

What hosts would it apply to? One specific one? If it applies to  
exactly one host, then I object to making the scheme rely on a central  
server. We know from experience that this doesn't scale.

>
>>
>> I also do not believe it is an advantage for legacy clients to
>> dereference wss: hosts via http; it hypothetically sounds neat but I
>> cannot think of a use case where it would actually be beneficial.  
>> This
>> is not necessarily a disadvantage, but it doesn't seem like much of  
>> an
>> advantage either.
>
> Jamie Lokier just gave one:
> http://lists.w3.org/Archives/Public/uri/2009Aug/0011.html
>
>>
>> Finally, I do not think hosting a WebSocket service should require
>> having a host set up with "wss" at the start of the name.
>
> It wouldn't.  You've misunderstood.  Please re-read
> http://dbooth.org/2006/urn2http/

I would appreciate if you could explain succinctly. Given a URL of the  
form "http://wss.FOO" where FOO represents an arbitrary sequence of  
characters, how to determine whether it should be interpreted as a  
wss: URL instead.

Regards,
Maciej




From jamie@shareable.org  Tue Aug 11 21:50:55 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 3C15D3A6AD5; Tue, 11 Aug 2009 21:50:55 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.814
X-Spam-Level: 
X-Spam-Status: No, score=-4.814 tagged_above=-999 required=5 tests=[AWL=-2.215, 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 f9pV7FGHCfdP; Tue, 11 Aug 2009 21:50:54 -0700 (PDT)
Received: from mail2.shareable.org (mail2.shareable.org [80.68.89.115]) by core3.amsl.com (Postfix) with ESMTP id 39EED3A6A51; Tue, 11 Aug 2009 21:50:54 -0700 (PDT)
Received: from jamie by mail2.shareable.org with local (Exim 4.63) (envelope-from <jamie@shareable.org>) id 1Mb5m5-0005rN-Lm; Wed, 12 Aug 2009 05:49:21 +0100
Date: Wed, 12 Aug 2009 05:49:21 +0100
From: Jamie Lokier <jamie@shareable.org>
To: Maciej Stachowiak <mjs@apple.com>
Message-ID: <20090812044921.GA22368@shareable.org>
References: <Pine.LNX.4.62.0908070531430.28566@hixie.dreamhostps.com> <1249651007.25446.8934.camel@dbooth-laptop> <4A7CD53D.13936.1264B606@dan.tobias.name> <1249869122.20315.388.camel@dbooth-laptop> <4E34F2AF-C737-4A7D-AD9F-07AD177313BA@apple.com> <1250045546.3990.1906.camel@dbooth-laptop> <87FF3009-5686-43ED-9A64-16D41FE27990@apple.com> <1250047659.3990.1971.camel@dbooth-laptop> <D48153CE-9167-4227-B630-1F9D1368A686@apple.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <D48153CE-9167-4227-B630-1F9D1368A686@apple.com>
User-Agent: Mutt/1.5.13 (2006-08-11)
Cc: "Daniel R. Tobias" <dan@tobias.name>, uri-review@ietf.org, hybi@ietf.org, uri@w3.org, David Booth <david@dbooth.org>
Subject: Re: [hybi] [Uri-review] 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: Wed, 12 Aug 2009 04:50:55 -0000

Maciej Stachowiak wrote:
> >You've misunderstood.  This would not apply to arbitrary hosts whose
> >name starts with "wss".  Please re-read
> >http://dbooth.org/2006/urn2http/
> 
> What hosts would it apply to? One specific one? If it applies to  
> exactly one host, then I object to making the scheme rely on a central  
> server. We know from experience that this doesn't scale.

There should be no requests to that server.
It's similar to XML namespaces, which should never be dereferenced.

But maybe you have a point.  The mere occurrence of
"http://wss.example.com/some/path" embedded in script in a web page
will probably cause some (non-browser) agents to attempt to fetch the
resource at that URL.  Cheap spidering.

  -- Jamie

From dorchard100@gmail.com  Tue Aug 11 20:55:13 2009
Return-Path: <dorchard100@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 E4B7B3A6A56; Tue, 11 Aug 2009 20:55: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 AvWvdFWN+wy9; Tue, 11 Aug 2009 20:55:12 -0700 (PDT)
Received: from mail-gx0-f213.google.com (mail-gx0-f213.google.com [209.85.217.213]) by core3.amsl.com (Postfix) with ESMTP id 996C53A6927; Tue, 11 Aug 2009 20:55:12 -0700 (PDT)
Received: by gxk9 with SMTP id 9so5775138gxk.13 for <multiple recipients>; Tue, 11 Aug 2009 20:53:03 -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=g8mjqyEQ0T+gYgkP7HlD2uSj3VMuNOSznskF5knLRBI=; b=tZyZzEzDwx0y131mCwLkIZqc7zAnbL42QvZbjYCyaOdXFPjEnSorZLuhvUjiL5EzXB oN7ndKkonw7YHmoa7TsyNIU+ttILA1OViR1iNyrG1nd/p9F3QBkkWyDYlTtgvrLONkCe MkVmWhjWLWdpfkask46Dx4U3BiKyZZizD3mOI=
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=OT+Afw0z8YTfKkSGSWjhnXDeKar5WeCN+IXx/CRfcw+yrd0kRtYqhRVsJusshp3neK AO6g/txUzYvuo3TVEzsYhylpXgIaRnpziSEXOffFwJFC9jbO1eREY8atwU1ptpIDzZpQ Ad/2cKY4piI96bMV8NTJ1cPWNUtmMFcaAvjmg=
MIME-Version: 1.0
Sender: dorchard100@gmail.com
Received: by 10.150.123.3 with SMTP id v3mr5740767ybc.228.1250048795022; Tue,  11 Aug 2009 20:46:35 -0700 (PDT)
In-Reply-To: <D48153CE-9167-4227-B630-1F9D1368A686@apple.com>
References: <Pine.LNX.4.62.0908070531430.28566@hixie.dreamhostps.com> <1249651007.25446.8934.camel@dbooth-laptop> <4A7CD53D.13936.1264B606@dan.tobias.name> <1249869122.20315.388.camel@dbooth-laptop> <4E34F2AF-C737-4A7D-AD9F-07AD177313BA@apple.com> <1250045546.3990.1906.camel@dbooth-laptop> <87FF3009-5686-43ED-9A64-16D41FE27990@apple.com> <1250047659.3990.1971.camel@dbooth-laptop> <D48153CE-9167-4227-B630-1F9D1368A686@apple.com>
Date: Tue, 11 Aug 2009 20:46:34 -0700
X-Google-Sender-Auth: 78e3fb1bddfc5669
Message-ID: <2d509b1b0908112046m47475950j3a8852e052a95f2a@mail.gmail.com>
From: David Orchard <orchard@pacificspirit.com>
To: Maciej Stachowiak <mjs@apple.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Cc: "Daniel R. Tobias" <dan@tobias.name>, uri-review@ietf.org, hybi@ietf.org, uri@w3.org, David Booth <david@dbooth.org>
Subject: Re: [hybi] [Uri-review] 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: Wed, 12 Aug 2009 04:55:37 -0000

Please look at the recent XRI specs.  They were successfully convinced
to use http: URI scheme rather than inventing a new xri: scheme, and
their spec is much the better for it.

Dave

On Tue, Aug 11, 2009 at 8:38 PM, Maciej Stachowiak<mjs@apple.com> wrote:
>
> On Aug 11, 2009, at 8:27 PM, David Booth wrote:
>
>> On Tue, 2009-08-11 at 20:08 -0700, Maciej Stachowiak wrote:
>>>
>>> On Aug 11, 2009, at 7:52 PM, David Booth wrote:
>>>
>>>> On Tue, 2009-08-11 at 17:23 -0700, Maciej Stachowiak wrote:
>>>>>
>>>>> On Aug 9, 2009, at 6:52 PM, David Booth wrote:
>>>>>
>>>>>>
>>>>>> I can't see that as a significant issue, as there is only a trivial
>>>>>> difference between dispatching based on the string prefix
>>>>>> "http://wss.example/" and the string prefix "wss:". =A0Both are
>>>>>> simple,
>>>>>> constant strings and both are equally "magic": they cause agent to
>>>>>> attempt the WSS protocol.
>>>>>
>>>>> The difference is that "http://wss.example/" already has a meaning,
>>>>> which is not the intended one. Whereas "wss:" currently has no
>>>>> meaning. Thus the former has greater risk of either colliding with an
>>>>> existing resource, or being misinterpreted by a legacy client
>>>>> (instead
>>>>> of just rejected).
>>>>
>>>> That's not a risk, that's the *intent*. =A0The point is that a prefix
>>>> like
>>>> "http://wss.example/" gives agents that do not know the WSS protocol
>>>> the
>>>> possibility of doing something useful with the URI, by falling back to
>>>> the HTTP protocol, whereas if a prefix like "wss:" were used those
>>>> same
>>>> agents would have to reject it entirely. =A0The "http://wss.example/"
>>>> URI
>>>> still retains its meaning as an http URI, but it gains *additional*
>>>> meaning as a WSS URI for those agents that know how to handle the WSS
>>>> protocol.
>>>
>>> I do not believe it is an advantage for new clients to retroactively
>>> reinterpret existing http resources as wss resources. There exist
>>> hosts whose name starts with "wss", so this seems inevitable. This
>>> seems like a clear disadvantage.
>>
>> You've misunderstood. =A0This would not apply to arbitrary hosts whose
>> name starts with "wss". =A0Please re-read
>> http://dbooth.org/2006/urn2http/
>
> What hosts would it apply to? One specific one? If it applies to exactly =
one
> host, then I object to making the scheme rely on a central server. We kno=
w
> from experience that this doesn't scale.
>
>>
>>>
>>> I also do not believe it is an advantage for legacy clients to
>>> dereference wss: hosts via http; it hypothetically sounds neat but I
>>> cannot think of a use case where it would actually be beneficial. This
>>> is not necessarily a disadvantage, but it doesn't seem like much of an
>>> advantage either.
>>
>> Jamie Lokier just gave one:
>> http://lists.w3.org/Archives/Public/uri/2009Aug/0011.html
>>
>>>
>>> Finally, I do not think hosting a WebSocket service should require
>>> having a host set up with "wss" at the start of the name.
>>
>> It wouldn't. =A0You've misunderstood. =A0Please re-read
>> http://dbooth.org/2006/urn2http/
>
> I would appreciate if you could explain succinctly. Given a URL of the fo=
rm
> "http://wss.FOO" where FOO represents an arbitrary sequence of characters=
,
> how to determine whether it should be interpreted as a wss: URL instead.
>
> Regards,
> Maciej
>
>
>
> _______________________________________________
> hybi mailing list
> hybi@ietf.org
> https://www.ietf.org/mailman/listinfo/hybi
>

From mnot@mnot.net  Wed Aug 12 03:47:37 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 C73433A698B for <hybi@core3.amsl.com>; Wed, 12 Aug 2009 03:47:37 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.794
X-Spam-Level: 
X-Spam-Status: No, score=-5.794 tagged_above=-999 required=5 tests=[AWL=-2.795, BAYES_00=-2.599, J_CHICKENPOX_53=0.6, RCVD_IN_DNSWL_LOW=-1]
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 h2F9htM5XeZ0 for <hybi@core3.amsl.com>; Wed, 12 Aug 2009 03:47:36 -0700 (PDT)
Received: from fallback-in2.mxes.net (fallback-out2.mxes.net [216.86.168.191]) by core3.amsl.com (Postfix) with ESMTP id 20B8E3A6835 for <hybi@ietf.org>; Wed, 12 Aug 2009 03:47:36 -0700 (PDT)
Received: from mxout-07.mxes.net (mxout-07.mxes.net [216.86.168.182]) by fallback-in1.mxes.net (Postfix) with ESMTP id DAB632FDBD9 for <hybi@ietf.org>; Wed, 12 Aug 2009 06:46:09 -0400 (EDT)
Received: from [192.168.1.6] (unknown [118.208.160.18]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 2B97D22E255; Wed, 12 Aug 2009 06:44:41 -0400 (EDT)
Message-Id: <407B3038-AF8B-4141-BE70-A9ADD905CC46@mnot.net>
From: Mark Nottingham <mnot@mnot.net>
To: Ian Hickson <ian@hixie.ch>
In-Reply-To: <Pine.LNX.4.62.0907292309330.3189@hixie.dreamhostps.com>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes
Content-Transfer-Encoding: 7bit
Mime-Version: 1.0 (Apple Message framework v936)
Date: Wed, 12 Aug 2009 20:44:38 +1000
References: <507F3682-5AAF-4AC0-88F6-10A31B12380D@mnot.net> <Pine.LNX.4.62.0907292309330.3189@hixie.dreamhostps.com>
X-Mailer: Apple Mail (2.936)
Cc: hybi@ietf.org
Subject: Re: [hybi] Feedback on thewebsocketprotocol-22
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, 12 Aug 2009 10:47:37 -0000

On 30/07/2009, at 9:39 AM, Ian Hickson wrote:

> On Fri, 17 Jul 2009, Mark Nottingham wrote:
>>
>> * I've already given feedback on the squid-dev list ("Hello from
>> Mozilla" thread on
>> <http://www.squid-cache.org/mail-archive/squid-dev/200907/>)  
>> regarding
>> the handshake and impact on HTTP infrastructure. I think all that's
>> necessary here is some added text about the failure cases (which I  
>> think
>> you're already starting to address in -23)
>
> Is the text adequate now?

Yes.


> and some adjustment to the text in the introduction (e.g., a pointer  
> to
>> the new section outlining the trade-offs/risks).
>
> Since the two sections are on the same page, I haven't added the  
> pointer
> -- someone reading the spec will see both sections soon enough.

Ack.


> * 1.1 Security model: you frame the model in terms of browsers and Web
>> pages. I think Websockets is potentially applicable to any restricted
>> execution environment, not just Web pages.
>
> It would have to be an execution environment that uses an Origin-based
> security model. I'm not aware of any other such mechanisms. Could you
> elaborate on what you would like the spec to say here?

s/(not from a Web page)/(not from a Web page or other environment with  
an Origin-based security model)/


>> * 3.1 Handshake: host, port, origin and resource name all need
>> definitions/references. Without them, it's difficult to tell what the
>> allowable ranges are; e.g., can a host contain non-ASCII characters?
>
> There's no allowable ranges -- this is just defining the protocol  
> side of
> the API spec, which invokes this algorithm. These are just  
> "parameters" or
> "variables", they aren't expected to be arbitrarily invoked.

I don't know if I buy that. You already define /host/ and /origin/ as  
strings (because they're lowercased), and they're used as input into  
protocol paramaters which do have concrete and well-defined ranges.


> I suppose I could add a separate section on "how to use this  
> specification
> from another specification", where I define what the expected ways  
> that
> the algorithms in this spec are to be invoked are. Would that help?

Regardless of the issue above, I think that would be helpful.


> * 3.1 Handshake, step 2: Can you speak to why this is limited to a  
> host,
>> and not (host, port)?
>
> Aren't system resources usually limited on a per-host basis, not per- 
> port?
> I can make it port-limited if you think that's the better thing for  
> DOS
> protection. I'm not an expert on this topic, by any means.

When there are load balancers, firewalls and other types of  
intermediaries present, it's per-port. A "host" is often an artificial  
construct.


> * 3.1 Handshake, step 3: Another thing to consider here is how
>> WebSockets should be accommodated in proxy.pac; it's commonly used.
>> E.g., define a new proxy type WEBSOCKETS in proxy.pac, and define a
>> fallback to SOCKS then HTTPS then HTTP if it's not present.
>
> Good point. What's the spec for proxy.pac? I should probably just  
> update
> that directly.

Unfortunately, it's not standardised, or even well-defined.

The original spec is:
  http://web.archive.org/web/20060424005037/wp.netscape.com/eng/mozilla/2.0/relnotes/demo/proxy-live.html

Thinking about it, I *believe* it should be possible to handle  
websockets without changing the format, however; assuming that it has  
a new URL scheme, the url passed to FindProxyForURL should contain  
enough information, and the DIRECT, PROXY and SOCKS return values  
should do the trick (keeping in mind that PROXY indicates an HTTP  
proxy).

Of course, this will require changes both in the UA and in proxy.pac  
scripts, but not in the proxy.pac format itself.

On a related note, if I read text in the 3.1 step 3 correctly:
> If the user agent is configured to use a proxy when using the Web  
> Socket protocol to connec
this implies that UAs will eventually have a separate "websocket"  
configuration type for manual proxy config, no?


> * 3.1 Handshake, step 3: "If there was a password" --> "If proxy
>> authentication [RFC2616] is used"
>
> That's just non-normative example text, I try to keep the example text
> colloquial so as to make the examples clearer to new readers.

OK.


> * Overall, at the risk of beating a dead horse, the algorithmic nature
>> of this specification makes it difficult to answer questions about  
>> the
>> protocol without building a state machine. I'd suggest that adding a
>> section or two about the overall operation of the protocol and its
>> various structures would help address this concern.
>
> I've added an introduction to the algorithm. Does it address your
> suggestion adequately?

It's better.


> * Finally, AIUI the important features that WebSockets adds (Origin,
>> assuring that other protocols aren't simulated, etc.) all happen  
>> during
>> the handshake. As such, I wonder why this specification isn't just  
>> the
>> handshake, falling back to a normal (possibly tunneled) TCP/IP
>> connection once the handshake has completed; it would be a lot less  
>> new
>> things to understand and vet, and less constraining as well.
>
> The framining is present so that we can expose this as an event-based
> protocol instead of a streaming-based protocol in the API. It would  
> be a
> pain to require authors to have to implement buffering and piecing
> together of messages when we can just do it with trivial framing at  
> the
> API level.


It may be worth mentioning this in the introduction; it's likely to  
come up again.


One more thing; you currently specify that the host header is sent  
with just the /host/ value. HTTP requires that if the port is not the  
default for the given protocol, it needs to be part of the Host header  
as well.


Cheers,

--
Mark Nottingham     http://www.mnot.net/


From jamie@shareable.org  Wed Aug 12 06:55:46 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 D0ED03A6A26 for <hybi@core3.amsl.com>; Wed, 12 Aug 2009 06:55:46 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.698
X-Spam-Level: 
X-Spam-Status: No, score=-4.698 tagged_above=-999 required=5 tests=[AWL=-2.099, 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 aeGsQPbZVBQC for <hybi@core3.amsl.com>; Wed, 12 Aug 2009 06:55:46 -0700 (PDT)
Received: from mail2.shareable.org (mail2.shareable.org [80.68.89.115]) by core3.amsl.com (Postfix) with ESMTP id 120873A67E3 for <hybi@ietf.org>; Wed, 12 Aug 2009 06:55:45 -0700 (PDT)
Received: from jamie by mail2.shareable.org with local (Exim 4.63) (envelope-from <jamie@shareable.org>) id 1MbDNt-0000ji-Qs; Wed, 12 Aug 2009 13:56:53 +0100
Date: Wed, 12 Aug 2009 13:56:53 +0100
From: Jamie Lokier <jamie@shareable.org>
To: Ian Hickson <ian@hixie.ch>
Message-ID: <20090812125653.GA1235@shareable.org>
References: <507F3682-5AAF-4AC0-88F6-10A31B12380D@mnot.net> <Pine.LNX.4.62.0907292309330.3189@hixie.dreamhostps.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <Pine.LNX.4.62.0907292309330.3189@hixie.dreamhostps.com>
User-Agent: Mutt/1.5.13 (2006-08-11)
Cc: hybi@ietf.org
Subject: Re: [hybi] Feedback on thewebsocketprotocol-22
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, 12 Aug 2009 13:55:46 -0000

Ian Hickson wrote:
> > * 1.1 Security model: you frame the model in terms of browsers and Web 
> > pages. I think Websockets is potentially applicable to any restricted 
> > execution environment, not just Web pages.
> 
> It would have to be an execution environment that uses an Origin-based 
> security model. I'm not aware of any other such mechanisms. Could you 
> elaborate on what you would like the spec to say here?

On that note, is the Origin model used for WebSockets the same as that
in Cross-Origin Resource Sharing, http://www.w3.org/TR/cors/ ?

If they are basically the same, shouldn't WebSockets be using the same
pre-flight check mechanism, instead of the verbatim byte sequence
which looked (to me) rather fragile?

-- Jamie

From kris@sitepen.com  Thu Aug 13 14:13:34 2009
Return-Path: <kris@sitepen.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 571C43A62C1 for <hybi@core3.amsl.com>; Thu, 13 Aug 2009 14:13:34 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.599
X-Spam-Level: 
X-Spam-Status: No, score=-3.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
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 0Ic109TtXn8Z for <hybi@core3.amsl.com>; Thu, 13 Aug 2009 14:13:33 -0700 (PDT)
Received: from rs48.luxsci.com (rs48.luxsci.com [65.61.166.92]) by core3.amsl.com (Postfix) with ESMTP id 4DF123A6972 for <hybi@ietf.org>; Thu, 13 Aug 2009 14:13:33 -0700 (PDT)
Received: from [192.168.0.66] (71-213-93-74.slkc.qwest.net [71.213.93.74]) (authenticated bits=0) by rs48.luxsci.com (8.13.1/8.13.7) with ESMTP id n7DLC0Z0018902 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for <hybi@ietf.org>; Thu, 13 Aug 2009 16:12:01 -0500
Message-ID: <4A84819B.1040500@sitepen.com>
Date: Thu, 13 Aug 2009 15:11:55 -0600
From: Kris Zyp <kris@sitepen.com>
User-Agent: Thunderbird 2.0.0.22 (Windows/20090605)
MIME-Version: 1.0
To: hybi@ietf.org
X-Enigmail-Version: 0.96.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Subject: [hybi] Intermediaries
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, 13 Aug 2009 21:13:34 -0000

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
It has been mentioned before that we would ideally like the
bidirectional web protocol to be comprehensible at some level by
intermediaries. While I know it is not possible to envision every way
that an intermediary might be used, I think it is worth considered
possible benefits that can be derived from intermediaries and how to
facilitate that. Some of the main benefits that intermediaries can
provide is in scalability, multiple intermediaries can handle
requests, diverting the load from the final server. Providing faster
response times for users in various locations with local edge-placed
servers is also an important benefit of intermediaries. The designers
of HTTP understood this, and I think we would do well uphold a design
that can scale well across across multiple machines and locations.

I would suggest two possible ideas within the bidirectional web
protocol that could help facilitate efficient use of intermediaries:

* Subscription mechanisms defined in the protocol - The client/server
reverse of proxied caching is essentially multicasting. If an
intermediary can understand the protocol for how subscriptions are
made (by client request, generally), and they can understand which
messages should be delivered to different subscribers, then they can
effectively act as a multicaster of server originated messages to
clients. A proxy can receive handle multiple clients subscribing to
the same topic, create a single subscription to the central server,
and then when messages are received from the server for the given
topic, they can disseminate the topic to all the subscribed clients.
The central server only needs to be concerned with the single client
(the proxy server), and the work is offloaded.

* HTTP cache updating - I think there is an opportunity for the
bidirectional web protocol to more than merely coexist with HTTP, but
it could also complement it, if it could participate in the caching
infrastructure of HTTP. If a class of messages sent from a server
could signal that a resource was create, updated, or deleted, and
include an updated representation of that resource, the location and
appropriate metadata (media type and any other meta data that the
cache must "Vary" on) the message could be used to update HTTP caches
with the latest version for the given resource representation.

A very common use case for server originated messaging is to notify
clients of changes to server-side resources. If such messages were
defined by the bidirectional protocol, there would standard mechanism
for notifying clients in a way that intermediaries could benefit from.
This would also allow HTTP proxies to be more effective; cached
entities could be kept in caches for much longer periods of time
(indefinitely) if a proxy was maintaining a subscription such that it
would be notified if the resource ever changed.

It would be possible for users to each create their own custom
definition of resource update notification, but if it was not
standardized such that intermediaries would understand, the only way
for clients to cause the intermediaries to be updated would be to
reissue a GET request for the resource, which would result in
server-to-client, client-to-server, and server-to-client trips, rather
than a single server-to-client trip. I don't think tripling the
latency overhead is really practical for most users that are needing
bidirectional communication, which should seems unfortunate, as I
believe notification of server side resource updates is one of the
most common usages of bidirectional communication (even if it is not
always stated in RESTful terms).

- --
Kris Zyp
SitePen
(503) 806-1841
http://sitepen.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
 
iEYEARECAAYFAkqEgZsACgkQ9VpNnHc4zAwRTACcDJjq3Blek1UhyVbIEppe38FV
qNIAn1ollcKnsHL4NaQvNUoPme5x6POi
=BmkV
-----END PGP SIGNATURE-----


From julian.reschke@gmx.de  Fri Aug 14 00:44: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 5A50A3A672E for <hybi@core3.amsl.com>; Fri, 14 Aug 2009 00:44:25 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.647
X-Spam-Level: 
X-Spam-Status: No, score=-4.647 tagged_above=-999 required=5 tests=[AWL=-2.048, 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 X1fwnL6J-UtY for <hybi@core3.amsl.com>; Fri, 14 Aug 2009 00:44:24 -0700 (PDT)
Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by core3.amsl.com (Postfix) with SMTP id 9EF6C3A67B1 for <hybi@ietf.org>; Fri, 14 Aug 2009 00:44:21 -0700 (PDT)
Received: (qmail invoked by alias); 14 Aug 2009 07:22:45 -0000
Received: from p508FEE38.dip.t-dialin.net (EHLO [192.168.178.33]) [80.143.238.56] by mail.gmx.net (mp039) with SMTP; 14 Aug 2009 09:22:45 +0200
X-Authenticated: #1915285
X-Provags-ID: V01U2FsdGVkX1+awywyKK+av5XUnTf3XwQdZ8d1HEDzOitEL9c8BL mq3G5Z+73tqk8+
Message-ID: <4A8510C2.7090807@gmx.de>
Date: Fri, 14 Aug 2009 09:22:42 +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: <Pine.LNX.4.62.0908070531430.28566@hixie.dreamhostps.com>	<4A7BC33E.5070805@gmx.de> <4A7BD1EA.1060000@gmx.de>
In-Reply-To: <4A7BD1EA.1060000@gmx.de>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Y-GMX-Trusted: 0
X-FuHaFi: 0.57
Cc: uri-review@ietf.org, hybi@ietf.org, uri@w3.org
Subject: Re: [hybi] [Uri-review] 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: Fri, 14 Aug 2009 07:44:25 -0000

Julian Reschke wrote:
> Julian Reschke wrote:
>> ...
>>>    URI scheme syntax.
>>>       "ws" ":" hier-part [ "?" query ]
>>
>> I assume you are using ABNF syntax (RFC5234) and terminology from the 
>> URI spec, but you really need to state that.
>> ...
> 
> Furthermore I see no mention at all of these URI schemes in the 
> remainder of the spec. So is the IANA registration template supposed to 
> *be* the definition?
> 
> In particular:
> 
> 1) What does a "ws" URI identify?
> 
> 2) What is the semantics of "hier-part" and "query"?
> ...

There's a new draft: 
<http://www.ietf.org/id/draft-hixie-thewebsocketprotocol-32.txt> (BTW: 
just because publishing I-Ds is so simple doesn't mean that every single 
change needs to be published right away; it's a distraction and also 
confuses people about when they are supposed to review).

Anyway, it now says:

>    URI scheme syntax.
>       In ABNF terms using the terminals from the IRI specifications:
>       [RFC5238] [RFC3987]
> 
>            "ws" ":" ihier-part [ "?" iquery ]

That is even worse than before, because it now uses productions from the 
IRI spec defining *URI* syntax.

Furthermore, it still doesn't answer what the semantics of these parts 
are. What do "ihier-part" and "iquery" represent in a ws URI? What'S the 
effect? How are they used?

BR, Julian

PS: what does RFC5238 have to do with this?

From ian@hixie.ch  Fri Aug 14 03:49: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 1B1D83A680A; Fri, 14 Aug 2009 03:49:51 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.299
X-Spam-Level: 
X-Spam-Status: No, score=-3.299 tagged_above=-999 required=5 tests=[AWL=-0.700, 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 Cl-BwNUDkrkK; Fri, 14 Aug 2009 03:49:49 -0700 (PDT)
Received: from hapkido.dreamhost.com (hapkido.dreamhost.com [66.33.216.122]) by core3.amsl.com (Postfix) with ESMTP id 7466E3A67B5; Fri, 14 Aug 2009 03:49:49 -0700 (PDT)
Received: from looneymail-a3.g.dreamhost.com (caibbdcaaaaf.dreamhost.com [208.113.200.5]) by hapkido.dreamhost.com (Postfix) with ESMTP id 3F10B275B63; Fri, 14 Aug 2009 03:48:15 -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 898E727B6E; Fri, 14 Aug 2009 03:47:56 -0700 (PDT)
Date: Fri, 14 Aug 2009 10:47:56 +0000 (UTC)
From: Ian Hickson <ian@hixie.ch>
To: uri-review@ietf.org, hybi@ietf.org
Message-ID: <Pine.LNX.4.62.0908141047050.28566@hixie.dreamhostps.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] [Uri-review] 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: Fri, 14 Aug 2009 10:49:51 -0000

(Resending to uri-review@ietf.org and hybi@ietf.org with fewer recipients 
to avoid recipient limit. Sorry for screwing up the threading.)

On Fri, 7 Aug 2009, Julian Reschke wrote:
> Ian Hickson wrote:
> > The formal registrations for the ws: and wss: schemes, part of the Web
> > Socket protocol, will be available in the Web Socket protocol ID as soon as
> > the IETF upload process completes:
> > 
> >    http://tools.ietf.org/html/draft-hixie-thewebsocketprotocol#section-7
> 
> Looking at:
> 
> > 7.1. Registrarion of ws: scheme
> > 
> >    URI scheme name.
> >       ws
> > 
> >    Status.
> >       Permanent.
> > 
> >    URI scheme syntax.
> >       "ws" ":" hier-part [ "?" query ]
> 
> I assume you are using ABNF syntax (RFC5234) and terminology from the URI
> spec, but you really need to state that.

Thanks, fixed.

(I tried referencing STD68 instead of RFC5234, as we do in HTML5, but 
apparently there's no index of STD references for xml2rfc?)


> >    URI scheme semantics.
> >       The only operation for this scheme is to open a connection using
> >       the Web Socket protocol.
> > 
> >    Encoding considerations.
> >       UTF-8 only.
> 
> What does this mean?

That the only encoding that can be used with this scheme is UTF-8. What is 
unclear?


> >    Applications/protocols that use this URI scheme name.
> >       Web Socket protocol.
> > 
> >    Interoperability considerations.
> >       None.
> > 
> >    Security considerations.
> >       See "Security considerations" section above.
> > 
> >    Contact.
> >       Ian Hickson <ian@hixie.ch>
> > 
> >    Author/Change controller.
> >       Ian Hickson <ian@hixie.ch>
> > ...
> 
> I believe that for a permanent registry on the standards track, change control
> will have to move to IETF or IESG.

When a registration is placed on the permanent registry, the change 
controller line is removed.


On Fri, 7 Aug 2009, Julian Reschke wrote:
> 
> Furthermore I see no mention at all of these URI schemes in the 
> remainder of the spec. So is the IANA registration template supposed to 
> *be* the definition?

Yes.


> In particular:
> 
> 1) What does a "ws" URI identify?

I have added text speaking to this.


> 2) What is the semantics of "hier-part" and "query"?

I've refactored the Web Sockets API and Web Sockets Protocol specs so that 
the parsing of Web Socket URLs happens all within the Web Sockets Protocol 
spec. Let me know if that's not enough. I can include more details if you 
would like.

(If you do want more, a reference to how another scheme registration 
defines the semantics of parts of the URL would be useful, so that I can 
use a similar style.)


On Fri, 7 Aug 2009, Greg Wilkins wrote:
> 
> Note also that ws is commonly used to denote Web Service.
> For example:
> 
>   http://www.w3.org/TR/ws-arch/
>   http://www.w3.org/TR/ws-i18n/
>   http://ws.apache.org/
>   http://www.ws-i.org/
>   https://jax-ws.dev.java.net/
> 
> While you will never avoid all name clashes, it would be desirable to 
> avoid a clash within the same field of endeavour.
> 
> Perhaps wskt would be a better scheme name for WebSocKeT, unless here 
> are any objections from Wichita Southeast Kansas Transit Inc 
> http://acronyms.thefreedictionary.com/Wichita+Southeast+Kansas+Transit+Inc. 
> (note wsock is already used for winSock drivers).

On Fri, 7 Aug 2009, Maciej Stachowiak wrote:
> 
> I think it's unlikely the "ws" family of formats and protocols will want 
> to register their own URI scheme. That being said, how about "wsp" for 
> WebSocket Protocol?

On Fri, 7 Aug 2009, Chris Anderson wrote:
> 
> As long as we are throwing out acronyms, my suggestion would be for the 
> simple "websocket" or maybe "websock" if bytes are considered expensive. 
> I'm a big fan of the mailto: link b/c it's easy to understand what it 
> means.

On Sun, 9 Aug 2009, Mark Nottingham wrote:
>
> websock seems like a good balance...

On Sun, 9 Aug 2009, Pieter Hintjens wrote:
> 
> 'ws' is confusing to many and cryptic to the rest.  'websock' has the 
> advantage of immediate clarity to all.  The 5-characters difference is 
> not worth the cost of defining a new abbreviation that adds no value.
> 
> Think of this as an opportunity for marketing.  "websock" reinforces the 
> brand, while "ws" weakens it.

I haven't changed the names of the schemes.

"wskt" looks really ugly. "wskts" sounds like a plural.

"wsp" and "wsps" don't seem to reduce the confusion with Web Services, 
should they ever add a protocol (and the closeness to "wasp" is not 
especially good, IMHO).

"websock" and "wsock" are too close to the Windows Sockets names, IMHO.

I'm not really concerned about branding; I mean, 90% of the time these 
URLs are going to be seen in contexts like:

   var socket = new WebSocket('ws://example.com/');

...so it doesn't seem like much of an issue.


On Fri, 7 Aug 2009, David Booth wrote:
> > 
> > This is only expected to be used from a WebSocket API call. What 
> > fallback behaviour did you have in mind?
> 
> I'm sure I could come up with some ideas, but I imagine those who have 
> been working on HTML5 could come up with much better ones.  I tried to 
> look in the HTML5 spec for some inspiration, but I find the word 
> "socket" appearing only once, in section 8.1: 
> http://dev.w3.org/html5/spec/Overview.html#event-definitions Where 
> should I look for the info that gives the context for the WebSocket API?  
> OTOH, protocols have a way of finding uses far beyond those for which 
> they were originally envisioned.

The Web Socket API is here:

   http://dev.w3.org/html5/websockets/

I don't really see any sane way to have the API itself do some sort of 
fallback, especially not to HTTP.


On Sat, 8 Aug 2009, Jamie Lokier wrote:
> 
> Tunnelling WebSocket two-way communications over standard HTTP messages, 
> using any of the methods used for that, would be natural and probably 
> useful behaviour.

That is a radically different system on the server-side. While authors 
should naturally be allowed to do that using XHR if they desire, forcing 
servers into having that kind of fallback behaviour radically increases 
the complexity of a server-side deployment. A Web Socket protocol 
implementation can be written in 100 lines of Perl or so; having to add to 
that some sort of HTTP server or CGI scripting would make things 
significantly more complicated.


On Sun, 9 Aug 2009, Julian Reschke wrote:
> 
> Are you saying the URI scheme is *only* needed within WebSocket's API? 
> Why do you need a URI scheme in the first place, then?

It would also be useful when redirecting connections to other servers, if 
we keep that feature, and in general for identifying Web Socket servers 
going forward. For example, we are considering using the Web Socket 
protocol for push notifications; this would need to be declared in an HTML 
page, say in a <link> header, for which having to separately specify the 
host, port, and resource name would be quite inconvenient.


On Sun, 9 Aug 2009, David Booth wrote:
> 
> I can't see that as a significant issue, as there is only a trivial 
> difference between dispatching based on the string prefix 
> "http://wss.example/" and the string prefix "wss:".  Both are simple, 
> constant strings and both are equally "magic": they cause agent to 
> attempt the WSS protocol.

I don't understand how one would reuse the http: scheme in this way in 
order to connect to 'example.com' as both an HTTP server and a Web Socket 
server.


On Tue, 11 Aug 2009, Maciej Stachowiak wrote:
> 
> The difference is that "http://wss.example/" already has a meaning, 
> which is not the intended one. Whereas "wss:" currently has no meaning. 
> Thus the former has greater risk of either colliding with an existing 
> resource, or being misinterpreted by a legacy client (instead of just 
> rejected).

Indeed.


On Tue, 11 Aug 2009, David Booth wrote:
> 
> That's not a risk, that's the *intent*.

I disagree that that is a desireable result in this instance.

> The point is that a prefix like "http://wss.example/" gives agents that 
> do not know the WSS protocol the possibility of doing something useful 
> with the URI, by falling back to the HTTP protocol, whereas if a prefix 
> like "wss:" were used those same agents would have to reject it 
> entirely.

UAs that don't support Web Socket are going to have failed long before 
they see the URI, since they don't support the API either.


On Wed, 12 Aug 2009 noah_mendelsohn@us.ibm.com wrote:
> 
> So, here's an example.  First, let's make the assumption that there is 
> an HTTP server at port 80 at "http://wss.example/", presumably run by an 
> organization that supports the use of wss.  Assuming that the normal 
> path through the Web sockets client apis does not access this, the HTTP 
> server will be used only by legacy clients.
> 
> Where's the value?  Let's assume that a link to a WS resource winds up 
> in a page somewhere for some reason.  It could be a bug report, 
> whatever. Now a search engine crawler stumbles on the bug report page.  
> If we use the wss: scheme, then either the crawler has special knowledge 
> of WS, or nothing much useful happens.  If we use 
> "http://wss.example/..... then the crawler sends a GET to that.  Choose 
> your favorite metadata access mechanism (perhaps [1], maybe RDFa, 
> whatever), and the crawler has the opportunity to discover "ah, this is 
> a WS resource", or at least to learn some things about it.  To some 
> extent that's true with either approach (the crawler at least knows it's 
> got a link in a scheme that's not understood with wss:), but the 
> opportunities for incremental discovery seem to be significantly greater 
> with HTTP.
> 
> As Dave Orchard points out, these issues were debated in great detail 
> with XRI came up for consideration at Oasis, and I think it's fair to 
> say that the starting position of those proposing xri was initially at 
> least as firm as that of advocates of wss.  I think Dave is right that 
> at least many of those same people came to believe that an http-based 
> approach was in fact either better, or at least a reasonable compromise.  
> You might want to check with them.

Do you believe that the above applies to Web Socket protocol connections 
more than it does to telnet or SSH connections? If so, why?

I don't understand why we would even want a spider to attempt to connect 
to a Web Socket server. How would it know what application-level protocol 
to use? How would it expose this information to the user?


On Wed, 12 Aug 2009, Greg Wilkins wrote:
> 
> The ws protocol has been designed in respect to a single proposed 
> javascript API to run within a browser.
> 
> There are many many uses for bidirectional web which go beyond that 
> simple restricted example.

For those purposes, we already have TCP/IP, no?


On Wed, 12 Aug 2009, Jamie Lokier wrote:
>
> ws:// URLs *will* be entered on web forms at some point, you can count 
> on it.
> 
> Someone will write a web form that says something like "Tell me the 
> address of a FOOCHAT server to begin your FOOCHAT session", expecting a 
> ws:// URL to be entered if WebSockets is the protocol to be used.

Indeed, that's a good reason for having a single URL rather than having 
multiple fields in the API.


Once the IETF system updates to the latest submission, the changes I have 
made in response to the above feedback will be visible in version 32 or 
later of the following document:

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

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

From fielding@gbiv.com  Fri Aug 14 12:29:48 2009
Return-Path: <fielding@gbiv.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 6631F3A6B93; Fri, 14 Aug 2009 12:29:48 -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 4pUEWrG5iNSW; Fri, 14 Aug 2009 12:29:47 -0700 (PDT)
Received: from spaceymail-a7.g.dreamhost.com (caibbdcaaaaf.dreamhost.com [208.113.200.5]) by core3.amsl.com (Postfix) with ESMTP id C047A3A6A21; Fri, 14 Aug 2009 12:29:47 -0700 (PDT)
Received: from [192.168.1.111] (pool-71-110-209-184.lsanca.dsl-w.verizon.net [71.110.209.184]) by spaceymail-a7.g.dreamhost.com (Postfix) with ESMTP id E7ADA14982; Fri, 14 Aug 2009 12:29:40 -0700 (PDT)
In-Reply-To: <1250262754.4698.91.camel@ophelia2.g5n.co.uk>
References: <Pine.LNX.4.62.0908141047050.28566@hixie.dreamhostps.com> <1250262754.4698.91.camel@ophelia2.g5n.co.uk>
Mime-Version: 1.0 (Apple Message framework v753.1)
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Message-Id: <2BDE069B-E31E-4533-A841-1313F797C688@gbiv.com>
Content-Transfer-Encoding: 7bit
From: "Roy T. Fielding" <fielding@gbiv.com>
Date: Fri, 14 Aug 2009 12:29:27 -0700
To: Toby Inkster <mail@tobyinkster.co.uk>
X-Mailer: Apple Mail (2.753.1)
Cc: uri-review@ietf.org, hybi@ietf.org
Subject: Re: [hybi] [Uri-review] 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: Fri, 14 Aug 2009 19:29:48 -0000

On Aug 14, 2009, at 8:12 AM, Toby Inkster wrote:

> On Fri, 2009-08-14 at 10:47 +0000, Ian Hickson wrote:
>> I don't understand how one would reuse the http: scheme in this  
>> way in
>> order to connect to 'example.com' as both an HTTP server and a Web
>> Socket server.
>
> The idea is not necessarily to reuse the HTTP protocol - just the URI
> scheme. How to do this is pretty easy and would require very few  
> changes
> to the web sockets API.

It only makes sense to do that if the resources identified for
websockets are the same as those for "http".  That is why xri
was not needed -- it was a simple alias of http space.  I do not
think that is Ian's intention for websockets (although, as Julian
suggested, there is no documentation for that in the spec yet).

....Roy

From jamie@shareable.org  Fri Aug 14 12:35:05 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 7DE683A6A2F; Fri, 14 Aug 2009 12:35:05 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.435
X-Spam-Level: 
X-Spam-Status: No, score=-4.435 tagged_above=-999 required=5 tests=[AWL=-2.151, 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 nNBsG4ruBBuA; Fri, 14 Aug 2009 12:35:04 -0700 (PDT)
Received: from mail2.shareable.org (mail2.shareable.org [80.68.89.115]) by core3.amsl.com (Postfix) with ESMTP id 297ED3A68C4; Fri, 14 Aug 2009 12:35:04 -0700 (PDT)
Received: from jamie by mail2.shareable.org with local (Exim 4.63) (envelope-from <jamie@shareable.org>) id 1Mc2YL-0003WW-5y; Fri, 14 Aug 2009 20:35:05 +0100
Date: Fri, 14 Aug 2009 20:35:05 +0100
From: Jamie Lokier <jamie@shareable.org>
To: Ian Hickson <ian@hixie.ch>
Message-ID: <20090814193505.GB12021@shareable.org>
References: <Pine.LNX.4.62.0908141047050.28566@hixie.dreamhostps.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <Pine.LNX.4.62.0908141047050.28566@hixie.dreamhostps.com>
User-Agent: Mutt/1.5.13 (2006-08-11)
Cc: uri-review@ietf.org, hybi@ietf.org
Subject: Re: [hybi] [Uri-review] 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: Fri, 14 Aug 2009 19:35:05 -0000

Ian Hickson wrote:
> The Web Socket API is here:
> 
>    http://dev.w3.org/html5/websockets/
> 
> I don't really see any sane way to have the API itself do some sort of 
> fallback, especially not to HTTP.

Ah, that'll be why you didn't respond to discussions about that :-)

> On Sat, 8 Aug 2009, Jamie Lokier wrote:
> > Tunnelling WebSocket two-way communications over standard HTTP messages, 
> > using any of the methods used for that, would be natural and probably 
> > useful behaviour.
> 
> That is a radically different system on the server-side.

Yes.

> While authors should naturally be allowed to do that using XHR if
> they desire,

All authors can just use the WebSocket API.

When running on older browsers they'll use a Javascript
backward-compatibility package which emulates WebSocket, using some
other mechanism underneath.

> forcing servers into having that kind of fallback behaviour
> radically increases the complexity of a server-side deployment.

Not much.  The art of good software development is to hide the
complexity where it has to exist.

"apt-get install ws2http".  Problem solved.

> A Web Socket protocol implementation can be written in 100 lines of
> Perl or so;

If using libraries, 5 lines of Perl.

If avoiding libraries, you can, barely, but:

   - Trust me there will be bugs, if only in mishandling UTF-8.

   - Anyone doing that values simplicity over performance.
     Which is great, see next section.

> having to add to that some sort of HTTP server or CGI scripting
> would make things significantly more complicated.

No, it's very simple to the person writing 100 lines of Perl.

They'll install a WebSocket <-> HTTP proxy which is written by
professionals in C.  "apt-get install ws2http".

On the client side, they'll use a Javascript file which emulates
WebSocket (when necessary), using HTTP which works with ws2http.

Job done.  Johnny's interactive Tic-Tac-Toe (his very first web app!)
will work over the HTTP internet with *no changes at all* except
minimal configuration.

> On Sun, 9 Aug 2009, David Booth wrote:
> > I can't see that as a significant issue, as there is only a trivial 
> > difference between dispatching based on the string prefix 
> > "http://wss.example/" and the string prefix "wss:".  Both are simple, 
> > constant strings and both are equally "magic": they cause agent to 
> > attempt the WSS protocol.
> 
> I don't understand how one would reuse the http: scheme in this way in 
> order to connect to 'example.com' as both an HTTP server and a Web Socket 
> server.

The implication is that it's context dependent - you know you're
making a WebSockets connection - and the prefix would serve much the
same role as URIs do for XML namespaces.

But I must agree that http://www.example/my.domain.org/path/to/service
would be profoundly ugly and pointless.

On the other hand, http://my.domain.org/path/to/service
would be very nice if that Just Worked.

That is, if WebSockets connected and did a standardised and safe
negotiation over HTTP to your own site's URL, and acquired a
WebSockets connection that way.  No need for the ws: prefix!

That would be nice because it leaves open the option to do drop down
automatically to something else if the WebSockets negotiation fails.
(Automatically in the WebSockets implementation, that is, without the
app author having to care).

> > The point is that a prefix like "http://wss.example/" gives agents that 
> > do not know the WSS protocol the possibility of doing something useful 
> > with the URI, by falling back to the HTTP protocol, whereas if a prefix 
> > like "wss:" were used those same agents would have to reject it 
> > entirely.
> 
> UAs that don't support Web Socket are going to have failed long before 
> they see the URI, since they don't support the API either.

They'll acquire a Javascript emulation of it, if that's technically possible.

> I don't understand why we would even want a spider to attempt to connect 
> to a Web Socket server. How would it know what application-level protocol 
> to use? How would it expose this information to the user?

Spiders will follow any text that looks like a URL.  Even comments.
You might not _want_ them to, but they will try anyway, because they
and their users benefit from serendipitous discovery.

It's not about what _we_ want them to do.  It's about what they will
do given a chance.

> On Wed, 12 Aug 2009, Greg Wilkins wrote:
> > The ws protocol has been designed in respect to a single proposed 
> > javascript API to run within a browser.
> > 
> > There are many many uses for bidirectional web which go beyond that 
> > simple restricted example.
> 
> For those purposes, we already have TCP/IP, no?

Because WebSockets isn't _that_ simple on the server, especially with
things layered on top, there will be frameworks to make it easier on
the server side.  Before you know it, that will be more familiar for a
lot of people than TCP/IP.  In the same way that people can write
CGI/WSGI now, but would find writing a TCP/IP server difficult.

Presumably you'd like WebSockets to become familiar to large numbers
of web application developers?

With millions of programmers familiar with writing WebSockets code on
browser clients and servers, and good server-side frameworks for
handling it - of course it will be used in non-browser applications,
whether you think it's a good choice or not.

It's not about *us* the experts, it's about everyone else who only has
the time to learn one thing well.  The same people who cut and paste
Javascript and CGI/WSGI code right now - because it works.

> On Wed, 12 Aug 2009, Jamie Lokier wrote:
> >
> > ws:// URLs *will* be entered on web forms at some point, you can count 
> > on it.
> > 
> > Someone will write a web form that says something like "Tell me the 
> > address of a FOOCHAT server to begin your FOOCHAT session", expecting a 
> > ws:// URL to be entered if WebSockets is the protocol to be used.
> 
> Indeed, that's a good reason for having a single URL rather than having 
> multiple fields in the API.

I agree.

Thanks,
-- Jamie

From jamie@shareable.org  Fri Aug 14 12:44:23 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 E9EDF3A6B93; Fri, 14 Aug 2009 12:44:23 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.49
X-Spam-Level: 
X-Spam-Status: No, score=-4.49 tagged_above=-999 required=5 tests=[AWL=-1.891,  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 ijPeovvkDW83; Fri, 14 Aug 2009 12:44:23 -0700 (PDT)
Received: from mail2.shareable.org (mail2.shareable.org [80.68.89.115]) by core3.amsl.com (Postfix) with ESMTP id 2AB5628C1E5; Fri, 14 Aug 2009 12:44:08 -0700 (PDT)
Received: from jamie by mail2.shareable.org with local (Exim 4.63) (envelope-from <jamie@shareable.org>) id 1Mc2h6-0003Yj-DQ; Fri, 14 Aug 2009 20:44:08 +0100
Date: Fri, 14 Aug 2009 20:44:08 +0100
From: Jamie Lokier <jamie@shareable.org>
To: "Roy T. Fielding" <fielding@gbiv.com>
Message-ID: <20090814194408.GC12021@shareable.org>
References: <Pine.LNX.4.62.0908141047050.28566@hixie.dreamhostps.com> <1250262754.4698.91.camel@ophelia2.g5n.co.uk> <2BDE069B-E31E-4533-A841-1313F797C688@gbiv.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <2BDE069B-E31E-4533-A841-1313F797C688@gbiv.com>
User-Agent: Mutt/1.5.13 (2006-08-11)
Cc: uri-review@ietf.org, hybi@ietf.org, Toby Inkster <mail@tobyinkster.co.uk>
Subject: Re: [hybi] [Uri-review] 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: Fri, 14 Aug 2009 19:44:24 -0000

Roy T. Fielding wrote:
> On Aug 14, 2009, at 8:12 AM, Toby Inkster wrote:
> 
> >On Fri, 2009-08-14 at 10:47 +0000, Ian Hickson wrote:
> >>I don't understand how one would reuse the http: scheme in this  
> >>way in
> >>order to connect to 'example.com' as both an HTTP server and a Web
> >>Socket server.
> >
> >The idea is not necessarily to reuse the HTTP protocol - just the URI
> >scheme. How to do this is pretty easy and would require very few  
> >changes
> >to the web sockets API.
> 
> It only makes sense to do that if the resources identified for
> websockets are the same as those for "http".  That is why xri
> was not needed -- it was a simple alias of http space.  I do not
> think that is Ian's intention for websockets (although, as Julian
> suggested, there is no documentation for that in the spec yet).

I think you're probably right that it's not Ian's intention for WebSockets.

However I can say for sure that I intend to deploy applications which
serve exactly the same resources over WebSockets and HTTP.

The technical methods used have to be very different, and once you get
past the initial URL there's a certain amount of fudging.  You
wouldn't start 1000 WebSockets connections at different URLs to access
different resources on the same server; you'd create an application
protocol on top of it, and request all the resources through a shared
endpoint.  (That's a consequence of WebSockets' design).

But the conceptual resources being accessed behind WebSockets and HTTP
will be identical in the applications I have in mind.  And the
conceptual "endpoint" resource at a single WebSockets address has a
corresponding endpoint resource over HTTP too.  So it seems natural to
use similar URLs for the two access methods.

-- Jamie

From jamie@shareable.org  Fri Aug 14 14:37:55 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 E29183A68C2; Fri, 14 Aug 2009 14:37:55 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.404
X-Spam-Level: 
X-Spam-Status: No, score=-4.404 tagged_above=-999 required=5 tests=[AWL=-1.805, 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 RmMGn1VnGQeK; Fri, 14 Aug 2009 14:37:55 -0700 (PDT)
Received: from mail2.shareable.org (mail2.shareable.org [80.68.89.115]) by core3.amsl.com (Postfix) with ESMTP id 196D13A6969; Fri, 14 Aug 2009 14:37:54 -0700 (PDT)
Received: from jamie by mail2.shareable.org with local (Exim 4.63) (envelope-from <jamie@shareable.org>) id 1Mc4TC-0004IY-OX; Fri, 14 Aug 2009 22:37:54 +0100
Date: Fri, 14 Aug 2009 22:37:54 +0100
From: Jamie Lokier <jamie@shareable.org>
To: Kristof Zelechovski <giecrilj@stegny.2a.pl>
Message-ID: <20090814213754.GD12021@shareable.org>
References: <Pine.LNX.4.62.0908070531430.28566@hixie.dreamhostps.com> <1249651007.25446.8934.camel@dbooth-laptop> <0B450D619CC0486E8BD51C31FBA214AD@POCZTOWIEC> <20090812021926.GC19298@shareable.org> <AB9A0CF094F04D39BC7DC5DEAFF7FC1C@POCZTOWIEC>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <AB9A0CF094F04D39BC7DC5DEAFF7FC1C@POCZTOWIEC>
User-Agent: Mutt/1.5.13 (2006-08-11)
Cc: uri-review@ietf.org, hybi@ietf.org, uri@w3.org, 'David Booth' <david@dbooth.org>
Subject: Re: [hybi] [Uri-review] 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: Fri, 14 Aug 2009 21:37:56 -0000

Kristof Zelechovski wrote:
>  1.  Encouraging the user to enter a Web Sockets URL does not make sense if
> cross-domain connections are not allowed, which I hope will be the case (the
> draft specification [1] does not contain security considerations).

It was originally thought XHR (XmlHttpRequest) didn't need to be
cross-domain, but then people thought of lots of reasons why it's
useful and had to use hacks to workaround the limitation, so now
there's a draft standard to support cross-domain XHR - being careful
to address cross-domain security.

I suspect WebSockets could benefit from a look at the mechanisms used
by cross-domain XHR to check for permission to proceed.

>  2.  While we are at it, a Web Sockets connection is useless without knowing
> the protocol, and the protocol to be used is not contained within the URL.
> That means a ws URL is not self-contained and thus useless as a stand-alone
> locator.

The same is true of HTTP.

A HTTP URL does not tell you the type of resource, only where to find
_a_ resource.  For example there are places where a user can enter the
URL of a CalDAV calendar resource.  The CalDAV protocol is used (over
HTTP) to work with that resource, but the URL doesn't say what it is.

The only difference with WebSockets is that it (so far) seems to avoid
any descriptive metadata, which means there will still be applications
which ask for a WebSockets URL, but when the URL is for a different
protocol on top, it'll simply break with undefined behaviour instead
of a clean error message or fallback behaviour.

It doesn't matter if you think nobody should do that.  It will still
be done anyway - because it's so obviously useful.

-- Jamie

From julian.reschke@gmx.de  Fri Aug 14 00:42: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 CA12C3A67B1 for <hybi@core3.amsl.com>; Fri, 14 Aug 2009 00:42:13 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.69
X-Spam-Level: 
X-Spam-Status: No, score=-4.69 tagged_above=-999 required=5 tests=[AWL=-2.091,  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 4RM9Z3ZKFNMo for <hybi@core3.amsl.com>; Fri, 14 Aug 2009 00:42:12 -0700 (PDT)
Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by core3.amsl.com (Postfix) with SMTP id 351403A672E for <hybi@ietf.org>; Fri, 14 Aug 2009 00:42:11 -0700 (PDT)
Received: (qmail invoked by alias); 14 Aug 2009 07:39:44 -0000
Received: from p508FEE38.dip.t-dialin.net (EHLO [192.168.178.33]) [80.143.238.56] by mail.gmx.net (mp068) with SMTP; 14 Aug 2009 09:39:44 +0200
X-Authenticated: #1915285
X-Provags-ID: V01U2FsdGVkX18YtME3n9MYNO5N+2tgN1DjNHBZU3nj0To5Sk4VMS QnemowhAX4sW/3
Message-ID: <4A8514B8.1060808@gmx.de>
Date: Fri, 14 Aug 2009 09:39:36 +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: <Pine.LNX.4.62.0908070531430.28566@hixie.dreamhostps.com> <1249651007.25446.8934.camel@dbooth-laptop> <0B450D619CC0486E8BD51C31FBA214AD@POCZTOWIEC> <20090812021926.GC19298@shareable.org> <AB9A0CF094F04D39BC7DC5DEAFF7FC1C@POCZTOWIEC> <Pine.LNX.4.62.0908140544590.6420@hixie.dreamhostps.com>
In-Reply-To: <Pine.LNX.4.62.0908140544590.6420@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.5600000000000001
X-Mailman-Approved-At: Fri, 14 Aug 2009 16:45:50 -0700
Cc: hybi@ietf.org, "Daniel R. Tobias" <dan@tobias.name>, uri-review@ietf.org, Kristof Zelechovski <giecrilj@stegny.2a.pl>, uri@w3.org, noah_mendelsohn@us.ibm.com, David Booth <david@dbooth.org>
Subject: Re: [hybi] [Uri-review] 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: Fri, 14 Aug 2009 07:42:13 -0000

Ian Hickson wrote:
>> I assume you are using ABNF syntax (RFC5234) and terminology from the URI
>> spec, but you really need to state that.
> 
> Thanks, fixed.
> 
> (I tried referencing STD68 instead of RFC5234, as we do in HTML5, but 
> apparently there's no index of STD references for xml2rfc?)

Just day "STD68" instead of "RFC5234" in the reference/@anchor element.

>>>    URI scheme semantics.
>>>       The only operation for this scheme is to open a connection using
>>>       the Web Socket protocol.
>>>
>>>    Encoding considerations.
>>>       UTF-8 only.
>> What does this mean?
> 
> That the only encoding that can be used with this scheme is UTF-8. What is 
> unclear?

You can only have ASCII characters in a URI. I believe you're trying to 
do the right thing, but it really requires a few more words (...when 
non-URL characters are to be used in a ws URI, they need to be encoded 
using UTF-8 and then percent-escaped...)

> ...
> I've refactored the Web Sockets API and Web Sockets Protocol specs so that 
> the parsing of Web Socket URLs happens all within the Web Sockets Protocol 
> spec. Let me know if that's not enough. I can include more details if you 
> would like.
> ...

Maybe than that spec should carry the URI definition and registration.

> (If you do want more, a reference to how another scheme registration 
> defines the semantics of parts of the URL would be useful, so that I can 
> use a similar style.)

Looking at relatively recent RFCs, and example would be 
<http://tools.ietf.org/html/rfc4516#section-2>.

If there is no defined semantics for the two parts then the definition 
should just state that.

 > ...

BR, Julian

From ian@hixie.ch  Fri Aug 14 03:45:03 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 2CCC73A67B5; Fri, 14 Aug 2009 03:45:03 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.349
X-Spam-Level: 
X-Spam-Status: No, score=-3.349 tagged_above=-999 required=5 tests=[AWL=-0.750, 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 LGYxHeMrhslA; Fri, 14 Aug 2009 03:45:01 -0700 (PDT)
Received: from hapkido.dreamhost.com (hapkido.dreamhost.com [66.33.216.122]) by core3.amsl.com (Postfix) with ESMTP id 630B53A6765; Fri, 14 Aug 2009 03:45:01 -0700 (PDT)
Received: from looneymail-a2.g.dreamhost.com (caibbdcaaaaf.dreamhost.com [208.113.200.5]) by hapkido.dreamhost.com (Postfix) with ESMTP id 213631F5533; Fri, 14 Aug 2009 00:20:42 -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 A99A616D40E; Fri, 14 Aug 2009 00:15:41 -0700 (PDT)
Date: Fri, 14 Aug 2009 07:15:41 +0000 (UTC)
From: Ian Hickson <ian@hixie.ch>
To: Julian Reschke <julian.reschke@gmx.de>, Greg Wilkins <gregw@webtide.com>, Maciej Stachowiak <mjs@apple.com>, Chris Anderson <jchris@apache.org>, Mark Nottingham <mnot@mnot.net>, Pieter Hintjens <ph@imatix.com>, David Booth <david@dbooth.org>, =?us-ascii?Q?Kristof_Zelechovski?= <giecrilj@stegny.2a.pl>, Jamie Lokier <jamie@shareable.org>, David Orchard <orchard@pacificspirit.com>, noah_mendelsohn@us.ibm.com
In-Reply-To: <AB9A0CF094F04D39BC7DC5DEAFF7FC1C@POCZTOWIEC>
Message-ID: <Pine.LNX.4.62.0908140544590.6420@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>
Content-Language: en-GB-hixie
Content-Style-Type: text/css
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Mailman-Approved-At: Fri, 14 Aug 2009 16:45:50 -0700
Cc: "Daniel R. Tobias" <dan@tobias.name>, uri-review@ietf.org, hybi@ietf.org, uri@w3.org
Subject: Re: [hybi] [Uri-review] 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: Fri, 14 Aug 2009 10:45:03 -0000

On Fri, 7 Aug 2009, Julian Reschke wrote:
> Ian Hickson wrote:
> > The formal registrations for the ws: and wss: schemes, part of the Web
> > Socket protocol, will be available in the Web Socket protocol ID as soon as
> > the IETF upload process completes:
> > 
> >    http://tools.ietf.org/html/draft-hixie-thewebsocketprotocol#section-7
> 
> Looking at:
> 
> > 7.1. Registrarion of ws: scheme
> > 
> >    URI scheme name.
> >       ws
> > 
> >    Status.
> >       Permanent.
> > 
> >    URI scheme syntax.
> >       "ws" ":" hier-part [ "?" query ]
> 
> I assume you are using ABNF syntax (RFC5234) and terminology from the URI
> spec, but you really need to state that.

Thanks, fixed.

(I tried referencing STD68 instead of RFC5234, as we do in HTML5, but 
apparently there's no index of STD references for xml2rfc?)


> >    URI scheme semantics.
> >       The only operation for this scheme is to open a connection using
> >       the Web Socket protocol.
> > 
> >    Encoding considerations.
> >       UTF-8 only.
> 
> What does this mean?

That the only encoding that can be used with this scheme is UTF-8. What is 
unclear?


> >    Applications/protocols that use this URI scheme name.
> >       Web Socket protocol.
> > 
> >    Interoperability considerations.
> >       None.
> > 
> >    Security considerations.
> >       See "Security considerations" section above.
> > 
> >    Contact.
> >       Ian Hickson <ian@hixie.ch>
> > 
> >    Author/Change controller.
> >       Ian Hickson <ian@hixie.ch>
> > ...
> 
> I believe that for a permanent registry on the standards track, change control
> will have to move to IETF or IESG.

When a registration is placed on the permanent registry, the change 
controller line is removed.


On Fri, 7 Aug 2009, Julian Reschke wrote:
> 
> Furthermore I see no mention at all of these URI schemes in the 
> remainder of the spec. So is the IANA registration template supposed to 
> *be* the definition?

Yes.


> In particular:
> 
> 1) What does a "ws" URI identify?

I have added text speaking to this.


> 2) What is the semantics of "hier-part" and "query"?

I've refactored the Web Sockets API and Web Sockets Protocol specs so that 
the parsing of Web Socket URLs happens all within the Web Sockets Protocol 
spec. Let me know if that's not enough. I can include more details if you 
would like.

(If you do want more, a reference to how another scheme registration 
defines the semantics of parts of the URL would be useful, so that I can 
use a similar style.)


On Fri, 7 Aug 2009, Greg Wilkins wrote:
> 
> Note also that ws is commonly used to denote Web Service.
> For example:
> 
>   http://www.w3.org/TR/ws-arch/
>   http://www.w3.org/TR/ws-i18n/
>   http://ws.apache.org/
>   http://www.ws-i.org/
>   https://jax-ws.dev.java.net/
> 
> While you will never avoid all name clashes, it would be desirable to 
> avoid a clash within the same field of endeavour.
> 
> Perhaps wskt would be a better scheme name for WebSocKeT, unless here 
> are any objections from Wichita Southeast Kansas Transit Inc 
> http://acronyms.thefreedictionary.com/Wichita+Southeast+Kansas+Transit+Inc. 
> (note wsock is already used for winSock drivers).

On Fri, 7 Aug 2009, Maciej Stachowiak wrote:
> 
> I think it's unlikely the "ws" family of formats and protocols will want 
> to register their own URI scheme. That being said, how about "wsp" for 
> WebSocket Protocol?

On Fri, 7 Aug 2009, Chris Anderson wrote:
> 
> As long as we are throwing out acronyms, my suggestion would be for the 
> simple "websocket" or maybe "websock" if bytes are considered expensive. 
> I'm a big fan of the mailto: link b/c it's easy to understand what it 
> means.

On Sun, 9 Aug 2009, Mark Nottingham wrote:
>
> websock seems like a good balance...

On Sun, 9 Aug 2009, Pieter Hintjens wrote:
> 
> 'ws' is confusing to many and cryptic to the rest.  'websock' has the 
> advantage of immediate clarity to all.  The 5-characters difference is 
> not worth the cost of defining a new abbreviation that adds no value.
> 
> Think of this as an opportunity for marketing.  "websock" reinforces the 
> brand, while "ws" weakens it.

I haven't changed the names of the schemes.

"wskt" looks really ugly. "wskts" sounds like a plural.

"wsp" and "wsps" don't seem to reduce the confusion with Web Services, 
should they ever add a protocol (and the closeness to "wasp" is not 
especially good, IMHO).

"websock" and "wsock" are too close to the Windows Sockets names, IMHO.

I'm not really concerned about branding; I mean, 90% of the time these 
URLs are going to be seen in contexts like:

   var socket = new WebSocket('ws://example.com/');

...so it doesn't seem like much of an issue.


On Fri, 7 Aug 2009, David Booth wrote:
> > 
> > This is only expected to be used from a WebSocket API call. What 
> > fallback behaviour did you have in mind?
> 
> I'm sure I could come up with some ideas, but I imagine those who have 
> been working on HTML5 could come up with much better ones.  I tried to 
> look in the HTML5 spec for some inspiration, but I find the word 
> "socket" appearing only once, in section 8.1: 
> http://dev.w3.org/html5/spec/Overview.html#event-definitions Where 
> should I look for the info that gives the context for the WebSocket API?  
> OTOH, protocols have a way of finding uses far beyond those for which 
> they were originally envisioned.

The Web Socket API is here:

   http://dev.w3.org/html5/websockets/

I don't really see any sane way to have the API itself do some sort of 
fallback, especially not to HTTP.


On Sat, 8 Aug 2009, Jamie Lokier wrote:
> 
> Tunnelling WebSocket two-way communications over standard HTTP messages, 
> using any of the methods used for that, would be natural and probably 
> useful behaviour.

That is a radically different system on the server-side. While authors 
should naturally be allowed to do that using XHR if they desire, forcing 
servers into having that kind of fallback behaviour radically increases 
the complexity of a server-side deployment. A Web Socket protocol 
implementation can be written in 100 lines of Perl or so; having to add to 
that some sort of HTTP server or CGI scripting would make things 
significantly more complicated.


On Sun, 9 Aug 2009, Julian Reschke wrote:
> 
> Are you saying the URI scheme is *only* needed within WebSocket's API? 
> Why do you need a URI scheme in the first place, then?

It would also be useful when redirecting connections to other servers, if 
we keep that feature, and in general for identifying Web Socket servers 
going forward. For example, we are considering using the Web Socket 
protocol for push notifications; this would need to be declared in an HTML 
page, say in a <link> header, for which having to separately specify the 
host, port, and resource name would be quite inconvenient.


On Sun, 9 Aug 2009, David Booth wrote:
> 
> I can't see that as a significant issue, as there is only a trivial 
> difference between dispatching based on the string prefix 
> "http://wss.example/" and the string prefix "wss:".  Both are simple, 
> constant strings and both are equally "magic": they cause agent to 
> attempt the WSS protocol.

I don't understand how one would reuse the http: scheme in this way in 
order to connect to 'example.com' as both an HTTP server and a Web Socket 
server.


On Tue, 11 Aug 2009, Maciej Stachowiak wrote:
> 
> The difference is that "http://wss.example/" already has a meaning, 
> which is not the intended one. Whereas "wss:" currently has no meaning. 
> Thus the former has greater risk of either colliding with an existing 
> resource, or being misinterpreted by a legacy client (instead of just 
> rejected).

Indeed.


On Tue, 11 Aug 2009, David Booth wrote:
> 
> That's not a risk, that's the *intent*.

I disagree that that is a desireable result in this instance.

> The point is that a prefix like "http://wss.example/" gives agents that 
> do not know the WSS protocol the possibility of doing something useful 
> with the URI, by falling back to the HTTP protocol, whereas if a prefix 
> like "wss:" were used those same agents would have to reject it 
> entirely.

UAs that don't support Web Socket are going to have failed long before 
they see the URI, since they don't support the API either.


On Wed, 12 Aug 2009 noah_mendelsohn@us.ibm.com wrote:
> 
> So, here's an example.  First, let's make the assumption that there is 
> an HTTP server at port 80 at "http://wss.example/", presumably run by an 
> organization that supports the use of wss.  Assuming that the normal 
> path through the Web sockets client apis does not access this, the HTTP 
> server will be used only by legacy clients.
> 
> Where's the value?  Let's assume that a link to a WS resource winds up 
> in a page somewhere for some reason.  It could be a bug report, 
> whatever. Now a search engine crawler stumbles on the bug report page.  
> If we use the wss: scheme, then either the crawler has special knowledge 
> of WS, or nothing much useful happens.  If we use 
> "http://wss.example/..... then the crawler sends a GET to that.  Choose 
> your favorite metadata access mechanism (perhaps [1], maybe RDFa, 
> whatever), and the crawler has the opportunity to discover "ah, this is 
> a WS resource", or at least to learn some things about it.  To some 
> extent that's true with either approach (the crawler at least knows it's 
> got a link in a scheme that's not understood with wss:), but the 
> opportunities for incremental discovery seem to be significantly greater 
> with HTTP.
> 
> As Dave Orchard points out, these issues were debated in great detail 
> with XRI came up for consideration at Oasis, and I think it's fair to 
> say that the starting position of those proposing xri was initially at 
> least as firm as that of advocates of wss.  I think Dave is right that 
> at least many of those same people came to believe that an http-based 
> approach was in fact either better, or at least a reasonable compromise.  
> You might want to check with them.

Do you believe that the above applies to Web Socket protocol connections 
more than it does to telnet or SSH connections? If so, why?

I don't understand why we would even want a spider to attempt to connect 
to a Web Socket server. How would it know what application-level protocol 
to use? How would it expose this information to the user?


On Wed, 12 Aug 2009, Greg Wilkins wrote:
> 
> The ws protocol has been designed in respect to a single proposed 
> javascript API to run within a browser.
> 
> There are many many uses for bidirectional web which go beyond that 
> simple restricted example.

For those purposes, we already have TCP/IP, no?


On Wed, 12 Aug 2009, Jamie Lokier wrote:
>
> ws:// URLs *will* be entered on web forms at some point, you can count 
> on it.
> 
> Someone will write a web form that says something like "Tell me the 
> address of a FOOCHAT server to begin your FOOCHAT session", expecting a 
> ws:// URL to be entered if WebSockets is the protocol to be used.

Indeed, that's a good reason for having a single URL rather than having 
multiple fields in the API.


Once the IETF system updates to the latest submission, the changes I have 
made in response to the above feedback will be visible in version 32 or 
later of the following document:

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

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

From david@dbooth.org  Tue Aug 11 20:20:20 2009
Return-Path: <david@dbooth.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 8EFB23A699C for <hybi@core3.amsl.com>; Tue, 11 Aug 2009 20:20:20 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.599
X-Spam-Level: 
X-Spam-Status: No, score=-3.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
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 MX2FUB3GEsF9 for <hybi@core3.amsl.com>; Tue, 11 Aug 2009 20:20:19 -0700 (PDT)
Received: from relay00.pair.com (relay00.pair.com [209.68.5.9]) by core3.amsl.com (Postfix) with SMTP id 880FC3A6980 for <hybi@ietf.org>; Tue, 11 Aug 2009 20:20:19 -0700 (PDT)
Received: (qmail 14601 invoked from network); 12 Aug 2009 02:52:26 -0000
Received: from 12.54.40.220 (HELO ?12.54.40.220?) (12.54.40.220) by relay00.pair.com with SMTP; 12 Aug 2009 02:52:26 -0000
X-pair-Authenticated: 12.54.40.220
From: David Booth <david@dbooth.org>
To: Maciej Stachowiak <mjs@apple.com>
In-Reply-To: <4E34F2AF-C737-4A7D-AD9F-07AD177313BA@apple.com>
References: <Pine.LNX.4.62.0908070531430.28566@hixie.dreamhostps.com> <1249651007.25446.8934.camel@dbooth-laptop> <4A7CD53D.13936.1264B606@dan.tobias.name> <1249869122.20315.388.camel@dbooth-laptop> <4E34F2AF-C737-4A7D-AD9F-07AD177313BA@apple.com>
Content-Type: text/plain
Date: Tue, 11 Aug 2009 22:52:26 -0400
Message-Id: <1250045546.3990.1906.camel@dbooth-laptop>
Mime-Version: 1.0
X-Mailer: Evolution 2.26.1 
Content-Transfer-Encoding: 7bit
X-Mailman-Approved-At: Fri, 14 Aug 2009 16:46:18 -0700
Cc: "Daniel R. Tobias" <dan@tobias.name>, uri-review@ietf.org, hybi@ietf.org, uri@w3.org
Subject: Re: [hybi] [Uri-review] 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: Wed, 12 Aug 2009 03:20:20 -0000

On Tue, 2009-08-11 at 17:23 -0700, Maciej Stachowiak wrote:
> On Aug 9, 2009, at 6:52 PM, David Booth wrote:
> 
> > On Fri, 2009-08-07 at 21:30 -0400, Daniel R. Tobias wrote:
> >> On 7 Aug 2009 at 9:16, David Booth wrote:
> >>
> >>> Note that I am talking about the *scheme*, not the protocol.  In
> >>> essence, a URI prefix such as "http://wss.example/" can be defined  
> >>> that
> >>> would serve the same purpose as a "wss:" scheme: an agent that
> >>> recognizes this prefix will know to attempt the WSS protocol.
> >>
> >> It seems like a bad idea to me, to have to build special exceptions
> >> to how a user agent processes URIs, where the protocol specified in
> >> the URI isn't actually the one that is used, based on "magic strings"
> >> within other parts than the scheme.
> >
> > I can't see that as a significant issue, as there is only a trivial
> > difference between dispatching based on the string prefix
> > "http://wss.example/" and the string prefix "wss:".  Both are simple,
> > constant strings and both are equally "magic": they cause agent to
> > attempt the WSS protocol.
> 
> The difference is that "http://wss.example/" already has a meaning,  
> which is not the intended one. Whereas "wss:" currently has no  
> meaning. Thus the former has greater risk of either colliding with an  
> existing resource, or being misinterpreted by a legacy client (instead  
> of just rejected).

That's not a risk, that's the *intent*.  The point is that a prefix like
"http://wss.example/" gives agents that do not know the WSS protocol the
possibility of doing something useful with the URI, by falling back to
the HTTP protocol, whereas if a prefix like "wss:" were used those same
agents would have to reject it entirely.  The "http://wss.example/" URI
still retains its meaning as an http URI, but it gains *additional*
meaning as a WSS URI for those agents that know how to handle the WSS
protocol. 


-- 
David Booth, Ph.D.
Cleveland Clinic (contractor)

Opinions expressed herein are those of the author and do not necessarily
reflect those of Cleveland Clinic.


From david@dbooth.org  Tue Aug 11 20:37:03 2009
Return-Path: <david@dbooth.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 C2C963A6875 for <hybi@core3.amsl.com>; Tue, 11 Aug 2009 20:37:03 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.599
X-Spam-Level: 
X-Spam-Status: No, score=-3.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
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 C+x8OGmtVtPQ for <hybi@core3.amsl.com>; Tue, 11 Aug 2009 20:37:03 -0700 (PDT)
Received: from relay00.pair.com (relay00.pair.com [209.68.5.9]) by core3.amsl.com (Postfix) with SMTP id 603F53A680F for <hybi@ietf.org>; Tue, 11 Aug 2009 20:37:03 -0700 (PDT)
Received: (qmail 28258 invoked from network); 12 Aug 2009 03:27:40 -0000
Received: from 12.91.249.26 (HELO ?12.54.40.220?) (12.91.249.26) by relay00.pair.com with SMTP; 12 Aug 2009 03:27:40 -0000
X-pair-Authenticated: 12.91.249.26
From: David Booth <david@dbooth.org>
To: Maciej Stachowiak <mjs@apple.com>
In-Reply-To: <87FF3009-5686-43ED-9A64-16D41FE27990@apple.com>
References: <Pine.LNX.4.62.0908070531430.28566@hixie.dreamhostps.com> <1249651007.25446.8934.camel@dbooth-laptop> <4A7CD53D.13936.1264B606@dan.tobias.name> <1249869122.20315.388.camel@dbooth-laptop> <4E34F2AF-C737-4A7D-AD9F-07AD177313BA@apple.com> <1250045546.3990.1906.camel@dbooth-laptop> <87FF3009-5686-43ED-9A64-16D41FE27990@apple.com>
Content-Type: text/plain
Date: Tue, 11 Aug 2009 23:27:38 -0400
Message-Id: <1250047659.3990.1971.camel@dbooth-laptop>
Mime-Version: 1.0
X-Mailer: Evolution 2.26.1 
Content-Transfer-Encoding: 7bit
X-Mailman-Approved-At: Fri, 14 Aug 2009 16:46:18 -0700
Cc: "Daniel R. Tobias" <dan@tobias.name>, uri-review@ietf.org, hybi@ietf.org, uri@w3.org
Subject: Re: [hybi] [Uri-review] 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: Wed, 12 Aug 2009 03:37:03 -0000

On Tue, 2009-08-11 at 20:08 -0700, Maciej Stachowiak wrote:
> On Aug 11, 2009, at 7:52 PM, David Booth wrote:
> 
> > On Tue, 2009-08-11 at 17:23 -0700, Maciej Stachowiak wrote:
> >> On Aug 9, 2009, at 6:52 PM, David Booth wrote:
> >>
> >>>
> >>> I can't see that as a significant issue, as there is only a trivial
> >>> difference between dispatching based on the string prefix
> >>> "http://wss.example/" and the string prefix "wss:".  Both are  
> >>> simple,
> >>> constant strings and both are equally "magic": they cause agent to
> >>> attempt the WSS protocol.
> >>
> >> The difference is that "http://wss.example/" already has a meaning,
> >> which is not the intended one. Whereas "wss:" currently has no
> >> meaning. Thus the former has greater risk of either colliding with an
> >> existing resource, or being misinterpreted by a legacy client  
> >> (instead
> >> of just rejected).
> >
> > That's not a risk, that's the *intent*.  The point is that a prefix  
> > like
> > "http://wss.example/" gives agents that do not know the WSS protocol  
> > the
> > possibility of doing something useful with the URI, by falling back to
> > the HTTP protocol, whereas if a prefix like "wss:" were used those  
> > same
> > agents would have to reject it entirely.  The "http://wss.example/"  
> > URI
> > still retains its meaning as an http URI, but it gains *additional*
> > meaning as a WSS URI for those agents that know how to handle the WSS
> > protocol.
> 
> I do not believe it is an advantage for new clients to retroactively  
> reinterpret existing http resources as wss resources. There exist  
> hosts whose name starts with "wss", so this seems inevitable. This  
> seems like a clear disadvantage.

You've misunderstood.  This would not apply to arbitrary hosts whose
name starts with "wss".  Please re-read
http://dbooth.org/2006/urn2http/

> 
> I also do not believe it is an advantage for legacy clients to  
> dereference wss: hosts via http; it hypothetically sounds neat but I  
> cannot think of a use case where it would actually be beneficial. This  
> is not necessarily a disadvantage, but it doesn't seem like much of an  
> advantage either.

Jamie Lokier just gave one:
http://lists.w3.org/Archives/Public/uri/2009Aug/0011.html

> 
> Finally, I do not think hosting a WebSocket service should require  
> having a host set up with "wss" at the start of the name. 

It wouldn't.  You've misunderstood.  Please re-read
http://dbooth.org/2006/urn2http/

> Parties  
> deploying WebSocket services may be in control of their own DNS  
> namespace, so this is an onerous requirement. That seems like a clear  
> disadvantage of your scheme.
> 
> In conclusion, I think your proposal is idiosyncratic, and not a good  
> fit for the WebSocket protocol.



-- 
David Booth, Ph.D.
Cleveland Clinic (contractor)

Opinions expressed herein are those of the author and do not necessarily
reflect those of Cleveland Clinic.


From giecrilj@stegny.2a.pl  Wed Aug 12 03:54:45 2009
Return-Path: <giecrilj@stegny.2a.pl>
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 9E3643A698B; Wed, 12 Aug 2009 03:54:45 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 1.619
X-Spam-Level: *
X-Spam-Status: No, score=1.619 tagged_above=-999 required=5 tests=[AWL=1.133,  BAYES_00=-2.599, HELO_EQ_PL=1.135, HOST_EQ_PL=1.95]
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 hUe3FGBqByw8; Wed, 12 Aug 2009 03:54:44 -0700 (PDT)
Received: from shark.2a.pl (shark.2a.pl [195.117.102.3]) by core3.amsl.com (Postfix) with ESMTP id C0B903A697D; Wed, 12 Aug 2009 03:54:44 -0700 (PDT)
Received: from av.2a.pl (av.2a.pl [195.117.102.9]) by shark.2a.pl (Postfix) with ESMTP id DBEB52A6A8F; Wed, 12 Aug 2009 12:15:20 +0200 (CEST)
X-Virus-Scanned: amavisd-new at 2a.pl
Received: from shark.2a.pl ([195.117.102.3]) by av.2a.pl (av.2a.pl [195.117.102.9]) (amavisd-new, port 10024) with ESMTP id oS4wem62wrL3; Wed, 12 Aug 2009 12:15:14 +0200 (CEST)
Received: from POCZTOWIEC (unknown [10.8.1.26]) by shark.2a.pl (Postfix) with ESMTPA id 863752A6A7F; Wed, 12 Aug 2009 12:15:14 +0200 (CEST)
From: =?us-ascii?Q?Kristof_Zelechovski?= <giecrilj@stegny.2a.pl>
To: "'Jamie Lokier'" <jamie@shareable.org>
References: <Pine.LNX.4.62.0908070531430.28566@hixie.dreamhostps.com> <1249651007.25446.8934.camel@dbooth-laptop> <0B450D619CC0486E8BD51C31FBA214AD@POCZTOWIEC> <20090812021926.GC19298@shareable.org>
Date: Wed, 12 Aug 2009 12:15:09 +0200
Message-ID: <AB9A0CF094F04D39BC7DC5DEAFF7FC1C@POCZTOWIEC>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook 11
thread-index: Acoa+Bpd298f9KJsT0e6BjFbAknfEQAO3IdQ
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
In-Reply-To: <20090812021926.GC19298@shareable.org>
X-Mailman-Approved-At: Fri, 14 Aug 2009 16:46:18 -0700
Cc: uri-review@ietf.org, hybi@ietf.org, uri@w3.org, 'David Booth' <david@dbooth.org>
Subject: Re: [hybi] [Uri-review] 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: Wed, 12 Aug 2009 10:54:45 -0000

 1.  Encouraging the user to enter a Web Sockets URL does not make sense if
cross-domain connections are not allowed, which I hope will be the case (the
draft specification [1] does not contain security considerations).

 2.  While we are at it, a Web Sockets connection is useless without knowing
the protocol, and the protocol to be used is not contained within the URL.
That means a ws URL is not self-contained and thus useless as a stand-alone
locator.

IMHO,
Chris

[1] <URL:http://dev.w3.org/html5/websockets/>

-----Original Message-----
From: Jamie Lokier [mailto:jamie@shareable.org] 
Sent: Wednesday, August 12, 2009 4:19 AM
To: Kristof Zelechovski
Cc: 'David Booth'; 'Ian Hickson'; uri-review@ietf.org; hybi@ietf.org;
uri@w3.org
Subject: Re: [hybi] [Uri-review] ws: and wss: schemes

Kristof Zelechovski wrote:
>  1.  The document "Converting New URI Schemes or URN Sub-Schemes to HTTP"
> [1] specifically addresses the use case where the custom URL is presented
to
> a casual user. 
>

> Since there are no legitimate casual users of the Web
> Sockets protocol that is designed to be used by Web applications only,

I disagree.  ws:// URLs *will* be entered on web forms at some point,
you can count on it.

Someone will write a web form that says something like "Tell me the
address of a FOOCHAT server to begin your FOOCHAT session", expecting
a ws:// URL to be entered if WebSockets is the protocol to be used.

That's a legitimate use.

-- Jamie


From noah_mendelsohn@us.ibm.com  Wed Aug 12 06:55:34 2009
Return-Path: <noah_mendelsohn@us.ibm.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 85A443A6A17 for <hybi@core3.amsl.com>; Wed, 12 Aug 2009 06:55:34 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.399
X-Spam-Level: 
X-Spam-Status: No, score=-5.399 tagged_above=-999 required=5 tests=[AWL=1.200,  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 qVAacwpN3aD5 for <hybi@core3.amsl.com>; Wed, 12 Aug 2009 06:55:33 -0700 (PDT)
Received: from e1.ny.us.ibm.com (e1.ny.us.ibm.com [32.97.182.141]) by core3.amsl.com (Postfix) with ESMTP id 858CA3A67E3 for <hybi@ietf.org>; Wed, 12 Aug 2009 06:55:33 -0700 (PDT)
Received: from d01relay04.pok.ibm.com (d01relay04.pok.ibm.com [9.56.227.236]) by e1.ny.us.ibm.com (8.14.3/8.13.1) with ESMTP id n7CDlhak029453 for <hybi@ietf.org>; Wed, 12 Aug 2009 09:47:43 -0400
Received: from d01av04.pok.ibm.com (d01av04.pok.ibm.com [9.56.224.64]) by d01relay04.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id n7CDllC0221260 for <hybi@ietf.org>; Wed, 12 Aug 2009 09:47:47 -0400
Received: from d01av04.pok.ibm.com (loopback [127.0.0.1]) by d01av04.pok.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id n7CDllGC028638 for <hybi@ietf.org>; Wed, 12 Aug 2009 09:47:47 -0400
Received: from internet1.lotus.com ([9.32.140.212]) by d01av04.pok.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id n7CDll6N028605 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Wed, 12 Aug 2009 09:47:47 -0400
Received: from wtfmail05a.lotus.com (WTFMAIL05A.lotus.com [9.32.140.24]) by internet1.lotus.com (8.14.2/8.14.1) with ESMTP id n7CDlkd12191392; Wed, 12 Aug 2009 08:47:46 -0500
In-Reply-To: <87FF3009-5686-43ED-9A64-16D41FE27990@apple.com>
To: Maciej Stachowiak <mjs@apple.com>
MIME-Version: 1.0
X-KeepSent: 22CD1320:96C55266-85257610:004AB599; type=4; name=$KeepSent
X-Mailer: Lotus Notes Release 7.0.2 September 26, 2006
Message-ID: <OF22CD1320.96C55266-ON85257610.004AB599-85257610.004BC9CA@lotus.com>
From: noah_mendelsohn@us.ibm.com
Date: Wed, 12 Aug 2009 09:47:46 -0400
X-MIMETrack: Serialize by Router on WTFMAIL05a/WTF/M/Lotus(Release 8.5|December 05, 2008) at 08/12/2009 09:47:46 AM, Serialize complete at 08/12/2009 09:47:46 AM
Content-Type: text/plain; charset="US-ASCII"
X-Mailman-Approved-At: Fri, 14 Aug 2009 16:46:18 -0700
Cc: "Daniel R. Tobias" <dan@tobias.name>, uri@w3.org, hybi@ietf.org, David Booth <david@dbooth.org>
Subject: Re: [hybi] [Uri-review] 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: Wed, 12 Aug 2009 14:17:53 -0000

Maciej Stachowiak writes:

> I also do not believe it is an advantage for legacy clients to 
> dereference wss: hosts via http; it hypothetically sounds neat but I 
> cannot think of a use case where it would actually be beneficial. This 
> is not necessarily a disadvantage, but it doesn't seem like much of an 
> advantage either.

So, here's an example.  First, let's make the assumption that there is an 
HTTP server at port 80  at "http://wss.example/", presumably run by an 
organization that supports the use of wss.   Assuming that the normal path 
through the Web sockets client apis does not access this, the HTTP server 
will be used only by legacy clients.

Where's the value?  Let's assume that a link to a WS resource winds up in 
a page somewhere for some reason.  It could be a bug report, whatever. Now 
a search engine crawler stumbles on the bug report page.  If we use the 
wss: scheme, then either the crawler has special knowledge of WS, or 
nothing much useful happens.  If we use "http://wss.example/..... then the 
crawler sends a GET to that.  Choose your favorite metadata access 
mechanism (perhaps [1], maybe RDFa, whatever), and the crawler has the 
opportunity to discover "ah, this is a WS resource", or at least to learn 
some things about it.  To some extent that's true with either approach 
(the crawler at least knows it's got a link in a scheme that's not 
understood with wss:), but the opportunities for incremental discovery 
seem to be significantly greater with HTTP.

As Dave Orchard points out, these issues were debated in great detail with 
XRI came up for consideration at Oasis, and I think it's fair to say that 
the starting position of those proposing xri was initially at least as 
firm as that of advocates of wss.  I think Dave is right that at least 
many of those same people came to believe that an http-based approach was 
in fact either better, or at least a reasonable compromise.  You might 
want to check with them.

Noah

[1] http://tools.ietf.org/html/draft-hammer-discovery-02
[2] http://lists.w3.org/Archives/Public/uri/2009Aug/0027.html

--------------------------------------
Noah Mendelsohn 
IBM Corporation
One Rogers Street
Cambridge, MA 02142
1-617-693-4036
--------------------------------------





From mail@tobyinkster.co.uk  Fri Aug 14 08:12:33 2009
Return-Path: <mail@tobyinkster.co.uk>
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 3DB603A6A96; Fri, 14 Aug 2009 08:12:33 -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 49IG6HRITqFQ; Fri, 14 Aug 2009 08:12:32 -0700 (PDT)
Received: from ophelia.g5n.co.uk (ophelia.g5n.co.uk [81.2.120.180]) by core3.amsl.com (Postfix) with ESMTP id 154D53A6860; Fri, 14 Aug 2009 08:12:31 -0700 (PDT)
Received: by ophelia.g5n.co.uk (Postfix, from userid 500) id 3B801B9801; Fri, 14 Aug 2009 16:12:35 +0100 (BST)
From: Toby Inkster <mail@tobyinkster.co.uk>
To: Ian Hickson <ian@hixie.ch>
In-Reply-To: <Pine.LNX.4.62.0908141047050.28566@hixie.dreamhostps.com>
References: <Pine.LNX.4.62.0908141047050.28566@hixie.dreamhostps.com>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Date: Fri, 14 Aug 2009 16:12:34 +0100
Message-Id: <1250262754.4698.91.camel@ophelia2.g5n.co.uk>
Mime-Version: 1.0
X-Mailer: Evolution 2.22.3.1-1.1mdv2008.1 
X-Mailman-Approved-At: Fri, 14 Aug 2009 16:46:18 -0700
Cc: uri-review@ietf.org, hybi@ietf.org
Subject: Re: [hybi] [Uri-review] 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: Fri, 14 Aug 2009 15:12:33 -0000

On Fri, 2009-08-14 at 10:47 +0000, Ian Hickson wrote:
> I don't understand how one would reuse the http: scheme in this way in
> order to connect to 'example.com' as both an HTTP server and a Web
> Socket server.

The idea is not necessarily to reuse the HTTP protocol - just the URI
scheme. How to do this is pretty easy and would require very few changes
to the web sockets API.

1. You, Ian Hickson, in your role as editor of the API spec. (Or a
person or organisation nominated by you) would register a domain or
subdomain such as websockets.net or sockets.w3.org. For the rest of this
message, I'll assume websockets.net.

2. In part 4 of the draft, point #1 which starts "Parse a Web Socket
URL's components..." describe an algorithm of how to parse a WebSocket
URL like this (square brackets are used to indicate variables):

	i) A web socket is parsed as a standard HTTP/HTTPS URL
	  obtaining [protocol], [host], [port] and [path].
	ii) If [host] is not websockets.net, throw SYNTAX_ERR.
	iii) If [port] is blank and [protocol] is "http" then
	  set [port] to 81.
	iv) If [port] is blank and [protocol] is "https" then
	  set [port] to 815.
	v) Match [path] against the following regular expression:
	  ^\/([^\/]+)(/.*)?$
	  Throw =EF=BB=BFSYNTAX_ERR if the expression is not matched.
	  Set [host] to the first matched subexpression.
	  Set [path] to the second matched subexpression.
	vi) Set [secure] to true if [protocol] is "http".
	  Set [secure] to false if [protocol] is "https".
	  =EF=BB=BFThrow =EF=BB=BFSYNTAX_ERR if neither of the above.
=09
The above procedure will always end up with four variables:

	* [host] representing the host the API should connect to
	* [port] representing the port the API should connect to
	* [path] representing the Web Socket resource name
	* [secure] indicating whether the Socket should be tunnelled
	  over TLS.

or will throw SYNTAX_ERR.

3. ???

4. Profit.

--=20
Toby A Inkster
<mailto:mail@tobyinkster.co.uk>
<http://tobyinkster.co.uk>

From giecrilj@stegny.2a.pl  Fri Aug 14 16:50:04 2009
Return-Path: <giecrilj@stegny.2a.pl>
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 F38B43A6884; Fri, 14 Aug 2009 16:50:03 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 1.58
X-Spam-Level: *
X-Spam-Status: No, score=1.58 tagged_above=-999 required=5 tests=[AWL=0.794, BAYES_00=-2.599, HELO_EQ_PL=1.135, HOST_EQ_PL=1.95, 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 S0oxy6GiTGwg; Fri, 14 Aug 2009 16:50:03 -0700 (PDT)
Received: from shark.2a.pl (shark.2a.pl [195.117.102.3]) by core3.amsl.com (Postfix) with ESMTP id 1D9293A6765; Fri, 14 Aug 2009 16:50:02 -0700 (PDT)
Received: from av.2a.pl (av.2a.pl [195.117.102.9]) by shark.2a.pl (Postfix) with ESMTP id 2405A2A6C64; Sat, 15 Aug 2009 01:50:06 +0200 (CEST)
X-Virus-Scanned: amavisd-new at 2a.pl
Received: from shark.2a.pl ([195.117.102.3]) by av.2a.pl (av.2a.pl [195.117.102.9]) (amavisd-new, port 10024) with ESMTP id XxwtlozLupvG; Sat, 15 Aug 2009 01:49:59 +0200 (CEST)
Received: from POCZTOWIEC (unknown [10.8.1.26]) by shark.2a.pl (Postfix) with ESMTPA id B2F1A2A6BEA; Sat, 15 Aug 2009 01:49:59 +0200 (CEST)
From: =?iso-8859-2?Q?K=F8i=B9tof_=AEelechovski?= <giecrilj@stegny.2a.pl>
To: "'Jamie Lokier'" <jamie@shareable.org>
References: <Pine.LNX.4.62.0908070531430.28566@hixie.dreamhostps.com> <1249651007.25446.8934.camel@dbooth-laptop> <0B450D619CC0486E8BD51C31FBA214AD@POCZTOWIEC> <20090812021926.GC19298@shareable.org> <AB9A0CF094F04D39BC7DC5DEAFF7FC1C@POCZTOWIEC> <20090814213754.GD12021@shareable.org>
Date: Sat, 15 Aug 2009 01:50:01 +0200
Message-ID: <4A34F11EEE154334888DC41B426E6979@POCZTOWIEC>
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <20090814213754.GD12021@shareable.org>
thread-index: AcodJ4QPXpKWqJt9T3mD7WXZMT9bRgAEX3Cg
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
Cc: uri-review@ietf.org, hybi@ietf.org, uri@w3.org, 'David Booth' <david@dbooth.org>
Subject: Re: [hybi] [Uri-review] 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: Fri, 14 Aug 2009 23:50:04 -0000

 1.  Maybe it is just me but I cannot see how breaking with undefined
behavior could be obviously useful.  Undefined behavior might as well =
amount
to accidentally starting WW=A0III.
 2.  If we do not want spiders to connect to Web sockets, it seems using =
a
special URL scheme is a way to prevent this, and therefore it would be
desirable.
Chris

-----Original Message-----
From: Jamie Lokier [mailto:jamie@shareable.org]=20
Sent: Friday, August 14, 2009 11:38 PM
To: Kristof Zelechovski
Cc: 'David Booth'; 'Ian Hickson'; uri-review@ietf.org; hybi@ietf.org;
uri@w3.org
Subject: Re: [hybi] [Uri-review] ws: and wss: schemes

>  2.  While we are at it, a Web Sockets connection is useless without
knowing
> the protocol, and the protocol to be used is not contained within the =
URL.
> That means a ws URL is not self-contained and thus useless as a
stand-alone
> locator.

The same is true of HTTP.

A HTTP URL does not tell you the type of resource, only where to find
_a_ resource.  For example there are places where a user can enter the
URL of a CalDAV calendar resource.  The CalDAV protocol is used (over
HTTP) to work with that resource, but the URL doesn't say what it is.

The only difference with WebSockets is that it (so far) seems to avoid
any descriptive metadata, which means there will still be applications
which ask for a WebSockets URL, but when the URL is for a different
protocol on top, it'll simply break with undefined behaviour instead
of a clean error message or fallback behaviour.

It doesn't matter if you think nobody should do that.  It will still
be done anyway - because it's so obviously useful.

-- Jamie


From ian@hixie.ch  Sun Aug 16 02:17:48 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 595D83A6767 for <hybi@core3.amsl.com>; Sun, 16 Aug 2009 02:17:48 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.955
X-Spam-Level: 
X-Spam-Status: No, score=-2.955 tagged_above=-999 required=5 tests=[AWL=-0.956, BAYES_00=-2.599, J_CHICKENPOX_53=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 nOXjiKN-RKw8 for <hybi@core3.amsl.com>; Sun, 16 Aug 2009 02:17:47 -0700 (PDT)
Received: from looneymail-a1.g.dreamhost.com (caibbdcaaaaf.dreamhost.com [208.113.200.5]) by core3.amsl.com (Postfix) with ESMTP id 12E3D3A692F for <hybi@ietf.org>; Sun, 16 Aug 2009 02:17: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 8F7A515D78F; Sun, 16 Aug 2009 02:17:51 -0700 (PDT)
Date: Sun, 16 Aug 2009 09:17:50 +0000 (UTC)
From: Ian Hickson <ian@hixie.ch>
To: Mark Nottingham <mnot@mnot.net>, Jamie Lokier <jamie@shareable.org>
In-Reply-To: <20090812125653.GA1235@shareable.org>
Message-ID: <Pine.LNX.4.62.0908160629230.6420@hixie.dreamhostps.com>
References: <507F3682-5AAF-4AC0-88F6-10A31B12380D@mnot.net> <Pine.LNX.4.62.0907292309330.3189@hixie.dreamhostps.com> <20090812125653.GA1235@shareable.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-22
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, 16 Aug 2009 09:17:48 -0000

On Wed, 12 Aug 2009, Mark Nottingham wrote:
> > > 
> > > * 1.1 Security model: you frame the model in terms of browsers and 
> > > Web pages. I think Websockets is potentially applicable to any 
> > > restricted execution environment, not just Web pages.
> > 
> > It would have to be an execution environment that uses an Origin-based 
> > security model. I'm not aware of any other such mechanisms. Could you 
> > elaborate on what you would like the spec to say here?
> 
> s/(not from a Web page)/(not from a Web page or other environment with 
> an Origin-based security model)/

Like what?


> > > * 3.1 Handshake: host, port, origin and resource name all need 
> > > definitions/references. Without them, it's difficult to tell what 
> > > the allowable ranges are; e.g., can a host contain non-ASCII 
> > > characters?
> > 
> > There's no allowable ranges -- this is just defining the protocol side 
> > of the API spec, which invokes this algorithm. These are just 
> > "parameters" or "variables", they aren't expected to be arbitrarily 
> > invoked.
> 
> I don't know if I buy that. You already define /host/ and /origin/ as 
> strings (because they're lowercased), and they're used as input into 
> protocol paramaters which do have concrete and well-defined ranges.

I've tweaked the algorithm so that the inputs are unrestricted within the 
realm of valid values given the types that they represent (host, port, 
etc), except that resource name must start with a "/", which I've 
mentioned explicitly. Let me know if you would like it tweaked further.


> > I suppose I could add a separate section on "how to use this 
> > specification from another specification", where I define what the 
> > expected ways that the algorithms in this spec are to be invoked are. 
> > Would that help?
> 
> Regardless of the issue above, I think that would be helpful.

Done.


> > * 3.1 Handshake, step 2: Can you speak to why this is limited to a 
> > > host, and not (host, port)?
> > 
> > Aren't system resources usually limited on a per-host basis, not 
> > per-port? I can make it port-limited if you think that's the better 
> > thing for DOS protection. I'm not an expert on this topic, by any 
> > means.
> 
> When there are load balancers, firewalls and other types of 
> intermediaries present, it's per-port. A "host" is often an artificial 
> construct.

Sure, but if we make it {host,port}, then _only_ load-balanced sites are 
protected, and normal sites are vulnerable to people just port-spamming 
them. Surely that's a more serious problem anyway, since the load-balanced 
sites are more likely to be protected against DOS attacks?

In any case, if we protect against just per-host attacks, that also 
protects the load-balanced sites, no?


> > > * 3.1 Handshake, step 3: Another thing to consider here is how 
> > > WebSockets should be accommodated in proxy.pac; it's commonly used. 
> > > E.g., define a new proxy type WEBSOCKETS in proxy.pac, and define a 
> > > fallback to SOCKS then HTTPS then HTTP if it's not present.
> > 
> > Good point. What's the spec for proxy.pac? I should probably just 
> > update that directly.
> 
> Unfortunately, it's not standardised, or even well-defined.
> 
> The original spec is:
>  http://web.archive.org/web/20060424005037/wp.netscape.com/eng/mozilla/2.0/relnotes/demo/proxy-live.html
> 
> Thinking about it, I *believe* it should be possible to handle 
> websockets without changing the format, however; assuming that it has a 
> new URL scheme, the url passed to FindProxyForURL should contain enough 
> information, and the DIRECT, PROXY and SOCKS return values should do the 
> trick (keeping in mind that PROXY indicates an HTTP proxy).
> 
> Of course, this will require changes both in the UA and in proxy.pac 
> scripts, but not in the proxy.pac format itself.

I've added text about handling proxy autoconfiguration scripts.


> On a related note, if I read text in the 3.1 step 3 correctly:
>
> > If the user agent is configured to use a proxy when using the Web 
> > Socket protocol to connec
>
> this implies that UAs will eventually have a separate "websocket" 
> configuration type for manual proxy config, no?

It handles the case where they do. Whether they do or not is up to them.



> > * Finally, AIUI the important features that WebSockets adds (Origin,
> > > assuring that other protocols aren't simulated, etc.) all happen 
> > > during the handshake. As such, I wonder why this specification isn't 
> > > just the handshake, falling back to a normal (possibly tunneled) 
> > > TCP/IP connection once the handshake has completed; it would be a 
> > > lot less new things to understand and vet, and less constraining as 
> > > well.
> > 
> > The framining is present so that we can expose this as an event-based 
> > protocol instead of a streaming-based protocol in the API. It would be 
> > a pain to require authors to have to implement buffering and piecing 
> > together of messages when we can just do it with trivial framing at 
> > the API level.
> 
> It may be worth mentioning this in the introduction; it's likely to come 
> up again.

I've added a paragrah in the last intro section.



> One more thing; you currently specify that the host header is sent with 
> just the /host/ value. HTTP requires that if the port is not the default 
> for the given protocol, it needs to be part of the Host header as well.

Fixed.

(Why does HTTP require that? Can't the server easily determine what port 
was in fact used? What happens if the port sent in the Host: doesn't match 
the actual port used?)


On Wed, 12 Aug 2009, Jamie Lokier wrote:
> Ian Hickson wrote:
> > > * 1.1 Security model: you frame the model in terms of browsers and 
> > > Web pages. I think Websockets is potentially applicable to any 
> > > restricted execution environment, not just Web pages.
> > 
> > It would have to be an execution environment that uses an Origin-based 
> > security model. I'm not aware of any other such mechanisms. Could you 
> > elaborate on what you would like the spec to say here?
> 
> On that note, is the Origin model used for WebSockets the same as that 
> in Cross-Origin Resource Sharing, http://www.w3.org/TR/cors/ ?

Assuming you mean this one:

   http://dev.w3.org/2006/waf/access-control/

Then no, not quite.


> If they are basically the same, shouldn't WebSockets be using the same 
> pre-flight check mechanism

No, CORS is far more complicated than is needed here.


> instead of the verbatim byte sequence which looked (to me) rather 
> fragile?

Could you elaborate on why it would be fragile?

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

From jamie@shareable.org  Sun Aug 16 10:17:09 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 A92913A698A for <hybi@core3.amsl.com>; Sun, 16 Aug 2009 10:17:09 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.325
X-Spam-Level: 
X-Spam-Status: No, score=-4.325 tagged_above=-999 required=5 tests=[AWL=-1.727, BAYES_00=-2.599, WEIRD_PORT=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 t6bf25NTyWNs for <hybi@core3.amsl.com>; Sun, 16 Aug 2009 10:17:08 -0700 (PDT)
Received: from mail2.shareable.org (mail2.shareable.org [80.68.89.115]) by core3.amsl.com (Postfix) with ESMTP id C20A528C0CF for <hybi@ietf.org>; Sun, 16 Aug 2009 10:17:08 -0700 (PDT)
Received: from jamie by mail2.shareable.org with local (Exim 4.63) (envelope-from <jamie@shareable.org>) id 1McjLs-0007EI-4a; Sun, 16 Aug 2009 18:17:04 +0100
Date: Sun, 16 Aug 2009 18:17:04 +0100
From: Jamie Lokier <jamie@shareable.org>
To: Ian Hickson <ian@hixie.ch>
Message-ID: <20090816171704.GB27122@shareable.org>
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>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <Pine.LNX.4.62.0908160629230.6420@hixie.dreamhostps.com>
User-Agent: Mutt/1.5.13 (2006-08-11)
Cc: hybi@ietf.org
Subject: Re: [hybi] Feedback on thewebsocketprotocol-22
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, 16 Aug 2009 17:17:09 -0000

Ian Hickson wrote:
> > One more thing; you currently specify that the host header is sent with 
> > just the /host/ value. HTTP requires that if the port is not the default 
> > for the given protocol, it needs to be part of the Host header as well.
> 
> Fixed.
> 
> (Why does HTTP require that? Can't the server easily determine what port 
> was in fact used?

The port may have been forwarded to a different port by a router doing
port rewriting, just as it can do address rewriting.

> What happens if the port sent in the Host: doesn't match 
> the actual port used?)

The Host: indicates the client's point of view.  It's up to the server
to decide if it has resources at http://foobar.example.com:12345/ and
if it would accept a request on an IP address or port number which is
different at the server.

> > On that note, is the Origin model used for WebSockets the same as that 
> > in Cross-Origin Resource Sharing, http://www.w3.org/TR/cors/ ?
> 
> Assuming you mean this one:
> 
>    http://dev.w3.org/2006/waf/access-control/
> 
> Then no, not quite.

What are the logical differences?

> > If they are basically the same, shouldn't WebSockets be using the same 
> > pre-flight check mechanism
> 
> No, CORS is far more complicated than is needed here.

If you discard all the stuff about request methods (GET/POST) and
requests which don't need a pre-flight check:

The pre-flight check asks a server "do you support this new type of
request I'd like to do - I won't do it if you don't recognise my question".

That strikes me as a good way to check for WebSockets functionality, too.

Even though you wouldn't use CORS, the method of doing the pre-flight
check (and caching the result) could be much the same.
 
> > instead of the verbatim byte sequence which looked (to me) rather 
> > fragile?
> 
> Could you elaborate on why it would be fragile?

Unavoidable proxies can modify it, even in trivial ways like
reordering headers or altering the HTTP version number, as well as
adding Via (though not all do that).

- Intercepting proxies are used by many large ISPs and
  instutitional/corporate locations.  These intercept requests on port
  80, so cannot be avoided except by using another port.  They are
  mostly invisible to HTTP traffic except that they add caching.  Some
  of them will modify the verbatim byte sequence.

- At some places alternative ports are blocked, so you must go through
  the intercepting proxy on port 80.

- Explicit proxies are also used in lots of places, especially where
  client configurations are controlled centrally, and again, sometimes
  there is no other way to reach the public internet so you have to
  use the proxy.

It's quite clear that when going through such a proxy, it's unlikely
that the WebSockets protocol would work.  However it seems a poor
match to use this as a method of detecting that, because sometimes it
would pass the request unchanged.

-- Jamie

From jamie@shareable.org  Sun Aug 16 10:49:25 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 29AC63A6915; Sun, 16 Aug 2009 10:49:25 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.104
X-Spam-Level: 
X-Spam-Status: No, score=-4.104 tagged_above=-999 required=5 tests=[AWL=-1.805, 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 V0MkY2gxeAXp; Sun, 16 Aug 2009 10:49:24 -0700 (PDT)
Received: from mail2.shareable.org (mail2.shareable.org [80.68.89.115]) by core3.amsl.com (Postfix) with ESMTP id F27313A6B66; Sun, 16 Aug 2009 10:49:20 -0700 (PDT)
Received: from jamie by mail2.shareable.org with local (Exim 4.63) (envelope-from <jamie@shareable.org>) id 1Mcjr4-0007ML-SS; Sun, 16 Aug 2009 18:49:18 +0100
Date: Sun, 16 Aug 2009 18:49:18 +0100
From: Jamie Lokier <jamie@shareable.org>
To: =?utf-8?B?S8WZacWhdG9mIMW9ZWxlY2hvdnNraQ==?= <giecrilj@stegny.2a.pl>
Message-ID: <20090816174918.GC27122@shareable.org>
References: <Pine.LNX.4.62.0908070531430.28566@hixie.dreamhostps.com> <1249651007.25446.8934.camel@dbooth-laptop> <0B450D619CC0486E8BD51C31FBA214AD@POCZTOWIEC> <20090812021926.GC19298@shareable.org> <AB9A0CF094F04D39BC7DC5DEAFF7FC1C@POCZTOWIEC> <20090814213754.GD12021@shareable.org> <4A34F11EEE154334888DC41B426E6979@POCZTOWIEC>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <4A34F11EEE154334888DC41B426E6979@POCZTOWIEC>
User-Agent: Mutt/1.5.13 (2006-08-11)
Cc: uri-review@ietf.org, hybi@ietf.org, uri@w3.org, 'David Booth' <david@dbooth.org>
Subject: Re: [hybi] [Uri-review] 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: Sun, 16 Aug 2009 17:49:25 -0000

>Jamie Lokier wrote:
>> A HTTP URL does not tell you the type of resource, only where to find
>> _a_ resource.  For example there are places where a user can enter the
>> URL of a CalDAV calendar resource.  The CalDAV protocol is used (over
>> HTTP) to work with that resource, but the URL doesn't say what it is.
>> 
>> The only difference with WebSockets is that it (so far) seems to avoid
>> any descriptive metadata, which means there will still be applications
>> which ask for a WebSockets URL, but when the URL is for a different
>> protocol on top, it'll simply break with undefined behaviour instead
>> of a clean error message or fallback behaviour.
>> 
>> It doesn't matter if you think nobody should do that.  It will still
>> be done anyway - because it's so obviously useful.

Křištof Želechovski wrote:
>  1.  Maybe it is just me but I cannot see how breaking with undefined
> behavior could be obviously useful.  Undefined behavior might as well amount
> to accidentally starting WW III.

You misunderstood; sorry I must have been unclear.

*Breaking with undefined behaviour* is not useful.

Being able to connect to user-specific resources is very useful, even
if there is no way to be sure the resource is using the right
protocol, other than simply trying it.

Think about it:

   - Every GUI email application lets you say which server and port to
     use for POP3, IMAP and SMTP.
   - Every blog and picture posting application lets you say which URL
     to use for posting, even letting you use non-standard ports.
   - Every WebDAV remote file manager lets you say which HTTP URL to
     connect to for WebDAV service.
   - Every CalDAV calender application lets you say which HTTP URL to
     connect to for calender service.

Always, the user can enter bogus information and undefined behaviour
follows.  But the ability for the user to enter it is what makes those
applications useful; that benefit far outweighs the problems.

We like to avoid undefined behaviour if possible, so it's _better_ to
have protocols with some basic, de facto standardised self-checking
before proceeding with something dangerous.  HTTP is good at this when
methods or unusual headers are used for checking, and bad at this when
the protocol consists of just GET or POST.

WebSockets philosophy seems to be to check for WebSockets itself, but
then avoid the problem at the next level, passing it on to the
application to do an initial handshake, which has the same problems as
raw TCP in that there is no _standard_ negotiation handshake.

You can be absolutely sure that as soon as there are useful web
applications using WebSocket, there will be non-browser clients using
the same protocols and the servers won't even know.

For example, imagine a real-time web-based map which shows movement of
vehicles on a map, using WebSockets to get real-time movement updates.

It won't be long before an unrelated third party writes a non-browser
app which queries the server to get the same information, and that
non-browser app will have to implement the same WebSockets
protocol.

>  2.  If we do not want spiders to connect to Web sockets, it seems using a
> special URL scheme is a way to prevent this, and therefore it would be
> desirable.

1. If HTTP URLs are used, spiders will do HTTP GET requests which won't
   be a problem - a WebSockets-only service will just reject the request.

2. robots.txt.

3. It will add some load.  It shouldn't be a lot of load, because
   WebSockets-only URLs would tend to appear in Javascript, where most
   spiders would tend not to follow them.  But remember that some
   spiders are unfriendly.

So I think that's not a strong argument either for or against a
different URL scheme.

-- Jamie

From mnot@mnot.net  Sun Aug 16 21:03:23 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 007443A6A94 for <hybi@core3.amsl.com>; Sun, 16 Aug 2009 21:03:23 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.065
X-Spam-Level: 
X-Spam-Status: No, score=-5.065 tagged_above=-999 required=5 tests=[AWL=-2.466, 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 5Sf5ILj4APHv for <hybi@core3.amsl.com>; Sun, 16 Aug 2009 21:03:22 -0700 (PDT)
Received: from mxout-07.mxes.net (mxout-07.mxes.net [216.86.168.182]) by core3.amsl.com (Postfix) with ESMTP id 12C133A6A66 for <hybi@ietf.org>; Sun, 16 Aug 2009 21:03:21 -0700 (PDT)
Received: from [192.168.1.6] (unknown [118.208.160.18]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 83FC222E253; Mon, 17 Aug 2009 00:03:17 -0400 (EDT)
Message-Id: <917A44F7-1403-430A-88D4-83225376D456@mnot.net>
From: Mark Nottingham <mnot@mnot.net>
To: Ian Hickson <ian@hixie.ch>
In-Reply-To: <Pine.LNX.4.62.0908160629230.6420@hixie.dreamhostps.com>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes
Content-Transfer-Encoding: 7bit
Mime-Version: 1.0 (Apple Message framework v936)
Date: Mon, 17 Aug 2009 14:03:14 +1000
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>
X-Mailer: Apple Mail (2.936)
Cc: hybi@ietf.org
Subject: Re: [hybi] Feedback on thewebsocketprotocol-22
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, 17 Aug 2009 04:03:23 -0000

On 16/08/2009, at 7:17 PM, Ian Hickson wrote:
>>
>> s/(not from a Web page)/(not from a Web page or other environment  
>> with
>> an Origin-based security model)/
>
> Like what?

One that doesn't exist yet...


>>> * 3.1 Handshake, step 2: Can you speak to why this is limited to a
>>>> host, and not (host, port)?
>>>
>>> Aren't system resources usually limited on a per-host basis, not
>>> per-port? I can make it port-limited if you think that's the better
>>> thing for DOS protection. I'm not an expert on this topic, by any
>>> means.
>>
>> When there are load balancers, firewalls and other types of
>> intermediaries present, it's per-port. A "host" is often an  
>> artificial
>> construct.
>
> Sure, but if we make it {host,port}, then _only_ load-balanced sites  
> are
> protected, and normal sites are vulnerable to people just port- 
> spamming
> them. Surely that's a more serious problem anyway, since the load- 
> balanced
> sites are more likely to be protected against DOS attacks?
>
> In any case, if we protect against just per-host attacks, that also
> protects the load-balanced sites, no?

I suppose my objection here is largely that most similar mechanisms in  
the network world operate at a port level... I'm not strongly against  
doing it at the host level, but it just seemed odd. Anyone else have  
this feeling?


--
Mark Nottingham     http://www.mnot.net/


From gregw@webtide.com  Sun Aug 16 21:46: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 B56693A6881 for <hybi@core3.amsl.com>; Sun, 16 Aug 2009 21:46:21 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.976
X-Spam-Level: 
X-Spam-Status: No, score=-0.976 tagged_above=-999 required=5 tests=[AWL=-0.791, 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 Cf1kvZ30e-IT for <hybi@core3.amsl.com>; Sun, 16 Aug 2009 21:46:21 -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 F2C2F3A697F for <hybi@ietf.org>; Sun, 16 Aug 2009 21:46:20 -0700 (PDT)
Received: by pxi1 with SMTP id 1so1217440pxi.31 for <hybi@ietf.org>; Sun, 16 Aug 2009 21:46:23 -0700 (PDT)
Received: by 10.141.51.2 with SMTP id d2mr909794rvk.222.1250484383468; Sun, 16 Aug 2009 21:46:23 -0700 (PDT)
Received: from ?10.10.1.11? (60-242-119-126.tpgi.com.au [60.242.119.126]) by mx.google.com with ESMTPS id b39sm18065603rvf.10.2009.08.16.21.46.21 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 16 Aug 2009 21:46:22 -0700 (PDT)
Message-ID: <4A88E094.2080805@webtide.com>
Date: Mon, 17 Aug 2009 14:46:12 +1000
From: Greg Wilkins <gregw@webtide.com>
User-Agent: Thunderbird 2.0.0.22 (X11/20090608)
MIME-Version: 1.0
To: Kris Zyp <kris@sitepen.com>
References: <4A84819B.1040500@sitepen.com>
In-Reply-To: <4A84819B.1040500@sitepen.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: hybi@ietf.org
Subject: Re: [hybi] Intermediaries
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, 17 Aug 2009 04:46:21 -0000

Kris,

+1 on supporting intermediaries.

I think it is important to at least allow intermediaries to cleanly
close connections without routine loss of messages and retry+idempotency
complications.

Multiplexing support is also key if intermediaries are going to
be capable of doing much intelligent stuff.

More in-line....


Kris Zyp wrote:
> * Subscription mechanisms defined in the protocol

I can't believe that I'm about to type this.... because I
really like subscription mechanisms....   With cometd/bayeux,
I think one of the biggest sources of confusion has been that
subscription is built into the protocol, so that while non-subscription
delivery is supported, people just don't get it and those that
don't want subscription are very anti the bayeux protocol.

So I would say approach subscription with caution... and
potentially specify it as a layer on top of the base protocol.

As you say, multicast is a big win for the subscription model
( as used Oort Cometd cloud).



> * HTTP cache updating 

Neat idea.   I also think that the bidirectional protocol
should be able to carry regular HTTP request/responses as
well.    It would be strange if you had a fully capable
bidirectional connection, but had to crack open another
TCP/IP connection just to get favicon.ico


You could almost consider that caching mechanism an
extension of the subscription mechanism.  If you
subscribed to favicon.ico you would be sent that
resource again whenever it updated.


cheers


From salvatore.loreto@ericsson.com  Mon Aug 17 14:39: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 365563A688D for <hybi@core3.amsl.com>; Mon, 17 Aug 2009 14:39:53 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.391
X-Spam-Level: 
X-Spam-Status: No, score=-5.391 tagged_above=-999 required=5 tests=[AWL=0.858,  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 FTVPe5drtP5s for <hybi@core3.amsl.com>; Mon, 17 Aug 2009 14:39:52 -0700 (PDT)
Received: from mailgw3.ericsson.se (mailgw3.ericsson.se [193.180.251.60]) by core3.amsl.com (Postfix) with ESMTP id D5B7128C1D5 for <hybi@ietf.org>; Mon, 17 Aug 2009 14:39:18 -0700 (PDT)
X-AuditID: c1b4fb3c-b7c01ae000002aae-49-4a89cdfbe682
Received: from esealmw127.eemea.ericsson.se (Unknown_Domain [153.88.253.125]) by mailgw3.ericsson.se (Symantec Mail Security) with SMTP id 2C.6C.10926.BFDC98A4; Mon, 17 Aug 2009 23:39:07 +0200 (CEST)
Received: from esealmw129.eemea.ericsson.se ([153.88.254.177]) by esealmw127.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.3959);  Mon, 17 Aug 2009 23:39:07 +0200
Received: from mail.lmf.ericsson.se ([131.160.11.50]) by esealmw129.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.3959);  Mon, 17 Aug 2009 23:39:07 +0200
Received: from nomadiclab.lmf.ericsson.se (nomadiclab.lmf.ericsson.se [131.160.33.3]) by mail.lmf.ericsson.se (Postfix) with ESMTP id 2F164249B for <hybi@ietf.org>; Tue, 18 Aug 2009 00:39:07 +0300 (EEST)
Received: from nomadiclab.lmf.ericsson.se (localhost [127.0.0.1]) by nomadiclab.lmf.ericsson.se (Postfix) with ESMTP id E3E0E21A0F for <hybi@ietf.org>; Tue, 18 Aug 2009 00:39:06 +0300 (EEST)
Received: from localhost.localdomain (localhost [127.0.0.1]) by nomadiclab.lmf.ericsson.se (Postfix) with ESMTP id 9D1ED219CB for <hybi@ietf.org>; Tue, 18 Aug 2009 00:39:03 +0300 (EEST)
Message-ID: <4A89CDF6.3020502@ericsson.com>
Date: Tue, 18 Aug 2009 00:39:02 +0300
From: Salvatore Loreto <salvatore.loreto@ericsson.com>
User-Agent: Thunderbird 2.0.0.21 (X11/20090320)
MIME-Version: 1.0
To: 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: 17 Aug 2009 21:39:07.0369 (UTC) FILETIME=[2616DD90:01CA1F83]
X-Brightmail-Tracker: AAAAAA==
Subject: [hybi] FYI: [Fwd: Earlier deadline for BOFs in 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: Mon, 17 Aug 2009 21:39:53 -0000

-------- Original Message --------
Subject: 	Earlier deadline for BOFs in Hiroshima
Date: 	Mon, 17 Aug 2009 21:46:11 +0100
From: 	Alexey Melnikov <alexey.melnikov@isode.com>
To: 	apps-discuss@ietf.org



Based on discussions between IESG and AMS about improving BOF/WG 
scheduling, there would be an earlier deadline for BOF requests:

* September 7, Monday - Cutoff date for requests to Area Directors to 
schedule BOFs at 17:00 PT (21:00 UTC/GMT).  To request a BOF, please see 
instructions on Requesting a BOF. [9 weeks prior]

* September 14, Monday - Cutoff date for requests to schedule Working 
Group meetings and for preliminary BOF proposals to ADs at 17:00 PT 
(21:00 UTC/GMT). To request a Working Group session, use the IETF 
Meeting Session Request Tool [8 weeks prior]


So please let Lisa and myself know if you want to have a BOF in 
Hiroshima as soon as possible.

_______________________________________________
Apps-Discuss mailing list
Apps-Discuss@ietf.org
https://www.ietf.org/mailman/listinfo/apps-discuss


From L.Wood@surrey.ac.uk  Tue Aug 18 02:57:56 2009
Return-Path: <L.Wood@surrey.ac.uk>
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 C1F023A6934 for <hybi@core3.amsl.com>; Tue, 18 Aug 2009 02:57:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.498
X-Spam-Level: 
X-Spam-Status: No, score=-6.498 tagged_above=-999 required=5 tests=[AWL=0.100,  BAYES_00=-2.599, HTML_MESSAGE=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 ZNE1+-8RB8Oq for <hybi@core3.amsl.com>; Tue, 18 Aug 2009 02:57:55 -0700 (PDT)
Received: from mail78.messagelabs.com (mail78.messagelabs.com [195.245.230.131]) by core3.amsl.com (Postfix) with SMTP id 13C9A3A681D for <hybi@ietf.org>; Tue, 18 Aug 2009 02:57:54 -0700 (PDT)
X-VirusChecked: Checked
X-Env-Sender: L.Wood@surrey.ac.uk
X-Msg-Ref: server-5.tower-78.messagelabs.com!1250589352!73418775!3
X-StarScan-Version: 6.1.3; banners=-,-,-
X-Originating-IP: [131.227.102.140]
Received: (qmail 24835 invoked from network); 18 Aug 2009 09:55:53 -0000
Received: from ads40.surrey.ac.uk (HELO ads40.surrey.ac.uk) (131.227.102.140) by server-5.tower-78.messagelabs.com with SMTP; 18 Aug 2009 09:55:53 -0000
Received: from EVS-EC1-NODE4.surrey.ac.uk ([131.227.102.139]) by ads40.surrey.ac.uk with Microsoft SMTPSVC(6.0.3790.3959);  Tue, 18 Aug 2009 10:55:53 +0100
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01CA1FEA.127E6D47"
Date: Tue, 18 Aug 2009 10:54:55 +0100
Message-ID: <4835AFD53A246A40A3B8DA85D658C4BE0136894A@EVS-EC1-NODE4.surrey.ac.uk>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: I-D Action:draft-hixie-thewebsocketprotocol-35.txt
Thread-Index: AcofIpf0PjdBkNr+TlqhEVBsPnP6wAAJ8qRYACfjfzo=
References: <20090816093001.319053A692F@core3.amsl.com> <015CC5B3-A697-46D5-B76D-3BC609A4E13D@nokia.com> <4835AFD53A246A40A3B8DA85D658C4BE01368948@EVS-EC1-NODE4.surrey.ac.uk>
From: <L.Wood@surrey.ac.uk>
To: <hybi@ietf.org>
X-OriginalArrivalTime: 18 Aug 2009 09:55:53.0453 (UTC) FILETIME=[12F7F9D0:01CA1FEA]
Subject: Re: [hybi] I-D Action:draft-hixie-thewebsocketprotocol-35.txt
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, 18 Aug 2009 09:57:56 -0000

This is a multi-part message in MIME format.

------_=_NextPart_001_01CA1FEA.127E6D47
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Resending the question below - the hybi list seems not to recognise
the address I'm subscribed at...

<http://www.ee.surrey.ac.uk/Personal/L.Wood/><L.Wood@surrey.ac.uk>



-----Original Message-----
From: Wood L Dr (Electronic Eng)
Sent: Mon 2009-08-17 15:58
To: Lars Eggert; hybi@ietf.org
Subject: RE: [tsv-area] Fwd: I-D =
Action:draft-hixie-thewebsocketprotocol-35.txt
=20
I don't see the reason for Connection: upgrade / Upgrade: WebSocket
as the handshake mechanism.

Surely a Content-* header (say: Content-Upgrade: WebSocket) is better, =
as=20
it will be explicitly dropped and 501'd by proxies or by sources
not supporting web sockets? (per section 9.6 of RFC2616.) That
way, you know when the handshake has failed...

thanks,

L.

<http://www.ee.surrey.ac.uk/Personal/L.Wood/><L.Wood@surrey.ac.uk>



-----Original Message-----
From: tsv-area-bounces@ietf.org on behalf of Lars Eggert
Sent: Mon 2009-08-17 11:07
To: TSV Area
Subject: [tsv-area] Fwd: I-D =
Action:draft-hixie-thewebsocketprotocol-35.txt
=20
Transport folks will want to give this a read. Comment on hybi@ietf.org.

Lars

Begin forwarded message:

> From: "Internet-Drafts@ietf.org" <Internet-Drafts@ietf.org>
> Date: August 16, 2009 11:30:01 GMT+02:00
> To: "i-d-announce@ietf.org" <i-d-announce@ietf.org>
> Subject: I-D Action:draft-hixie-thewebsocketprotocol-35.txt
> Reply-To: "internet-drafts@ietf.org" <internet-drafts@ietf.org>
>
> A New Internet-Draft is available from the on-line Internet-Drafts =20
> directories.
>
> 	Title           : The Web Socket protocol
> 	Author(s)       : I. Hickson
> 	Filename        : draft-hixie-thewebsocketprotocol-35.txt
> 	Pages           : 31
> 	Date            : 2009-08-16
>
> 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.Author's note
>
> This document is automatically generated from the same source
> document as the HTML5 specification.  [HTML5]
>
> Please send feedback to either the hybi@ietf.org list or the
> whatwg@whatwg.org list.
>
> A URL for this Internet-Draft is:
> =
http://www.ietf.org/internet-drafts/draft-hixie-thewebsocketprotocol-35.t=
xt
>
> Internet-Drafts are also available by anonymous FTP at:
> ftp://ftp.ietf.org/internet-drafts/
>
> Below is the data which will enable a MIME compliant mail reader
> implementation to automatically retrieve the ASCII version of the
> Internet-Draft.
> [InternetShortcut]
> =
URL=3Dftp://ftp.ietf.org/internet-drafts/draft-hixie-thewebsocketprotocol=
-35.txt




------_=_NextPart_001_01CA1FEA.127E6D47
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
6.5.7653.38">
<TITLE>Re: I-D Action:draft-hixie-thewebsocketprotocol-35.txt</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=3D2>Resending the question below - the hybi list seems not =
to recognise<BR>
the address I'm subscribed at...<BR>
<BR>
&lt;<A =
HREF=3D"http://www.ee.surrey.ac.uk/Personal/L.Wood/">http://www.ee.surrey=
.ac.uk/Personal/L.Wood/</A>&gt;&lt;L.Wood@surrey.ac.uk&gt;<BR>
<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: Wood L Dr (Electronic Eng)<BR>
Sent: Mon 2009-08-17 15:58<BR>
To: Lars Eggert; hybi@ietf.org<BR>
Subject: RE: [tsv-area] Fwd: I-D =
Action:draft-hixie-thewebsocketprotocol-35.txt<BR>
<BR>
I don't see the reason for Connection: upgrade / Upgrade: WebSocket<BR>
as the handshake mechanism.<BR>
<BR>
Surely a Content-* header (say: Content-Upgrade: WebSocket) is better, =
as<BR>
it will be explicitly dropped and 501'd by proxies or by sources<BR>
not supporting web sockets? (per section 9.6 of RFC2616.) That<BR>
way, you know when the handshake has failed...<BR>
<BR>
thanks,<BR>
<BR>
L.<BR>
<BR>
&lt;<A =
HREF=3D"http://www.ee.surrey.ac.uk/Personal/L.Wood/">http://www.ee.surrey=
.ac.uk/Personal/L.Wood/</A>&gt;&lt;L.Wood@surrey.ac.uk&gt;<BR>
<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: tsv-area-bounces@ietf.org on behalf of Lars Eggert<BR>
Sent: Mon 2009-08-17 11:07<BR>
To: TSV Area<BR>
Subject: [tsv-area] Fwd: I-D =
Action:draft-hixie-thewebsocketprotocol-35.txt<BR>
<BR>
Transport folks will want to give this a read. Comment on =
hybi@ietf.org.<BR>
<BR>
Lars<BR>
<BR>
Begin forwarded message:<BR>
<BR>
&gt; From: &quot;Internet-Drafts@ietf.org&quot; =
&lt;Internet-Drafts@ietf.org&gt;<BR>
&gt; Date: August 16, 2009 11:30:01 GMT+02:00<BR>
&gt; To: &quot;i-d-announce@ietf.org&quot; =
&lt;i-d-announce@ietf.org&gt;<BR>
&gt; Subject: I-D Action:draft-hixie-thewebsocketprotocol-35.txt<BR>
&gt; Reply-To: &quot;internet-drafts@ietf.org&quot; =
&lt;internet-drafts@ietf.org&gt;<BR>
&gt;<BR>
&gt; A New Internet-Draft is available from the on-line =
Internet-Drafts&nbsp;<BR>
&gt; directories.<BR>
&gt;<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
Title&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : The =
Web Socket protocol<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
Author(s)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : I. Hickson<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
Filename&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : =
draft-hixie-thewebsocketprotocol-35.txt<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
Pages&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : =
31<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
Date&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : =
2009-08-16<BR>
&gt;<BR>
&gt; This protocol enables two-way communication between a user =
agent<BR>
&gt; running untrusted code running in a controlled environment to a<BR>
&gt; remote host that understands the protocol.&nbsp; It is intended to =
fail to<BR>
&gt; communicate with servers of pre-existing protocols like SMTP or =
HTTP,<BR>
&gt; while allowing HTTP servers to opt-in to supporting this protocol =
if<BR>
&gt; desired.&nbsp; It is designed to be easy to implement on the =
server<BR>
&gt; side.Author's note<BR>
&gt;<BR>
&gt; This document is automatically generated from the same source<BR>
&gt; document as the HTML5 specification.&nbsp; [HTML5]<BR>
&gt;<BR>
&gt; Please send feedback to either the hybi@ietf.org list or the<BR>
&gt; whatwg@whatwg.org list.<BR>
&gt;<BR>
&gt; A URL for this Internet-Draft is:<BR>
&gt; <A =
HREF=3D"http://www.ietf.org/internet-drafts/draft-hixie-thewebsocketproto=
col-35.txt">http://www.ietf.org/internet-drafts/draft-hixie-thewebsocketp=
rotocol-35.txt</A><BR>
&gt;<BR>
&gt; Internet-Drafts are also available by anonymous FTP at:<BR>
&gt; <A =
HREF=3D"ftp://ftp.ietf.org/internet-drafts/">ftp://ftp.ietf.org/internet-=
drafts/</A><BR>
&gt;<BR>
&gt; Below is the data which will enable a MIME compliant mail =
reader<BR>
&gt; implementation to automatically retrieve the ASCII version of =
the<BR>
&gt; Internet-Draft.<BR>
&gt; [InternetShortcut]<BR>
&gt; URL=3D<A =
HREF=3D"ftp://ftp.ietf.org/internet-drafts/draft-hixie-thewebsocketprotoc=
ol-35.txt">ftp://ftp.ietf.org/internet-drafts/draft-hixie-thewebsocketpro=
tocol-35.txt</A><BR>
<BR>
<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01CA1FEA.127E6D47--

From mnot@mnot.net  Tue Aug 18 18:01:51 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 93F633A6BE1 for <hybi@core3.amsl.com>; Tue, 18 Aug 2009 18:01:51 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.962
X-Spam-Level: 
X-Spam-Status: No, score=-4.962 tagged_above=-999 required=5 tests=[AWL=-2.363, 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 lp5T3Pzb1Pmo for <hybi@core3.amsl.com>; Tue, 18 Aug 2009 18:01:49 -0700 (PDT)
Received: from mxout-07.mxes.net (mxout-07.mxes.net [216.86.168.182]) by core3.amsl.com (Postfix) with ESMTP id 914453A6C0C for <hybi@ietf.org>; Tue, 18 Aug 2009 18:01:49 -0700 (PDT)
Received: from [192.168.1.6] (unknown [118.208.160.18]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 4800822E247; Tue, 18 Aug 2009 21:01:47 -0400 (EDT)
Message-Id: <AFD35206-7F55-44AB-960E-B461CE10BBD9@mnot.net>
From: Mark Nottingham <mnot@mnot.net>
To: <L.Wood@surrey.ac.uk> <L.Wood@surrey.ac.uk>
In-Reply-To: <4835AFD53A246A40A3B8DA85D658C4BE0136894A@EVS-EC1-NODE4.surrey.ac.uk>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes
Content-Transfer-Encoding: 7bit
Mime-Version: 1.0 (Apple Message framework v936)
Date: Wed, 19 Aug 2009 11:01:45 +1000
References: <20090816093001.319053A692F@core3.amsl.com> <015CC5B3-A697-46D5-B76D-3BC609A4E13D@nokia.com> <4835AFD53A246A40A3B8DA85D658C4BE01368948@EVS-EC1-NODE4.surrey.ac.uk> <4835AFD53A246A40A3B8DA85D658C4BE0136894A@EVS-EC1-NODE4.surrey.ac.uk>
X-Mailer: Apple Mail (2.936)
Cc: hybi@ietf.org
Subject: Re: [hybi] I-D Action:draft-hixie-thewebsocketprotocol-35.txt
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, 19 Aug 2009 01:01:51 -0000

I think it's because you're subscribed as 'L.Wood' while the message  
was from 'l.wood' (notice capitalisation).

Regardless, I've added that variation to the whitelist, so you  
shouldn't have this issue again.

Cheers,



On 18/08/2009, at 7:54 PM, <L.Wood@surrey.ac.uk> <L.Wood@surrey.ac.uk>  
wrote:

> Resending the question below - the hybi list seems not to recognise
> the address I'm subscribed at...
>
> <http://www.ee.surrey.ac.uk/Personal/L.Wood/><L.Wood@surrey.ac.uk>
>
>
>
> -----Original Message-----
> From: Wood L Dr (Electronic Eng)
> Sent: Mon 2009-08-17 15:58
> To: Lars Eggert; hybi@ietf.org
> Subject: RE: [tsv-area] Fwd: I-D Action:draft-hixie- 
> thewebsocketprotocol-35.txt
>
> I don't see the reason for Connection: upgrade / Upgrade: WebSocket
> as the handshake mechanism.
>
> Surely a Content-* header (say: Content-Upgrade: WebSocket) is  
> better, as
> it will be explicitly dropped and 501'd by proxies or by sources
> not supporting web sockets? (per section 9.6 of RFC2616.) That
> way, you know when the handshake has failed...
>
> thanks,
>
> L.
>
> <http://www.ee.surrey.ac.uk/Personal/L.Wood/><L.Wood@surrey.ac.uk>
>
>
>
> -----Original Message-----
> From: tsv-area-bounces@ietf.org on behalf of Lars Eggert
> Sent: Mon 2009-08-17 11:07
> To: TSV Area
> Subject: [tsv-area] Fwd: I-D Action:draft-hixie- 
> thewebsocketprotocol-35.txt
>
> Transport folks will want to give this a read. Comment on hybi@ietf.org 
> .
>
> Lars
>
> Begin forwarded message:
>
> > From: "Internet-Drafts@ietf.org" <Internet-Drafts@ietf.org>
> > Date: August 16, 2009 11:30:01 GMT+02:00
> > To: "i-d-announce@ietf.org" <i-d-announce@ietf.org>
> > Subject: I-D Action:draft-hixie-thewebsocketprotocol-35.txt
> > Reply-To: "internet-drafts@ietf.org" <internet-drafts@ietf.org>
> >
> > A New Internet-Draft is available from the on-line Internet-Drafts
> > directories.
> >
> >       Title           : The Web Socket protocol
> >       Author(s)       : I. Hickson
> >       Filename        : draft-hixie-thewebsocketprotocol-35.txt
> >       Pages           : 31
> >       Date            : 2009-08-16
> >
> > 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.Author's note
> >
> > This document is automatically generated from the same source
> > document as the HTML5 specification.  [HTML5]
> >
> > Please send feedback to either the hybi@ietf.org list or the
> > whatwg@whatwg.org list.
> >
> > A URL for this Internet-Draft is:
> > http://www.ietf.org/internet-drafts/draft-hixie-thewebsocketprotocol-35.txt
> >
> > Internet-Drafts are also available by anonymous FTP at:
> > ftp://ftp.ietf.org/internet-drafts/
> >
> > Below is the data which will enable a MIME compliant mail reader
> > implementation to automatically retrieve the ASCII version of the
> > Internet-Draft.
> > [InternetShortcut]
> > URL=ftp://ftp.ietf.org/internet-drafts/draft-hixie-thewebsocketprotocol-35.txt
>
>
>
>
> _______________________________________________
> hybi mailing list
> hybi@ietf.org
> https://www.ietf.org/mailman/listinfo/hybi


--
Mark Nottingham     http://www.mnot.net/


From dret@berkeley.edu  Sat Aug 15 22:27:40 2009
Return-Path: <dret@berkeley.edu>
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 4BACB3A695C; Sat, 15 Aug 2009 22:27:40 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.598
X-Spam-Level: 
X-Spam-Status: No, score=-2.598 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, 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 BLkCuqNKm9bQ; Sat, 15 Aug 2009 22:27:39 -0700 (PDT)
Received: from smtp.ischool.berkeley.edu (bliss.ISchool.Berkeley.EDU [128.32.78.13]) by core3.amsl.com (Postfix) with ESMTP id 82F563A683D; Sat, 15 Aug 2009 22:27:39 -0700 (PDT)
Received: from [10.25.99.190] (166-205-005-184.mobile.mymmode.com [166.205.5.184] (may be forged)) (authenticated bits=0) by smtp.ischool.berkeley.edu (8.13.1/8.13.1) with ESMTP id n7G5Qtvv015655 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Sat, 15 Aug 2009 22:26:59 -0700
From: Erik Wilde <dret@berkeley.edu>
To: Julian Reschke <julian.reschke@gmx.de>
In-Reply-To: <4A8514B8.1060808@gmx.de>
X-Mailer: iPhone Mail (7A400)
References: <Pine.LNX.4.62.0908070531430.28566@hixie.dreamhostps.com> <1249651007.25446.8934.camel@dbooth-laptop> <0B450D619CC0486E8BD51C31FBA214AD@POCZTOWIEC> <20090812021926.GC19298@shareable.org> <AB9A0CF094F04D39BC7DC5DEAFF7FC1C@POCZTOWIEC> <Pine.LNX.4.62.0908140544590.6420@hixie.dreamhostps.com> <4A8514B8.1060808@gmx.de>
Message-Id: <9D0A2154-6D08-4ABC-B6CE-3A7AA2FF8ACD@berkeley.edu>
Content-Type: multipart/alternative; boundary=Apple-Mail-5--637271391
Content-Transfer-Encoding: 7bit
Mime-Version: 1.0 (iPhone Mail 7A400)
Date: Sat, 15 Aug 2009 22:25:49 -0700
X-Scanned-By: MIMEDefang 2.67 on 128.32.78.13
X-Mailman-Approved-At: Tue, 18 Aug 2009 18:02:07 -0700
Cc: "hybi@ietf.org" <hybi@ietf.org>, "Daniel R. Tobias" <dan@tobias.name>, "uri-review@ietf.org" <uri-review@ietf.org>, Kristof Zelechovski <giecrilj@stegny.2a.pl>, "uri@w3.org" <uri@w3.org>, "noah_mendelsohn@us.ibm.com" <noah_mendelsohn@us.ibm.com>, David Booth <david@dbooth.org>
Subject: Re: [hybi] [Uri-review] 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: Sun, 16 Aug 2009 05:27:40 -0000

--Apple-Mail-5--637271391
Content-Type: text/plain;
	charset=us-ascii;
	format=flowed;
	delsp=yes
Content-Transfer-Encoding: 7bit

On Aug 14, 2009, at 0:39, Julian Reschke <julian.reschke@gmx.de> wrote:
> Ian Hickson wrote:
>>>>   URI scheme semantics.
>>>>      The only operation for this scheme is to open a connection  
>>>> using
>>>>      the Web Socket protocol.
>>>>
>>>>   Encoding considerations.
>>>>      UTF-8 only.
>>> What does this mean?
>> That the only encoding that can be used with this scheme is UTF-8.  
>> What is unclear?
> You can only have ASCII characters in a URI. I believe you're trying  
> to do the right thing, but it really requires a few more words  
> (...when non-URL characters are to be used in a ws URI, they need to  
> be encoded using UTF-8 and then percent-escaped...)

i think there is some misunderstanding here: "encoding" here refers to  
the encoding of the URI (as julian has pointed out in his response),  
not the encoding of the payload of the protocol that is used to  
interact with resources identified by the URI.

cheers,

dret.
--Apple-Mail-5--637271391
Content-Type: text/html;
	charset=utf-8
Content-Transfer-Encoding: quoted-printable

<html><body bgcolor=3D"#FFFFFF"><div>On Aug 14, 2009, at 0:39, Julian =
Reschke &lt;<a =
href=3D"mailto:julian.reschke@gmx.de">julian.reschke@gmx.de</a>&gt; =
wrote:<br></div><div></div><blockquote type=3D"cite"><div><span>Ian =
Hickson wrote:</span><span class=3D"Apple-style-span" style=3D"color: =
rgb(148, 0, 14);"><br></span><blockquote type=3D"cite"><blockquote =
type=3D"cite"><blockquote type=3D"cite"><span> &nbsp;&nbsp;URI scheme =
semantics.</span><br></blockquote></blockquote></blockquote><blockquote =
type=3D"cite"><blockquote type=3D"cite"><blockquote type=3D"cite"><span> =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The only operation for this scheme is to =
open a connection =
using</span><br></blockquote></blockquote></blockquote><blockquote =
type=3D"cite"><blockquote type=3D"cite"><blockquote type=3D"cite"><span> =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;the Web Socket =
protocol.</span><br></blockquote></blockquote></blockquote><blockquote =
type=3D"cite"><blockquote type=3D"cite"><blockquote =
type=3D"cite"><span></span><br></blockquote></blockquote></blockquote><blo=
ckquote type=3D"cite"><blockquote type=3D"cite"><blockquote =
type=3D"cite"><span> &nbsp;&nbsp;Encoding =
considerations.</span><br></blockquote></blockquote></blockquote><blockquo=
te type=3D"cite"><blockquote type=3D"cite"><blockquote =
type=3D"cite"><span> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;UTF-8 =
only.</span><br></blockquote></blockquote></blockquote><blockquote =
type=3D"cite"><blockquote type=3D"cite"><span>What does this =
mean?</span><br></blockquote></blockquote><blockquote =
type=3D"cite"><span>That the only encoding that can be used with this =
scheme is UTF-8. What is unclear?</span></blockquote><span>You can only =
have ASCII characters in a URI. I believe you're trying to do the right =
thing, but it really requires a few more words (...when non-URL =
characters are to be used in a ws URI, they need to be encoded using =
UTF-8 and then =
percent-escaped...)</span><br></div></blockquote><br><div>i think there =
is some misunderstanding here: "encoding" here refers to the encoding of =
the URI (as julian has pointed out in his response), not the encoding of =
the payload of the protocol that is used to interact with resources =
identified by the =
URI.</div><div><br></div><div>cheers,</div><div><br></div><div>dret.</div>=
</body></html>=

--Apple-Mail-5--637271391--

From L.Wood@surrey.ac.uk  Mon Aug 17 07:58:13 2009
Return-Path: <L.Wood@surrey.ac.uk>
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 5B71328C11B for <hybi@core3.amsl.com>; Mon, 17 Aug 2009 07:58:13 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.448
X-Spam-Level: 
X-Spam-Status: No, score=-6.448 tagged_above=-999 required=5 tests=[AWL=0.150,  BAYES_00=-2.599, HTML_MESSAGE=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 CH0Y7Db8QI9B for <hybi@core3.amsl.com>; Mon, 17 Aug 2009 07:58:12 -0700 (PDT)
Received: from mail71.messagelabs.com (mail71.messagelabs.com [193.109.255.131]) by core3.amsl.com (Postfix) with SMTP id A5E413A6EDF for <hybi@ietf.org>; Mon, 17 Aug 2009 07:58:11 -0700 (PDT)
X-VirusChecked: Checked
X-Env-Sender: L.Wood@surrey.ac.uk
X-Msg-Ref: server-13.tower-71.messagelabs.com!1250521092!65916963!2
X-StarScan-Version: 6.1.3; banners=-,-,-
X-Originating-IP: [131.227.102.140]
Received: (qmail 23081 invoked from network); 17 Aug 2009 14:58:12 -0000
Received: from ads40.surrey.ac.uk (HELO ads40.surrey.ac.uk) (131.227.102.140) by server-13.tower-71.messagelabs.com with SMTP; 17 Aug 2009 14:58:12 -0000
Received: from EVS-EC1-NODE4.surrey.ac.uk ([131.227.102.139]) by ads40.surrey.ac.uk with Microsoft SMTPSVC(6.0.3790.3959);  Mon, 17 Aug 2009 15:58:12 +0100
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01CA1F4B.23AA2242"
Date: Mon, 17 Aug 2009 15:58:11 +0100
Message-ID: <4835AFD53A246A40A3B8DA85D658C4BE01368948@EVS-EC1-NODE4.surrey.ac.uk>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [tsv-area] Fwd: I-D Action:draft-hixie-thewebsocketprotocol-35.txt
Thread-Index: AcofIpf0PjdBkNr+TlqhEVBsPnP6wAAJ8qRY
References: <20090816093001.319053A692F@core3.amsl.com> <015CC5B3-A697-46D5-B76D-3BC609A4E13D@nokia.com>
From: <L.Wood@surrey.ac.uk>
To: <lars.eggert@nokia.com>, <hybi@ietf.org>
X-OriginalArrivalTime: 17 Aug 2009 14:58:12.0162 (UTC) FILETIME=[24119220:01CA1F4B]
X-Mailman-Approved-At: Tue, 18 Aug 2009 18:02:07 -0700
Subject: Re: [hybi] [tsv-area] Fwd: I-D Action:draft-hixie-thewebsocketprotocol-35.txt
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, 17 Aug 2009 14:58:13 -0000

This is a multi-part message in MIME format.

------_=_NextPart_001_01CA1F4B.23AA2242
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I don't see the reason for Connection: upgrade / Upgrade: WebSocket
as the handshake mechanism.

Surely a Content-* header (say: Content-Upgrade: WebSocket) is better, =
as=20
it will be explicitly dropped and 501'd by proxies or by sources
not supporting web sockets? (per section 9.6 of RFC2616.) That
way, you know when the handshake has failed...

thanks,

L.

<http://www.ee.surrey.ac.uk/Personal/L.Wood/><L.Wood@surrey.ac.uk>



-----Original Message-----
From: tsv-area-bounces@ietf.org on behalf of Lars Eggert
Sent: Mon 2009-08-17 11:07
To: TSV Area
Subject: [tsv-area] Fwd: I-D =
Action:draft-hixie-thewebsocketprotocol-35.txt
=20
Transport folks will want to give this a read. Comment on hybi@ietf.org.

Lars

Begin forwarded message:

> From: "Internet-Drafts@ietf.org" <Internet-Drafts@ietf.org>
> Date: August 16, 2009 11:30:01 GMT+02:00
> To: "i-d-announce@ietf.org" <i-d-announce@ietf.org>
> Subject: I-D Action:draft-hixie-thewebsocketprotocol-35.txt
> Reply-To: "internet-drafts@ietf.org" <internet-drafts@ietf.org>
>
> A New Internet-Draft is available from the on-line Internet-Drafts =20
> directories.
>
> 	Title           : The Web Socket protocol
> 	Author(s)       : I. Hickson
> 	Filename        : draft-hixie-thewebsocketprotocol-35.txt
> 	Pages           : 31
> 	Date            : 2009-08-16
>
> 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.Author's note
>
> This document is automatically generated from the same source
> document as the HTML5 specification.  [HTML5]
>
> Please send feedback to either the hybi@ietf.org list or the
> whatwg@whatwg.org list.
>
> A URL for this Internet-Draft is:
> =
http://www.ietf.org/internet-drafts/draft-hixie-thewebsocketprotocol-35.t=
xt
>
> Internet-Drafts are also available by anonymous FTP at:
> ftp://ftp.ietf.org/internet-drafts/
>
> Below is the data which will enable a MIME compliant mail reader
> implementation to automatically retrieve the ASCII version of the
> Internet-Draft.
> [InternetShortcut]
> =
URL=3Dftp://ftp.ietf.org/internet-drafts/draft-hixie-thewebsocketprotocol=
-35.txt



------_=_NextPart_001_01CA1F4B.23AA2242
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
6.5.7653.38">
<TITLE>RE: [tsv-area] Fwd: I-D =
Action:draft-hixie-thewebsocketprotocol-35.txt</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=3D2>I don't see the reason for Connection: upgrade / =
Upgrade: WebSocket<BR>
as the handshake mechanism.<BR>
<BR>
Surely a Content-* header (say: Content-Upgrade: WebSocket) is better, =
as<BR>
it will be explicitly dropped and 501'd by proxies or by sources<BR>
not supporting web sockets? (per section 9.6 of RFC2616.) That<BR>
way, you know when the handshake has failed...<BR>
<BR>
thanks,<BR>
<BR>
L.<BR>
<BR>
&lt;<A =
HREF=3D"http://www.ee.surrey.ac.uk/Personal/L.Wood/">http://www.ee.surrey=
.ac.uk/Personal/L.Wood/</A>&gt;&lt;L.Wood@surrey.ac.uk&gt;<BR>
<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: tsv-area-bounces@ietf.org on behalf of Lars Eggert<BR>
Sent: Mon 2009-08-17 11:07<BR>
To: TSV Area<BR>
Subject: [tsv-area] Fwd: I-D =
Action:draft-hixie-thewebsocketprotocol-35.txt<BR>
<BR>
Transport folks will want to give this a read. Comment on =
hybi@ietf.org.<BR>
<BR>
Lars<BR>
<BR>
Begin forwarded message:<BR>
<BR>
&gt; From: &quot;Internet-Drafts@ietf.org&quot; =
&lt;Internet-Drafts@ietf.org&gt;<BR>
&gt; Date: August 16, 2009 11:30:01 GMT+02:00<BR>
&gt; To: &quot;i-d-announce@ietf.org&quot; =
&lt;i-d-announce@ietf.org&gt;<BR>
&gt; Subject: I-D Action:draft-hixie-thewebsocketprotocol-35.txt<BR>
&gt; Reply-To: &quot;internet-drafts@ietf.org&quot; =
&lt;internet-drafts@ietf.org&gt;<BR>
&gt;<BR>
&gt; A New Internet-Draft is available from the on-line =
Internet-Drafts&nbsp;<BR>
&gt; directories.<BR>
&gt;<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
Title&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : The =
Web Socket protocol<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
Author(s)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : I. Hickson<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
Filename&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : =
draft-hixie-thewebsocketprotocol-35.txt<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
Pages&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : =
31<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
Date&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : =
2009-08-16<BR>
&gt;<BR>
&gt; This protocol enables two-way communication between a user =
agent<BR>
&gt; running untrusted code running in a controlled environment to a<BR>
&gt; remote host that understands the protocol.&nbsp; It is intended to =
fail to<BR>
&gt; communicate with servers of pre-existing protocols like SMTP or =
HTTP,<BR>
&gt; while allowing HTTP servers to opt-in to supporting this protocol =
if<BR>
&gt; desired.&nbsp; It is designed to be easy to implement on the =
server<BR>
&gt; side.Author's note<BR>
&gt;<BR>
&gt; This document is automatically generated from the same source<BR>
&gt; document as the HTML5 specification.&nbsp; [HTML5]<BR>
&gt;<BR>
&gt; Please send feedback to either the hybi@ietf.org list or the<BR>
&gt; whatwg@whatwg.org list.<BR>
&gt;<BR>
&gt; A URL for this Internet-Draft is:<BR>
&gt; <A =
HREF=3D"http://www.ietf.org/internet-drafts/draft-hixie-thewebsocketproto=
col-35.txt">http://www.ietf.org/internet-drafts/draft-hixie-thewebsocketp=
rotocol-35.txt</A><BR>
&gt;<BR>
&gt; Internet-Drafts are also available by anonymous FTP at:<BR>
&gt; <A =
HREF=3D"ftp://ftp.ietf.org/internet-drafts/">ftp://ftp.ietf.org/internet-=
drafts/</A><BR>
&gt;<BR>
&gt; Below is the data which will enable a MIME compliant mail =
reader<BR>
&gt; implementation to automatically retrieve the ASCII version of =
the<BR>
&gt; Internet-Draft.<BR>
&gt; [InternetShortcut]<BR>
&gt; URL=3D<A =
HREF=3D"ftp://ftp.ietf.org/internet-drafts/draft-hixie-thewebsocketprotoc=
ol-35.txt">ftp://ftp.ietf.org/internet-drafts/draft-hixie-thewebsocketpro=
tocol-35.txt</A><BR>
<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01CA1F4B.23AA2242--

From noah_mendelsohn@us.ibm.com  Wed Aug 19 09:21:16 2009
Return-Path: <noah_mendelsohn@us.ibm.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 855483A6B5B; Wed, 19 Aug 2009 09:21:16 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.689
X-Spam-Level: 
X-Spam-Status: No, score=-5.689 tagged_above=-999 required=5 tests=[AWL=0.910,  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 leb2Xi-p8i39; Wed, 19 Aug 2009 09:21:15 -0700 (PDT)
Received: from e5.ny.us.ibm.com (e5.ny.us.ibm.com [32.97.182.145]) by core3.amsl.com (Postfix) with ESMTP id 73D413A6A3C; Wed, 19 Aug 2009 09:21:15 -0700 (PDT)
Received: from d01relay06.pok.ibm.com (d01relay06.pok.ibm.com [9.56.227.116]) by e5.ny.us.ibm.com (8.14.3/8.13.1) with ESMTP id n7JGDIUh019387; Wed, 19 Aug 2009 12:13:18 -0400
Received: from d03av04.boulder.ibm.com (d03av04.boulder.ibm.com [9.17.195.170]) by d01relay06.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id n7JGLHus2461780; Wed, 19 Aug 2009 12:21:17 -0400
Received: from d03av04.boulder.ibm.com (loopback [127.0.0.1]) by d03av04.boulder.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id n7JGLG81019939; Wed, 19 Aug 2009 10:21:17 -0600
Received: from internet1.lotus.com (internet1.lotus.com [9.32.140.212]) by d03av04.boulder.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id n7JGLFIx019833 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Wed, 19 Aug 2009 10:21:16 -0600
Received: from wtfmail05.lotus.com (WTFMAIL05.lotus.com [9.32.140.23]) by internet1.lotus.com (8.14.2/8.14.1) with ESMTP id n7JGLFZ72568264; Wed, 19 Aug 2009 11:21:15 -0500
In-Reply-To: <20090814213754.GD12021@shareable.org>
To: Jamie Lokier <jamie@shareable.org>
MIME-Version: 1.0
X-Mailer: Lotus Notes Release 7.0.1 January 17, 2006
Message-ID: <OF3B15D497.B76ABF1A-ON85257617.0058A11E-85257617.0059BD1A@lotus.com>
From: noah_mendelsohn@us.ibm.com
Date: Wed, 19 Aug 2009 12:23:37 -0400
X-MIMETrack: Serialize by Router on WTFMAIL05/WTF/M/Lotus(Build V851_08132009|August 13, 2009) at 08/19/2009 12:23:37 PM, Serialize complete at 08/19/2009 12:23:37 PM
Content-Type: text/plain; charset="US-ASCII"
Cc: hybi@ietf.org, uri-request@w3.org, Kristof Zelechovski <giecrilj@stegny.2a.pl>, uri@w3.org, uri-review@ietf.org, 'David Booth' <david@dbooth.org>
Subject: Re: [hybi] [Uri-review] 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: Wed, 19 Aug 2009 16:21:16 -0000

Jamie Lokier writes:

> A HTTP URL does not tell you the type of resource, only where to 
> find _a_ resource.

This misses an important point about http URIs and the HTTP protocol. 
Although the URL itself does not tell you the type of the resource, the 
response to an HTTP GET does indeed tell you the type of the entity body. 
So, you can access any such URI on the Web, and you'll either: (1) know 
how to interpret the response, I.e. because you recognize the Content-type 
and know how to process data of that type, or (2) will reliably discover 
that it's of a type you don't know how to process.  These characteristics 
are what make it possible for you to click on any link, and know that your 
browser won't misinterpret the results, even as new Content-types are 
deployed (well, let's not get into the sniffing discussion just now). It's 
also what allows search engine spiders to interpret the results returned 
from GETs on pretty much any http link.

So, this is a desirable characteristic for Web resources, and it's one of 
the things that HTTP gives you.  Indeed, the whole Web is designed so that 
you can start with RFC 3986, the specification for URIs, and using the 
references to which it (recursively) delegates, discover how to correctly 
interact with and interpret responses from any resource on the Web.  Under 
the auspices of the W3C TAG, I prepared a "finding" [1] that goes into 
more detail on these issues and their implications.

BTW: the above comment is not intended to express an opinion about the 
proposed ws/wss URI schemes; it's a reaction to Jamie's comment.  I do 
think it is an interesting question (I think I've raised it before), 
whether we expect search engines to come on ws/wss links, and if so, 
whether it's valuable for those search engines to be able to discover 
information about the resources identified by those links.

Noah

[1] http://www.w3.org/2001/tag/doc/selfDescribingDocuments.html

--------------------------------------
Noah Mendelsohn 
IBM Corporation
One Rogers Street
Cambridge, MA 02142
1-617-693-4036
--------------------------------------








Jamie Lokier <jamie@shareable.org>
Sent by: uri-request@w3.org
08/14/2009 05:37 PM
 
        To:     Kristof Zelechovski <giecrilj@stegny.2a.pl>
        cc:     "'David Booth'" <david@dbooth.org>, "'Ian Hickson'" 
<ian@hixie.ch>, uri-review@ietf.org, hybi@ietf.org, uri@w3.org, (bcc: Noah 
Mendelsohn/Cambridge/IBM)
        Subject:        Re: [hybi] [Uri-review] ws: and wss: schemes


Kristof Zelechovski wrote:
>  1.  Encouraging the user to enter a Web Sockets URL does not make sense 
if
> cross-domain connections are not allowed, which I hope will be the case 
(the
> draft specification [1] does not contain security considerations).

It was originally thought XHR (XmlHttpRequest) didn't need to be
cross-domain, but then people thought of lots of reasons why it's
useful and had to use hacks to workaround the limitation, so now
there's a draft standard to support cross-domain XHR - being careful
to address cross-domain security.

I suspect WebSockets could benefit from a look at the mechanisms used
by cross-domain XHR to check for permission to proceed.

>  2.  While we are at it, a Web Sockets connection is useless without 
knowing
> the protocol, and the protocol to be used is not contained within the 
URL.
> That means a ws URL is not self-contained and thus useless as a 
stand-alone
> locator.

The same is true of HTTP.

A HTTP URL does not tell you the type of resource, only where to find
_a_ resource.  For example there are places where a user can enter the
URL of a CalDAV calendar resource.  The CalDAV protocol is used (over
HTTP) to work with that resource, but the URL doesn't say what it is.

The only difference with WebSockets is that it (so far) seems to avoid
any descriptive metadata, which means there will still be applications
which ask for a WebSockets URL, but when the URL is for a different
protocol on top, it'll simply break with undefined behaviour instead
of a clean error message or fallback behaviour.

It doesn't matter if you think nobody should do that.  It will still
be done anyway - because it's so obviously useful.

-- Jamie




From jamie@shareable.org  Wed Aug 19 09: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 C57F93A69FB; Wed, 19 Aug 2009 09:46:30 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.182
X-Spam-Level: 
X-Spam-Status: No, score=-4.182 tagged_above=-999 required=5 tests=[AWL=-1.583, 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 Jbevx1yfPZh3; Wed, 19 Aug 2009 09:46:29 -0700 (PDT)
Received: from mail2.shareable.org (mail2.shareable.org [80.68.89.115]) by core3.amsl.com (Postfix) with ESMTP id BBF6D3A682E; Wed, 19 Aug 2009 09:46:29 -0700 (PDT)
Received: from jamie by mail2.shareable.org with local (Exim 4.63) (envelope-from <jamie@shareable.org>) id 1MdoIk-0000LW-7T; Wed, 19 Aug 2009 17:46:18 +0100
Date: Wed, 19 Aug 2009 17:46:18 +0100
From: Jamie Lokier <jamie@shareable.org>
To: noah_mendelsohn@us.ibm.com
Message-ID: <20090819164618.GA991@shareable.org>
References: <20090814213754.GD12021@shareable.org> <OF3B15D497.B76ABF1A-ON85257617.0058A11E-85257617.0059BD1A@lotus.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <OF3B15D497.B76ABF1A-ON85257617.0058A11E-85257617.0059BD1A@lotus.com>
User-Agent: Mutt/1.5.13 (2006-08-11)
Cc: hybi@ietf.org, uri-request@w3.org, Kristof Zelechovski <giecrilj@stegny.2a.pl>, uri@w3.org, uri-review@ietf.org, 'David Booth' <david@dbooth.org>
Subject: Re: [hybi] [Uri-review] 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: Wed, 19 Aug 2009 16:46:30 -0000

noah_mendelsohn@us.ibm.com wrote:
> Jamie Lokier writes:
> 
> > A HTTP URL does not tell you the type of resource, only where to 
> > find _a_ resource.
> 
> This misses an important point about http URIs and the HTTP protocol. 
> Although the URL itself does not tell you the type of the resource, the 
> response to an HTTP GET does indeed tell you the type of the entity body. 
> So, you can access any such URI on the Web, and you'll either: (1) know 
> how to interpret the response, I.e. because you recognize the Content-type 
> and know how to process data of that type, or (2) will reliably discover 
> that it's of a type you don't know how to process.  These characteristics 
> are what make it possible for you to click on any link, and know that your 
> browser won't misinterpret the results, even as new Content-types are 
> deployed (well, let's not get into the sniffing discussion just now). It's 
> also what allows search engine spiders to interpret the results returned 
> from GETs on pretty much any http link.

Firstly, I agree with the usefulness of Content-Type, which is why I
think it would be helpful if the WebSockets protocol defined something
equivalent, even just a single string to identify the protocol at the
start.

Secondly, this thread has talked about protocols on top of protocols
(because every WebSockets application will be one).  Given a URI, you
cannot tell from Content-Type whether that URI supports WebDAV, and
you cannot tell whether that URI accepts POSTs to submit new blog
entries - just to pick two widely used examples.

That requires another level of descriptive metadata, which
Content-Type does not provide and is not always available in any other
form.  But, just like people can enter a "blog posting" URI into their
mobile phone, there will be reasons why people enter WebSockets URIs
into applications, with no way for the application to verify the
protocol except by trying it.

> So, this is a desirable characteristic for Web resources, and it's
> one of the things that HTTP gives you.  Indeed, the whole Web is
> designed so that you can start with RFC 3986, the specification for
> URIs, and using the references to which it (recursively) delegates,
> discover how to correctly interact with and interpret responses from
> any resource on the Web.  Under the auspices of the W3C TAG, I
> prepared a "finding" [1] that goes into more detail on these issues
> and their implications.

In other words, I disagree with the above.  You can't find which
particular protocols are overlaid on top of HTTP at every findable URI
by the existing mechanisms, and it's unlikely that will ever be
possible.

> I do 
> think it is an interesting question (I think I've raised it before), 
> whether we expect search engines to come on ws/wss links,
> and if so, 
> whether it's valuable for those search engines to be able to discover 
> information about the resources identified by those links.

It's an intersting question, but please don't get too sidetracked from
the (imho) more important question of ensuring that specific web
applications can connect to WebSockets resource whose URI is provided
by a third party, with a reasonable level of safety and security.

-- Jamie

From john@jkemp.net  Wed Aug 19 10:57:36 2009
Return-Path: <john@jkemp.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 B1E2C28C136 for <hybi@core3.amsl.com>; Wed, 19 Aug 2009 10:57:36 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.265
X-Spam-Level: 
X-Spam-Status: No, score=-2.265 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, IP_NOT_FRIENDLY=0.334]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zBFgNTk7DhYM for <hybi@core3.amsl.com>; Wed, 19 Aug 2009 10:57:36 -0700 (PDT)
Received: from outbound-mail-14.bluehost.com (outbound-mail-14.bluehost.com [69.89.18.114]) by core3.amsl.com (Postfix) with SMTP id 8A16D28C117 for <hybi@ietf.org>; Wed, 19 Aug 2009 10:57:36 -0700 (PDT)
Received: (qmail 29214 invoked by uid 0); 19 Aug 2009 17:51:02 -0000
Received: from unknown (HELO box320.bluehost.com) (69.89.31.120) by outboundproxy1.bluehost.com with SMTP; 19 Aug 2009 17:51:02 -0000
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=jkemp.net; h=Received:Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding:X-Identified-User; b=bwxZDs1+EGww5bP7JW1Te6U19GtIAESWD6U4AFVQje/PhmuBYMgI8mkmIa8RzZG/58YAwqBEdHvR84BDwDaImAiDRCDZkKDWxfBZYfLk4bmmlx4BX6ldUs/MEX6pBhxw;
Received: from cpe-69-205-56-47.nycap.res.rr.com ([69.205.56.47] helo=[192.168.1.104]) by box320.bluehost.com with esmtpa (Exim 4.69) (envelope-from <john@jkemp.net>) id 1MdpJO-0002xs-1q; Wed, 19 Aug 2009 11:51:02 -0600
Message-ID: <4A8C3B7C.5040501@jkemp.net>
Date: Wed, 19 Aug 2009 13:50:52 -0400
From: John Kemp <john@jkemp.net>
User-Agent: Thunderbird 2.0.0.22 (Windows/20090605)
MIME-Version: 1.0
To: Jamie Lokier <jamie@shareable.org>
References: <20090814213754.GD12021@shareable.org> <OF3B15D497.B76ABF1A-ON85257617.0058A11E-85257617.0059BD1A@lotus.com> <20090819164618.GA991@shareable.org>
In-Reply-To: <20090819164618.GA991@shareable.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Identified-User: {1122:box320.bluehost.com:jkempnet:jkemp.net} {sentby:smtp auth 69.205.56.47 authed with john+jkemp.net}
Cc: hybi@ietf.org, uri-request@w3.org, Kristof Zelechovski <giecrilj@stegny.2a.pl>, uri@w3.org, uri-review@ietf.org, noah_mendelsohn@us.ibm.com, 'David Booth' <david@dbooth.org>
Subject: Re: [hybi] [Uri-review] 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: Wed, 19 Aug 2009 17:57:36 -0000

Jamie Lokier wrote:
> noah_mendelsohn@us.ibm.com wrote:
>> Jamie Lokier writes:

...

>  Given a URI, you
> cannot tell from Content-Type whether that URI supports WebDAV,

However, the WebDAV specification does specifically offer some level of 
compatibility with existing non-WebDAV-aware clients - 
http://tools.ietf.org/html/rfc4918#appendix-B

Without a WebDAV-aware client, I can still perform some non-WebDAV HTTP 
requests.

With a WebDAV-aware client, I can perform WebDAV HTTP requests which the 
server may or may not support, but the server can tell me, according to 
HTTP specification that a "method is not supported".

> and
> you cannot tell whether that URI accepts POSTs to submit new blog
> entries - just to pick two widely used examples.

A client able to submit a POST can try, but might fail.

> 
> That requires another level of descriptive metadata, which
> Content-Type does not provide and is not always available in any other
> form.  But, just like people can enter a "blog posting" URI into their
> mobile phone, there will be reasons why people enter WebSockets URIs
> into applications, with no way for the application to verify the
> protocol except by trying it.

The question is perhaps really about whether you want to provide _some_ 
compatibility with existing non-websock-aware clients.

> 
>> So, this is a desirable characteristic for Web resources, and it's
>> one of the things that HTTP gives you.  Indeed, the whole Web is
>> designed so that you can start with RFC 3986, the specification for
>> URIs, and using the references to which it (recursively) delegates,
>> discover how to correctly interact with and interpret responses from
>> any resource on the Web.  Under the auspices of the W3C TAG, I
>> prepared a "finding" [1] that goes into more detail on these issues
>> and their implications.
> 
> In other words, I disagree with the above.  You can't find which
> particular protocols are overlaid on top of HTTP at every findable URI
> by the existing mechanisms, and it's unlikely that will ever be
> possible.

It is possible for those designing Web protocols to consider 
compatibility with existing Web client software, and to provide ways of 
allowing new and existing clients to determine the capabilities of 
HTTP-identified resources. The TAG finding that Noah mentions describes 
ways in which (some) others have allowed for clients to "follow their 
noses" and discover how to operate with servers regarding particular 
resources. There are other ways to do it, but the point is that it 
depends on protocol designers making the decision to offer such 
facilities. Using HTTP URIs to identify resources is a good way to begin 
that process.

Regards,

- johnk

[1] http://www.w3.org/2001/tag/doc/selfDescribingDocuments.html

From noah_mendelsohn@us.ibm.com  Wed Aug 19 12:11:35 2009
Return-Path: <noah_mendelsohn@us.ibm.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 62C523A6CB0; Wed, 19 Aug 2009 12:11:35 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.871
X-Spam-Level: 
X-Spam-Status: No, score=-5.871 tagged_above=-999 required=5 tests=[AWL=0.728,  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 JBLwgfP0KRR1; Wed, 19 Aug 2009 12:11:34 -0700 (PDT)
Received: from e33.co.us.ibm.com (e33.co.us.ibm.com [32.97.110.151]) by core3.amsl.com (Postfix) with ESMTP id 586863A6C8B; Wed, 19 Aug 2009 12:11:34 -0700 (PDT)
Received: from d03relay04.boulder.ibm.com (d03relay04.boulder.ibm.com [9.17.195.106]) by e33.co.us.ibm.com (8.14.3/8.13.1) with ESMTP id n7JJ9VDX005335; Wed, 19 Aug 2009 13:09:31 -0600
Received: from d03av03.boulder.ibm.com (d03av03.boulder.ibm.com [9.17.195.169]) by d03relay04.boulder.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id n7JJBO96108538; Wed, 19 Aug 2009 13:11:26 -0600
Received: from d03av03.boulder.ibm.com (loopback [127.0.0.1]) by d03av03.boulder.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id n7JJBOeg003980; Wed, 19 Aug 2009 13:11:24 -0600
Received: from internet1.lotus.com (internet1.lotus.com [9.32.140.212]) by d03av03.boulder.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id n7JJBN5v003937 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Wed, 19 Aug 2009 13:11:24 -0600
Received: from wtfmail05.lotus.com (WTFMAIL05.lotus.com [9.32.140.23]) by internet1.lotus.com (8.14.2/8.14.1) with ESMTP id n7JJBNYO2220052; Wed, 19 Aug 2009 14:11:23 -0500
In-Reply-To: <20090819164618.GA991@shareable.org>
To: Jamie Lokier <jamie@shareable.org>
MIME-Version: 1.0
X-Mailer: Lotus Notes Release 7.0.1 January 17, 2006
Message-ID: <OFB1F05FED.A9F02091-ON85257617.00682518-85257617.00695076@lotus.com>
From: noah_mendelsohn@us.ibm.com
Date: Wed, 19 Aug 2009 15:13:44 -0400
X-MIMETrack: Serialize by Router on WTFMAIL05/WTF/M/Lotus(Build V851_08132009|August 13, 2009) at 08/19/2009 03:13:45 PM, Serialize complete at 08/19/2009 03:13:45 PM
Content-Type: text/plain; charset="US-ASCII"
Cc: hybi@ietf.org, uri-review@ietf.org, Kristof Zelechovski <giecrilj@stegny.2a.pl>, uri@w3.org, 'David Booth' <david@dbooth.org>
Subject: Re: [hybi] [Uri-review] 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: Wed, 19 Aug 2009 19:11:35 -0000

Jamie Lokier writes:

> Secondly, this thread has talked about protocols on top of protocols
> (because every WebSockets application will be one).  Given a URI, you
> cannot tell from Content-Type whether that URI supports WebDAV, and
> you cannot tell whether that URI accepts POSTs to submit new blog
> entries - just to pick two widely used examples.
> 
> That requires another level of descriptive metadata

You're pointing out that the Web doesn't use static interface 
descriptions, except insofar as the rules for HTTP and URIs are set out in 
advance.

On the Web, you don't ask for static metadata that answers the question: 
"if I were to try a WebDav HTTP method on URI X, would it work?"  You try 
it.  HTTP tells you whether it worked, and if it did, gives back 
information that is interpretable (relatively) unambiguously per the 
specifications for URI (RFC 3986), which delegate to HTTP (RFC 2616), 
which in turn delegates to the media-type registration for the 
Content-type, etc.

FWIW: Web Services with WSDL take the opposite approach.  Web services do 
tend to emphasize static interface descriptions, advertised in advance. 
While there's endless gnashing regarding the pros and cons, it's along the 
lines of:  advance descriptions can be aids to tooling, debugging, and 
sometimes optimization, but dynamically negotiated contracts are usually 
more flexible.  In particular, I don't think the Web would work nearly as 
well if each URI had to advertise in advance:  "if you try a GET, I'll 
support it, and you'll get an image/jpeg".  Just do the GET, or WebDav, 
and see what happens.

Anyway, I thing we should wrap up this aspect of the discussion.  There 
are indeed some interesting questions as to how self-describing the 
websocket protocols should be, but here I think we're mainly concerned 
with the choice of URI scheme. 

Noah


--------------------------------------
Noah Mendelsohn 
IBM Corporation
One Rogers Street
Cambridge, MA 02142
1-617-693-4036
--------------------------------------





From mnot@mnot.net  Wed Aug 19 16:34:32 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 C05A53A6CB3 for <hybi@core3.amsl.com>; Wed, 19 Aug 2009 16:34:32 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.781
X-Spam-Level: 
X-Spam-Status: No, score=-4.781 tagged_above=-999 required=5 tests=[AWL=-2.182, 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 JoUcWfHjbcYP for <hybi@core3.amsl.com>; Wed, 19 Aug 2009 16:34:31 -0700 (PDT)
Received: from mxout-07.mxes.net (mxout-07.mxes.net [216.86.168.182]) by core3.amsl.com (Postfix) with ESMTP id 525643A6D0D for <hybi@ietf.org>; Wed, 19 Aug 2009 16:34:12 -0700 (PDT)
Received: from [192.168.1.6] (unknown [118.208.160.18]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id BD84522E247; Wed, 19 Aug 2009 19:34:10 -0400 (EDT)
Message-Id: <C9931C12-E123-437D-8E7D-F8C680C62397@mnot.net>
From: Mark Nottingham <mnot@mnot.net>
To: URI <uri@w3.org>, hybi@ietf.org
In-Reply-To: <OF22CD1320.96C55266-ON85257610.004AB599-85257610.004BC9CA@lotus.com>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes
Content-Transfer-Encoding: 7bit
Mime-Version: 1.0 (Apple Message framework v936)
Date: Thu, 20 Aug 2009 09:34:07 +1000
References: <OF22CD1320.96C55266-ON85257610.004AB599-85257610.004BC9CA@lotus.com>
X-Mailer: Apple Mail (2.936)
Subject: Re: [hybi] [Uri-review] 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: Wed, 19 Aug 2009 23:34:32 -0000

I really hesitate to wade into what looks like another huge rat-hole.

Using HTTP for XRIs seemed like a good idea because XRI was trying to  
re-invent URIs, and not define a protocol; HTTP gave them a default  
protocol, as it were, in case you ever did want to interact with them.

WebSockets is defining a protocol, and so is a very different case. It  
is definitely not HTTP.

I can't help but feel that if we follow the arguments given in this  
thread, there won't be any need for FTP, or telnet, or any other URI  
schemes; all will be subsumed by HTTP, and eventually we won't need  
any URI schemes at all (because it's HTTP all the way down).

While that's one possible future, I suppose, I think it's pretty far  
off. Certainly, trading off in-URL metadata in the scheme for more in  
the path component (as proposed earlier in this thread) is an ugly  
hack at best. Other extra-URL metadata approaches need to be proven  
(especially around performance issues), as well as accepted by  
implementers, because what's really being proposed is an extra layer  
of protocol discovery on top of WebSockets using HTTP.

As it stands, URIs still have schemes, and we still have mechanisms  
for defining new ones. If folks want to argue that we shouldn't, the  
best way to do that would be to get a standards-track document that  
obsoletes the relevant RFCs, rather than blocking individual  
registrations.

Cheers,

--
Mark Nottingham     http://www.mnot.net/


From jamie@shareable.org  Wed Aug 19 17:59:36 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 7BDB928C3D8 for <hybi@core3.amsl.com>; Wed, 19 Aug 2009 17:59:36 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.121
X-Spam-Level: 
X-Spam-Status: No, score=-4.121 tagged_above=-999 required=5 tests=[AWL=-1.522, 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 FfbWNnaKlJsQ for <hybi@core3.amsl.com>; Wed, 19 Aug 2009 17:59:35 -0700 (PDT)
Received: from mail2.shareable.org (mail2.shareable.org [80.68.89.115]) by core3.amsl.com (Postfix) with ESMTP id 8C3A33A697C for <hybi@ietf.org>; Wed, 19 Aug 2009 17:59:35 -0700 (PDT)
Received: from jamie by mail2.shareable.org with local (Exim 4.63) (envelope-from <jamie@shareable.org>) id 1Mdw05-0003j0-1t; Thu, 20 Aug 2009 01:59:33 +0100
Date: Thu, 20 Aug 2009 01:59:33 +0100
From: Jamie Lokier <jamie@shareable.org>
To: Mark Nottingham <mnot@mnot.net>
Message-ID: <20090820005933.GA14005@shareable.org>
References: <OF22CD1320.96C55266-ON85257610.004AB599-85257610.004BC9CA@lotus.com> <C9931C12-E123-437D-8E7D-F8C680C62397@mnot.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <C9931C12-E123-437D-8E7D-F8C680C62397@mnot.net>
User-Agent: Mutt/1.5.13 (2006-08-11)
Cc: URI <uri@w3.org>, hybi@ietf.org
Subject: Re: [hybi] [Uri-review] 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: Thu, 20 Aug 2009 00:59:36 -0000

Fwiw, I agree with Mark that we should not be shy about using new
schemes for new protocols that are not HTTP.

Only things which run _over_ HTTP should use be using HTTP URIs, and
WebSockets does not run over HTTP... but:

Mark Nottingham wrote:
> WebSockets is defining a protocol, and so is a very different case. It  
> is definitely not HTTP.

That's correct, WebSockets is not HTTP.

However it does begin with an HTTP connection and an HTTP request, to
a server which may be serving other HTTP resources on the same port.

Quite possibly over port 80, and in the process trip over HTTP proxies.

So it's not really the same as telnet, FTP etc.

Three notable things for which there is no consensus(*) are:

  1. Does the WebSockets really have to use a fresh, new TCP
     connection for every individual instance of the WebSockets object
     created on every web page in a browser to the same site?  Or
     could it upgrade an HTTP connection which has already been used
     for something else?

  2. Since it begins with an HTTP request for upgrade to WebSockets,
     is there any reason for that request not to be to an arbitrary
     HTTP host+port+path by simply trying the upgrade method on the
     appropriate HTTP path at the server?

  3. If a WebSockets connection cannot be established, clients
     will(**) fall back to an equivalent (but bulkier/slower) protocol
     which uses HTTP only.  What URI will they use in that case?  Do
     we leave it to individual application/framework designers, or do
     we suggest a common strategy?

* -  Although it has been asked if the protocol is a "politically agreed"
     foregone conclusion (due to an earlier message) and therefore if
     we are wasting our time with design discussions.

** - As in, even if the spec does not provide this and browsers do not
     provide it, there will certainly be Javascript
     WebSockets-emulation modules and corresponding server-sides which
     do.  We can choose to ignore this and leave the mapping from
     WebSockets URI to HTTP-fallback URI unspecified, or recommend
     a mapping, or they can simply by the same URI given point 2.

-- Jamie

From dret@berkeley.edu  Wed Aug 19 18:44:57 2009
Return-Path: <dret@berkeley.edu>
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 BE2A33A6C87 for <hybi@core3.amsl.com>; Wed, 19 Aug 2009 18:44:57 -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=[AWL=0.000,  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 CTi4wlWHY53a for <hybi@core3.amsl.com>; Wed, 19 Aug 2009 18:44:56 -0700 (PDT)
Received: from smtp.ischool.berkeley.edu (bliss.ISchool.Berkeley.EDU [128.32.78.13]) by core3.amsl.com (Postfix) with ESMTP id 2700F28C120 for <hybi@ietf.org>; Wed, 19 Aug 2009 18:44:19 -0700 (PDT)
Received: from [128.32.226.216] (dhcp216.ISchool.Berkeley.EDU [128.32.226.216]) (authenticated bits=0) by smtp.ischool.berkeley.edu (8.13.1/8.13.1) with ESMTP id n7K1iKNA011699 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 19 Aug 2009 18:44:20 -0700
Message-ID: <4A8CAA72.3000209@berkeley.edu>
Date: Wed, 19 Aug 2009 18:44:18 -0700
From: Erik Wilde <dret@berkeley.edu>
User-Agent: Thunderbird 2.0.0.22 (Windows/20090605)
MIME-Version: 1.0
To: Mark Nottingham <mnot@mnot.net>
References: <OF22CD1320.96C55266-ON85257610.004AB599-85257610.004BC9CA@lotus.com> <C9931C12-E123-437D-8E7D-F8C680C62397@mnot.net>
In-Reply-To: <C9931C12-E123-437D-8E7D-F8C680C62397@mnot.net>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Scanned-By: MIMEDefang 2.67 on 128.32.78.13
Cc: URI <uri@w3.org>, hybi@ietf.org
Subject: Re: [hybi] [Uri-review] 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: Thu, 20 Aug 2009 01:44:57 -0000

hello mark.

Mark Nottingham wrote:
> I can't help but feel that if we follow the arguments given in this 
> thread, there won't be any need for FTP, or telnet, or any other URI 
> schemes; all will be subsumed by HTTP, and eventually we won't need any 
> URI schemes at all (because it's HTTP all the way down).

http://dret.typepad.com/dretblog/2009/07/the-last-uri-scheme-youll-ever-need.html 
was something i wrote recently based on another instance where people 
were arguing that from now on, all we'll ever need is HTTP URIs and 
string matching to detect special classes of URIs, that can then be 
handled differently, if an application has knowledge of the pattern that 
needs to be matched.

while the argument for string matching for "special URIs" has been 
repeated a number of times, i still haven't seen any example in real 
life where this happened in the way predicted: plain HTTP users 
discovering useful metadata or getting useful fallback behavior, and 
other applications doing string matching and implementing non-HTTP 
behavior. are there any examples where this has happened on any 
significant scale?

cheers,

dret.

From noah_mendelsohn@us.ibm.com  Thu Aug 20 09:32:24 2009
Return-Path: <noah_mendelsohn@us.ibm.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 B7E0E3A6AB3 for <hybi@core3.amsl.com>; Thu, 20 Aug 2009 09:32:24 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.992
X-Spam-Level: 
X-Spam-Status: No, score=-4.992 tagged_above=-999 required=5 tests=[AWL=-0.393, 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 Z83CStaFP+ym for <hybi@core3.amsl.com>; Thu, 20 Aug 2009 09:32:23 -0700 (PDT)
Received: from e9.ny.us.ibm.com (e9.ny.us.ibm.com [32.97.182.139]) by core3.amsl.com (Postfix) with ESMTP id 0E3893A6A4D for <hybi@ietf.org>; Thu, 20 Aug 2009 09:32:22 -0700 (PDT)
Received: from d01relay07.pok.ibm.com (d01relay07.pok.ibm.com [9.56.227.147]) by e9.ny.us.ibm.com (8.14.3/8.13.1) with ESMTP id n7KGV7Xm011780 for <hybi@ietf.org>; Thu, 20 Aug 2009 12:31:07 -0400
Received: from d03av01.boulder.ibm.com (d03av01.boulder.ibm.com [9.17.195.167]) by d01relay07.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id n7KGWCNM720976 for <hybi@ietf.org>; Thu, 20 Aug 2009 12:32:12 -0400
Received: from d03av01.boulder.ibm.com (loopback [127.0.0.1]) by d03av01.boulder.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id n7KGW8pU005731 for <hybi@ietf.org>; Thu, 20 Aug 2009 10:32:08 -0600
Received: from internet1.lotus.com (internet1.lotus.com [9.32.140.212]) by d03av01.boulder.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id n7KGW7k9005699 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Thu, 20 Aug 2009 10:32:08 -0600
Received: from wtfmail05a.lotus.com (WTFMAIL05A.lotus.com [9.32.140.24]) by internet1.lotus.com (8.14.2/8.14.1) with ESMTP id n7KGW7IK2166800; Thu, 20 Aug 2009 11:32:07 -0500
In-Reply-To: <20090820005933.GA14005@shareable.org>
To: Jamie Lokier <jamie@shareable.org>, Ian Hickson <ian@hixie.ch>
MIME-Version: 1.0
X-KeepSent: 8D5BA760:E7D4B460-85257618:0058E88A; type=4; name=$KeepSent
X-Mailer: Lotus Notes Release 7.0.2 September 26, 2006
Message-ID: <OF8D5BA760.E7D4B460-ON85257618.0058E88A-85257618.005AD481@lotus.com>
From: noah_mendelsohn@us.ibm.com
Date: Thu, 20 Aug 2009 12:32:06 -0400
X-MIMETrack: Serialize by Router on WTFMAIL05a/WTF/M/Lotus(Release 8.5|December 05, 2008) at 08/20/2009 12:32:06 PM, Serialize complete at 08/20/2009 12:32:06 PM
Content-Type: text/plain; charset="US-ASCII"
Cc: hybi@ietf.org, URI <uri@w3.org>
Subject: Re: [hybi] [Uri-review] 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: Thu, 20 Aug 2009 16:32:24 -0000

Jamie Lokier writes:

> However it does begin with an HTTP connection and an HTTP request, to
> a server which may be serving other HTTP resources on the same port.

I think the use case that makes an http scheme potentially interesting is:

Some application is using these ws: or wss: URIs.  The URIs wind up in 
documents or in other places where they can be discovered, perhaps because 
that is how the application keeps track of or advertises various web 
socket endpoints.  Now some other agent, perhaps a search crawler, comes 
upon the documents and finds the references.  If they are http-scheme 
URIs, then the crawler will know how to dereference them.  Of course, this 
agent will not go through the upgrade protocol, and will attempt an 
ordinary HTTP GET.  If the server (I.e. the same software that would have 
processed the Web socket upgrade) chooses to, it can respond with metadata 
explaining that this is a Websocket resource, perhaps providing 
information about its purpose and correct use, etc.  The means for 
returning that metadata might be along the lines of [1].  That 
discoverability seems to have some value. 

Interestingly, the fact that Websockets uses an HTTP-compatible initial 
handshake makes this achievable in practice, I think.

Ian Hickson wrote (earlier in this thread)

> On Wed, 12 Aug 2009 noah_mendelsohn@us.ibm.com wrote:
> > 
> > So, here's an example.  First, let's make the assumption thatthere is 
> > an HTTP server at port 80 at "http://wss.example/", 
> presumably run by an 
> > organization that supports the use of wss.  Assuming that the normal 
> > path through the Web sockets client apis does not access 
> this, the HTTP 
> > server will be used only by legacy clients.
> > 
> > Where's the value?  Let's assume that a link to a WS resourcewinds up 
> > in a page somewhere for some reason.  It could be a bug report, 
> > whatever. Now a search engine crawler stumbles on the bug 
> report page. 
> > If we use the wss: scheme, then either the crawler has 
> special knowledge 
> > of WS, or nothing much useful happens.  If we use 
> > "http://wss.example/..... then the crawler sends a GET to 
> that.  Choose 
> > your favorite metadata access mechanism (perhaps [1], maybe RDFa, 
> > whatever), and the crawler has the opportunity to discover 
> "ah, this is 
> > a WS resource", or at least to learn some things about it.  To some 
> > extent that's true with either approach (the crawler at least
> knows it's 
> > got a link in a scheme that's not understood with wss:), but the 
> > opportunities for incremental discovery seem to be 
> significantly greater 
> > with HTTP.
> > 
> > As Dave Orchard points out, these issues were debated in great detail 
> > with XRI came up for consideration at Oasis, and I think it's fair to 
> > say that the starting position of those proposing xri was initially at 

> > least as firm as that of advocates of wss.  I think Dave is right that 

> > at least many of those same people came to believe that an http-based 
> > approach was in fact either better, or at least a reasonable 
> compromise. 
> > You might want to check with them.
> 
> Do you believe that the above applies to Web Socket protocol connections 

> more than it does to telnet or SSH connections? If so, why?

In principle, probably no, or mostly no; the cases are indeed quite 
similar.  It would be nice to have a uniform protocol for a user agent to 
at least find out >something< about such URIs.  That said, ftp and telnet 
have been widely deployed since the early days of the Web.  To some 
degree, those user agents that want to interact with or learn about ftp or 
telnet resources tend to be coded to understand them.

Websockets seem different in two ways, one of which is more or less a 
happy accident:

1) Websockets are new, so there's an awful lot of software out there that 
will just not recognize the new schemes at all.
2) (happy accident) I suspect the choice of an HTTP-compatible handshake 
was made to get through firewalls, but I think it also facilitates the use 
of HTTP for metadata discovery for web socket resources.

I do see both sides of the "use ws:" vs "use http:" question.  Web socket 
endpoints are not documents (or "Information Resources" [2] in the 
language of AWWW), suggesting that new schemes are indeed appropriate; 
using http:://websockets.org or the like is indeed a bit tricky and 
confusing.  HTTP is at best usable for finding metadata about the Web 
socket.  So, I think there are advantages both ways.

FWIW:  the case has been made that ws: and wss: scheme URIs will mostly 
appear in code that is private to individual applications, as opposed to 
being widely published on the Web.  That being the case, I wonder whether 
it would be better to leave these convenient short names free for future 
use, and to choose something a bit longer for Web sockets?  In general, it 
seems a good thing to allocate short names beginning with the letter "w" 
with a bit of care, given that things on the Web tend to be called "Web 
xxxx" (in this case, "Web Sockets").

Noah

[1] http://tools.ietf.org/html/draft-hammer-discovery-03
[2] http://www.w3.org/TR/webarch/#def-information-resource

--------------------------------------
Noah Mendelsohn 
IBM Corporation
One Rogers Street
Cambridge, MA 02142
1-617-693-4036
--------------------------------------








Jamie Lokier <jamie@shareable.org>
Sent by: uri-request@w3.org
08/19/2009 08:59 PM
 
        To:     Mark Nottingham <mnot@mnot.net>
        cc:     URI <uri@w3.org>, hybi@ietf.org, (bcc: Noah 
Mendelsohn/Cambridge/IBM)
        Subject:        Re: [hybi] [Uri-review] ws: and wss: schemes


Fwiw, I agree with Mark that we should not be shy about using new
schemes for new protocols that are not HTTP.

Only things which run _over_ HTTP should use be using HTTP URIs, and
WebSockets does not run over HTTP... but:

Mark Nottingham wrote:
> WebSockets is defining a protocol, and so is a very different case. It 
> is definitely not HTTP.

That's correct, WebSockets is not HTTP.

However it does begin with an HTTP connection and an HTTP request, to
a server which may be serving other HTTP resources on the same port.

Quite possibly over port 80, and in the process trip over HTTP proxies.

So it's not really the same as telnet, FTP etc.

Three notable things for which there is no consensus(*) are:

  1. Does the WebSockets really have to use a fresh, new TCP
     connection for every individual instance of the WebSockets object
     created on every web page in a browser to the same site?  Or
     could it upgrade an HTTP connection which has already been used
     for something else?

  2. Since it begins with an HTTP request for upgrade to WebSockets,
     is there any reason for that request not to be to an arbitrary
     HTTP host+port+path by simply trying the upgrade method on the
     appropriate HTTP path at the server?

  3. If a WebSockets connection cannot be established, clients
     will(**) fall back to an equivalent (but bulkier/slower) protocol
     which uses HTTP only.  What URI will they use in that case?  Do
     we leave it to individual application/framework designers, or do
     we suggest a common strategy?

* -  Although it has been asked if the protocol is a "politically agreed"
     foregone conclusion (due to an earlier message) and therefore if
     we are wasting our time with design discussions.

** - As in, even if the spec does not provide this and browsers do not
     provide it, there will certainly be Javascript
     WebSockets-emulation modules and corresponding server-sides which
     do.  We can choose to ignore this and leave the mapping from
     WebSockets URI to HTTP-fallback URI unspecified, or recommend
     a mapping, or they can simply by the same URI given point 2.

-- Jamie




From jamie@shareable.org  Thu Aug 20 12:02:00 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 52A9E3A6A0C for <hybi@core3.amsl.com>; Thu, 20 Aug 2009 12:02:00 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.064
X-Spam-Level: 
X-Spam-Status: No, score=-4.064 tagged_above=-999 required=5 tests=[AWL=-1.465, 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 1o5jkVBgIp+O for <hybi@core3.amsl.com>; Thu, 20 Aug 2009 12:01:59 -0700 (PDT)
Received: from mail2.shareable.org (mail2.shareable.org [80.68.89.115]) by core3.amsl.com (Postfix) with ESMTP id 50DBD3A689E for <hybi@ietf.org>; Thu, 20 Aug 2009 12:01:59 -0700 (PDT)
Received: from jamie by mail2.shareable.org with local (Exim 4.63) (envelope-from <jamie@shareable.org>) id 1MeCtZ-0001wu-QH; Thu, 20 Aug 2009 20:01:57 +0100
Date: Thu, 20 Aug 2009 20:01:57 +0100
From: Jamie Lokier <jamie@shareable.org>
To: noah_mendelsohn@us.ibm.com
Message-ID: <20090820190157.GB6066@shareable.org>
References: <20090820005933.GA14005@shareable.org> <OF8D5BA760.E7D4B460-ON85257618.0058E88A-85257618.005AD481@lotus.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <OF8D5BA760.E7D4B460-ON85257618.0058E88A-85257618.005AD481@lotus.com>
User-Agent: Mutt/1.5.13 (2006-08-11)
Cc: hybi@ietf.org, URI <uri@w3.org>
Subject: Re: [hybi] [Uri-review] 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: Thu, 20 Aug 2009 19:02:00 -0000

noah_mendelsohn@us.ibm.com wrote:
 If the server (I.e. the same software that would have 
> processed the Web socket upgrade) chooses to, it can respond with metadata 
> explaining that this is a Websocket resource, perhaps providing 
> information about its purpose and correct use, etc.  The means for 
> returning that metadata might be along the lines of [1].  That 
> discoverability seems to have some value. 

Hey, I like that idea.  Wish I'd thought of it :-)

For round-trip reduction I favour being able to try an upgrade
request, with your own optional headers, and have the server reject it
if it doesn't see what it wants, perhaps referrring to the information
you've described.  It also leaves the door for servers to respond with
different protocols depending on the request - in the same way as SSH1
and SSH2 are negotiated, for example, without needing extra round-trips.

That looks a *lot* like HTTP negotiation, and people are very
familiar with that.  Servers have good support for it too.

> Web socket endpoints are not documents (or "Information Resources"
> [2] in the language of AWWW), suggesting that new schemes are indeed
> appropriate;

I agree.

A comet server on http://cometd.org.example/cometd.cgi?protocol=bayeux
(example may not be realistic) is not a document in any useful sense
either.  Where are we going with this?  Should that become a legacy
hack?  Should we have a different scheme for all
"protocol-over-HTTP-misused-as-a-transport"?

> 2) (happy accident) 

> I suspect the choice of an HTTP-compatible handshake was made to get
> through firewalls,

I suspect it was so that it could connect to random servers and get a
useful error message if they don't support WebSockets (that has been
explained on the hybi list), and to connect to servers which are
handling HTTP on the same port.

For getting through firewalls - including ISPs who don't firewall but
are running intercepting proxies on port 80 - I think it's basically
going to fail at that because it doesn't consider proxy issues at all
- and because UPGRADE has never been deployed (as far as I know).  But
to be honest I don't know if it'll fail as much as I think in the real
world without measurements from a wide range of internet locations.
I'm not the only person who thinks so, though.

-- Jamie

From jwalden@MIT.EDU  Thu Aug 20 16:49:30 2009
Return-Path: <jwalden@MIT.EDU>
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 5C3433A6B0E for <hybi@core3.amsl.com>; Thu, 20 Aug 2009 16:49:30 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.999
X-Spam-Level: 
X-Spam-Status: No, score=-5.999 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, J_CHICKENPOX_53=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 kQNydAAwFdyC for <hybi@core3.amsl.com>; Thu, 20 Aug 2009 16:49:29 -0700 (PDT)
Received: from biscayne-one-station.mit.edu (BISCAYNE-ONE-STATION.MIT.EDU [18.7.7.80]) by core3.amsl.com (Postfix) with ESMTP id 914383A6A7C for <hybi@ietf.org>; Thu, 20 Aug 2009 16:49:29 -0700 (PDT)
Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103]) by biscayne-one-station.mit.edu (8.13.6/8.9.2) with ESMTP id n7KNnMXw016027; Thu, 20 Aug 2009 19:49:23 -0400 (EDT)
Received: from host-5-43.mv.mozilla.com (corp-240.mv.mozilla.com [63.245.220.240]) (authenticated bits=0) (User authenticated as jwalden@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id n7KNnKdN006526 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 20 Aug 2009 19:49:22 -0400 (EDT)
Message-ID: <4A8DE0F0.10204@mit.edu>
Date: Thu, 20 Aug 2009 16:49:04 -0700
From: Jeff Walden <jwalden@MIT.EDU>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.1.1) Gecko/20090715 Thunderbird/3.0b3
MIME-Version: 1.0
To: Mark Nottingham <mnot@mnot.net>
References: <507F3682-5AAF-4AC0-88F6-10A31B12380D@mnot.net>	<Pine.LNX.4.62.0907292309330.3189@hixie.dreamhostps.com> <407B3038-AF8B-4141-BE70-A9ADD905CC46@mnot.net>
In-Reply-To: <407B3038-AF8B-4141-BE70-A9ADD905CC46@mnot.net>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Scanned-By: MIMEDefang 2.42
Cc: hybi@ietf.org
Subject: Re: [hybi] Feedback on thewebsocketprotocol-22
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, 20 Aug 2009 23:49:30 -0000

On 12.8.09 03:44 , Mark Nottingham wrote:
> Thinking about it, I *believe* it should be possible to handle
> websockets without changing the format, however; assuming that it has a
> new URL scheme, the url passed to FindProxyForURL should contain enough
> information, and the DIRECT, PROXY and SOCKS return values should do the
> trick (keeping in mind that PROXY indicates an HTTP proxy).
>
> Of course, this will require changes both in the UA and in proxy.pac
> scripts, but not in the proxy.pac format itself.

This is correct; a draft implementation of WebSockets for Mozilla piggybacks on the HTTP server and proxying hacks we use for automated testing in this manner, and it does work perfectly well with changes to the PAC script.

Jeff

From gregw@webtide.com  Sun Aug 23 02:03: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 B3C8F3A69C6 for <hybi@core3.amsl.com>; Sun, 23 Aug 2009 02:03:09 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.122
X-Spam-Level: 
X-Spam-Status: No, score=-2.122 tagged_above=-999 required=5 tests=[AWL=0.477,  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 WWipoI5WqeQ0 for <hybi@core3.amsl.com>; Sun, 23 Aug 2009 02:03:09 -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 EF3243A6931 for <hybi@ietf.org>; Sun, 23 Aug 2009 02:03:08 -0700 (PDT)
Received: by pxi1 with SMTP id 1so5212973pxi.31 for <hybi@ietf.org>; Sun, 23 Aug 2009 02:03:11 -0700 (PDT)
Received: by 10.114.236.32 with SMTP id j32mr4984891wah.141.1251018190621; Sun, 23 Aug 2009 02:03:10 -0700 (PDT)
Received: from ?10.10.1.11? (60-242-119-126.tpgi.com.au [60.242.119.126]) by mx.google.com with ESMTPS id 22sm1437072pxi.14.2009.08.23.02.03.07 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 23 Aug 2009 02:03:09 -0700 (PDT)
Message-ID: <4A9105C7.6010203@webtide.com>
Date: Sun, 23 Aug 2009 19:03:03 +1000
From: Greg Wilkins <gregw@webtide.com>
User-Agent: Thunderbird 2.0.0.22 (X11/20090608)
MIME-Version: 1.0
To: hybi@ietf.org
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Subject: [hybi] BWTP mark II 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, 23 Aug 2009 09:03:09 -0000

All,

After considering the feedback received on the BWTP protocol proposal,
I've produced a second proposal that:

 + significantly simplifies the protocol while keeping most of the key
   features.  The simplification comes from separation of meta data from
   being an option in every frame to being an optional frame type.

 + Multiple channels are now part of the protocol rather than a convention
   applied to URIs

 + The protocol is able to carry HTTP header style meta data, but unlike
   HTTP, the protocol does not use such headers for any aspects of the
   transport.

http://bwtp.wikidot.com/main:proposal1

feed back welcome

regards

From noah_mendelsohn@us.ibm.com  Mon Aug 24 13:17:09 2009
Return-Path: <noah_mendelsohn@us.ibm.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 42C913A680F for <hybi@core3.amsl.com>; Mon, 24 Aug 2009 13:17:09 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.936
X-Spam-Level: 
X-Spam-Status: No, score=-5.936 tagged_above=-999 required=5 tests=[AWL=0.663,  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 6kmVZEj68XDT for <hybi@core3.amsl.com>; Mon, 24 Aug 2009 13:17:08 -0700 (PDT)
Received: from e4.ny.us.ibm.com (e4.ny.us.ibm.com [32.97.182.144]) by core3.amsl.com (Postfix) with ESMTP id 2C8A23A6EAD for <hybi@ietf.org>; Mon, 24 Aug 2009 13:17:08 -0700 (PDT)
Received: from d01relay04.pok.ibm.com (d01relay04.pok.ibm.com [9.56.227.236]) by e4.ny.us.ibm.com (8.14.3/8.13.1) with ESMTP id n7OKAlJL026437 for <hybi@ietf.org>; Mon, 24 Aug 2009 16:10:47 -0400
Received: from d01av01.pok.ibm.com (d01av01.pok.ibm.com [9.56.224.215]) by d01relay04.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id n7OKHD74248972 for <hybi@ietf.org>; Mon, 24 Aug 2009 16:17:13 -0400
Received: from d01av01.pok.ibm.com (loopback [127.0.0.1]) by d01av01.pok.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id n7OKHDPd000475 for <hybi@ietf.org>; Mon, 24 Aug 2009 16:17:13 -0400
Received: from internet1.lotus.com (internet1.lotus.com [9.32.140.212]) by d01av01.pok.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id n7OKHC5x000422 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Mon, 24 Aug 2009 16:17:13 -0400
Received: from wtfmail05.lotus.com (WTFMAIL05.lotus.com [9.32.140.23]) by internet1.lotus.com (8.14.2/8.14.1) with ESMTP id n7OKHCOS2502740; Mon, 24 Aug 2009 15:17:12 -0500
In-Reply-To: <20090820190157.GB6066@shareable.org>
To: Jamie Lokier <jamie@shareable.org>
MIME-Version: 1.0
X-Mailer: Lotus Notes Release 7.0.1 January 17, 2006
Message-ID: <OFB5CA31CC.68686941-ON8525761C.006F38B8-8525761C.006F549F@lotus.com>
From: noah_mendelsohn@us.ibm.com
Date: Mon, 24 Aug 2009 16:19:35 -0400
X-MIMETrack: Serialize by Router on WTFMAIL05/WTF/M/Lotus(Build V851_08132009|August 13, 2009) at 08/24/2009 04:19:35 PM, Serialize complete at 08/24/2009 04:19:35 PM
Content-Type: text/plain; charset="US-ASCII"
Cc: hybi@ietf.org, URI <uri@w3.org>
Subject: Re: [hybi] [Uri-review] 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: Mon, 24 Aug 2009 20:17:09 -0000

Jamie Lokier writes:

> noah_mendelsohn@us.ibm.com wrote:
>  If the server (I.e. the same software that would have 
> > processed the Web socket upgrade) chooses to, it can respond with 
metadata 
> > explaining that this is a Websocket resource, perhaps providing 
> > information about its purpose and correct use, etc.  The means for 
> > returning that metadata might be along the lines of [1].  That 
> > discoverability seems to have some value. 

> Hey, I like that idea.  Wish I'd thought of it :-)

I can't honestly tell if you're agreeing with me or gently pulling my leg. 
 If the former, then this is a reason to use an http-scheme URI.  Thanks.

Noah

--------------------------------------
Noah Mendelsohn 
IBM Corporation
One Rogers Street
Cambridge, MA 02142
1-617-693-4036
--------------------------------------








Jamie Lokier <jamie@shareable.org>
08/20/2009 03:01 PM
 
        To:     noah_mendelsohn@us.ibm.com
        cc:     Ian Hickson <ian@hixie.ch>, hybi@ietf.org, Mark Nottingham 
<mnot@mnot.net>, URI <uri@w3.org>
        Subject:        Re: [hybi] [Uri-review] ws: and wss: schemes


noah_mendelsohn@us.ibm.com wrote:
 If the server (I.e. the same software that would have 
> processed the Web socket upgrade) chooses to, it can respond with 
metadata 
> explaining that this is a Websocket resource, perhaps providing 
> information about its purpose and correct use, etc.  The means for 
> returning that metadata might be along the lines of [1].  That 
> discoverability seems to have some value. 

Hey, I like that idea.  Wish I'd thought of it :-)

For round-trip reduction I favour being able to try an upgrade
request, with your own optional headers, and have the server reject it
if it doesn't see what it wants, perhaps referrring to the information
you've described.  It also leaves the door for servers to respond with
different protocols depending on the request - in the same way as SSH1
and SSH2 are negotiated, for example, without needing extra round-trips.

That looks a *lot* like HTTP negotiation, and people are very
familiar with that.  Servers have good support for it too.

> Web socket endpoints are not documents (or "Information Resources"
> [2] in the language of AWWW), suggesting that new schemes are indeed
> appropriate;

I agree.

A comet server on http://cometd.org.example/cometd.cgi?protocol=bayeux
(example may not be realistic) is not a document in any useful sense
either.  Where are we going with this?  Should that become a legacy
hack?  Should we have a different scheme for all
"protocol-over-HTTP-misused-as-a-transport"?

> 2) (happy accident) 

> I suspect the choice of an HTTP-compatible handshake was made to get
> through firewalls,

I suspect it was so that it could connect to random servers and get a
useful error message if they don't support WebSockets (that has been
explained on the hybi list), and to connect to servers which are
handling HTTP on the same port.

For getting through firewalls - including ISPs who don't firewall but
are running intercepting proxies on port 80 - I think it's basically
going to fail at that because it doesn't consider proxy issues at all
- and because UPGRADE has never been deployed (as far as I know).  But
to be honest I don't know if it'll fail as much as I think in the real
world without measurements from a wide range of internet locations.
I'm not the only person who thinks so, though.

-- Jamie



From stpeter@stpeter.im  Thu Aug 27 11:48:25 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 591133A70DC for <hybi@core3.amsl.com>; Thu, 27 Aug 2009 11:48:25 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.645
X-Spam-Level: 
X-Spam-Status: No, score=-2.645 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 R7M+WsGm05Ny for <hybi@core3.amsl.com>; Thu, 27 Aug 2009 11:48:24 -0700 (PDT)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id 2C87E3A70F1 for <hybi@ietf.org>; Thu, 27 Aug 2009 11:48:20 -0700 (PDT)
Received: from squire.local (unknown [64.101.72.216]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id 99D104007B; Thu, 27 Aug 2009 12:48:24 -0600 (MDT)
Message-ID: <4A96D4F7.5060503@stpeter.im>
Date: Thu, 27 Aug 2009 12:48:23 -0600
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812)
MIME-Version: 1.0
To: Greg Wilkins <gregw@webtide.com>
References: <4A714D45.9080405@stpeter.im> <4A72DBDC.5090109@ericsson.com> <4A74E09E.20705@webtide.com>
In-Reply-To: <4A74E09E.20705@webtide.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
Subject: Re: [hybi] breakfast BoF minutes
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, 27 Aug 2009 18:48:25 -0000

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

On 8/1/09 6:41 PM, Greg Wilkins wrote:
> Salvatore Loreto wrote:
>> here you can find the slide we wasn't able to show during the meeting
>> due to the lack of  a beamer
>> in the room :
>> www.sloreto.com/tmp/HyBi BarBof.ppt
> 
> Sal,
> 
> I note in those slides that the "Long term solution" is stated
> to be the agreement between W3C and IETF and that it is the
> websocket protocol?    Also the minutes talk about the
> "political" agreement with the W3C.
> 
> Does this mean that efforts on alternative proposals such as BWTP
> are  non-starters?  If the political/technical decision has already
> been  made that the solution will be the WebSocket protocol, then
> I will switch my efforts back to trying to influence the websocket
> protocol.

Hi Greg,

I don't think that Sal meant that statement to be normative in any way.
It was more of an observation about the state of inter-SDO relations.

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/

iEYEARECAAYFAkqW1PcACgkQNL8k5A2w/vw88wCg3kCQ+DMOLbOvgWA36ySvDGv1
+7EAoLLGaYLXrzHVOmrEIHzozFWtHoYb
=wTrh
-----END PGP SIGNATURE-----

From julian.reschke@gmx.de  Sun Aug 30 01:03:28 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 CA3193A698D for <hybi@core3.amsl.com>; Sun, 30 Aug 2009 01:03:28 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.727
X-Spam-Level: 
X-Spam-Status: No, score=-4.727 tagged_above=-999 required=5 tests=[AWL=-2.128, 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 nOBCm-iyiW85 for <hybi@core3.amsl.com>; Sun, 30 Aug 2009 01:03:27 -0700 (PDT)
Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by core3.amsl.com (Postfix) with SMTP id 4ADCB3A6778 for <hybi@ietf.org>; Sun, 30 Aug 2009 01:03:26 -0700 (PDT)
Received: (qmail invoked by alias); 30 Aug 2009 08:03:33 -0000
Received: from p508FC310.dip.t-dialin.net (EHLO [192.168.178.33]) [80.143.195.16] by mail.gmx.net (mp069) with SMTP; 30 Aug 2009 10:03:33 +0200
X-Authenticated: #1915285
X-Provags-ID: V01U2FsdGVkX1+Brrwb+CmBtn+C+Bs3SDtGjszcU4Xd8odE9oiSsv 5YYWcLeBcpnJTz
Message-ID: <4A9A3255.90408@gmx.de>
Date: Sun, 30 Aug 2009 10:03:33 +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: 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.52
Subject: [hybi] [Fwd: Comments on draft-hixie-thewebsocketprotocol-35]
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, 30 Aug 2009 08:03:28 -0000

(FYI)

-------- Original Message --------
Date: Tue, 25 Aug 2009 20:54:03 +0100
From: Graham Klyne <ietf-discuss-apps@ninebynine.org>
User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812)
MIME-Version: 1.0
To: Apps Discuss <discuss@apps.ietf.org>
Subject: Comments on draft-hixie-thewebsocketprotocol-35

[I've tried sending this twice to the HYBI list, but for some reason 
it's not
getting through (this doesn't augur well for traditional IETF values of
openness).  So I'm sending it here in the expectation that someone will 
be able
to relay it to the proper forum.  #g.]


Dear all,

re: http://tools.ietf.org/html/draft-hixie-thewebsocketprotocol-35

[Summary:  in its present form, a thumbs down.]

I was prompted to review this spec by this comment posted to the W3C
technical architecture group (TAG) mailing list:

[[
What's the point of this new protocol? To bum a small constant in
network performance? Seems shortsighted given the enormous amount of
effort it takes to tool up for and specify a new protocol. Not to
mention one that looks to essentially end a platform on which to build
a further babel of ad hoc protocols. And considering Moores law.

Definitely worth a review, if you ask me. URN versus URI seems the
least issue here.
]]

I thought this comment missed what I thought was the point, and that 
maybe it
needed to be corrected.  But on reading the spec in its current form, I 
can see
why someone would say this.

...

So, what's the problem, in two parts:
(a) what problem is being solved?
(b) what is the problem with the spec?

My understanding of the problem to be solved, based on what I understand 
about
the goals of HYBI, is that in its present form the Web has no common way to
"push" information to a browser application.  There are a number of
solutions/workarounds based on HTTP long-polling or variants, but these have
variousbproblems with proxies, etc., and there is as yet no single accepted
solution.  My expectation is that the websockets protocol proposes to be 
such a
solution.

I think the specification, in its current form, completely fails to present
itself as such a solution.  To me, it reads less like an open protocol
specification, and rather more like a programming team internal design memo.
 From reading it, I can't tell if it addresses the problem I expected it 
to address.

It seems to me that you need to understand websockets in some detail in 
order to
understand this spec with a reasonable amount of effort - I want to be 
able to
pick out the "high points" on a single read though, but instead I find 
myself
plunged into a level of detail that I can't relate to.

For example, take the very first sentence of the Introduction (sic): 
"The Web
Socket protocol is designed on the principle that there should be minimal
framing (the only framing that exists is to make the protocol frame-based
instead of stream-based, and to support a distinction between Unicode 
text and
binary frames)" - this very first sentence introduces a number of 
lower-level
techncial issues (framing, frame-based, stream-based, unicode text, binary
frames) without providing any context.

Even the abstract isn't very helpful here (the second sentence, starting 
with
"It is intended to fail ..." doesn't exactly engender confidence).

None of this means that I think this is a bad protocol:  the truth is, I 
can't
tell if it is or not.  So, yes, my comments could be construed as being 
about
style rather than substance, but if we're in the business of forging 
consensus I
think some consideration needs to be given to the readers of a 
specification in
order to get meaningful review.  I'll try and make a few suggestions, 
which I
don't claim are best or complete:

1. Provide some context and motivation.  Start the introduction by 
stating the
problem that is being solved, and why it is not solved by existing standard
protocols.  Also, alomng the way, it might be worth mentioning efforts like
cometd/bayeux and BOSH and saying how this proposal is similar and/or 
different.

2. Indicate some specific types of applications for which the problem 
exists (my
favourites include: real-time web page updates, synchronization of displays
between multiple web pages, on-the-fly persisting of user interactions, 
...).

3. [nit] Abstract: talk about "graceful fallback" instead of "intended 
to fail"

4. Introduce key concepts before delving into details about them:  I 
don't mean
in textboook fashion, but indicating how they relate to the problem at hand
(e.g. why is framing an issue, how does it relate to Unicode bvs binary 
data?).

5. Move most of the current "introduction" text into a high-level protocol
description section.

6. Provide a protocol state diagram or similar overview.

7. Section 3:  why is this based on [WEBADDRESSES] rather than [RFC3986]?  I
can't offhand tell if [WEBADDRESSES] is acceptable as a normative reference.

I have not read sections 4 and 5 in detail, as they seem to be concerned
entirely with very low-level and rather wordy protocol processing 
descriptions,
but I find myself asking:  why not just specify a hand-off extension to HTTP
that allows bidirectional communication to proceed using a protocol such as
BEEP?  I fear there's a certain amount of reinvention going on here.  But I
could be wrong.

I wish I could be more constructive, but in its present form I can't see
anything that helps me in this current specification.  Maybe this can be
improved, as I think the goals of HYBI are important.

#g






_______________________________________________
Apps-Discuss mailing list
Apps-Discuss@ietf.org
https://www.ietf.org/mailman/listinfo/apps-discuss


From gregw@webtide.com  Sun Aug 30 22:14: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 BC4193A6CB9 for <hybi@core3.amsl.com>; Sun, 30 Aug 2009 22:14:32 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.156
X-Spam-Level: 
X-Spam-Status: No, score=-2.156 tagged_above=-999 required=5 tests=[AWL=0.443,  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 GRWGJjHH8wiw for <hybi@core3.amsl.com>; Sun, 30 Aug 2009 22:14:31 -0700 (PDT)
Received: from mail-ew0-f225.google.com (mail-ew0-f225.google.com [209.85.219.225]) by core3.amsl.com (Postfix) with ESMTP id BAC473A6D8C for <hybi@ietf.org>; Sun, 30 Aug 2009 22:12:54 -0700 (PDT)
Received: by ewy25 with SMTP id 25so3807745ewy.9 for <hybi@ietf.org>; Sun, 30 Aug 2009 22:13:01 -0700 (PDT)
Received: by 10.211.141.15 with SMTP id t15mr4859345ebn.59.1251695581028; Sun, 30 Aug 2009 22:13:01 -0700 (PDT)
Received: from ?10.10.1.11? (60-242-119-126.tpgi.com.au [60.242.119.126]) by mx.google.com with ESMTPS id 24sm287676eyx.13.2009.08.30.22.12.57 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 30 Aug 2009 22:12:59 -0700 (PDT)
Message-ID: <4A9B5BC7.8000205@webtide.com>
Date: Mon, 31 Aug 2009 15:12:39 +1000
From: Greg Wilkins <gregw@webtide.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090817)
MIME-Version: 1.0
To: hybi@ietf.org
References: <4A9A3255.90408@gmx.de>
In-Reply-To: <4A9A3255.90408@gmx.de>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Subject: Re: [hybi] [Fwd: Comments on draft-hixie-thewebsocketprotocol-35]
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, 31 Aug 2009 05:14:32 -0000

Julian Reschke wrote:

> I think the specification, in its current form, completely fails to present
> itself as such a solution.  To me, it reads less like an open protocol
> specification, and rather more like a programming team internal design
> memo.

Julian,

I too have been very critical of the websocket protocol.
But I think that the IETF and specifically the hybi group should not
get become "captured" by trying to correct short comings of this
protocol and it's specification.   It is very difficult to critique
the protocol and/or proposal as the authors find it very suitable for
their specific purposes.

Instead, I believe that the websocket protocol should be viewed as just
one  use-case for a bidirectional protocol coming from the whatwg efforts
on HTML5.  I think it should consider it more of a requirements document
than a real proposal for an open protocol specification.

If the IETF were to move forward on a real open protocol specification that
met the use-case of the websocket proposal (among others), then surely
all parties would be content with the result.



> but I find myself asking:  why not just specify a hand-off extension to
> HTTP
> that allows bidirectional communication to proceed using a protocol such as
> BEEP?  I fear there's a certain amount of reinvention going on here.  But I
> could be wrong.

I previously advocated BEEP as a possible protocol for the bidirection web.
See the thread "Is there a traffic jam?" in the hybi list, which briefly
discussed BEEP before going off topic.

The argument that eventually convinced me that BEEP was not entirely
suitable, was that while BEEP framing is simple and suitable, the channel
management of BEEP is rather complex and requires XML.


So I draw your attention again to the BWTP draft proposals.  The first
of these http://bwtp.wikidot.com/main:proposal, was very much influenced
by HTTP - but the feedback received was that it too was a bit too complex
for the features that it provided.

The second BWTP proposal: http://bwtp.wikidot.com/main:proposal1 is modeled
more off BEEP than HTTP.   I believe it provides a rich bidirectional
feature set, which maintaining the simplicity of BEEP style framing.


But even if you find BWTP inappropriate, I believe that the IETF
should be working from known successful protocols and protocol
experience to design, test and specify an new bidirectional protocol.

Surely the IETF should build from it's existing knowledge base
rather than adopt a binary protocol proposal for a very
specific purpose that is a radical departure from the style
and substance of past IETF protocols!


cheers
















