Re: Experiences with HTTP/2 server push

Martin Thomson <martin.thomson@gmail.com> Mon, 15 August 2016 01:19 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 2D1E612D17B for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 14 Aug 2016 18:19:51 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.268
X-Spam-Level:
X-Spam-Status: No, score=-8.268 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-1.247, 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=gmail.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 EwRYmZ4K34Bd for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 14 Aug 2016 18:19:50 -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 BCFA012D0E1 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sun, 14 Aug 2016 18:19:49 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1bZ6Ue-0002G9-9E for ietf-http-wg-dist@listhub.w3.org; Mon, 15 Aug 2016 01:15:08 +0000
Resent-Date: Mon, 15 Aug 2016 01:15:08 +0000
Resent-Message-Id: <E1bZ6Ue-0002G9-9E@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 <martin.thomson@gmail.com>) id 1bZ6UV-00070C-CR for ietf-http-wg@listhub.w3.org; Mon, 15 Aug 2016 01:14:59 +0000
Received: from mail-qk0-f175.google.com ([209.85.220.175]) by maggie.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <martin.thomson@gmail.com>) id 1bZ6US-0000vJ-Ur for ietf-http-wg@w3.org; Mon, 15 Aug 2016 01:14:57 +0000
Received: by mail-qk0-f175.google.com with SMTP id v123so32305351qkh.2 for <ietf-http-wg@w3.org>; Sun, 14 Aug 2016 18:14:36 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=asfdskoFNG7QfjgRoWmzke7iggC80KVrWGlkKlrNtns=; b=DgaBj/vZ9ZMhnC0SNbTCenhW0qrpgNO1Tk0pfDUur2ReyNoNyrKnkW8XJXMWTF9RPS ZYVjhwQ6D6jXU+NkMPZrtZCgo6TFNpJ2SvSPJRKwaJrxnuRbsr17OeLGrMMqHesFlo7J n//hvo90MrwYrGFpPUNZp3MW5UBTosEZpoW/y3R8foQE8XFJuf3FyImCFqXnbPNr1uZ8 rdZhHxGoDPwdLSJ4lO4WMSKpnZFRNuHSNQSDBIKXmWU49cAEegTf+Z2hwkSEk+NcouVa YeoKGYVeHwlkEC99+f5MksI05rrI8R703b7N4zGnL//vuB+LTv82B68YT7YgknM8rd4r ePHw==
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:from:date :message-id:subject:to:cc; bh=asfdskoFNG7QfjgRoWmzke7iggC80KVrWGlkKlrNtns=; b=c+WGTWz+dkKDyjykAFTK6R+a7oV/MrTMx/y5OVmZPIkg3c1sD3spnFv273H/ECUu3b S4/ZSjXfqYXy25iaYFrulGsRLIUN6M+Zc43AT20jnCPz8PmZ1oMNEBLKWHJd8HUhFq8Q obj1Ua+ZfBBdW5/xab+5yZ9dX5R6FUFd+yjxrVUwyS1mxz+DMw4W6QBzPXyG4Wq87lmX EPoRWNHczDpO6KCmX9FYwGf9gJtr3TQjwTT/0MC0kE1cQdDYUIqAZr4ABF/SimMM0XxX VJVGqAz/D1z/5A5HFNEWCYm/UJU40dQOm2aw6pystsVPbjiNwmaPUZ80snN4ucxTlMGR nQxQ==
X-Gm-Message-State: AEkoousGtEBEmGTCv8PSxhuw/fmdZzEVCB1GsHiGxj2+84Nx9LG9CnphuvIcx2hZeKgMnHwTHZQ7rswgD6VSkg==
X-Received: by 10.55.11.7 with SMTP id 7mr31842235qkl.169.1471223670821; Sun, 14 Aug 2016 18:14:30 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.140.22.146 with HTTP; Sun, 14 Aug 2016 18:14:30 -0700 (PDT)
In-Reply-To: <CANatvzyWWjSzMmotoE3vbZubHPkafrQnL0vyNbvNBwierc_9iA@mail.gmail.com>
References: <CACZw55mUg_VjN3Q6TqPCb6udo3mQpoWQVNV5e2iYiNj=hC-2kw@mail.gmail.com> <CABkgnnX=6ZjnFJsh-07SDt+LMprsJ9w7tgSjaeaMKeEgihsD4g@mail.gmail.com> <CA+3+x5FpRGm9XQz2PdvFs6Kfiz3eMH1QLJ0fAeaeqQOSF2c9sw@mail.gmail.com> <CABkgnnWCm4gJ7fg3b8Ud=oBq5xYosoy3q=F3Tn_ChsXE4wHXaQ@mail.gmail.com> <CANatvzyWWjSzMmotoE3vbZubHPkafrQnL0vyNbvNBwierc_9iA@mail.gmail.com>
From: Martin Thomson <martin.thomson@gmail.com>
Date: Mon, 15 Aug 2016 11:14:30 +1000
Message-ID: <CABkgnnXGtECfidLrgPH_ggVOOs0YitTKKQaMAw-Fe7BJzBM_gw@mail.gmail.com>
To: Kazuho Oku <kazuhooku@gmail.com>
Cc: Tom Bergan <tombergan@chromium.org>, Stefan Eissing <stefan.eissing@greenbytes.de>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: text/plain; charset="UTF-8"
Received-SPF: pass client-ip=209.85.220.175; envelope-from=martin.thomson@gmail.com; helo=mail-qk0-f175.google.com
X-W3C-Hub-Spam-Status: No, score=-7.9
X-W3C-Hub-Spam-Report: AWL=1.833, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_IRR=-3, W3C_WL=-1
X-W3C-Scan-Sig: maggie.w3.org 1bZ6US-0000vJ-Ur c0ed04be02333511713f7c23ca41b5b5
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Experiences with HTTP/2 server push
Archived-At: <http://www.w3.org/mid/CABkgnnXGtECfidLrgPH_ggVOOs0YitTKKQaMAw-Fe7BJzBM_gw@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/32267
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>

On 15 August 2016 at 07:15, Kazuho Oku <kazuhooku@gmail.com> wrote:
> OTOH let me note that a server can also send priority information as
> part of a PUSH_PROMISE frame. This way, the priority tree does not get
> ruined.

I don't think that makes sense.  If the client processes the
PUSH_PROMISE and immediately reprioritizes the push, then the PRIORITY
frame that appears afterwards will be exactly as meaningless or
destructive as anything else.

> Ideally, I think clients should send PRIORITY frames when it finds out
> how the content of a pushed stream is used, so that a server (that
> consider clients to have better understanding of how the resources
> should be prioritized) can respect the updated tree to prioritize the
> pushed streams.

This is good advice.

>>> We are aware of a few servers that update the priority tree like
>>> this, e.g., see Apache's h2_session_set_prio.
>>
>> Stefan, is this right?  See above.
>
> In case of H2O, we prioritize pushes of certain media types, but that
> is done out of the HTTP/2 prioritization tree. I think that is the way
> to go.

I couldn't parse this.  Do you mean that you ignore the client's
express priorities, or work within the client's priorities?