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

Ian Hickson <ian@hixie.ch> Thu, 17 September 2009 10:07 UTC

Return-Path: <ian@hixie.ch>
X-Original-To: uri-review@core3.amsl.com
Delivered-To: uri-review@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id B8F8D3A686B; Thu, 17 Sep 2009 03:07:25 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.506
X-Spam-Level:
X-Spam-Status: No, score=-3.506 tagged_above=-999 required=5 tests=[AWL=-0.907, 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 Y-hyOfw5ebis; Thu, 17 Sep 2009 03:07:24 -0700 (PDT)
Received: from looneymail-a2.g.dreamhost.com (caibbdcaaaaf.dreamhost.com [208.113.200.5]) by core3.amsl.com (Postfix) with ESMTP id C85883A68AA; Thu, 17 Sep 2009 03:07:24 -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 3770116D31C; Thu, 17 Sep 2009 03:08:16 -0700 (PDT)
Date: Thu, 17 Sep 2009 10:14:15 +0000
From: Ian Hickson <ian@hixie.ch>
To: Julian Reschke <julian.reschke@gmx.de>
In-Reply-To: <4AB205B8.9090005@gmx.de>
Message-ID: <Pine.LNX.4.62.0909171012140.20271@hixie.dreamhostps.com>
References: <Pine.LNX.4.62.0908070531430.28566@hixie.dreamhostps.com> <1249651007.25446.8934.camel@dbooth-laptop> <0B450D619CC0486E8BD51C31FBA214AD@POCZTOWIEC> <20090812021926.GC19298@shareable.org> <AB9A0CF094F04D39BC7DC5DEAFF7FC1C@POCZTOWIEC> <4AA8A2CE.3000801@it.aoyama.ac.jp> <34660A8503164BE88641374ADF2BF1A3@POCZTOWIEC> <20090910124618.GB32178@shareable.org> <11DFA16908CB4B7D8AF0F45975DE425A@POCZTOWIEC> <20090910224151.GA17387@shareable.org> <Pine.LNX.4.62.0909170834040.14605@hixie.dreamhostps.com> <4AB205B8.9090005@gmx.de>
Content-Language: en-GB-hixie
Content-Style-Type: text/css
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset="US-ASCII"
Cc: URI <uri@w3.org>, hybi@ietf.org, uri-review@ietf.org, "public-i18n-core@w3.org" <public-i18n-core@w3.org>
Subject: Re: [Uri-review] ws: and wss: schemes
X-BeenThere: uri-review@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Proposed URI Schemes <uri-review.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/uri-review>, <mailto:uri-review-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/uri-review>
List-Post: <mailto:uri-review@ietf.org>
List-Help: <mailto:uri-review-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/uri-review>, <mailto:uri-review-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 17 Sep 2009 10:07:25 -0000

On Thu, 17 Sep 2009, Julian Reschke wrote:
> Ian Hickson wrote:
> > >
> > > (*) I think that section would be much more readable when it used 
> > > ABNF as everybody else does.
> > 
> > Assuming you mean the section that says how to parse the URLs, then 
> > the only part of it that could conceivably use ABNF is the part 
> > defined in [WebAddresses], so I don't know what it would mean to use 
> > ABNF here.
> 
> I meant Section 3.1, which essentially is useless, as it replicates 
> what's said in the ABNF in the registration template.

The ABNF doesn't say how you parse the URI, it says how you check if it's 
valid. Section 3.1 doesn't say how you parse the URI, it says how you 
apply the algorithm from [WebAddresses] in a way that extracts the fields 
you need to use Web Sockets.


> > > I hear that by specifying an algorithm you want to exclude certain
> > > standard things like fragments, and include error handling; but I think
> > > ABNF + prose would be much easier to understand.
> > 
> > Please send such feedback to Larry; I am no longer editing those algorithms.
> 
> I'm still talking about WebSockets, Part 3.1.

I have no idea how ABNF could possibly be used in section 3.1. Could you 
show an example of what you mean?


> > > Furthermore, fragment identifiers are orthogonal to the URI scheme, 
> > > see 
> > > <http://greenbytes.de/tech/webdav/rfc3986.html#rfc.section.3.5.p.2>:
> > > 
> > > "Fragment identifier semantics are independent of the URI scheme and 
> > > thus cannot be redefined by scheme specifications."
> > 
> > I've no idea to what you are referring here. Where are fragment 
> > identifiers even mentioned in the Web Socket protocol spec?
> 
> You did mention them on IRC 
> (<http://krijnhoetmer.nl/irc-logs/whatwg/20090904#l-1007>):
> 
> > # [23:26] <Hixie> annevk3: and i want the frag-id case to be invalid 
> > before conversion
> 
> What I'm trying to explain is you can't make frag-ids "invalid", even by 
> the way you specify the parsing.

Ok.

I encourage you to review the actual spec, and not my comments on IRC.

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