Re: Alt-Svc + Proxy Pac
Martin Thomson <martin.thomson@gmail.com> Fri, 03 April 2015 16:54 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 DFF571ACD89 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 3 Apr 2015 09:54:40 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.012
X-Spam-Level:
X-Spam-Status: No, score=-7.012 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, 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 yA0K8_iZsIRU for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 3 Apr 2015 09:54:38 -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 BB5F41ACD87 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Fri, 3 Apr 2015 09:54:38 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1Ye4oF-0007et-NP for ietf-http-wg-dist@listhub.w3.org; Fri, 03 Apr 2015 16:51:07 +0000
Resent-Date: Fri, 03 Apr 2015 16:51:07 +0000
Resent-Message-Id: <E1Ye4oF-0007et-NP@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.80) (envelope-from <martin.thomson@gmail.com>) id 1Ye4oC-0007dH-24 for ietf-http-wg@listhub.w3.org; Fri, 03 Apr 2015 16:51:04 +0000
Received: from mail-ob0-f182.google.com ([209.85.214.182]) by lisa.w3.org with esmtps (TLS1.2:RSA_ARCFOUR_SHA1:128) (Exim 4.80) (envelope-from <martin.thomson@gmail.com>) id 1Ye4oB-000307-3F for ietf-http-wg@w3.org; Fri, 03 Apr 2015 16:51:04 +0000
Received: by obbec2 with SMTP id ec2so176711358obb.3 for <ietf-http-wg@w3.org>; Fri, 03 Apr 2015 09:50:37 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=bOm3JGmdnku0znnNjXfbBwRA9s5QqzZjlxn/YMQAc7w=; b=BtSmqyMyLl66t24s9q0/nvp547b5DCy/tpds4iAqx5QYOBPVpJz3SocQ5eoYMV8Mfs bYNlcdC44NIsOT+9AlHJeeLrlQBYn0zGXWKX6H5WHzakRK5+XVb2kK1fWPyxZ6s/E00t bHnPTDRxF5n9Y63wtvu4y2OLlzeNG50T+J0RKEMaIa08JzF/B1MRC0HptUJal9bgGF/B kagJWXt+nwUMUEZG6Lb6yx8EF/cXQDOzT0oAGqZ+q4vi/aUfcjSHTEAW5ybcIHtQxqkS 9h2AyzTfYIU1vlrJmYXZj1K1/tKy8DME0/qJpZKVtAWUklxN2AyljN/XHyxtNA4neXJM LIXg==
MIME-Version: 1.0
X-Received: by 10.60.132.33 with SMTP id or1mr4037411oeb.82.1428079837202; Fri, 03 Apr 2015 09:50:37 -0700 (PDT)
Received: by 10.202.48.151 with HTTP; Fri, 3 Apr 2015 09:50:37 -0700 (PDT)
In-Reply-To: <CAJ_4DfS5J0k-G_fY46R=8jJDbppC8EfvAmLCaeccPFudOfFM0g@mail.gmail.com>
References: <CAJ_4DfS5J0k-G_fY46R=8jJDbppC8EfvAmLCaeccPFudOfFM0g@mail.gmail.com>
Date: Fri, 03 Apr 2015 09:50:37 -0700
Message-ID: <CABkgnnWXR7H1oZWLLT7ZhoOtPZjVVDnYaqTYACBkoVQ2scrKJA@mail.gmail.com>
From: Martin Thomson <martin.thomson@gmail.com>
To: Ryan Hamilton <rch@google.com>
Cc: "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
Content-Type: text/plain; charset="UTF-8"
Received-SPF: pass client-ip=209.85.214.182; envelope-from=martin.thomson@gmail.com; helo=mail-ob0-f182.google.com
X-W3C-Hub-Spam-Status: No, score=-6.9
X-W3C-Hub-Spam-Report: AWL=0.897, 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: lisa.w3.org 1Ye4oB-000307-3F 48f8c9626fb65cbe87f8a4fb87835926
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Alt-Svc + Proxy Pac
Archived-At: <http://www.w3.org/mid/CABkgnnWXR7H1oZWLLT7ZhoOtPZjVVDnYaqTYACBkoVQ2scrKJA@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/29233
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>
Good question. I think that you put the original requested URL in and let the proxy worry about alt-svc compliance. The proxy is your overriding alternative. That matches the logic in the case where the proxy.pac isn't present and you just have a hard-coded proxy that you send all requests to. Now, if the proxy.pac suggests that direct is acceptable, I think that makes it OK to (try to) use the alternative. If you think of proxy.pac as a first level alternative selector, and alt-svc as a second-level one, I think that works. On 3 April 2015 at 07:35, Ryan Hamilton <rch@google.com> wrote: > Howdy Folks, > > I'm curious how Alt-Svc is expect to work with Proxy PAC files. Consider the > scenario where http://www.example.com/ has an Alt-Svc that specified http/2 > on mail.example.com:443. When the browser decides to make an http/2 (over > TLS) connection to mail.example.com, on behalf of http://www.example.com, > what URL and host should the browser pass to the PAC file's > FindProxyForURL() method? > > I can argue both cases. > > * It should pass in the requested url (http://www.example.com/) because that > is the URL being requested. There is no other URL. > * It should pass in a pseudo url (https://mail.exmaple.com/) because, for > example, access to mail.example.com may well requires use of a proxy to > access. By passing in the request URL, the PAC file does not have the > opportunity to send the connection to the correct proxy. > > Thoughts? > > Cheers, > > Ryan >
- Alt-Svc + Proxy Pac Ryan Hamilton
- Re: Alt-Svc + Proxy Pac Martin Thomson
- Re: Alt-Svc + Proxy Pac Martin Thomson
- Re: Alt-Svc + Proxy Pac Francesco Chemolli
- Re: Alt-Svc + Proxy Pac Patrick McManus
- Re: Alt-Svc + Proxy Pac Ryan Hamilton
- Re: Alt-Svc + Proxy Pac Ryan Hamilton
- Re: Alt-Svc + Proxy Pac Ryan Hamilton
- Re: Alt-Svc + Proxy Pac Patrick McManus
- Re: Alt-Svc + Proxy Pac Ryan Hamilton
- Re: Alt-Svc + Proxy Pac Martin Thomson