[hybi] WS ABNF

"Thomson, Martin" <Martin.Thomson@andrew.com> Mon, 15 February 2010 01:10 UTC

Return-Path: <Martin.Thomson@andrew.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 8D9A23A75F9 for <hybi@core3.amsl.com>; Sun, 14 Feb 2010 17:10:19 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.161
X-Spam-Level:
X-Spam-Status: No, score=-2.161 tagged_above=-999 required=5 tests=[AWL=0.438, 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 RdR0dHBQ+R0B for <hybi@core3.amsl.com>; Sun, 14 Feb 2010 17:10:18 -0800 (PST)
Received: from csmailgw1.commscope.com (csmailgw1.commscope.com [198.135.207.244]) by core3.amsl.com (Postfix) with ESMTP id E826F3A75F6 for <hybi@ietf.org>; Sun, 14 Feb 2010 17:10:17 -0800 (PST)
Received: from [10.86.20.103] ([10.86.20.103]:2619 "EHLO ACDCE7HC2.commscope.com") by csmailgw1.commscope.com with ESMTP id S11218565Ab0BOBLq (ORCPT <rfc822; hybi@ietf.org>); Sun, 14 Feb 2010 19:11:46 -0600
Received: from SISPE7HC1.commscope.com (10.97.4.12) by ACDCE7HC2.commscope.com (10.86.20.103) with Microsoft SMTP Server (TLS) id 8.1.393.1; Sun, 14 Feb 2010 19:11:46 -0600
Received: from SISPE7MB1.commscope.com ([fe80::9d82:a492:85e3:a293]) by SISPE7HC1.commscope.com ([fe80::8a9:4724:f6bb:3cdf%10]) with mapi; Mon, 15 Feb 2010 09:11:42 +0800
From: "Thomson, Martin" <Martin.Thomson@andrew.com>
To: Hybi <hybi@ietf.org>
Date: Mon, 15 Feb 2010 09:12:53 +0800
Thread-Topic: WS ABNF
Thread-Index: Acqt2/97ivPsNnjAQ9SrjAce3YQfrg==
Message-ID: <8B0A9FCBB9832F43971E38010638454F032E566DDF@SISPE7MB1.commscope.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
acceptlanguage: en-US
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-BCN: Meridius 1000 Version 3.4 on csmailgw1.commscope.com
X-BCN-Sender: Martin.Thomson@andrew.com
Subject: [hybi] WS ABNF
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: Mon, 15 Feb 2010 01:10:19 -0000

Hi Ian,

A few ABNF comments for WS (-75 draft).

1. The ABNF for "the wire protocol as allowed by this specification" does not permit binary frames.

     frame         = text-frame / binary-frame
     binary-frame  = %x80 length *%x00-FF
     length        = %x00 / %x01-7f / ( %x81-FF *%x80-FF %x00-7F )

This is a canonical length encoding in that it doesn't allow for leading zeroes.

2. Value range alternatives (Section 3.4 of RFC 5234) should not include a second "%x".

3. The definition for text-frame in the "the wire protocol including error-handling and forward-compatible parsing rules" could be readily simplified to

    text-frame   = %x00-7F *%x00-FE %xFF

I assume that %x80-7E, as included, is in error and %xFE was the intended end of this range.

--Martin