Re: [hybi] WS ABNF

Pieter Hintjens <ph@imatix.com> Wed, 17 February 2010 08:21 UTC

Return-Path: <pieterh@gmail.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 678F13A7AA1 for <hybi@core3.amsl.com>; Wed, 17 Feb 2010 00:21:05 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.977
X-Spam-Level:
X-Spam-Status: No, score=-1.977 tagged_above=-999 required=5 tests=[AWL=0.000, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622]
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 AIkctu23XABK for <hybi@core3.amsl.com>; Wed, 17 Feb 2010 00:21:04 -0800 (PST)
Received: from mail-bw0-f219.google.com (mail-bw0-f219.google.com [209.85.218.219]) by core3.amsl.com (Postfix) with ESMTP id 7F4E53A7A92 for <hybi@ietf.org>; Wed, 17 Feb 2010 00:21:04 -0800 (PST)
Received: by bwz19 with SMTP id 19so5242799bwz.28 for <hybi@ietf.org>; Wed, 17 Feb 2010 00:22:38 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:from:date:x-google-sender-auth:message-id:subject:to:cc :content-type:content-transfer-encoding; bh=fgAKe1i8BLvJ4bff/Ss4X/JLBgXDMFxPIjojhHoKJYs=; b=Eja39oAKkfbI6LssZbqNRTKy5jrI/oezTKev3jGyQc5SeGcpdXpt8nzBiCmf9lKLIg QbqOLp/mGAe56utp3oHnHW5nmIhaws4zZi7tT9kLhoCV5wRHHneCyx9eDqWsaPJyoQ7C VdrkkzXc2xIq8+7m39q8jppxUC8XyAMim9RjM=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; b=wh47LFRJ9cPYucFBolZc7NlOH4d7Cnh1b6pozE47boBKdhyS1CBoVeLahYgxvyst6N RCQTuNNCzfMSUse12krJ9y/4B23ULjBJi+VCYxXlMsQBECe1gClvP4fujxn1B9iVJXn1 OBOkyShygkeLjaZJXXDqnmpoEVrLtS6RfYmt0=
MIME-Version: 1.0
Sender: pieterh@gmail.com
Received: by 10.204.16.76 with SMTP id n12mr2129327bka.136.1266394958640; Wed, 17 Feb 2010 00:22:38 -0800 (PST)
In-Reply-To: <20100217025338.GA1654@shareable.org>
References: <8B0A9FCBB9832F43971E38010638454F032E566DDF@SISPE7MB1.commscope.com> <18559.1266310165.853559@puncture> <4B7A5FD1.8090005@gmx.de> <18559.1266313683.441640@puncture> <20100217025338.GA1654@shareable.org>
From: Pieter Hintjens <ph@imatix.com>
Date: Wed, 17 Feb 2010 09:22:18 +0100
X-Google-Sender-Auth: 3177247bf982b6a0
Message-ID: <5821ea241002170022i93eac59q6e4cf4843bfd4470@mail.gmail.com>
To: Jamie Lokier <jamie@shareable.org>
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable
Cc: Server-Initiated HTTP <hybi@ietf.org>
Subject: Re: [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: Wed, 17 Feb 2010 08:21:05 -0000

On Wed, Feb 17, 2010 at 3:53 AM, Jamie Lokier <jamie@shareable.org> wrote:

> Then one day, someone else puts an 8GB file there and expects it to
> work.  Why should it be fine for 3GB files but fail for an 8GB file?

Because 4GB should be enough for anybody?

Seriously, it is trivial to define block lengths that can be 1, 2, 4,
8 bytes long.

0-0xFE - 1-byte length
0xFF 0-0xFFFE - escape + 2-byte length
0xFF 0xFF 0xFF 0-0xFFFFFFFE - escape + 4-byte length
etc.

Just because some theoretical developer might get this wrong is not an
argument for making a more complex (fragile) design which allows user
data to imitate framing data.

-Pieter