Re: [hybi] Last Call: <draft-ietf-hybi-thewebsocketprotocol-10.txt> (The WebSocket protocol) to Proposed Standard

Mykyta Yevstifeyev <evnikita2@gmail.com> Tue, 12 July 2011 08:58 UTC

Return-Path: <evnikita2@gmail.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 595CC21F9117 for <hybi@ietfa.amsl.com>; Tue, 12 Jul 2011 01:58:39 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.495
X-Spam-Level:
X-Spam-Status: No, score=-3.495 tagged_above=-999 required=5 tests=[AWL=0.104, BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ao7G3bMSfaAF for <hybi@ietfa.amsl.com>; Tue, 12 Jul 2011 01:58:38 -0700 (PDT)
Received: from mail-bw0-f44.google.com (mail-bw0-f44.google.com [209.85.214.44]) by ietfa.amsl.com (Postfix) with ESMTP id 959F221F90F3 for <hybi@ietf.org>; Tue, 12 Jul 2011 01:58:38 -0700 (PDT)
Received: by bwb17 with SMTP id 17so4526230bwb.31 for <hybi@ietf.org>; Tue, 12 Jul 2011 01:58:37 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=5EhqzT9JcZ0wonVylN3ZaTFbOqRZGUaKmDBfGoAYyEw=; b=vYIzoSC4VXv0WsNzRdNKlrFOgtxAXqxG0RRSDiqayDLcczZ+tmrVshsWTBRrzWmh3a 6lPcLWU5Q5p3fx1Dp+hJJezNWfO2wxFVhzix58TT16+k9KozUfdM5T6D4t1mJ0XXvlk4 nKKAlk8CG/coPzpp0A9/s2fANXzoZEQJI/0Q8=
Received: by 10.204.10.75 with SMTP id o11mr2989882bko.124.1310461117504; Tue, 12 Jul 2011 01:58:37 -0700 (PDT)
Received: from [127.0.0.1] ([195.191.104.224]) by mx.google.com with ESMTPS id t9sm10192084bkn.8.2011.07.12.01.58.35 (version=SSLv3 cipher=OTHER); Tue, 12 Jul 2011 01:58:36 -0700 (PDT)
Message-ID: <4E1C0CE9.10009@gmail.com>
Date: Tue, 12 Jul 2011 11:59:21 +0300
From: Mykyta Yevstifeyev <evnikita2@gmail.com>
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20110624 Thunderbird/5.0
MIME-Version: 1.0
To: "Thomson, Martin" <Martin.Thomson@commscope.com>
References: <20110711140229.17432.23519.idtracker@ietfa.amsl.com> <4E1BD054.7010103@gmail.com> <8B0A9FCBB9832F43971E38010638454F040B419E9E@SISPE7MB1.commscope.com>
In-Reply-To: <8B0A9FCBB9832F43971E38010638454F040B419E9E@SISPE7MB1.commscope.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Mailman-Approved-At: Tue, 12 Jul 2011 02:03:11 -0700
Cc: "hybi@ietf.org" <hybi@ietf.org>, "draft-ietf-hybi-thewebsocketprotocol@tools.ietf.org" <draft-ietf-hybi-thewebsocketprotocol@tools.ietf.org>
Subject: Re: [hybi] Last Call: <draft-ietf-hybi-thewebsocketprotocol-10.txt> (The WebSocket protocol) to Proposed Standard
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, 12 Jul 2011 08:58:39 -0000

12.07.2011 8:39, Thomson, Martin wrote:
> On 2011-07-12 at 14:40:52, Mykyta Yevstifeyev wrote:
>> Section 4.2.  I have a concern with usage of ABNF here.  Let's see:
>>
>>>      frame-fin               = %x0 ; more frames of this message
>> follow
>>>                              / %x1 ; final frame of this message
>> Which means that ABNF represents characters only; no bits may be
>> represented by it.
> That's not true.  RFC 5234 merely uses ASCII in its example.  The terminal values for this particular application of ABNF could be a single bit in place of a character.  5234 doesn't prohibit this
ABNF is designed to deal with characters represented in octets.  The 
terminal value %xHH stands for ASCII character HH, so it's true that %x0 
stands for NUL; so does %b0.  The <BIT> production doesn't denote actual 
bits, but rather representation of bits.

> BIT            =  "0" / "1"

implies that <BIT> may be either ASCII 0x31 - "1" - or ASCII 0x30 - 
"0".  Once more, ABNF is for chars/octets, not bits.

Mykyta Yevstifeyev
> , though it would make most of the default rules meaningless and it would require a little bit of care.
>
> [ . . . ]
>
>
> I notice that the picture in 4.2 says only 63 bits if the first length is 127, which is an error, sort of.
>
> --Martin
>
>
>