RE: HeaderDiff specification

RUELLAN Herve <Herve.Ruellan@crf.canon.fr> Tue, 26 March 2013 14:40 UTC

Return-Path: <ietf-http-wg-request@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 AD10E21F8B5E for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 26 Mar 2013 07:40:20 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.997
X-Spam-Level:
X-Spam-Status: No, score=-7.997 tagged_above=-999 required=5 tests=[AWL=-2.251, BAYES_00=-2.599, HELO_EQ_FR=0.35, MIME_8BIT_HEADER=0.3, MIME_BASE64_TEXT=1.753, MIME_CHARSET_FARAWAY=2.45, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aaf0dk1reMSz for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 26 Mar 2013 07:40:20 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 2120521F8A66 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 26 Mar 2013 07:40:19 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1UKV1b-0005Z8-6T for ietf-http-wg-dist@listhub.w3.org; Tue, 26 Mar 2013 14:38:55 +0000
Resent-Date: Tue, 26 Mar 2013 14:38:55 +0000
Resent-Message-Id: <E1UKV1b-0005Z8-6T@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <Herve.Ruellan@crf.canon.fr>) id 1UKV1P-0005Xw-2M for ietf-http-wg@listhub.w3.org; Tue, 26 Mar 2013 14:38:43 +0000
Received: from inari-msr.crf.canon.fr ([194.2.158.67]) by maggie.w3.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from <Herve.Ruellan@crf.canon.fr>) id 1UKV1L-0004fD-To for ietf-http-wg@w3.org; Tue, 26 Mar 2013 14:38:42 +0000
Received: from mir-msr.corp.crf.canon.fr (mir-msr.corp.crf.canon.fr [172.19.77.98]) by inari-msr.crf.canon.fr (8.13.8/8.13.8) with ESMTP id r2QEcBhY018663; Tue, 26 Mar 2013 15:38:12 +0100
Received: from ADELE.crf.canon.fr (adele.fesl2.crf.canon.fr [172.19.70.17]) by mir-msr.corp.crf.canon.fr (8.13.8/8.13.8) with ESMTP id r2QEcBqF010545; Tue, 26 Mar 2013 15:38:11 +0100
Received: from ADELE.crf.canon.fr ([::1]) by ADELE.crf.canon.fr ([::1]) with mapi id 14.02.0342.003; Tue, 26 Mar 2013 15:38:11 +0100
From: RUELLAN Herve <Herve.Ruellan@crf.canon.fr>
To: 王�| <sherry.wang1989@gmail.com>
CC: "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
Thread-Topic: HeaderDiff specification
Thread-Index: Ac4Q6QYeELIgJSKWT0Kiuiwh9zrMmwZF476AAAu0DQA=
Date: Tue, 26 Mar 2013 14:38:09 +0000
Message-ID: <6C71876BDCCD01488E70A2399529D5E5163F4350@ADELE.crf.canon.fr>
References: <6C71876BDCCD01488E70A2399529D5E5163DF755@ADELE.crf.canon.fr> <001401ce2a08$f91019d0$eb304d70$@gmail.com>
In-Reply-To: <001401ce2a08$f91019d0$eb304d70$@gmail.com>
Accept-Language: en-US, fr-FR
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [172.20.8.8]
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
Received-SPF: none client-ip=194.2.158.67; envelope-from=Herve.Ruellan@crf.canon.fr; helo=inari-msr.crf.canon.fr
X-W3C-Hub-Spam-Status: No, score=-5.0
X-W3C-Hub-Spam-Report: AWL=-1.825, BAYES_00=-1.9, RP_MATCHES_RCVD=-1.302
X-W3C-Scan-Sig: maggie.w3.org 1UKV1L-0004fD-To e9c93b3dd1190891ca42d1d0ff264c47
X-Original-To: ietf-http-wg@w3.org
Subject: RE: HeaderDiff specification
Archived-At: <http://www.w3.org/mid/6C71876BDCCD01488E70A2399529D5E5163F4350@ADELE.crf.canon.fr>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/17142
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>

Hi Wang,

Good catches! Thanks for them.

Herv¨¦.

> -----Original Message-----
> From: Íõ°| [mailto:sherry.wang1989@gmail.com]
> Sent: mardi 26 mars 2013 11:02
> To: RUELLAN Herve
> Cc: ietf-http-wg@w3.org
> Subject: ´ð¸´: HeaderDiff specification
> 
> Hi, Herv¨¦.
> 
>    I'm reading your draft "draft-ruellan-headerdiff-00". According to my
> understanding and your code at https://github.com/hruellan/compression-
> test/tree/HeaderDiff, there seems to be some minor mistakes when you
> explain the Integer representation in Section 4.1.1 of the specification.
> 
>    1. On [Page 8], in the section "The algorithm to represent an integer I", step
> 1 of step 3, "Set I to (I - 2^N - 1) and Q to 1" should be "Set I to (I
> - (2^N - 1)) and Q to 1" or "Set I to (I - 2^N + 1) and Q to 1".
> 
>    2. On [Page 9], in the section "4.1.1.2.  Example 2: Encoding 1337 using a 5-
> bit prefix", "The value to represent on next bytes is I = 1337 - 2^5 = 1305"
> should be "The value to represent on next bytes is I = 1337 - (2^5 -
> 1) = 1306". And the following calculating should use 1306 instead of 1305.
> 
> ---------------------------------------------------------------------
> Wang Qian
> 
> >
> > All,
> >
> > Here is the detailed specification for our header representation
> > format HeaderDiff.
> >
> > We have also published an implementation, which can currently be found
> at:
> > https://github.com/hruellan/compression-test/tree/HeaderDiff
> >
> > (I've sent a pull request to have it included in
> > https://github.com/http2/compression-test).
> >
> > Comments are welcome,
> >
> > Herv¨¦.
>