Re: #40 - HTTP2 default value for client supported max_concurrent_streams

William Chan (陈智昌) <willchan@chromium.org> Sat, 23 February 2013 15:12 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 1314821F8E8F for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sat, 23 Feb 2013 07:12:12 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.416
X-Spam-Level:
X-Spam-Status: No, score=-9.416 tagged_above=-999 required=5 tests=[AWL=0.260, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, 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 t-DHn7lNk8PQ for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sat, 23 Feb 2013 07:12:11 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id ED72121F8E8E for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sat, 23 Feb 2013 07:12:10 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1U9GjV-0000UA-Tx for ietf-http-wg-dist@listhub.w3.org; Sat, 23 Feb 2013 15:09:49 +0000
Resent-Date: Sat, 23 Feb 2013 15:09:49 +0000
Resent-Message-Id: <E1U9GjV-0000UA-Tx@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <willchan@google.com>) id 1U9GjL-0000T8-Rw for ietf-http-wg@listhub.w3.org; Sat, 23 Feb 2013 15:09:39 +0000
Received: from mail-qe0-f52.google.com ([209.85.128.52]) by lisa.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <willchan@google.com>) id 1U9GjL-0004Jh-1K for ietf-http-wg@w3.org; Sat, 23 Feb 2013 15:09:39 +0000
Received: by mail-qe0-f52.google.com with SMTP id i11so175798qej.25 for <ietf-http-wg@w3.org>; Sat, 23 Feb 2013 07:09:13 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=D7hVDIJvZ2G/qrK2zLy4xxGMGnqvPYJEYh3hjbqka4U=; b=kppN3xMK/6afrzFAXAbckgV3muupeMZ/MR2kAwD5wAL9yJYZFRg44y/RD3gj6fMjSD EgpukTP5iOijaEnMAeM+eCqofsujrZcU7wa7dlHvkA8fuOePXA9l+nu2DWdveogDlkdo N+rUsZQUQ4GFXEQk1FOfYh97TnmKIQ6fAy7qHUyTZC+zBK8dVh+i3LWLxGBh1tJ64kMr XYm1ap11HrZLKDi3Ur6khwczfb5Kgp/8IFBlsO9GxOGnZntQ4JacOJy2zIZH8zElKs47 2QlvhVjjES5Q/XFiiWFmQ/PwbcebKziNjUsY+G8TTYFSwX7Wpf8Fxg3W9c1Mpo4LbJ68 iGdQ==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=D7hVDIJvZ2G/qrK2zLy4xxGMGnqvPYJEYh3hjbqka4U=; b=iR8Y5kseVw03cC2bpozRGeJpmPldCvlAOaSuahRY3CcR6Chulhsdi2xBME2PA0nZps k5A6rRBX9vxnc8bcKFWZemTYwEYZYhlXzYQ2wZyuDDaWIxNX3BvlbH/i25cZRsUhqQVv 4ink9kAfieJZiD8F/xCYuc+R3cOyNDeZ9Fcp4=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :x-gm-message-state; bh=D7hVDIJvZ2G/qrK2zLy4xxGMGnqvPYJEYh3hjbqka4U=; b=TW5TG3k3ILENPPBfyjax9+B6qtSsmz5CULFh4NFmNwo4idhEOdmUKzXad+Qt2/l8eA cUvf0PlhR6plkLwA6vz1VHcdnJn4WT+XNThQNC8OluMRurDSah6RMoLG4zkoJIH/5X+s mMg2p6n6dPln23h6OLqB8xVauYk6/FRtKTJPlhmd8I7+rvQqv6YhS+DTRhEfplUe2NZG WOgdrQtAou4ROL3pd1cJF0amfvDWmDKhOGpJmEosJ5rJP/sHUntMtVkUy78k0xR/Avji fp7OV84hT7p5Hly0eIAIj2vPsln2RXk0F1SYaFSkHMGoePQeM3ZPYqXjqldRkNX9WjLC vGlg==
MIME-Version: 1.0
X-Received: by 10.224.203.131 with SMTP id fi3mr2820256qab.77.1361632153045; Sat, 23 Feb 2013 07:09:13 -0800 (PST)
Sender: willchan@google.com
Received: by 10.229.135.210 with HTTP; Sat, 23 Feb 2013 07:09:11 -0800 (PST)
In-Reply-To: <5128A209.7040403@treenet.co.nz>
References: <B33F11E188FEAB49A7FAF38BAB08A2C001D31EF6@TK5EX14MBXW601.wingroup.windeploy.ntdev.microsoft.com> <CAP+FsNeHjN-SQHw5NyiqauNAL-7rbwq91a0OdXujdF4SL6j4Yw@mail.gmail.com> <CABkgnnWD1XWx3hChfDh83VmhtspsCHETRnZBYjzM7pCXYa=0Fg@mail.gmail.com> <CAP+FsNcqu-AwNnijWcPyNZFWssEqo0b+sv61E09ZO=aFyzCNFQ@mail.gmail.com> <CA566BAEAD6B3F4E8B5C5C4F61710C1163AA6440@TK5EX14MBXW602.wingroup.windeploy.ntdev.microsoft.com> <CAA4WUYiJbASP2fUGSZYzLstDM1zn6FLou9OOdRwokwm0yu+OMg@mail.gmail.com> <5128A209.7040403@treenet.co.nz>
Date: Sat, 23 Feb 2013 07:09:11 -0800
X-Google-Sender-Auth: 0WerTan2iI77l3Dkfbj8aPKbI_k
Message-ID: <CAA4WUYjUTkJk1EdJ_N6w_8VPCu7cSZ8aTceO7r=ojX8b5bmuXA@mail.gmail.com>
From: "William Chan (陈智昌)" <willchan@chromium.org>
To: Amos Jeffries <squid3@treenet.co.nz>
Cc: HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary="20cf300512c2cc0b4304d665b051"
X-Gm-Message-State: ALoCoQlt6d128Ia5VVVlQBIgKoOqQYOF7FHAMlpip0y5NMlG3COb6TCSj/ZtJUYqQy39pTLt7B0QWFyAkpZbj3KHX8B1xPNn4I3rZPTCsU7cA4jQqrRlCN2NqmUrR/yL27+Jkqeka9VVet4kUBxyYQZRvL5QrN7PlkmFRRf4lknBEuSybWNFHgk2hVDbeOp+Svjamg4rX29U
Received-SPF: pass client-ip=209.85.128.52; envelope-from=willchan@google.com; helo=mail-qe0-f52.google.com
X-W3C-Hub-Spam-Status: No, score=-3.8
X-W3C-Hub-Spam-Report: AWL=-2.332, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RP_MATCHES_RCVD=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1U9GjL-0004Jh-1K 15deb89ca9436369dbedbcaf57f0d111
X-Original-To: ietf-http-wg@w3.org
Subject: Re: #40 - HTTP2 default value for client supported max_concurrent_streams
Archived-At: <http://www.w3.org/mid/CAA4WUYjUTkJk1EdJ_N6w_8VPCu7cSZ8aTceO7r=ojX8b5bmuXA@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/16794
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>

