Re: How to reset ALTSVC

Ryan Hamilton <rch@google.com> Wed, 01 April 2015 03:22 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 (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 23D611A212D for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 31 Mar 2015 20:22:14 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.389
X-Spam-Level:
X-Spam-Status: No, score=-6.389 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
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 a--NM2RY5qxS for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 31 Mar 2015 20:22:12 -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 75CEF1A0158 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 31 Mar 2015 20:22:12 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1Yd99z-0004rC-MP for ietf-http-wg-dist@listhub.w3.org; Wed, 01 Apr 2015 03:17:43 +0000
Resent-Date: Wed, 01 Apr 2015 03:17:43 +0000
Resent-Message-Id: <E1Yd99z-0004rC-MP@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.80) (envelope-from <rch@google.com>) id 1Yd99x-0004qQ-4N for ietf-http-wg@listhub.w3.org; Wed, 01 Apr 2015 03:17:41 +0000
Received: from mail-yh0-f52.google.com ([209.85.213.52]) by maggie.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <rch@google.com>) id 1Yd99w-0004Tw-3u for ietf-http-wg@w3.org; Wed, 01 Apr 2015 03:17:40 +0000
Received: by yhpt93 with SMTP id t93so9212844yhp.0 for <ietf-http-wg@w3.org>; Tue, 31 Mar 2015 20:17:13 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=H/6CFBBI+kRo6nyd9mWOU8nCO2VDgoPhZYaeBBvHIWA=; b=TkLqwz5CSPtNorXi1fXXADbp/X8RGEzTsrEAKZcqJNpS1ooxNp2LCYvwkc00peyU5J LF2lbrPvRO9/asYIYojQeVmXBnAu60P4kGSmWR8MnooH38U1HHVwsHd5JbJo4QVAMPnr EZw93Q1ttqz+ov7IOVh6nLmU0iEWbnixsDRSW05P/IihYb4Z3lVmlvPCzwb2Ut9oc1HN Q1s7grnA2N6YScEaCFmDbb696AbAdOjvN0IDvTenjp6iyc5r4wQKH5i8TezkN3vb+9Bx l6InC8b9Wd/vOGy5EXX7ou6xDO5mh+5R1VP1sCtkydvKLfVuX98vMjbjWNoigEvWTERB YTqA==
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:content-type; bh=H/6CFBBI+kRo6nyd9mWOU8nCO2VDgoPhZYaeBBvHIWA=; b=DOaYCIhGWboicBZ9kK9v9rS0mSzV1IbWp2hQQrApeRgUruYM3aUiUkZ/uMglMwsfV5 DzJzoGD9sSRxL0oCleXDa0psJYe6uqcgQ7xBxbXJgjXtta7EeS2EoecHN+Ds+hzG+TM8 +u59g2eTLEbzwussnf6E9m9iaMfjo/yFhVzVMS1qSLrZV4gCl9sbrysu41JkGjV/C/lT xZq2sfHLYlODfUFwO0m1eSlXNzjJw1RXFB8D5PhaxIh4pfViHrSFcj2VLUmumqEFJRKD 69CEy+KaixTLV7fLl6+Oh8+7NI3I85w8lF2LZrzoeow1f0joXyVBnoOE4oWePvD9bq2T /s1A==
X-Gm-Message-State: ALoCoQkpxKB9kQcUexWJ9xl0EPL4jt1m7nSqO+riSJVA7jq8ReOfRvdEy1YgDjJ1NMyzqrRzVfUw
MIME-Version: 1.0
X-Received: by 10.52.165.15 with SMTP id yu15mr41050506vdb.28.1427858233847; Tue, 31 Mar 2015 20:17:13 -0700 (PDT)
Received: by 10.52.169.202 with HTTP; Tue, 31 Mar 2015 20:17:13 -0700 (PDT)
In-Reply-To: <CABkgnnU2f9WHs=Ci0XTFEPPd1VKP6Fzrquu3-Jv-XQ0WeK9Tzg@mail.gmail.com>
References: <CACMu3tp8EeMxfgbB4tf2u8mxxnadno6mYEgqbPdb+gEVmVjPow@mail.gmail.com> <CABkgnnU2f9WHs=Ci0XTFEPPd1VKP6Fzrquu3-Jv-XQ0WeK9Tzg@mail.gmail.com>
Date: Tue, 31 Mar 2015 20:17:13 -0700
Message-ID: <CAJ_4DfSf4c71+jUT0=i=V3Dq6LPZGn9mfqughVrmkkMueH1VQA@mail.gmail.com>
From: Ryan Hamilton <rch@google.com>
To: Martin Thomson <martin.thomson@gmail.com>
Cc: Bence Béky <bnc@chromium.org>, HTTP <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary="001a11c2a8e2d18db20512a126ef"
Received-SPF: pass client-ip=209.85.213.52; envelope-from=rch@google.com; helo=mail-yh0-f52.google.com
X-W3C-Hub-Spam-Status: No, score=-4.4
X-W3C-Hub-Spam-Report: AWL=-1.629, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: maggie.w3.org 1Yd99w-0004Tw-3u 8bda16082567e4413f92accb62221af6
X-Original-To: ietf-http-wg@w3.org
Subject: Re: How to reset ALTSVC
Archived-At: <http://www.w3.org/mid/CAJ_4DfSf4c71+jUT0=i=V3Dq6LPZGn9mfqughVrmkkMueH1VQA@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/29158
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 Tue, Mar 31, 2015 at 3:22 PM, Martin Thomson <martin.thomson@gmail.com>
wrote:

> On 31 March 2015 at 13:51, Bence Béky <bnc@chromium.org> wrote:
> > I would like to be able to construct HTTP/1.1 Alt-Svc headers and HTTP/2
> > ALTSVC frames that indicate that the client should forget all previously
> > discovered alternative services for that given origin.  (With the caveat
> > from the earlier "Alt-Svc alternative cache invalidation (ext#16)" thread
> > that they would only invalidate alternative services that came from the
> same
> > discovery mechanism.)  The most obvious way would be to send an Alt-Svc
> > header field with an empty value, or an HTTP/2 ALTSVC frame with an empty
> > Alt-Svc-Field-Value.  However, the current draft calls for at least one
> > alternative in Section 3, and a mandatory Alt-Svc-Field-Value field in
> > Section 4.  I propose to allow zero alternatives like this:
> >
> > Alt-Svc = *( alternative *( OWS ";" OWS parameter ) )
> >
> > and to make Alt-Svc-Field-Value optional.
>
> You could send a redirect-to-self value without changing the grammar
> too.


​Perhaps I'm not familiar enough with the spec, but what is
"redirect-to-self"?​

Or you could set the max-age to 0.  Or both.
>

Yeah, that's definitely an option, but it seems like a bit of a hack to me.​

​It seems like there should be an explicit mechanism to tell a client to
forget whatever Alt-Svc entries it has. Using ma=0 still implies setting
*some* sort of alternative, but in this case there is no valid alternative
to be specified, I think.
​