Re: [hybi] I-D Action: draft-ietf-hybi-thewebsocketprotocol-11.txt

Alexey Melnikov <alexey.melnikov@isode.com> Tue, 23 August 2011 21:55 UTC

Return-Path: <alexey.melnikov@isode.com>
X-Original-To: hybi@ietfa.amsl.com
Delivered-To: hybi@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8011C21F8D09 for <hybi@ietfa.amsl.com>; Tue, 23 Aug 2011 14:55:17 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.744
X-Spam-Level:
X-Spam-Status: No, score=-102.744 tagged_above=-999 required=5 tests=[AWL=-0.145, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GspFdE-RFA2u for <hybi@ietfa.amsl.com>; Tue, 23 Aug 2011 14:55:17 -0700 (PDT)
Received: from rufus.isode.com (rufus.isode.com [62.3.217.251]) by ietfa.amsl.com (Postfix) with ESMTP id BB4F421F8CEF for <hybi@ietf.org>; Tue, 23 Aug 2011 14:55:16 -0700 (PDT)
Received: from [188.29.229.65] (188.29.229.65.threembb.co.uk [188.29.229.65]) by rufus.isode.com (submission channel) via TCP with ESMTPA id <TlQiBQALhGEt@rufus.isode.com>; Tue, 23 Aug 2011 22:56:23 +0100
Message-ID: <4E5421FF.90101@isode.com>
Date: Tue, 23 Aug 2011 22:56:15 +0100
From: Alexey Melnikov <alexey.melnikov@isode.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915
X-Accept-Language: en-us, en
To: Takeshi Yoshino <tyoshino@google.com>
References: <20110823102713.23958.79728.idtracker@ietfa.amsl.com> <4E538213.7020207@isode.com> <CAH9hSJaDcOEf0n59PSqfWJcEpLBKBGssX13FNViCUBFc2vxMXg@mail.gmail.com>
In-Reply-To: <CAH9hSJaDcOEf0n59PSqfWJcEpLBKBGssX13FNViCUBFc2vxMXg@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
Cc: hybi@ietf.org
Subject: Re: [hybi] I-D Action: draft-ietf-hybi-thewebsocketprotocol-11.txt
X-BeenThere: hybi@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Server-Initiated HTTP <hybi.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/hybi>, <mailto:hybi-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/hybi>
List-Post: <mailto:hybi@ietf.org>
List-Help: <mailto:hybi-request@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, 23 Aug 2011 21:55:17 -0000

Takeshi Yoshino wrote:

> Hi Alexey,

Hi Takeshi,

> I have some questions about section 5.2.2. and 5.3.
>
> ----
>
> implied WSP rule -> implied LWS rule ?

Yes. It might have been called different things in different IETF RFCs, 
but I will double check and use the right term.

> ----
>
> Are 
> Sec-WebSocket-Protocol-Client, Sec-WebSocket-Version-Client, Sec-WebSocket-Protocol-Server, Sec-WebSocket-Version-Server 
> just names of ABNF rules?

Yes. The suffix "-Client" means that the syntax is used in HTTP requests 
(C->S), the suffix "-Server" means that the syntax is used in HTTP 
responses.

> i.e. Sec-WebSocket-Protocol-Client is the grammar for the right hand 
> side of the Sec-WebSocket-Protocol header in client handshake?

Yes.

> ----
>
> It seems header name and colon are missing from rules. e.g.
>
> Sec-WebSocket-Accept     = base64-value
>
> The left hand side was accept-value in -10 and the line seemed to be 
> defining the grammar of the right hand side of the 
> Sec-WebSocket-Accept data. So, just base64-value was fine. But now, 
> maybe you've tried to give grammar for full header line as RFC 2616 
> does and follow its style like
>        Accept         = "Accept" ":"
>                         #( media-range [ accept-params ] )
> so, this should be
>
> Sec-WebSocket-Accept     = "Sec-WebSocket-Accept" ":" base64-value

I suggest we do whatever RFC 2616 is doing. I will double check.

> ----
>
> This ABNF doesn't cover 1, 2, ... 99
>            version = "0" | ("1" DIGIT DIGIT) | ("2" DIGIT DIGIT)
>                        ; 0-255

Sigh, you are right, this needs to be fixed to match the comment.

> ----
>
> Maybe "1#" here is typo.
> Sec-WebSocket-Version-Server = 1#version

No typo here, this matches the text elsewhere in the document: the 
server advertises all versions it supports.