Sorry, I did not explicitly state a conditional that I thought was
implicitly understood.

*In situations where the server wants to push resources*, if the majority
of clients disable HTTP/2 stream push, then servers will simply inline
resources instead.

You're right that push can always be abused. But in situations that it
makes sense to push, it's better to use HTTP/2's push facility than to
inline resources. And we should ensure that the push mechanism remains
viable, otherwise servers will just inline in those situations.


On Sat, Feb 23, 2013 at 3:03 AM, Amos Jeffries <squid3@treenet.co.nz> wrote:

> On 23/02/2013 10:29 a.m., William Chan (陈智昌) wrote:
>
>> Let's be careful about this issue, because as we've noted many times
>> before, if the server can't leverage HTTP/2 to push streams, it is likely
>> to just inline resources directly, which is definitely worse.
>> Fundamentally, when the client issues a request, the server can send
>> anything it wants in the response. Defaulting to 0 would most likely
>> incentivize servers to to just inline resources, which is probably worse
>> than sending push streams to clients which don't want it (I assert that in
>> the open web, this should be a minority. If not, then HTTP/2 stream pushing
>> will have failed and people will just inline resources).
>>
>
> Sorry I just parsed that as a re-wording of "if it turns out the majority
> of clients disable push we can consider it failed and servers will just do
> it via inlining anyway."
>
> If that is the case, why are sites not already inlining _all_ of their
> page content and pushing it on first contact from any client. The answer
> should be obvious that it is a waste of resources for both client and
> server to do this at all on any large scale. Although, that said I'm still
> fielding questions about how to pre-cache entire sites like facebook and
> google :-( there will always be idiots whatever gets specified.
>
> Amos
>
>
>> On Fri, Feb 22, 2013 at 1:02 PM, Gabriel Montenegro <
>> Gabriel.Montenegro@microsoft.**com <Gabriel.Montenegro@microsoft.com><mailto:
>> Gabriel.Montenegro@**microsoft.com <Gabriel.Montenegro@microsoft.com>>>
>> wrote:
>>
>>     There is harm borne by the unwilling client receiver: battery and
>>     data allowance are not free.
>>
>>     *From:*Roberto Peon [mailto:grmocg@gmail.com
>>     <mailto:grmocg@gmail.com>]
>>     *Sent:* Friday, 22 February, 2013 08:24
>>     *To:* Martin Thomson
>>     *Cc:* Osama Mazahir; ietf-http-wg@w3.org
>>     <mailto:ietf-http-wg@w3.org> Group
>>     *Subject:* Re: #40 - HTTP2 default value for client supported
>>
>>     max_concurrent_streams
>>
>>     Yup, I understand that part. :)
>>
>>     I'm doing a poor job of pointing out that any harm done by doing
>>     something like this is borne by the party doing it.
>>
>>     ... so why mandate it-- if there turns out to be a positive
>>     benefit of doing such a push in the future, fine.
>>
>>     I guess I'm attempting to argue that, unless we can figure out how
>>     this causes harm/is likely to be done accidentally and cause
>>     issues, then it is better to not say anything about it. Saying
>>     something about it creates a spec with is more fragile.
>>
>>     -=R
>>
>>     On Fri, Feb 22, 2013 at 8:19 AM, Martin Thomson
>>     <martin.thomson@gmail.com <mailto:martin.thomson@gmail.**com<martin.thomson@gmail.com>>>
>> wrote:
>>
>>         On 22 February 2013 05:29, Roberto Peon <grmocg@gmail.com
>>         <mailto:grmocg@gmail.com>> wrote:
>>         > What is the motivation for that?
>>
>>         I'm not suggesting that this is Osama's motivation, but look
>>         at the
>>         Upgrade scenario: the server is the first to send on the HTTP/2.0
>>         session with a response. There's an obvious opportunity there
>>         to push
>>         prior to the client SETTINGS frame arriving. The TLS scenario
>>         is less
>>         interesting - the client sends SETTINGS prior to any request,
>>         making
>>         defaults non-interesting.
>>
>>
>>
>
>