Re: HTTP/2 Server Push and solid compression

Matthew Kerwin <matthew@kerwin.net.au> Tue, 21 May 2019 22:48 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 595511200FF for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 21 May 2019 15:48:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.9
X-Spam-Level:
X-Spam-Status: No, score=-2.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.001, MAILING_LIST_MULTI=-1, SPF_PASS=-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 XaCcRlVefoTw for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 21 May 2019 15:48:42 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [IPv6:2603:400a:ffff:804:801e:34:0:38]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 85865120025 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 21 May 2019 15:48:42 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.89) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1hTDXC-0005Wa-9l for ietf-http-wg-dist@listhub.w3.org; Tue, 21 May 2019 22:47:02 +0000
Resent-Date: Tue, 21 May 2019 22:47:02 +0000
Resent-Message-Id: <E1hTDXC-0005Wa-9l@frink.w3.org>
Received: from mimas.w3.org ([2603:400a:ffff:804:801e:34:0:4f]) by frink.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from <phluid61@gmail.com>) id 1hTDX9-0005Vk-KC for ietf-http-wg@listhub.w3.org; Tue, 21 May 2019 22:46:59 +0000
Received: from mail-it1-f173.google.com ([209.85.166.173]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from <phluid61@gmail.com>) id 1hTDX7-000416-4I for ietf-http-wg@w3.org; Tue, 21 May 2019 22:46:59 +0000
Received: by mail-it1-f173.google.com with SMTP id g23so3921687iti.1 for <ietf-http-wg@w3.org>; Tue, 21 May 2019 15:46:36 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=8glUgAfVhk+yXOeXZT/4zeIxql8B3tIwo0SSyMaji14=; b=djRjk37hpE0b8zc6wS/8vqgqnWcaj8VBS+mNT4pLDecwL3kcrpSD0PNEewmJAN28Zq k+XiTmsROZ1LCbwQlGDlNgj56p5nqbWag0WWXeHIS0j9KCA4B193ArafULqmDnGHcO01 6mVq+xmK6B69RhdoaxjORBmvnrUUq08bGupI8YQwP7uGczwIR9BR3WhqZvZTkJPsGEDi 2url0C6zsjwJopLCEryMdq3A64re9vJVqb8lCk+mPnLvZ0ZZNVykqHPPrccXQ8LSCOeD g9fbjVPTXxIQWDdDU4eLQETWobadsR8bnOONMX13h31hwbxa9vO9GWz5jUKC+FwzJk3S cu8A==
X-Gm-Message-State: APjAAAXEfsFzxGA3ShMNJMYy/6qFYo9kFjFrlFYXdwMcQiTJTUV39jpx yszfVsHJ8YYQwhSMvcVC1c/w8H3L0fkmJzBrNucJmpts
X-Google-Smtp-Source: APXvYqyTndXRB2hWcAtSy7O6rC82+8sc1WpPl4FFVfxsmsfNSC6AOOxd35JT6S8muCDb09YU+A9OUlIWsGO8+Ckfsh8=
X-Received: by 2002:a02:b047:: with SMTP id q7mr11707961jah.2.1558478795944; Tue, 21 May 2019 15:46:35 -0700 (PDT)
MIME-Version: 1.0
References: <CA+phaedE0m4LniC38GBkJ-M0gAph0LSSGhQ1ZWJE6k0UOFcokw@mail.gmail.com> <CA+phaecOMRAd8R=oEYj+DMVkzaVKq5Qbt9AxECrtofLqMxeKQA@mail.gmail.com> <898C6E1B-73ED-4F13-B435-745680E662AB@felipegasper.com> <CA+phaefGgNidhqkaHaX6kq6aEK0n5EV9j_Qya-9hku0CzHN=0Q@mail.gmail.com> <65908183-BFD4-447D-9F03-E4EB9EB6E0EE@felipegasper.com> <20190521180752.GA1102985@LK-Perkele-VII>
In-Reply-To: <20190521180752.GA1102985@LK-Perkele-VII>
From: Matthew Kerwin <matthew@kerwin.net.au>
Date: Wed, 22 May 2019 08:46:26 +1000
Message-ID: <CACweHNACboW3xMQdLn1ZefmkVO8Z6s1bNbYU0m+coZJg4MUx=w@mail.gmail.com>
To: Ilari Liusvaara <ilariliusvaara@welho.com>
Cc: Felipe Gasper <felipe@felipegasper.com>, Alan Egerton <eggyal@gmail.com>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=209.85.166.173; envelope-from=phluid61@gmail.com; helo=mail-it1-f173.google.com
X-W3C-Hub-Spam-Status: No, score=-4.7
X-W3C-Hub-Spam-Report: AWL=-1.023, BAYES_00=-1.9, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1hTDX7-000416-4I 68c97d6e6c09d4d8e21173ebf18247d7
X-Original-To: ietf-http-wg@w3.org
Subject: Re: HTTP/2 Server Push and solid compression
Archived-At: <https://www.w3.org/mid/CACweHNACboW3xMQdLn1ZefmkVO8Z6s1bNbYU0m+coZJg4MUx=w@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/36664
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: <https://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On Wed, 22 May 2019 at 04:10, Ilari Liusvaara <ilariliusvaara@welho.com> wrote:
>
> On Tue, May 21, 2019 at 01:51:27PM -0400, Felipe Gasper wrote:
> >
> > Possibly … does h2 multiplexing use a separate compression context
> > for each stream, or does it funnel each message through the same
> > context? If the former, then I would think it’s a non-issue since
> > streams are processed sequentially.
>
> AFAIK, HTTP/2 can not compress message bodies. The mechanism HTTP/1.x
> had to compress message bodies (Transfer-Encoding) was removed.
>

Just because it's not in the spec, doesn't mean it can't be in *a* spec. [1]

> And even the HTTP/1.x mechanism used separate context for each
> request or response.
>

Yeah, the argument for TE was more for sub-resource compression
(request a byte range from an identity-encoded resource, like a log
file, and compress the resulting chunk in transit), rather than
super-resource compression.

> And I would imagine reusing contexts would run into all sorts of
> data leaks by abusing compression...
>

That's why it got yanked from TLS, yeah.

Cheers

[1]: https://tools.ietf.org/html/draft-kerwin-http2-encoded-data

-- 
  Matthew Kerwin
  https://matthew.kerwin.net.au/