Re: [Gen-art] Genart last call review of draft-ietf-httpbis-header-structure-18

Willy Tarreau <w@1wt.eu> Thu, 07 May 2020 07:28 UTC

Return-Path: <w@1wt.eu>
X-Original-To: gen-art@ietfa.amsl.com
Delivered-To: gen-art@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2B1F03A08D4; Thu, 7 May 2020 00:28:27 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Bwzy2aOcmL8a; Thu, 7 May 2020 00:28:25 -0700 (PDT)
Received: from 1wt.eu (wtarreau.pck.nerim.net [62.212.114.60]) by ietfa.amsl.com (Postfix) with ESMTP id C28113A0810; Thu, 7 May 2020 00:28:24 -0700 (PDT)
Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id 0477SKqA032260; Thu, 7 May 2020 09:28:20 +0200
Date: Thu, 07 May 2020 09:28:20 +0200
From: Willy Tarreau <w@1wt.eu>
To: Poul-Henning Kamp <phk@phk.freebsd.dk>
Cc: Mark Nottingham <mnot@mnot.net>, gen-art <gen-art@ietf.org>, HTTP Working Group <ietf-http-wg@w3.org>, last-call@ietf.org
Message-ID: <20200507072820.GA32244@1wt.eu>
References: <158864148815.25056.4870473086918483854@ietfa.amsl.com> <2E578812-9E59-426E-85A9-B3A5AEA12853@mnot.net> <CAPDSy+4y9ZZ-f=MyV1b_-t5OygyYgdr3W4V4soiLVGOgzXKdMg@mail.gmail.com> <11202.1588710553@critter.freebsd.dk> <78C9039F-F687-41A1-A85D-CC8B3B82211B@mnot.net> <13256.1588748433@critter.freebsd.dk> <977F061C-A4BB-413B-B26C-51C7A694FA74@mnot.net> <17086.1588834035@critter.freebsd.dk>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <17086.1588834035@critter.freebsd.dk>
User-Agent: Mutt/1.6.1 (2016-04-27)
Archived-At: <https://mailarchive.ietf.org/arch/msg/gen-art/38wp5QZ_OXTDFI7wuiqNeoYnSeQ>
Subject: Re: [Gen-art] Genart last call review of draft-ietf-httpbis-header-structure-18
X-BeenThere: gen-art@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "GEN-ART: General Area Review Team" <gen-art.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/gen-art>, <mailto:gen-art-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/gen-art/>
List-Post: <mailto:gen-art@ietf.org>
List-Help: <mailto:gen-art-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/gen-art>, <mailto:gen-art-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 07 May 2020 07:28:27 -0000

On Thu, May 07, 2020 at 06:47:15AM +0000, Poul-Henning Kamp wrote:
> --------
> In message <977F061C-A4BB-413B-B26C-51C7A694FA74@mnot.net>, Mark Nottingham writes:
> 
> >Perhaps in full context:
> >
> >~~~
> >For example:
> >
> >  Example-ScaledInt: 4503; suffix=3DM
> >
> >Could be used to indicate a scaled value; in this case, 4,503,000,000, =
> >if the `M` suffix parameter is specified to denote multiplying the =
> >integer by 1,000,000.
> >~~~
> >
> >Thoughts?
> 
> Would people connect that to the 15 digit limitation ?

I really don't see what we're trying to save above. I mean, it
requires more code to encode the numbers, more bytes on the wire
in every single case, and more code on the decoding side, plus
all the absurd or difficult error cases that have to be carefully
dealt with.

Sending "4503000000" is enough to always represent the same thing
and being trivial to check in length and to parse.

Amusingly the proposed representation with this "suffix=3DM" could
even possibly trigger some artefacts becoming "suffix=M" when
accidentely fed through a MIME-aware decoder seeing "=3D" and turning
it to "=", but that's just a side detail which still indicates that
making things difficult to decode can only result in more mistakes.

Just my two cents,
Willy