Re: [hybi] header field ABNF, was: I-D Action: draft-ietf-hybi-thewebsocketprotocol-11.txt

Takeshi Yoshino <tyoshino@google.com> Wed, 24 August 2011 14:21 UTC

Return-Path: <tyoshino@google.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 483CD21F8B1E for <hybi@ietfa.amsl.com>; Wed, 24 Aug 2011 07:21:17 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -105.876
X-Spam-Level:
X-Spam-Status: No, score=-105.876 tagged_above=-999 required=5 tests=[AWL=0.100, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-4, 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 kx+GVpRMqbkG for <hybi@ietfa.amsl.com>; Wed, 24 Aug 2011 07:21:16 -0700 (PDT)
Received: from smtp-out.google.com (smtp-out.google.com [74.125.121.67]) by ietfa.amsl.com (Postfix) with ESMTP id 0FDE321F8B16 for <hybi@ietf.org>; Wed, 24 Aug 2011 07:21:13 -0700 (PDT)
Received: from wpaz37.hot.corp.google.com (wpaz37.hot.corp.google.com [172.24.198.101]) by smtp-out.google.com with ESMTP id p7OEM9Nd010875 for <hybi@ietf.org>; Wed, 24 Aug 2011 07:22:12 -0700
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1314195732; bh=Sz860ixbY1aKhwc7xNHzu7Pa8GY=; h=MIME-Version:In-Reply-To:References:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=LkuVQlxcWNjDb/2lXyN1xImIf/9ihdkg7NNglfd04UojBCM/It+eN2m8+DEETyBFX LK+TBt4zXS6dJeVCPtt8A==
DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=dkim-signature:mime-version:in-reply-to:references:from:date: message-id:subject:to:cc:content-type:x-system-of-record; b=FitqUMtoVUegU3pXlFKDIjoDjeKjVYq1WJ51Lq39buLhsRxGxrA1CXKff8zabf3JD kJbzHNqiODVPsxy8lUIWg==
Received: from gyg8 (gyg8.prod.google.com [10.243.50.136]) by wpaz37.hot.corp.google.com with ESMTP id p7OEM8LT014634 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for <hybi@ietf.org>; Wed, 24 Aug 2011 07:22:08 -0700
Received: by gyg8 with SMTP id 8so1164800gyg.40 for <hybi@ietf.org>; Wed, 24 Aug 2011 07:22:08 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=beta; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=k1vRxjXIt7DQ7gVZJGNwdIV9hvyE44YC83hH2xZ7rXY=; b=ceQBlbW71ihDF2bHZw6X/yYDtO1+zW/7A+HFwCIUIEl1kfbUTJROgJplN7PdKQ8JC1 dEFKMdQ631SMhdUm1tqw==
Received: by 10.90.136.17 with SMTP id j17mr4857929agd.55.1314195728380; Wed, 24 Aug 2011 07:22:08 -0700 (PDT)
Received: by 10.90.136.17 with SMTP id j17mr4857925agd.55.1314195728153; Wed, 24 Aug 2011 07:22:08 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.90.192.17 with HTTP; Wed, 24 Aug 2011 07:21:48 -0700 (PDT)
In-Reply-To: <4E54DF3E.6050207@isode.com>
References: <20110823102713.23958.79728.idtracker@ietfa.amsl.com> <4E538213.7020207@isode.com> <CAH9hSJaDcOEf0n59PSqfWJcEpLBKBGssX13FNViCUBFc2vxMXg@mail.gmail.com> <4E5421FF.90101@isode.com> <4E54D0AD.3050201@gmx.de> <4E54DF3E.6050207@isode.com>
From: Takeshi Yoshino <tyoshino@google.com>
Date: Wed, 24 Aug 2011 23:21:48 +0900
Message-ID: <CAH9hSJa7F5fLH+niD72McRA0RiHWJP62GKYYA7cyZK=fOH54mw@mail.gmail.com>
To: Alexey Melnikov <alexey.melnikov@isode.com>
Content-Type: multipart/alternative; boundary="00163630ecb38abd2404ab41097f"
X-System-Of-Record: true
Cc: hybi@ietf.org
Subject: Re: [hybi] header field ABNF, was: 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: Wed, 24 Aug 2011 14:21:18 -0000

On Wed, Aug 24, 2011 at 20:23, Alexey Melnikov <alexey.melnikov@isode.com>wrote:

> Julian Reschke wrote:
>
>  On 2011-08-23 23:56, Alexey Melnikov wrote:
>>
>>  ...
>>>
>>>  Sec-WebSocket-Accept = "Sec-WebSocket-Accept" ":" base64-value
>>>>
>>>
>>> I suggest we do whatever RFC 2616 is doing. I will double check.
>>> ...
>>>
>>
>> I strongly suggest to do what HTTPbis is doing; just specify the ABNF for
>> the field *value*.
>
>
Thanks Julian. I just took a look at HTTPbis docs.

So, the WebSocket spec points RFC 2616 but uses ones in HTTPbis? I think
it's not friendly for readers. What's the plan for final publish? Will the
reference be replaced with HTTPbis?

e.g. I'm fine with keeping "WSP" instead of "LWS" as HTTPbis defines, but
one cannot find "WSP" in RFC 2616 referred from the sentence.


>  I am happy with that, because this means I don't need to change anything
> ;-).'
>

OK. But if you do so, I'd suggest that we clarify what *-Client and *-Server
means or remove those suffixes since the context (talking about S->C or
C->S) is clear (separated into two paragraphs). It's clear if they were
embedded in main text like Sec-WebSocket-Accept ABNF in the section
5.2.2.-3.-4. But they're not referred from any sentence but just appears
suddenly in the section 5.3. It's confusing. Sounds like header names are
Foo-Client and Bar-Server.

Thanks,
Takeshi