Re: [hybi] [Uri-review] ws: and wss: schemes

David Orchard <orchard@pacificspirit.com> Wed, 12 August 2009 03:55 UTC

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:".  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
>
>
>
> _______________________________________________
> hybi mailing list
> hybi@ietf.org
> https://www.ietf.org/mailman/listinfo/hybi
>