Re: Nits and suggestions for draft-kazuho-h2-cache-digest

Alcides Viamontes E <alcidesv@zunzun.se> Tue, 31 May 2016 06:24 UTC

Return-Path: <ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 9C6AD12D65D for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 30 May 2016 23:24:30 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.346
X-Spam-Level:
X-Spam-Status: No, score=-8.346 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-1.426, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=zunzun-se.20150623.gappssmtp.com
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 LIe1IROL3sfb for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 30 May 2016 23:24:27 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C64F712D6B1 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 30 May 2016 23:24:27 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1b7d2C-0002QI-Ta for ietf-http-wg-dist@listhub.w3.org; Tue, 31 May 2016 06:20:12 +0000
Resent-Date: Tue, 31 May 2016 06:20:12 +0000
Resent-Message-Id: <E1b7d2C-0002QI-Ta@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <alcidesv@zunzun.se>) id 1b7d28-0002PL-5P for ietf-http-wg@listhub.w3.org; Tue, 31 May 2016 06:20:08 +0000
Received: from mail-vk0-f46.google.com ([209.85.213.46]) by maggie.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <alcidesv@zunzun.se>) id 1b7d25-0007QQ-Pi for ietf-http-wg@w3.org; Tue, 31 May 2016 06:20:07 +0000
Received: by mail-vk0-f46.google.com with SMTP id a6so38289710vkg.3 for <ietf-http-wg@w3.org>; Mon, 30 May 2016 23:19:45 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zunzun-se.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=P1XXn0PAJeWahWylpzvwvLdtJJvdYmNUYA05iZlKWMc=; b=A+sof9IkV868K6uRR/dcAuSOjDamGfqlN31FjWQLaCBn7u+X2qkRFSt/dO1KKAN+9r rSbIn+JVDxO78GaCXszOIumcxT3jrE/2UegwNOiQlfF59NRdLtOy4MZ/6f+cZWsiZMCH 5ObZDrcf3VkjcoKStDIcb+nT0fhyNd26M3JngEUBuceF2vNG6nepMIW7Zi2a+tD+jDJj 0f5b6SUaGgOw5Y5Vk1qpWiB8wPtJOCsAWgs84tVlYpqih3T0xS7xN/403C362xSdtbGp cNZ5e5/k8t8R3W9DC7T8bloeG7m08yiFYocyaIlz0Dg8tU8nB0ZzeH0KO+KWM8muv+SX NmAg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=P1XXn0PAJeWahWylpzvwvLdtJJvdYmNUYA05iZlKWMc=; b=dLOxvfuoUfGsuWChVyq48/FycDfN1D2dbKoH0bcRLJKzjXYc97HhSdJR7G3w/41x8O iAj3FthhaC1OKhghBorBWe0b9dSnudBFmO0SXfcAMQHcDFcxFjN6WT7q+1wLdw1WD01b Pcu8YnwvjQ0D/aZqiSQ0O7UfZBGHZp2Fr8606u8efw076cIMLB9ws9fiLR6/12JIYQkF C6sgVIZQAutVjfdgkHRchNMW7zceaf6lC13hRYUFXjgmSLpAHo76NfyZdTUPUvs7teX7 m7sckI8UWm3GmpKpHiPt1bUikUWbd+jsjCXUh9SUqV1nl1w9XIx68qISeyOqdVU484PR h8EQ==
X-Gm-Message-State: ALyK8tL/Y31hg7gOhUJhbi2UL+oytHyJAflkIkHgiPnb582j2DYcxIOsXZPWhKJvfZm+w1Sz6/fotHQtflGtWQ==
MIME-Version: 1.0
X-Received: by 10.159.38.109 with SMTP id 100mr14317824uag.139.1464675579420; Mon, 30 May 2016 23:19:39 -0700 (PDT)
Received: by 10.31.89.66 with HTTP; Mon, 30 May 2016 23:19:39 -0700 (PDT)
In-Reply-To: <974C0CB0-69C9-4085-A280-27367692DEAB@mnot.net>
References: <CABkgnnX38oLEgZRxzL4OzfZX5u5haU_Q7eka5iewqnTge20_vg@mail.gmail.com> <974C0CB0-69C9-4085-A280-27367692DEAB@mnot.net>
Date: Tue, 31 May 2016 08:19:39 +0200
Message-ID: <CAAMqGzb5AMWtUEgA5e50Nxi_vv8yG8K8PwJv_VAyvMdGPjCdwg@mail.gmail.com>
From: Alcides Viamontes E <alcidesv@zunzun.se>
To: Mark Nottingham <mnot@mnot.net>
Cc: Martin Thomson <martin.thomson@gmail.com>, HTTP Working Group <ietf-http-wg@w3.org>, Kazuho Oku <kazuhooku@gmail.com>
Content-Type: multipart/alternative; boundary="001a113ab3489f8a5905341d5bc0"
Received-SPF: pass client-ip=209.85.213.46; envelope-from=alcidesv@zunzun.se; helo=mail-vk0-f46.google.com
X-W3C-Hub-Spam-Status: No, score=-5.4
X-W3C-Hub-Spam-Report: AWL=-0.818, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: maggie.w3.org 1b7d25-0007QQ-Pi cf70e94a340d191c9a120fd549fe429d
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Nits and suggestions for draft-kazuho-h2-cache-digest
Archived-At: <http://www.w3.org/mid/CAAMqGzb5AMWtUEgA5e50Nxi_vv8yG8K8PwJv_VAyvMdGPjCdwg@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/31674
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

Mark, I'm stalking your latest edits of this draft in Github and it's
looking good.  I particularly like the inclusion of Etags. A server should
be able to use those etags to decide if it needs to push something new,
although there is no way to do that *right now*. Is there a document
(besides the HTTP/2 RFC, which is a bit vague on this) detailing  the
workflows with pushed representations, particularly what the browser is
expected to do?

On Tue, May 31, 2016 at 7:24 AM, Mark Nottingham <mnot@mnot.net> wrote:

>
> > On 15 May 2016, at 1:43 AM, Martin Thomson <martin.thomson@gmail.com>
> wrote:
> >
> >> From small to large:
> >
> > Nit:
> >       2.  If "W" and "V" are equal, continue to the next "V".
> >
> > This should be next "W", I think.
>
> There is no next W...
>
>
> > I think that Q would be better encoded as a series of 0 bits followed
> > by a 1 bit.  The reason I say that is that it is (marginally) easier
> > to generate the values then by masking in the R value in the right
> > place in a freshly calloc'd piece of memory.
>
> I'm not fussed; Kazuho?
>
>
> > This document really needs to describe what the contents of the cache
> > digest are, and to describe how to decode the cache digest.  Without
> > defining what it means to receive and decode this information, this
> > specification almost says nothing at all.
>
> Whatever happened to "left as an exercise to the reader?"
>
> :)
>
> Yes, we do.
>
> Cheers,
>
>
> --
> Mark Nottingham   https://www.mnot.net/
>
>
>