Re: How to stop receiving a pushed resource? (I-D Action: draft-ietf-httpbis-http2-01.txt)

Roberto Peon <grmocg@gmail.com> Tue, 22 January 2013 02:30 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 1B03121F84C6 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 21 Jan 2013 18:30:03 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.148
X-Spam-Level:
X-Spam-Status: No, score=-9.148 tagged_above=-999 required=5 tests=[AWL=1.150, BAYES_00=-2.599, HTML_MESSAGE=0.001, MIME_8BIT_HEADER=0.3, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sfWPIEXtKjMB for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 21 Jan 2013 18:30:02 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 67C8B21F8445 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 21 Jan 2013 18:30:02 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TxTbn-0006De-Aa for ietf-http-wg-dist@listhub.w3.org; Tue, 22 Jan 2013 02:29:07 +0000
Resent-Date: Tue, 22 Jan 2013 02:29:07 +0000
Resent-Message-Id: <E1TxTbn-0006De-Aa@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <grmocg@gmail.com>) id 1TxTbj-0006Cb-7K for ietf-http-wg@listhub.w3.org; Tue, 22 Jan 2013 02:29:03 +0000
Received: from mail-la0-f41.google.com ([209.85.215.41]) by maggie.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <grmocg@gmail.com>) id 1TxTbi-0000I4-4e for ietf-http-wg@w3.org; Tue, 22 Jan 2013 02:29:03 +0000
Received: by mail-la0-f41.google.com with SMTP id fo12so1405745lab.0 for <ietf-http-wg@w3.org>; Mon, 21 Jan 2013 18:28:34 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=Wx7AcSPjvaYuEnGv+OG9sqMzFBtpEi4Okf3YvMT1KEI=; b=B+yqvrcTp/zwQ5pB2X/GKmjNUeseXrSjKzC7KZtbHsdHb8nxiRO9HjuU/m/5BITLvT u98F/1HUQKzxtGgRnBl4fer5cxTAshYYIybjOsp7n0HqFDX123d6ylzC1DsHkTsJGpKZ KL3nHD/JpYE9ZKKjRR09J5u1+LXb3Vg23zHSoxor9WwDF+AwsiqPbiwFdFp9iAHekOHL j7xg4/dyjB/47QzCHvsWzd+5GtLMiljxkxDiKAm0DC6qrptVTAtbcW/Ds3cQ2N3lAvBN +/7xwp4KaEjoLQOEOL2PJN+7AZc01824aJDKCdilRZV4A+wZ4jAUbG6BbM/IIfofH4+B HOXg==
MIME-Version: 1.0
X-Received: by 10.112.103.167 with SMTP id fx7mr8498315lbb.19.1358821714486; Mon, 21 Jan 2013 18:28:34 -0800 (PST)
Received: by 10.112.81.5 with HTTP; Mon, 21 Jan 2013 18:28:34 -0800 (PST)
Received: by 10.112.81.5 with HTTP; Mon, 21 Jan 2013 18:28:34 -0800 (PST)
In-Reply-To: <811EDF18-4B55-4732-8307-F6B4E0F07DF6@free.fr>
References: <20130121233617.11829.39388.idtracker@ietfa.amsl.com> <811EDF18-4B55-4732-8307-F6B4E0F07DF6@free.fr>
Date: Mon, 21 Jan 2013 18:28:34 -0800
Message-ID: <CAP+FsNesBJ_s15StYJLJoSOSJyB+Yx3C8p7kMiK_qH_9Q1F-Nw@mail.gmail.com>
From: Roberto Peon <grmocg@gmail.com>
To: Frédéric Kayser <f.kayser@free.fr>
Cc: HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary="f46d040169a59ae70d04d3d755c4"
Received-SPF: pass client-ip=209.85.215.41; envelope-from=grmocg@gmail.com; helo=mail-la0-f41.google.com
X-W3C-Hub-Spam-Status: No, score=-4.4
X-W3C-Hub-Spam-Report: AWL=-1.728, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1TxTbi-0000I4-4e 22669a87b361e0941780c3e511179a14
X-Original-To: ietf-http-wg@w3.org
Subject: Re: How to stop receiving a pushed resource? (I-D Action: draft-ietf-httpbis-http2-01.txt)
Archived-At: <http://www.w3.org/mid/CAP+FsNesBJ_s15StYJLJoSOSJyB+Yx3C8p7kMiK_qH_9Q1F-Nw@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/16089
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>

Push is simply better inlining, with prioritization and cancellation.

So, if you don't want a push, you'd cancel the stream, wasting at worst one
BDP worth of bandwidth, and at best near zero (since the push is announced
while the main resource is loading).

Note that if server push is disabled, then servers will inline resources
which is strictly worse as it is impossible to prioritize or cancel (or
cache) such, leading to *increased * bandwidth usage and latency.

-=R
On Jan 21, 2013 5:38 PM, "Frédéric Kayser" <f.kayser@free.fr> wrote:

> Hello,
> is this the mechanism clients should use to stop receiving pushed
> resources they already have in their local cache?
> How are servers supposed to guess what to push or not? Is it be based on
> modification date, could the clients send some hints?
>
> Frédéric
>
> > 4.3.2.  Client implementation
> >
> >    When fetching a resource the client has 3 possibilities:
> >
> >       the resource is not being pushed
> >
> >       the resource is being pushed, but the data has not yet arrived
> >
> >       the resource is being pushed, and the data has started to arrive
> >
> >    When a SYN_STREAM and HEADERS frame which contains an Associated-To-
> >    Stream-ID is received, the client must not issue GET requests for the
> >    resource in the pushed stream, and instead wait for the pushed stream
> >    to arrive.
> >
> > [...]
> >
> >    To cancel individual server push streams, the client can issue a
> >    stream error (Section 3.4.2) with error code CANCEL.  Upon receipt,
> >    the server MUST stop sending on this stream immediately (this is an
> >    Abrupt termination).
>
>
>