
From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Mon Jan  2 15:05:05 2017
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 1F9AE1294EA for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon,  2 Jan 2017 15:05:05 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.001
X-Spam-Level:
X-Spam-Status: No, score=-10.001 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-3.1, 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=ecaspia-com.20150623.gappssmtp.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 tth09pLIvfCO for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon,  2 Jan 2017 15:05:03 -0800 (PST)
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 CBA6B1294C6 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon,  2 Jan 2017 15:05:02 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cOBbe-0002jd-N8 for ietf-http-wg-dist@listhub.w3.org; Mon, 02 Jan 2017 23:01:30 +0000
Resent-Date: Mon, 02 Jan 2017 23:01:30 +0000
Resent-Message-Id: <E1cOBbe-0002jd-N8@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <craig@caspiaconsulting.com>) id 1cOBba-0002ir-Nj for ietf-http-wg@listhub.w3.org; Mon, 02 Jan 2017 23:01:26 +0000
Received: from mail-pg0-f45.google.com ([74.125.83.45]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <craig@caspiaconsulting.com>) id 1cOBbU-0003Rd-7M for ietf-http-wg@w3.org; Mon, 02 Jan 2017 23:01:20 +0000
Received: by mail-pg0-f45.google.com with SMTP id y62so155603496pgy.1 for <ietf-http-wg@w3.org>; Mon, 02 Jan 2017 15:00:59 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ecaspia-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:organization:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=ZiUrHqk8G8sBl+I5QmDr3JwiwM0zlxrrrwnJKKA0nV8=; b=1TNTGkKpmk8UV/OHhtKqFf89/tHaYj/kfhOZICD0EahLk8QlvJEpIBCwvE2hlVYIcv 5DBR1EVAT734qlruveZVXZVTlvWv5sHDXKrRzQTWUyzDLEmbv3UU1WX1q8Dpw6L+H7DQ IufNSbulnEQ5AsQP1ODiCbQCvkOOQBOhd16M8M0edWLiRMKWR5OcbNblXEiC3IF7JhzT f1vJu2+qQp4aXcCpJSF0RoS+LbCq3w5UMr8bxThzy3d+y3yByk6SflbJONd1xUF+ggb+ KoDMr4XLfbxEMV5YAIUifPVwhn+ea+W4h+J0ABl3kwXNb0KUay3WaAv7zrN8PJ2JsMyB VVDA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:organization :message-id:date:user-agent:mime-version:in-reply-to :content-transfer-encoding; bh=ZiUrHqk8G8sBl+I5QmDr3JwiwM0zlxrrrwnJKKA0nV8=; b=pn024sn6msCjglL/B/a4J0tLz5Erzd3F28o6pT6bJ8KMFn8kO8XkdpR3SsGb2iY9Ze PxNMM3xG+AipY1rf+G2MlrBdFok9cBoCkfhE1SPlj+GBJmgxN91hw1hPyzsOEdx/o3y8 FIsd5TIuk4++f2XmZT1NqIHeb/YjiW9oJfFLPHYC/iyEVQiwqCx+40HKGRa24zTmc9eJ 3lwu2xDYpEblPmk5ZIIy2gDq3tk5NZP8juLY6OpiPIZscubPwteaGHjklYEpKIJlLE7l v8l4A+r/ORAE5kdNWHWbOGScfEec3WjS03ObIbd8ok0hst/lYVtHzHmnxHDPVE16tnEE e7Bg==
X-Gm-Message-State: AIkVDXKqGGAu3V8ZnKXe6FyrPZjjeurNr8rxPhhsNnhMfxvzO1PZU2KlQIcFgeiyoi7vuw==
X-Received: by 10.84.143.1 with SMTP id 1mr129519261ply.86.1483398053264; Mon, 02 Jan 2017 15:00:53 -0800 (PST)
Received: from [10.10.1.125] (50-193-209-61-static.hfc.comcastbusiness.net. [50.193.209.61]) by smtp.googlemail.com with ESMTPSA id o24sm84309186pfj.78.2017.01.02.15.00.51 for <ietf-http-wg@w3.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 Jan 2017 15:00:52 -0800 (PST)
To: ietf-http-wg@w3.org
References: <CAOdDvNpnzxqPaQ1KMAKwQn3XRpHgtA-71DiLHJQ+HD8ve-4Lkg@mail.gmail.com>
From: Craig Pratt <craig@ecaspia.com>
Organization: Caspia Consulting
Message-ID: <41667b41-2c00-98e5-628f-44531249559c@ecaspia.com>
Date: Mon, 2 Jan 2017 15:00:51 -0800
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:45.0) Gecko/20100101 Thunderbird/45.5.1
MIME-Version: 1.0
In-Reply-To: <CAOdDvNpnzxqPaQ1KMAKwQn3XRpHgtA-71DiLHJQ+HD8ve-4Lkg@mail.gmail.com>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Received-SPF: pass client-ip=74.125.83.45; envelope-from=craig@caspiaconsulting.com; helo=mail-pg0-f45.google.com
X-W3C-Hub-Spam-Status: No, score=-5.0
X-W3C-Hub-Spam-Report: AWL=-1.067, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cOBbU-0003Rd-7M 4e72851a01ecf1e24bf4d9f77eeabe95
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Call For Adoption Live Byte Ranges
Archived-At: <http://www.w3.org/mid/41667b41-2c00-98e5-628f-44531249559c@ecaspia.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33255
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 12/19/16 2:30 PM, Patrick McManus wrote:
> Does anyone have any *additional* input on adopting this document? it 
> seems that there is strong support so far.
>
> We'll keep the our several CFAs open through the new year and then 
> make a determination. Thanks.
>
> -Patrick
>
Thanks Patrick,

In consideration of Poul-Henning Kamp's feedback and some evolution in 
my own preferences, I'm drafting a revision to the Live Bytes Range 
draft to define the "Very Large Value" as a specific numerical value - 
after realizing that 2^63 bytes doesn't really represent a practical limit.

e.g. At 50Mb/s, a representation limited to 2^63 bytes representation 
could cover over 46000 years. Even at 1Gb/s, 2339 years could be 
represented.

2^63 is 9223372036854775808 (decimal). I've defined a smaller value to 
avoid potential conflicts and to make the value more easily 
identifiable: 9222999999999999999.

I think having a clearly-defined Very Large Value such as this to 
represent the indeterminate end of content will be more 
deterministic/easily implemented than having a Server try to establish a 
VLV in each HTTP exchange. But I'd appreciate any thoughts prior to 
revising the draft.

Thanks much - and Happy New Year,

cp
-- 

craig pratt

Caspia Consulting

craig@ecaspia.com

503.746.8008

	


	





From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Mon Jan  2 15:29:20 2017
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 14DB4129957 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon,  2 Jan 2017 15:29:20 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.601
X-Spam-Level:
X-Spam-Status: No, score=-9.601 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_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.1, 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 NGIq7lQczkil for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon,  2 Jan 2017 15:29:18 -0800 (PST)
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 D50A61294C6 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon,  2 Jan 2017 15:29:18 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cOC0O-0006hn-Fr for ietf-http-wg-dist@listhub.w3.org; Mon, 02 Jan 2017 23:27:04 +0000
Resent-Date: Mon, 02 Jan 2017 23:27:04 +0000
Resent-Message-Id: <E1cOC0O-0006hn-Fr@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <martin.thomson@gmail.com>) id 1cOC0J-0006h1-Ip for ietf-http-wg@listhub.w3.org; Mon, 02 Jan 2017 23:26:59 +0000
Received: from mail-qk0-f177.google.com ([209.85.220.177]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <martin.thomson@gmail.com>) id 1cOC0D-00047M-KP for ietf-http-wg@w3.org; Mon, 02 Jan 2017 23:26:54 +0000
Received: by mail-qk0-f177.google.com with SMTP id h201so221700964qke.1 for <ietf-http-wg@w3.org>; Mon, 02 Jan 2017 15:26:32 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=8sltmIzQemMWf/O4WbrbOQPjZvxMcdOw1sa60Xv1Iek=; b=ly0AxzztYeAoYkToe6PtOfrHYy2J0SMm7gbEAXxcuqCMsQf69zDZzUZRodpdaYFb5v vNE14OHRrjOSYRGGrxVYJqQAyjFA3uHyX3CndKbF9IVSqSPV237i6z6CKqtJai0EfWvU KU/FyFkfmPzrVP49nVJGJrtuwLbRRxki4hEB9CWncs2KJJBPiH4YOOhnfTAm+ubGZtVH hT/6HknN2eLDpCSbsVb0vXR1rk+kQ/E5sVPi7nztDx+JEkz0uL0H/98/d6yn0f49ASJL bzXBtaF/bnQ5YJ4ymfjrytseBMmYsA1Rcf44wXTCkSoFQ+FUGe/Ciq8CEbvslvU4x8kS LEdA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=8sltmIzQemMWf/O4WbrbOQPjZvxMcdOw1sa60Xv1Iek=; b=gRdQ9S1xr/YoO4TpIs7Vp7FWdrA+ut3z+ZUhoapzP3EggxlU3Z1jqmY2xambFaaT4s U5Sfm3WaoM3jHdJJMNNDhd3ttL5Hf1Qib+9G2zU3E5OUqUU0UzdTyKN8oxhvthd4fTrg Bwz/AiW/0BWdolKkjyV4OCXndEftZzhTImnRd7+FHW6cr1tGodljEJmCbyVW1b5fRteV n0SFNDreUtS19VGsgix61Iz5ywJkTPBe8hRT32+2qCMT2FD04vsPxRqJxqah8lsVDwSX ue4TfH7Qnq2nqi3zWtKjZBdxsC3XT//GjstucYVE0VUvp+y+N+dV6XomwmXWDQkkznC/ 5xcQ==
X-Gm-Message-State: AIkVDXKICwcK/Ug++PjG4bkI83R6DUcY8xFMpJ8u57aho6TTYFse1vlMrJjCF4xilPDIRrEInzUbU3mdVtFdRQ==
X-Received: by 10.55.99.85 with SMTP id x82mr50061050qkb.147.1483399587346; Mon, 02 Jan 2017 15:26:27 -0800 (PST)
MIME-Version: 1.0
Received: by 10.140.38.233 with HTTP; Mon, 2 Jan 2017 15:26:26 -0800 (PST)
In-Reply-To: <201612230758.uBN7wndh003154@shell.siilo.fmi.fi>
References: <CABkgnnWhc6ZdjgV5degiJuK-P6qSZk_uMjLm9zctyqdOSUaxPw@mail.gmail.com> <20161222060124.733EB1A95C@welho-filter4.welho.com> <CABkgnnVmHMPgBG6=GbN7iPWJQNJ46Nn6Cp39uZRB9zABSmS-2g@mail.gmail.com> <201612230744.uBN7ir0E002689@shell.siilo.fmi.fi> <201612230758.uBN7wndh003154@shell.siilo.fmi.fi>
From: Martin Thomson <martin.thomson@gmail.com>
Date: Tue, 3 Jan 2017 10:26:26 +1100
Message-ID: <CABkgnnXoTsKRozwo1rYhKjy0q1=q0DoCaVA-JW5tmBc-m1GOsw@mail.gmail.com>
To: Kari Hurtta <hurtta-ietf@elmme-mailer.org>
Cc: HTTP working group mailing list <ietf-http-wg@w3.org>
Content-Type: text/plain; charset=UTF-8
Received-SPF: pass client-ip=209.85.220.177; envelope-from=martin.thomson@gmail.com; helo=mail-qk0-f177.google.com
X-W3C-Hub-Spam-Status: No, score=-5.8
X-W3C-Hub-Spam-Report: AWL=-0.239, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cOC0D-00047M-KP 23ee5e40b0e2c7ccfc4af795c8995df5
X-Original-To: ietf-http-wg@w3.org
Subject: Re: (rephrasing, sorry for duplicate) | Re: draft-ietf-httpbis-encryption-encoding
Archived-At: <http://www.w3.org/mid/CABkgnnXoTsKRozwo1rYhKjy0q1=q0DoCaVA-JW5tmBc-m1GOsw@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33256
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 about the delay, it's silly season here and I've been offline.)

On 23 December 2016 at 18:58, Kari Hurtta <hurtta-ietf@elmme-mailer.org> wrote:
> Hmm. I need rephrase.  Sorry for duplicate mail.
>
> Question is that well-known URI need to requested from all putative
> alternatives or not?. Yes, you can not request that from clear text
> connection now.

Ahh, so you check alt1.example.com and find that it's OK, what about
alt2.example.com?  It seems unnecessary once you have authenticated a
willingness to proceed.

How about:
"""
Any authenticated strongly alternative service can provide this
response. That is, as long as the http-opportunistic response is
valid, any authenticated alternative service can be used for that
origin.
"""

I understand that you might argue that there is safety in checking
every alternative differently.  That allows all alternatives to be
configured differently.

I expect that some implementations will likely check every time rather
than rely on cached values.  More so because - if you rely on your
cache - you need special logic to avoid caching this resource from
non-authenticated sources if you do that.  But that's optimization
territory and optimization is hazardous.

To that end:
"""
Clients that use cached http-opportunistic responses MUST ensure that
their cache is cleared of any responses that were acquired over an
unauthenticated connection.  Revalidating an unauthenticated response
using an authenticated connection does not ensure the integrity of the
response.
"""

See: https://github.com/httpwg/http-extensions/pull/279

I am open to arguments that require that the check is performed every
time, but that's less flexible.  This seems preferable.


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Mon Jan  2 16:41:09 2017
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 894DE12951C for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon,  2 Jan 2017 16:41:09 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.101
X-Spam-Level:
X-Spam-Status: No, score=-10.101 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, RP_MATCHES_RCVD=-3.1, 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 7TVg_6AgibTz for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon,  2 Jan 2017 16:41:08 -0800 (PST)
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 350441293F8 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon,  2 Jan 2017 16:41:07 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cOD74-0000Bt-Gs for ietf-http-wg-dist@listhub.w3.org; Tue, 03 Jan 2017 00:38:02 +0000
Resent-Date: Tue, 03 Jan 2017 00:38:02 +0000
Resent-Message-Id: <E1cOD74-0000Bt-Gs@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <martin.thomson@gmail.com>) id 1cOD70-0000Ag-PQ for ietf-http-wg@listhub.w3.org; Tue, 03 Jan 2017 00:37:58 +0000
Received: from mail-qt0-f170.google.com ([209.85.216.170]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <martin.thomson@gmail.com>) id 1cOD6u-0001Uy-Ss for ietf-http-wg@w3.org; Tue, 03 Jan 2017 00:37:53 +0000
Received: by mail-qt0-f170.google.com with SMTP id d45so229176496qta.1 for <ietf-http-wg@w3.org>; Mon, 02 Jan 2017 16:37:32 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=qr4jAksS6A/Tk5EqDaw06Oto7Gf8YBqxb1hPX/fXqpY=; b=YKxRUZK9ieiI1/kOGw+LaQ4ZkkTS6qFzftqrPdjHLBYYa+zfuWaIoPr0YhLTu68n6C u7ZpmTd1jEy2akE/HSKUMEE+LwgyD46Y9LhUUvIaRrtXbDc0IZ5LYDNNAWp0ftxZczOu WndJWszN7Nb34Es3PwPLGnnPvfUblxCZVdTAlsY4xa1zd+lmel7O0O/OjcWeeyQVvaaJ +oz00ACjhkrae3a2SiVuug/8aNfQub/8DIqBzENin/mBj6T5lOdjHGdm5N/carQZQNpu 0GCk9lDYDQfCLUouJ5OGo0qmoTcWKvNKGXhRx/HNWP4AeWHGceqw45z6P5goT+xXIMIR 5iaQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=qr4jAksS6A/Tk5EqDaw06Oto7Gf8YBqxb1hPX/fXqpY=; b=PaCexL1GcubV8PZI91r4wW2OO+SteSiKfE0lVHWB1oedGGT7SxtjeDBgFNGWNxn7BY GmNcRaO+p53Ax9OQGCkOEzo9uML8zSW8wkuSQEiOZ/Bc9qOLyz+6+qKuHnQOPGpYJcoP wnAlh7qPkkNGbU+99+xWfgKcbsGEcBU0+zGoLXSTDqjIr4+f9t62xu3DDk6X/Kc08Bdo DU42zcv/7tjyEAO7BJ+fgVWtSiypHXhCSxBPPV/nlHQRMhsQVok2ttSCSDeu1hhUnInp iAe4pio6vKDk3sqHPBiFGnk8eAdD49SvcZAPa2qqV/WZfAX0jKphK+PeUQAS0X/Xu3O3 rHpA==
X-Gm-Message-State: AIkVDXLo6S5l2bqSJiLhrSiNOfQQnVD9K18Brz90FQD8L9zVETK4sagQ/xjLllRo6DYwuP4Ucxxm5Q1mpyjKkw==
X-Received: by 10.200.48.28 with SMTP id f28mr62183996qte.247.1483403846873; Mon, 02 Jan 2017 16:37:26 -0800 (PST)
MIME-Version: 1.0
Received: by 10.140.38.233 with HTTP; Mon, 2 Jan 2017 16:37:26 -0800 (PST)
From: Martin Thomson <martin.thomson@gmail.com>
Date: Tue, 3 Jan 2017 11:37:26 +1100
Message-ID: <CABkgnnVj6yKkdr=QZiZpqMDsbYDpO39bbYThi6bPOcOx7Sdi5Q@mail.gmail.com>
To: Craig Pratt <craig@ecaspia.com>
Cc: HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: text/plain; charset=UTF-8
Received-SPF: pass client-ip=209.85.216.170; envelope-from=martin.thomson@gmail.com; helo=mail-qt0-f170.google.com
X-W3C-Hub-Spam-Status: No, score=-6.4
X-W3C-Hub-Spam-Report: AWL=0.361, 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, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1cOD6u-0001Uy-Ss a2fd37a9325b354a330ffa0c024b69ff
X-Original-To: ietf-http-wg@w3.org
Subject: Very large values (Re: Call For Adoption Live Byte Ranges)
Archived-At: <http://www.w3.org/mid/CABkgnnVj6yKkdr=QZiZpqMDsbYDpO39bbYThi6bPOcOx7Sdi5Q@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33257
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 3 January 2017 at 10:00, Craig Pratt <craig@ecaspia.com> wrote:
> 2^63 is 9223372036854775808 (decimal). I've defined a smaller value to avoid
> potential conflicts and to make the value more easily identifiable:
> 9222999999999999999.
>
> I think having a clearly-defined Very Large Value such as this to represent
> the indeterminate end of content will be more deterministic/easily
> implemented than having a Server try to establish a VLV in each HTTP
> exchange. But I'd appreciate any thoughts prior to revising the draft.

I think that any value you choose will be OK-ish.  The question is
whether you think that there is a response that will exceed that size.
If there is, then no single value you choose will be enough.  If that
is possible, then you don't want a single fixed value at all, just a
recommendation to pick a big number that far exceeds the size you
want/expect.

I guess the other concern is that 9222999999999999999 (which I had to
copy because I go cross-eyed counting those nines), is too big for
some numeric formats.  Javascript has trouble with that number, which
it reads as 9223000000000000000 instead, a problem that starts with
9007199254740993 (just paste that into your browser console and see
what comes back). That suggests a smaller value might be safer, but
then you have more problems with overflow.

Note that whatever value you pick has to be safe for a great many
implementations, even if those implementations never need that space.
They still have to parse the value properly, preferably without
resorting to use of bignums.

If you believe it to be possible to pick a safe value that will never
be exceeded, then ignore the rest of my mail :)


The risk in specifying a single value is that implementations will
hard-code checks around that value like (end == VLV) or if things are
done poorly (end >= VLV).  Implementations that have that check will
assume indefinite ranges, even if there isn't an indefinite range and
might get caught with bugs, like infinite loops:

10: I have up to <VLV>, I need more bytes
20: ask for a range from current end to <VLV> (i.e., VLV-VLV)
30: get a zero-length range back
40: if need more bytes, goto 20

That leads to problems: implementations won't be able to send
responses of exactly the size you choose (however unlikely that is),
or in the bad case, you won't ever be able to exceed that value.

You can get the same effect if major implementations pick the same value.

On the other hand, a client can just pick an arbitrary stupidly large
value (ASLV).  This can be an increment on what the client already
has, and should probably include some randomness.  If there is that
much still remaining, then they just have to make a new request.

Thus, clients can pick a minimum increment that won't cause too much
pain for them.  2^32 might be enough for clients that don't mind
making a request every 4Gb or so, and it might make sense to start
with "smaller" increments like that to avoid triggering
incompatibility problems.

Adding some amount of randomness will provide greater surety that the
server has read and understood the request.  e.g.,

aslv = lastByte + 2**32 + random(2**32)
request.setHeader('Content-Range, 'bytes %d-%d/*' % (lastByte, aslv)


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Mon Jan  2 16:51:43 2017
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 98CB31293F8 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon,  2 Jan 2017 16:51:43 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.601
X-Spam-Level:
X-Spam-Status: No, score=-9.601 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_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.1, 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 EFKjgi-T6dgk for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon,  2 Jan 2017 16:51:42 -0800 (PST)
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 89B3D120725 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon,  2 Jan 2017 16:51:42 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cODIG-0007Xq-AR for ietf-http-wg-dist@listhub.w3.org; Tue, 03 Jan 2017 00:49:36 +0000
Resent-Date: Tue, 03 Jan 2017 00:49:36 +0000
Resent-Message-Id: <E1cODIG-0007Xq-AR@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <martin.thomson@gmail.com>) id 1cODIC-0007Wh-VO for ietf-http-wg@listhub.w3.org; Tue, 03 Jan 2017 00:49:33 +0000
Received: from mail-qk0-f178.google.com ([209.85.220.178]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <martin.thomson@gmail.com>) id 1cODI7-0001hS-1E for ietf-http-wg@w3.org; Tue, 03 Jan 2017 00:49:27 +0000
Received: by mail-qk0-f178.google.com with SMTP id u25so351654725qki.2 for <ietf-http-wg@w3.org>; Mon, 02 Jan 2017 16:49:06 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=R1iO1igpZm53p6sM1FjZHn3YhWdCLHnOM7NMOIBA65A=; b=ti2xBSh9qXw00JB8NtUL/RXA0PjxIRuysA+TAS+ORiXJLI2WYOX+Lv4VI75jATrrb5 PLrWWt/JR7X+qh4TIB7AlpE0BDTJO2yjlJ+w6cIxQcOirgJORejHH4cCYtFh6BOlsQwZ SbKJYq2eC/ZwVpZ9BZN48RbMm9kxHoJwEKE8f9DIJN+3XNUZxgCAuigTD8KETE9rU0DS 8Wn3g0clrG8fAVJbEOFldQS/GIidQN3rjJx6eCucIr9qS/Hy7cSsff0QwZYWRySd5+T+ ctzWgIELV4+uohFweHVGNE7RhMozY4W14KJVWZp4QNvsQINQgra4rc2bOyYv6DAlM2x1 7AGQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=R1iO1igpZm53p6sM1FjZHn3YhWdCLHnOM7NMOIBA65A=; b=TKRAb+ZmsbO0l6S4CgwGFB3ytblPaWRTs81HWhr0i1Vm2bVgcOZ71/oHsU3gPy998M pVVMLUyOztrzdSC18lJxf8ezFannm/0k989E/YqWxISamBJJSpuk1GeYrsTBNm3DbdRs wfvESiWHzNLoFmGnOL6Nx0YBuiBvD43v7BNRk7wfXNJI2ABZ9Gr84e2cTmcSyTSr51Q9 Jh225mxBRemIcBk3t4eAW/913RpRti5neBxJBKV0Usz+5ypYohbjhx2WczQCo8ig+taU 5E/cLLQ+mjB5dzDWD7VSKUVTlSi6tvpqtpHSTGwT1fm4V4B6XxDT7ZA5LGQS4J1Ob92R jxYw==
X-Gm-Message-State: AIkVDXJ4PcxZHlYFKc+QUqrRfvX8DgqfAh+I74rHl4ZCybmoEQSGuEFKsWuEbyYBrRqSYo/9B8Qbv2TgJo+IlQ==
X-Received: by 10.55.27.65 with SMTP id b62mr59964240qkb.202.1483404541163; Mon, 02 Jan 2017 16:49:01 -0800 (PST)
MIME-Version: 1.0
Received: by 10.140.38.233 with HTTP; Mon, 2 Jan 2017 16:49:00 -0800 (PST)
In-Reply-To: <201612230744.uBN7ir0E002689@shell.siilo.fmi.fi>
References: <CABkgnnWhc6ZdjgV5degiJuK-P6qSZk_uMjLm9zctyqdOSUaxPw@mail.gmail.com> <20161222060124.733EB1A95C@welho-filter4.welho.com> <CABkgnnVmHMPgBG6=GbN7iPWJQNJ46Nn6Cp39uZRB9zABSmS-2g@mail.gmail.com> <201612230744.uBN7ir0E002689@shell.siilo.fmi.fi>
From: Martin Thomson <martin.thomson@gmail.com>
Date: Tue, 3 Jan 2017 11:49:00 +1100
Message-ID: <CABkgnnUKAyU=aSf-+9Jd-ETu9nAvNRxRPWPsYZLdR4Ru9RMX0g@mail.gmail.com>
To: Kari Hurtta <hurtta-ietf@elmme-mailer.org>
Cc: HTTP working group mailing list <ietf-http-wg@w3.org>
Content-Type: text/plain; charset=UTF-8
Received-SPF: pass client-ip=209.85.220.178; envelope-from=martin.thomson@gmail.com; helo=mail-qk0-f178.google.com
X-W3C-Hub-Spam-Status: No, score=-6.0
X-W3C-Hub-Spam-Report: AWL=0.010, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1cODI7-0001hS-1E b1c7c0d67222ca036579a2d5edbb4e6d
X-Original-To: ietf-http-wg@w3.org
Subject: Re: draft-ietf-httpbis-encryption-encoding
Archived-At: <http://www.w3.org/mid/CABkgnnUKAyU=aSf-+9Jd-ETu9nAvNRxRPWPsYZLdR4Ru9RMX0g@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33258
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 23 December 2016 at 18:44, Kari Hurtta <hurtta-ietf@elmme-mailer.org> wrote:
> This is still quite long sentence to parse.
>
> |  Clients MUST NOT send http requests over a secured connection, unless the chosen
> |  alternative service presents a certificate that is valid for the origin as defined in
> |  {{RFC2818}} (this also establishes "reasonable assurances" for the purposes of
> |  {RFC7838}}) and they have obtained a valid http-opportunistic response for an origin
> |  (as per {{well-known}}).
>
> OK that is manageable (if I read that several times).

Yeah, it's hard to parse.  I split it up here:

https://github.com/httpwg/http-extensions/pull/280

Is that clearer?

>> Yes, that's an oversight.  The only requirement is that the request is
>> made to the authenticated alternative.
>
> I'm not sure that I understand that from
>
> https://github.com/httpwg/http-extensions/blob/467d6b2773304e47cad09f6a8af62a7448fe3312/draft-ietf-httpbis-http2-encryption.md
[...]
> Or is there something what I missed?

There was this:

"""
A client is said to
have a valid http-opportunistic response for a given origin when:

* The client has requested the well-known URI from the origin ***over
an authenticated connection*** and a 200 (OK) response was provided,
and
"""

But no harm in making it clearer (see the above PR).


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Tue Jan  3 01:40:42 2017
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 19867129545 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue,  3 Jan 2017 01:40:42 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.001
X-Spam-Level:
X-Spam-Status: No, score=-10.001 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-3.1, 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=ecaspia-com.20150623.gappssmtp.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 7HBbtCU1ULXm for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue,  3 Jan 2017 01:40:40 -0800 (PST)
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 1362C1294AE for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue,  3 Jan 2017 01:40:39 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cOLX1-0001Sw-8i for ietf-http-wg-dist@listhub.w3.org; Tue, 03 Jan 2017 09:37:23 +0000
Resent-Date: Tue, 03 Jan 2017 09:37:23 +0000
Resent-Message-Id: <E1cOLX1-0001Sw-8i@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <craig@caspiaconsulting.com>) id 1cOLWw-0001S7-TA for ietf-http-wg@listhub.w3.org; Tue, 03 Jan 2017 09:37:18 +0000
Received: from mail-pf0-f177.google.com ([209.85.192.177]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <craig@caspiaconsulting.com>) id 1cOLWq-0003w2-BY for ietf-http-wg@w3.org; Tue, 03 Jan 2017 09:37:13 +0000
Received: by mail-pf0-f177.google.com with SMTP id d2so76575209pfd.0 for <ietf-http-wg@w3.org>; Tue, 03 Jan 2017 01:36:51 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ecaspia-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:cc:from:organization:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=eSmmV5lI+9w57JlcPxJTx1PAfDppa7nbG3rB/bIGMTk=; b=fRrm2LuL2ljXWlHhJlYQUqDYY4HtbspEbfnPVnTUQbSJ2LCfqYXXj2/dF1g/gZeCeq WSZTPyzJWdOjstqZbGm1P9rk6E5Adm6fFS8NgRhdUPmCGtoCOFNJ8G646rHkXWAyzjgk lizUCJoO/sdrw8Uo1XfJzxzW+cbIzX3RzeTWGfznS6w3p/FM1t8gG3KAJSpk5dRI43oQ 8s9HzGfe8zEJ70MI+vHNrLR5OdjMKkjc6OZjqQjKBmFIbeHHXNzDoaRwcgKI2puz7Zjd SJTMxUrsY7smcEU7wZyMhyfyzTHJcBmDydqa5DIu1vsWRKK32VRSjjDYlkhqMutv13OS aWRw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:cc:from:organization :message-id:date:user-agent:mime-version:in-reply-to :content-transfer-encoding; bh=eSmmV5lI+9w57JlcPxJTx1PAfDppa7nbG3rB/bIGMTk=; b=ZT6GbtMTFW+zPks0nSwHXBPnDABIeTdhktoo4w9cM494YXij2na59+K0nu08RA22ek MqxTA6bb2unHX/2xq20ZJekcRVZqrw3yaflQCWM+4wtayHeRtfPFaB+mW2PcMhxPZ7mH WggCZVKjBMFBaRjG1mJPtSob3FEcJf48r9FuYr4NMvwkoip1U1eS9TBUT4GVTYqOwqQs InYj0cXRI/P/vq7SKzuxP/53+ZeAyE1DhIayQg+6T8p93fTukKB7J2SbTo2YeNoj2Ov7 Nu5JcqZHrD4JmCtkbYlE6ARuvnb5x7QZ0KfAYnIjS1D7EXqQudNj/VBBfmNlwBT6/rvG aC5w==
X-Gm-Message-State: AIkVDXKuW95A9jVC/bTdYa/pk0gSv7Z9RBfiYVcuEL7oswIf4qcdyTrTWyLgzoUwlJtOIA==
X-Received: by 10.99.181.76 with SMTP id u12mr114205374pgo.64.1483436205887; Tue, 03 Jan 2017 01:36:45 -0800 (PST)
Received: from [10.10.1.125] (50-193-209-61-static.hfc.comcastbusiness.net. [50.193.209.61]) by smtp.googlemail.com with ESMTPSA id y62sm74488787pfk.52.2017.01.03.01.36.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Jan 2017 01:36:44 -0800 (PST)
To: Martin Thomson <martin.thomson@gmail.com>
References: <CABkgnnVj6yKkdr=QZiZpqMDsbYDpO39bbYThi6bPOcOx7Sdi5Q@mail.gmail.com>
Cc: HTTP Working Group <ietf-http-wg@w3.org>
From: Craig Pratt <craig@ecaspia.com>
Organization: Caspia Consulting
Message-ID: <f2cba1d4-246b-ce06-cbcf-67a42b5835c1@ecaspia.com>
Date: Tue, 3 Jan 2017 01:36:43 -0800
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:45.0) Gecko/20100101 Thunderbird/45.5.1
MIME-Version: 1.0
In-Reply-To: <CABkgnnVj6yKkdr=QZiZpqMDsbYDpO39bbYThi6bPOcOx7Sdi5Q@mail.gmail.com>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Received-SPF: pass client-ip=209.85.192.177; envelope-from=craig@caspiaconsulting.com; helo=mail-pf0-f177.google.com
X-W3C-Hub-Spam-Status: No, score=-5.1
X-W3C-Hub-Spam-Report: AWL=-0.017, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-1.156, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cOLWq-0003w2-BY fa71d882caf8f8aaf16bb3bdf506d182
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Very large values (Re: Call For Adoption Live Byte Ranges)
Archived-At: <http://www.w3.org/mid/f2cba1d4-246b-ce06-cbcf-67a42b5835c1@ecaspia.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33259
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>

Thanks Martin for the feedback. I'm glad to get this feedback prior to
revising - since you bring up some good points. Reply in-line.

On 1/2/17 4:37 PM, Martin Thomson wrote:
> On 3 January 2017 at 10:00, Craig Pratt <craig@ecaspia.com> wrote:
>> 2^63 is 9223372036854775808 (decimal). I've defined a smaller value to avoid
>> potential conflicts and to make the value more easily identifiable:
>> 9222999999999999999.
>>
>> I think having a clearly-defined Very Large Value such as this to represent
>> the indeterminate end of content will be more deterministic/easily
>> implemented than having a Server try to establish a VLV in each HTTP
>> exchange. But I'd appreciate any thoughts prior to revising the draft.
> I think that any value you choose will be OK-ish.  The question is
> whether you think that there is a response that will exceed that size.
> If there is, then no single value you choose will be enough.  If that
> is possible, then you don't want a single fixed value at all, just a
> recommendation to pick a big number that far exceeds the size you
> want/expect.
On that, I think we're OK - based on the use cases I'm concerned about,
2^63 would be more than enough.
> I guess the other concern is that 9222999999999999999 (which I had to
> copy because I go cross-eyed counting those nines), is too big for
> some numeric formats.  Javascript has trouble with that number, which
> it reads as 9223000000000000000 instead, a problem that starts with
> 9007199254740993 (just paste that into your browser console and see
> what comes back). That suggests a smaller value might be safer, but
> then you have more problems with overflow.
Yeah - my bad for not having researched that. I've done much in Java,
but not JavaScript (yet).

It looks like ECMAScript 6 uses an IEEE 754 number format. And
JavaScript defines Number.MAX_SAFE_INTEGER as 2^53 - 1
(9007199254740991). So yeah - any HTTP request using a JS number
as a range value isn't going to be able to (accurately) represent numbers
beyond that, as you've observed. This is definitely an issue, IMHO.
> Note that whatever value you pick has to be safe for a great many
> implementations, even if those implementations never need that space.
> They still have to parse the value properly, preferably without
> resorting to use of bignums.
>
> If you believe it to be possible to pick a safe value that will never
> be exceeded, then ignore the rest of my mail :)
I think what concerns me now is (a) any other language-specific and machine-
specific gotchas, and (b) the fact that this value could represent a 
real limit for
some high-rate application someone drams up. e.g. A limit of 2^53 causes my
1Gb/s example to go from a quite-comfortable 2339 years of content to a 
less-comfortable 2 years...
> The risk in specifying a single value is that implementations will
> hard-code checks around that value like (end == VLV) or if things are
> done poorly (end >= VLV).  Implementations that have that check will
> assume indefinite ranges, even if there isn't an indefinite range and
> might get caught with bugs, like infinite loops:
>
> 10: I have up to <VLV>, I need more bytes
> 20: ask for a range from current end to <VLV> (i.e., VLV-VLV)
> 30: get a zero-length range back
> 40: if need more bytes, goto 20
>
> That leads to problems: implementations won't be able to send
> responses of exactly the size you choose (however unlikely that is),
> or in the bad case, you won't ever be able to exceed that value.
>
> You can get the same effect if major implementations pick the same value.
Agreed. No one should use floating point representations for this stuff,
IMHO. But as it can't be avoided (JS isn't going away), then all the 
typical
rules about equality checks and floating point become necessary. And
therein lies many potential bugs.
> On the other hand, a client can just pick an arbitrary stupidly large
> value (ASLV).  This can be an increment on what the client already
> has, and should probably include some randomness.  If there is that
> much still remaining, then they just have to make a new request.
I didn't think of this as a common use case, but who am I to say?

BTW, I'd like to consider the term "AASLUVE" (Absurdly Arbitrary
Stupidly Large Unrepresentable Value Encoding) for the Definitions
section.
> Thus, clients can pick a minimum increment that won't cause too much
> pain for them.  2^32 might be enough for clients that don't mind
> making a request every 4Gb or so, and it might make sense to start
> with "smaller" increments like that to avoid triggering
> incompatibility problems.
Yeah - I'd thought about 32-bit values in the initial draft - esp for
limited-resource devices that wish to avoid bigint math/comparisons.
> Adding some amount of randomness will provide greater surety that the
> server has read and understood the request.  e.g.,
>
> aslv = lastByte + 2**32 + random(2**32)
> request.setHeader('Content-Range, 'bytes %d-%d/*' % (lastByte, aslv)
I hope using randomness isn't necessary. But I see what you're getting at.

I think the points you bring up convince me that we should stick with
the mechanism defined in the current Live Bytes draft. And while the
flexibility afforded the Client requires a bit more description and
server-side logic than defining a single VLMV (Very Large Magic Value),
I think it's still sufficiently simple and covers the bases. (and it's 
already
written)

I do think I should expand upon the Security Issues section a bit to
describe the additional issues with Very Large Values that you've
highlighted. Servers really need to be able to handle VLVs. And returning
the same range end value provided by the Client (which may be a VLV)
is critical for the operation of the Live Bytes mechanism as defined. So
look for a revision that incorporates this (and some of Poul-Henning's
corrections)

Thanks again,

cp

-- 

craig pratt

Caspia Consulting

craig@ecaspia.com

503.746.8008

	


	





From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Tue Jan  3 10:21:27 2017
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 CC509129404 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue,  3 Jan 2017 10:21:27 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.001
X-Spam-Level:
X-Spam-Status: No, score=-10.001 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-3.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 VoDT2PHte7Vn for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue,  3 Jan 2017 10:21:26 -0800 (PST)
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 2A869127076 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue,  3 Jan 2017 10:21:25 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cOTff-0005eZ-JN for ietf-http-wg-dist@listhub.w3.org; Tue, 03 Jan 2017 18:18:51 +0000
Resent-Date: Tue, 03 Jan 2017 18:18:51 +0000
Resent-Message-Id: <E1cOTff-0005eZ-JN@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <hurtta@siilo.fmi.fi>) id 1cOTfe-0005dv-6o for ietf-http-wg@listhub.w3.org; Tue, 03 Jan 2017 18:18:50 +0000
Received: from smtpvgate.fmi.fi ([193.166.223.36]) by mimas.w3.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from <hurtta@siilo.fmi.fi>) id 1cOTfX-0007CU-U1 for ietf-http-wg@w3.org; Tue, 03 Jan 2017 18:18:45 +0000
Received: from basaari.fmi.fi (basaari.fmi.fi [193.166.211.14])  (envelope-from hurtta@siilo.fmi.fi) by smtpVgate.fmi.fi (8.13.8/8.13.8/smtpgate-20161014/smtpVgate) with ESMTP id v03IID9t012150 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 3 Jan 2017 20:18:13 +0200
Received: from shell.siilo.fmi.fi   by basaari.fmi.fi  with ESMTP id v03IIDeT009232 ; Tue, 3 Jan 2017 20:18:13 +0200
Received: from shell.siilo.fmi.fi ([127.0.0.1]) by shell.siilo.fmi.fi  with ESMTP id v03IIDo1020164 ; Tue, 3 Jan 2017 20:18:13 +0200
Received:  by shell.siilo.fmi.fi  id v03IICvo020163; Tue, 3 Jan 2017 20:18:12 +0200
Message-Id: <201701031818.v03IICvo020163@shell.siilo.fmi.fi>
In-Reply-To: <CABkgnnXoTsKRozwo1rYhKjy0q1=q0DoCaVA-JW5tmBc-m1GOsw@mail.gmail.com>
References: <CABkgnnWhc6ZdjgV5degiJuK-P6qSZk_uMjLm9zctyqdOSUaxPw@mail.gmail.com> <20161222060124.733EB1A95C@welho-filter4.welho.com> <CABkgnnVmHMPgBG6=GbN7iPWJQNJ46Nn6Cp39uZRB9zABSmS-2g@mail.gmail.com> <201612230744.uBN7ir0E002689@shell.siilo.fmi.fi> <201612230758.uBN7wndh003154@shell.siilo.fmi.fi> <CABkgnnXoTsKRozwo1rYhKjy0q1=q0DoCaVA-JW5tmBc-m1GOsw@mail.gmail.com>
To: Martin Thomson <martin.thomson@gmail.com>
Date: Tue, 3 Jan 2017 20:18:12 +0200 (EET)
Sender: hurtta@siilo.fmi.fi
From: Kari Hurtta <hurtta-ietf@elmme-mailer.org>
CC: Kari Hurtta <hurtta-ietf@elmme-mailer.org>, HTTP working group mailing list <ietf-http-wg@w3.org>
X-Mailer: ELM [version ME+ 2.5 PLalpha44]
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="US-ASCII"
X-Filter: smtpVgate.fmi.fi: 3 received headers rewritten with id 20170103/08922/01
X-Filter: smtpVgate.fmi.fi: ID 8922/01, 1 parts scanned for known viruses
X-Filter: basaari.fmi.fi: ID 419972/01, 1 parts scanned for known viruses
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (smtpVgate.fmi.fi [193.166.223.36]); Tue, 03 Jan 2017 20:18:13 +0200 (EET)
Received-SPF: none client-ip=193.166.223.36; envelope-from=hurtta@siilo.fmi.fi; helo=smtpVgate.fmi.fi
X-W3C-Hub-Spam-Status: No, score=-6.2
X-W3C-Hub-Spam-Report: AWL=0.868, BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-3.199, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cOTfX-0007CU-U1 70baed3fe45b9f30553a9ebf32cdfce3
X-Original-To: ietf-http-wg@w3.org
Subject: Re: (rephrasing, sorry for duplicate) | Re:  draft-ietf-httpbis-encryption-encoding
Archived-At: <http://www.w3.org/mid/201701031818.v03IICvo020163@shell.siilo.fmi.fi>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33260
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>

Martin Thomson <martin.thomson@gmail.com>: (Tue Jan  3 01:26:26 2017)
> (Sorry about the delay, it's silly season here and I've been offline.)
> 
> On 23 December 2016 at 18:58, Kari Hurtta <hurtta-ietf@elmme-mailer.org> wrote:
> > Hmm. I need rephrase.  Sorry for duplicate mail.
> >
> > Question is that well-known URI need to requested from all putative
> > alternatives or not?. Yes, you can not request that from clear text
> > connection now.
> 


> 
> See: https://github.com/httpwg/http-extensions/pull/279
> 
> I am open to arguments that require that the check is performed every
> time, but that's less flexible.  This seems preferable.

So answer to my question:

| In other words is there requirement that given alternative service
| is tested ?

is that


Alternative service does not be need to be tested for
http: -scheme support (only some (= first) alternative 
service for that origin need to be tested. )

( Client have possibility to test alternative service 
  if client considers that usefull. )



/ Kari Hurtta



From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Tue Jan  3 14:10:52 2017
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 A5014129A7B for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue,  3 Jan 2017 14:10:52 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.101
X-Spam-Level:
X-Spam-Status: No, score=-10.101 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, RP_MATCHES_RCVD=-3.1, 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 g0fVr_jlHQNJ for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue,  3 Jan 2017 14:10:51 -0800 (PST)
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 0F2EC12983F for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue,  3 Jan 2017 14:10:50 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cOXF5-0003Jv-Dg for ietf-http-wg-dist@listhub.w3.org; Tue, 03 Jan 2017 22:07:39 +0000
Resent-Date: Tue, 03 Jan 2017 22:07:39 +0000
Resent-Message-Id: <E1cOXF5-0003Jv-Dg@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <martin.thomson@gmail.com>) id 1cOXF2-0003JE-Tf for ietf-http-wg@listhub.w3.org; Tue, 03 Jan 2017 22:07:36 +0000
Received: from mail-qk0-f182.google.com ([209.85.220.182]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <martin.thomson@gmail.com>) id 1cOXEw-00087E-Vs for ietf-http-wg@w3.org; Tue, 03 Jan 2017 22:07:31 +0000
Received: by mail-qk0-f182.google.com with SMTP id h201so249927619qke.1 for <ietf-http-wg@w3.org>; Tue, 03 Jan 2017 14:07:10 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=F16xiIhiXLPUbvbu/mVdI7oCD5PurxJiyVvQtX4CcQY=; b=vZ4oZnIlQkEUuMv4B6zyM5Ogjxwu/itDb/TrvyR0vQD2Cip4Wv774zIIEBMc91MWKs 3XP2HDJZV9Vf3vxmKtVhF4q5CA19o/3aUQmZqC7I6aZelmBV1+8tTKi4IxANnbYHXnSG dGiE058ZEGnKNDFYb2GFjl06QWHNINq94qC1FHLdvmPM8bw2ClhPLynxqv5wv0NdPn7k +4ufn3KVWezFhvH94S3RvcT3EL31eBvYsE/9uFjCKIeWqdGAbHZN6DxA53qxHWLxTRYU 2lM4qKoeXcbRcKPu+qCubU3zKiefzhZ/a2AfX67xbEXL6baUsL/AvRAZf5imOxV8sdF9 B6zQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=F16xiIhiXLPUbvbu/mVdI7oCD5PurxJiyVvQtX4CcQY=; b=Z9C4XlJJeRtyETGxlsOd7QDOaw61RElOH0MRcOmgzw+gfoa9lnwtnntLOGw/scRH7w HI9k1CsqT6020Cto0nw/dMhoABhEAMCUloa0IFFSesx3LqXwEL9q20Nuf3H0TIK8rsS/ 0U8fRyqugJzh24iRvpCadTtGcQvq+mF9Ec2gVpnHbMzR1hbh5D20LGIZdnjcjNfjMX3K JGxk77u0Xsz0kEyjVDy0KODHeLVbaGC1ALW4xisB2RZ0l6S2gW9vL08qGOr2/m/61KzZ NP5koAbvvn3ACs/W6di2d4zVq1yifSGRDfAvxfQwyLASs8nc01vAhjCH5LkFBR6Ol9mi VS/A==
X-Gm-Message-State: AIkVDXJpUvK+SbGhsGZgnMauXX5aiYRqnM2e0h5DkP0oejRalvAsTQNt446q3TutfM8YDqkNvs5eUY2qk95jaA==
X-Received: by 10.55.99.85 with SMTP id x82mr54188440qkb.147.1483481225166; Tue, 03 Jan 2017 14:07:05 -0800 (PST)
MIME-Version: 1.0
Received: by 10.140.38.233 with HTTP; Tue, 3 Jan 2017 14:07:04 -0800 (PST)
In-Reply-To: <201701031818.v03IICvo020163@shell.siilo.fmi.fi>
References: <CABkgnnWhc6ZdjgV5degiJuK-P6qSZk_uMjLm9zctyqdOSUaxPw@mail.gmail.com> <20161222060124.733EB1A95C@welho-filter4.welho.com> <CABkgnnVmHMPgBG6=GbN7iPWJQNJ46Nn6Cp39uZRB9zABSmS-2g@mail.gmail.com> <201612230744.uBN7ir0E002689@shell.siilo.fmi.fi> <201612230758.uBN7wndh003154@shell.siilo.fmi.fi> <CABkgnnXoTsKRozwo1rYhKjy0q1=q0DoCaVA-JW5tmBc-m1GOsw@mail.gmail.com> <201701031818.v03IICvo020163@shell.siilo.fmi.fi>
From: Martin Thomson <martin.thomson@gmail.com>
Date: Wed, 4 Jan 2017 09:07:04 +1100
Message-ID: <CABkgnnVeNyGZZYGtgOOQMRFhSrZWGwtN=aDEn_D2N9nvbfinkg@mail.gmail.com>
To: Kari Hurtta <hurtta-ietf@elmme-mailer.org>
Cc: HTTP working group mailing list <ietf-http-wg@w3.org>
Content-Type: text/plain; charset=UTF-8
Received-SPF: pass client-ip=209.85.220.182; envelope-from=martin.thomson@gmail.com; helo=mail-qk0-f182.google.com
X-W3C-Hub-Spam-Status: No, score=-6.0
X-W3C-Hub-Spam-Report: AWL=0.014, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cOXEw-00087E-Vs abf3958d80daa60d7c530c1e96aeae35
X-Original-To: ietf-http-wg@w3.org
Subject: Re: (rephrasing, sorry for duplicate) | Re: draft-ietf-httpbis-encryption-encoding
Archived-At: <http://www.w3.org/mid/CABkgnnVeNyGZZYGtgOOQMRFhSrZWGwtN=aDEn_D2N9nvbfinkg@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33261
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 4 January 2017 at 05:18, Kari Hurtta <hurtta-ietf@elmme-mailer.org> wrote:
>
> Alternative service does not be need to be tested for
> http: -scheme support (only some (= first) alternative
> service for that origin need to be tested. )
>
> ( Client have possibility to test alternative service
>   if client considers that usefull. )


Correct.


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Tue Jan  3 16:39:26 2017
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 3D8741294D8 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue,  3 Jan 2017 16:39:26 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.121
X-Spam-Level:
X-Spam-Status: No, score=-10.121 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=-3.1, 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=icloud.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 8Ayvl3lbenzc for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue,  3 Jan 2017 16:39:25 -0800 (PST)
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 081831293DC for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue,  3 Jan 2017 16:39:24 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cOZYm-0001wh-4A for ietf-http-wg-dist@listhub.w3.org; Wed, 04 Jan 2017 00:36:08 +0000
Resent-Date: Wed, 04 Jan 2017 00:36:08 +0000
Resent-Message-Id: <E1cOZYm-0001wh-4A@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <mostafa.shahdadi@icloud.com>) id 1cOZYj-0001vr-1m for ietf-http-wg@listhub.w3.org; Wed, 04 Jan 2017 00:36:05 +0000
Received: from pv33p07im-ztdg10141401.me.com ([17.142.253.34]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <mostafa.shahdadi@icloud.com>) id 1cOZYc-0004Pu-9X for ietf-http-wg@w3.org; Wed, 04 Jan 2017 00:35:59 +0000
Received: from process-dkim-sign-daemon.pv33p07im-ztdg10141401.me.com by pv33p07im-ztdg10141401.me.com (Oracle Communications Messaging Server 7.0.5.38.0 64bit (built Feb 26 2016)) id <0OJ800C00C6KP300@pv33p07im-ztdg10141401.me.com> for ietf-http-wg@w3.org; Wed, 04 Jan 2017 00:35:31 +0000 (GMT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com;	s=4d515a; t=1483490130;	bh=gORcQ5eR+p0+qNP4l53yvket3NwncOkPtSbaOdqaovo=; h=Content-type:From:MIME-version:Date:Subject:Message-id:To; b=HoNbG9Yhvr2nnk322JMsOhS/LJcQtNiqSL9K2iWI5DhBr11kYcKlk1StjIUe/PXxx CTbx75nyICh3B/e4g9uGe2E1u0M4beXOMMsZPqDr4hzgNsjKE3wNKQA07OUxY+U62F 5Ac7XObwIxF4iWtbkT8y80lAlyMurHBEPG9zMt/x15Z7p9hdKqoSgUZvCN0RovuZGJ FX8WilFnQsr4efKT0/Mu3cCR+PUjYY4xR/danB3a72JEz8V6NA395Q6Ho8XVwNR0pU dfzf2p7Z96i7PQNTFiwR/bARfR9WeUns//NEIvGxKSQyeRhb72SaQaCF8qoTK1v/di jpeUfCOgHeszw==
Received: from [100.82.5.178] (unknown [5.120.210.173]) by pv33p07im-ztdg10141401.me.com (Oracle Communications Messaging Server 7.0.5.38.0 64bit (built Feb 26 2016)) with ESMTPSA id <0OJ800KCOCB2DC40@pv33p07im-ztdg10141401.me.com> for ietf-http-wg@w3.org; Wed, 04 Jan 2017 00:35:30 +0000 (GMT)
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-01-03_21:,, signatures=0
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 clxscore=1034 suspectscore=1 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1603290000 definitions=main-1701040008
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7bit
From: mostafa shahdadi <mostafa.shahdadi@icloud.com>
MIME-version: 1.0 (1.0)
Date: Wed, 04 Jan 2017 04:05:25 +0330
Message-id: <184792D7-A855-42E4-9280-DA97E3807F21@icloud.com>
To: ietf-http-wg@w3.org
X-Mailer: iPad Mail (14C92)
Received-SPF: pass client-ip=17.142.253.34; envelope-from=mostafa.shahdadi@icloud.com; helo=pv33p07im-ztdg10141401.me.com
X-W3C-Hub-Spam-Status: No, score=-2.0
X-W3C-Hub-Spam-Report: BAYES_50=0.8, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cOZYc-0004Pu-9X 3ad31ad851359a4849d60095d47fcf9e
X-Original-To: ietf-http-wg@w3.org
Subject: ipad air 2
Archived-At: <http://www.w3.org/mid/184792D7-A855-42E4-9280-DA97E3807F21@icloud.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33262
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>

Sent from my iPad


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Tue Jan  3 18:56:35 2017
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 A121A129B86 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue,  3 Jan 2017 18:56:35 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.021
X-Spam-Level:
X-Spam-Status: No, score=-10.021 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-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=-3.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=itaoyama.onmicrosoft.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 GG2SaSg010PO for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue,  3 Jan 2017 18:56:33 -0800 (PST)
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 5D272129526 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue,  3 Jan 2017 18:56:33 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cObhX-0005so-Lm for ietf-http-wg-dist@listhub.w3.org; Wed, 04 Jan 2017 02:53:19 +0000
Resent-Date: Wed, 04 Jan 2017 02:53:19 +0000
Resent-Message-Id: <E1cObhX-0005so-Lm@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <duerst@it.aoyama.ac.jp>) id 1cObhS-0005s3-6m for ietf-http-wg@listhub.w3.org; Wed, 04 Jan 2017 02:53:14 +0000
Received: from mail-ty1jpn01on0109.outbound.protection.outlook.com ([104.47.93.109] helo=JPN01-TY1-obe.outbound.protection.outlook.com) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from <duerst@it.aoyama.ac.jp>) id 1cObhL-0007vF-B4 for ietf-http-wg@w3.org; Wed, 04 Jan 2017 02:53:09 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=itaoyama.onmicrosoft.com; s=selector1-it-aoyama-ac-jp; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=10Tp0VpZ/0mxX3ns7meRkjQeB4m08rHZ9h0YEc01dzI=; b=HBqCs0kT3kAOO0cdYg+YwQ70TIU4IBpgKzIG6SO5wu6F2ogLb9JaA8qmjTj/E7VFpRyXWXlfcHBvus+8xPwJtBM1S8uKeLxbj15AbGNuepwV6GQttCjR8SoTX+Z9qZ1Icn+6SQivOzyA43R+qffxqHzuqUBYsODYBmbSnY2MnWw=
Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=duerst@it.aoyama.ac.jp; 
Received: from [192.168.1.3] (118.19.14.21) by TY1PR01MB0651.jpnprd01.prod.outlook.com (10.167.158.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.817.10; Wed, 4 Jan 2017 02:52:24 +0000
To: Matthew Kerwin <matthew@kerwin.net.au>
References: <20161213173327.C1F7D1714B@welho-filter2.welho.com> <20161213175419.GA7943@LK-Perkele-V2.elisa-laajakaista.fi> <25434.1481665395@critter.freebsd.dk> <201612140628.uBE6SO3L025885@shell.siilo.fmi.fi> <36792.1481701328@critter.freebsd.dk> <CACweHNDKgWQewZHb=Kz3_2=41M58sY5472Q5OwpqPLxorvkzHQ@mail.gmail.com> <37223.1481707288@critter.freebsd.dk> <3a65ca44-f652-3b14-6d64-46f35b32df57@isode.com> <725824b9-de61-2650-4007-fb5b026bc7a6@gmx.de> <87f1efaf-74c5-f02b-d09e-a721afa86032@isode.com> <0cce5fdf-5f1a-4fd3-2e3a-e810a34baccb@gmx.de> <CACweHNBYf-UuxsKNxYakt22rgku9xEP4YK4yL2R+=vMf_uB2Vg@mail.gmail.com> <201612141739.uBEHdwiq024972@shell.siilo.fmi.fi> <CACweHNDbv9dDXqjpU61HvfpgZ6Dt4S-CG=GjwOZcwaZh6LEirQ@mail.gmail.com>
CC: Julian Reschke <julian.reschke@gmx.de>, Alexey Melnikov <alexey.melnikov@isode.com>, HTTP working group mailing list <ietf-http-wg@w3.org>
From: =?UTF-8?Q?Martin_J._D=c3=bcrst?= <duerst@it.aoyama.ac.jp>
Organization: Aoyama Gakuin University
Message-ID: <6071d7e0-f1b9-3bb7-2a7d-a8ed60500e20@it.aoyama.ac.jp>
Date: Wed, 4 Jan 2017 11:52:20 +0900
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0
MIME-Version: 1.0
In-Reply-To: <CACweHNDbv9dDXqjpU61HvfpgZ6Dt4S-CG=GjwOZcwaZh6LEirQ@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"; format=flowed
Content-Transfer-Encoding: 8bit
X-Originating-IP: [118.19.14.21]
X-ClientProxiedBy: TYXPR01CA0012.jpnprd01.prod.outlook.com (10.168.40.22) To TY1PR01MB0651.jpnprd01.prod.outlook.com (10.167.158.14)
X-MS-Office365-Filtering-Correlation-Id: 09478e03-8666-498e-45a7-08d4344cb636
X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:TY1PR01MB0651;
X-Microsoft-Exchange-Diagnostics: 1;TY1PR01MB0651;3:cRmQ8Oi/xipuTsr38T/d0LGAlsYNZxyl9uUxDqYRa6MORP5zMx/pQokqYPRBm7Op6QNAlQvPsra7PCpXrD2HxOEWXMWGxmQaa8vO6eAosn6wU1sBeNSgFBU1VzQ+cvJjrNQXZu8cLT80KNKdynbaili8wNHsPuqW6KBaun0s/VT3eletOdpsri0w4hEmj5vmJjFO362NIA12cxam5Pd8HizpcJK/gZQqIOtj17rnYOrPYZOt1+sojsgG4e852tQ6Dge1nNxw4LlOAZ9YlIZDjA==;25:f+EzmX2dgaEAsnpfWKsS+TNH78ygNHYYTfXqQk/5vaHqkI2m3dTX5Y5dj+ZE+vbMCBzgxeTkm4m1eE9MakjQmCUTuWw+agyufru0LVxLBxZfvgeHEujd0C9FqlXbfRCGnZNhpBIhjkQvzrakWSmpDxhmC1pnQS78WjPCKqFYH8yK2k1T1ht8g0iD8W6UHu/ufriHpVHQzQCK6DtpyvtXAn6DZHoDHqqbX8c5UErPGpvec+l/fv/yZqQLv+6k+f1RTvj2hn3KKcQPWOCXPFzLYu5u3aGAwsgFutzbdQxR15loTesY/HlU18ErY8AzsOujpXgRt3tmSxsRl62k5C3ZQnL5TfbKJjlycg6+3ihUwb6P2m25gUZu+WjXIMfEI/UJP9jc6j4FfTXuzwYNkbwE86CX5Y+Ej/P77V0RB0yM1IvHZA7QMUUHOjFUp87an39HiNSN4Uj29vwuzwbIr5AGcA==
X-Microsoft-Exchange-Diagnostics: 1;TY1PR01MB0651;31:p9o+aef8tlLYe+g7baGXyhoEqbk7aZs3fH9zKHSFA7diwIGXo/m79wcXhtbUW/Ll+SAhCP7Lyaxa/3AgrW9WreaibVMBGtcqvBX+DxJTOxFuiOJN9ixEOmfCHOAjfFY2Cy1uGyxwwhG7A9fwFCD+hxPFYzh3Eofb1O9+rMYR/3qgocHzcDtGHseSXtGcEAD6wvucnaSnG+0WSlnpQodgogXGZ8RKPfM68uSl38rE5WBxB+8a97eNX939T25Pghbdei1q6AGF+mrVIl40RNEasQ==
X-Microsoft-Antispam-PRVS: <TY1PR01MB06511050564A4F94577CAB22CA610@TY1PR01MB0651.jpnprd01.prod.outlook.com>
X-Exchange-Antispam-Report-Test: UriScan:(120809045254105)(144208319314845);
X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040375)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6041248)(20161123564025)(20161123562025)(2016111802025)(20161123555025)(20161123560025)(6072148)(6043046);SRVR:TY1PR01MB0651;BCL:0;PCL:0;RULEID:;SRVR:TY1PR01MB0651;
X-Microsoft-Exchange-Diagnostics: 1;TY1PR01MB0651;4:faNTDB2wNLJUhU55XWZgvZcxsQ+iuRXdyuMEUu/WWy9x+AnijBBLJfGpqQpi6cxGNtSzgOFWI+D88ba4GshE9bzc9tRpD3cz5q6eZmXxSGT/iKUzN/C1elPcJoMAXziPq55vxfH3JplUUp+8/Nuxy7XgM0XHlhnbD2O441RTxuQH35HJpUHWWcWLETqS9mN3Gl9Z2Yhg+38sLZZfoGhtdVhRKxDnxWS/bGWDCW0F1XNbmda3vO5PRtk37FvXOzPZXuv1AL0lEvNaSfpDHx+T/r0q/3RD/KBugS6ufozprNBoK5l6gBJxdrE5qxZf68JUXi2zW9PtsXTpLBSnv45HIJESf9s+HxwyaedpTuXNd7JrBcB6KryFTyuhIk6M/472aEcaHGCkxmI3tX5fdafqa0eMMUG2ZLIcBCeyMX6aths55e8cmEeoFHfANLPaz9zJbsauoa2MSzgSYDrZ8/4hdFTdLajLUV0CStt+Byj1J3KAqdKJJoesozGPl6qNsdyswmhRWe4zELvtBUDk+nrjfKoMnp5LEW3xc9uiwh6kbZQ6HOSC/nrNEDyQ9M1KB3LB0Dnn9x2f5MV7n6Xfa7sTNvBaNS4ttqiAbn+s8v2hF541QpcmYFWw1HNuXcL8HtPcA4WI+5Fanotky7jXzFN9KkADdgOArVTstmVUVOCYbFJLmdsfb3Ip4/4pBERPgLMz
X-Forefront-PRVS: 0177904E6B
X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(4630300001)(6049001)(6009001)(7916002)(39410400002)(39830400002)(39450400003)(189002)(199003)(24454002)(50986999)(64126003)(7736002)(54906002)(8676002)(54356999)(76176999)(81156014)(305945005)(81166006)(38730400001)(90366009)(2870700001)(23676002)(93886004)(42186005)(4001350100001)(92566002)(31696002)(5660300001)(50466002)(31686004)(229853002)(6666003)(110136003)(230783001)(101416001)(65826007)(42882006)(105586002)(2950100002)(6916009)(86362001)(68736007)(106356001)(117156001)(8666007)(25786008)(3846002)(6116002)(33646002)(77096006)(65806001)(83506001)(189998001)(74482002)(65956001)(66066001)(47776003)(4326007)(6486002)(2906002)(97736004);DIR:OUT;SFP:1102;SCL:1;SRVR:TY1PR01MB0651;H:[192.168.1.3];FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:0;LANG:en;
Received-SPF: None (protection.outlook.com: it.aoyama.ac.jp does not designate permitted sender hosts)
X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtUWTFQUjAxTUIwNjUxOzIzOkh4cStqVVNkdkJRcW8zU1VGL0tGZkFXTlVw?= =?utf-8?B?NGxnVXhFMzFPSnlvc0ZMSXFqQjg5RGljZjk5RmdNTER3T080UVdFYmxSSnZT?= =?utf-8?B?ZTI4Ynl2eEdYU0JzdUhSR3A5b1RTYmo4M1IvbVlVbG04MENZOXdseGlidmtW?= =?utf-8?B?dUJtelZtcXBRblNiQ2ozUVd5aHVLeVdJbXFYYWpSVy80KzRqalI3a2ZZeVFN?= =?utf-8?B?ckhEK3gxMEFxR0F0WGgyNkg5Sy9iUWtOWWw1OXp3MGZOWW5ZY2FYanJNTm1G?= =?utf-8?B?cEFRVFF5US80WWlzbnFPU29vUzN4a0pFUDJ6QnlGYmNGeE5hRGpOWkhGYlhJ?= =?utf-8?B?dllJKzNmWiswbkw0UHplL3VEemxXTm9iRnZ6VG5aS0ZJNDlZOXhrOW40K3JK?= =?utf-8?B?a1RkVHY1ZDFQcm1QNXhmQTJtQkFhREg1bU9FNzdQZUpNL1NGZTZhZ2djWGk1?= =?utf-8?B?VEJ6cUpWelBlNlhrVVZvUnEySzVhRGlDNjBnd1BDcS9pS0xndUQwbjRGdDRp?= =?utf-8?B?b1Zrc2FCam5vY0VKNCs3ZnZNS2R1WVRWN3Z3alVMdHNKQlhiYzU5U0srOS9Y?= =?utf-8?B?MTBjRFNCa2c2YmpLUzA2aWdrd0F0eXNYUnc1MHdFVGhESzFPZkRZaHBIcXdX?= =?utf-8?B?cCtkaldmSkFoTnR3MXY1S2tDZDJyS3N2TUU3ait3eldyWFNSb0hSakQwZHlr?= =?utf-8?B?ZklhcUlvKzRIeW0zZER1eHpRbFZPaXZ2K0FteTdLbWtPdzZQRld4TWZXSy8z?= =?utf-8?B?WWkrQ1B3ZnR3Y3hJLzlSUVl4V21rZnJoS1FxV1Jtcy9iRU1mSU9jSSttNURM?= =?utf-8?B?TlAyVWc4aCtpZ3VqZ3Z2cjFIZHRma29WSjc1YURyTi9VR2ZsSXFrMEEvMy81?= =?utf-8?B?OFlMNzdQK1hSMnM0aDhrd1llb3Z4TEMweDdSS0lOM2pucDZzYWtoUnBpMzY3?= =?utf-8?B?UVpSd0JsSHVRTDBKMXc5aVROdFdRWG52UTZrOVFOMnlpY2RxT0N3RmFSeEN1?= =?utf-8?B?Z0RPcTVRYmF6c2xFVTRoK3lRbm5QdUZ1dUd3dXZ4WXNvM2tXUjZwaHdlVzJ6?= =?utf-8?B?aERFRE4yckxXdTRUN1ZNOUJ0d0tUTDJWR1p6UnA2SmFyTTZVazZ2NHg0ZzM1?= =?utf-8?B?bE1SRGphUWtqRHRrSzJSQmlVUnhNbmhpUG9Kb1c0elZ0VWNZWG9aMGhxUUUr?= =?utf-8?B?clZqSVhZQmF1ZnpVaTgybmg1NHBQSUR1SHFyclcyc2dxU1RaeVF3aTlvYm1M?= =?utf-8?B?NjBtZVZkdDFjS29DVFdaQk9YT3JmUG5tQkRCckJGSm5SZnZwaGNMcFNzT2Uv?= =?utf-8?B?OEdvVFY1bk13M1VjKytqTFZhS0U4M0lzSEo0TmZqV21BdFdVWHJjVUVsSXg0?= =?utf-8?B?SVA4MXd6MEo3SkFteTVOdWZkb09FS3hWcDl1cEdFZWZkRklpakFSaWYyOVlE?= =?utf-8?B?OHhkQnQxYnBIaDRPOTJLcXV0dGdaaDRaMG1xcHFNbTZnMWJtTW10NGRiSXZZ?= =?utf-8?B?YmprUlRaWVZtZVlQMHdMa0xwMUdNZlZCaGtSR0lYN2xPcUlQTWEwRzUySk1R?= =?utf-8?B?TzRJZXpoUFR1RTU5cm1SZEo1dUVqYi9hQmhBNUZtVFZNNlQvY1I4MGRvSmtW?= =?utf-8?B?WE1NbVFzOXFtbUErQU9JRmQ5RHdSWEZSdmtkaDVPKzRmUXNRY0FqSlYwa2pv?= =?utf-8?B?TklLTjNaU0VQRWhyODN1TUtxUndMQXJjempKY3FNMnVBaXk5MXpjd3pmRXVZ?= =?utf-8?B?dDh4TEFnS1NOcEtnNXZ0WW5MYlFRNnNNY01zZCtKRlgrRk42WGtielhnY2xn?= =?utf-8?B?b0JnVDNETVJBL0czRi8wcGY0UTlRT0RnMC9IOFlkcXVnVjJ5RVNjUHBUMmh4?= =?utf-8?B?cU9Nc0poQ1E1a1Z4aTg0ZEpJWmMvVmZVd2xlNHMrbGxmN0RYY0FMbHlaYnFI?= =?utf-8?B?SEdFWWlpSVhpc0J5YUJ4eTIwV1dFK1EyR3pTY0dSRC9OU1AxOTRWclBoUjFE?= =?utf-8?B?WERRR2hkeGlrUHBDNXlRZ1FBQlRGWFZhaE50cU1MbTloaEdKamdheVpOV2l4?= =?utf-8?Q?byXA=3D?=
X-Microsoft-Exchange-Diagnostics: 1;TY1PR01MB0651;6:BPJC3709oGjlrUkEqCdFHU9ic41bzrvVWFjsavwVxgqihE4lek2u1iKVID3HAI1Fx4ChEnDgHsCfAyBFMYYFwlbdtkRVrR0UTCc9ihQhyW5d85Qgdt+dZVUETQMg8Mod0vxZEygRu0L8twSVlqa4Ytf/chsz+h3aBdMdobV2F+EO4Dg1Veiy3V+xpyMOdU0W3bOrLgV9jYDf5xQP9FCUwZkGu/CaXk0mNzG8bkggiMHEzP3XwFneH20cmk+7mm404AI8yFKAWKyAGNf6QSzdWmcnwSxMdrxq7+loX9Fp6kQiT6ohWuBCt+2GswYdMha1ykhzsmTAq2ZMlzHVlfO8ghuQ1N2yBMW1BBlfzsTtFd9QQo7M1W6baLwUr17/CgSzptomlbs8noPMVXI6LPR8/yR8jQxEUvj1zAPsuCOFAMeeXBAUlQd5MPMAzkX3WRcn;5:rP057TSbolKp/VfNH1WwFQstuz+UHSt+kjaUBcYaqZBV+iQG0ST5moPJTt3GzkBb3BSDlEtszDOjA7CrWXXXqSUXKJ3oXAurcSslemO3SbSc2cURVQXXDPGiJ3fh+56mpI96DGoTQ40Q0LOGGBQnXg==;24:+mrQCT5CuIMhXq22gQufxF/6PI/RDhl2LwxmkGOeABMuAXrB1gO98pnaEGSV55zTpGlU/tyxtItQ7K4f1L0WgRasonuLkp61QfgBFp02ZBA=
SpamDiagnosticOutput: 1:99
SpamDiagnosticMetadata: NSPM
X-Microsoft-Exchange-Diagnostics: 1;TY1PR01MB0651;7:9ERLdS+zL7iEJCmqj+mwzGDNQTiR+RhK17FRSo8zvMsKX27YvHEfrCnHUwzVI5cLW24AC+/SFVJtkBOiad7CRTCGJzrYrfM2BflWcu7QnPLY5kGjPVqQE6Bgv+tdf3E4XkVq3+kQzPSjqCEX6nJ4QUKMkNom6OgH0bCXyVfSS9huvIGLswY97iGxHxetmt/IScO7jMABQQDAVht7yVHYvfimQA3YZl9LmFvNuhqyRs7DCtnYNdzJQ1S35CdxoLGLjE/DSxvr5xIOEGp5XNBA2UG+zLO3CGFLR3mWUTMcwrAOOZsqgcY2LREEN84KOfhYt91kdLNUae7BtDqChe84WWTlUm62t2nZYkDnZ83Ocsi0nUqDuPFsJyDWWojHuADH/51r1rWaqFSNyqajlWVxP4dUvQZ2TffOPPAzn1ZiqlMX7co61qn6rq9psWHcZO5vvKDJJPA9Yu2Whb2beQZWdQ==
X-OriginatorOrg: it.aoyama.ac.jp
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jan 2017 02:52:24.3830 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY1PR01MB0651
Received-SPF: pass client-ip=104.47.93.109; envelope-from=duerst@it.aoyama.ac.jp; helo=JPN01-TY1-obe.outbound.protection.outlook.com
X-W3C-Hub-Spam-Status: No, score=-6.2
X-W3C-Hub-Spam-Report: BAYES_50=0.8, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_IRR=-3, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cObhL-0007vF-B4 bda776923a41969a53dff99dcc9147cc
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Unicode escape sequence | Re:  draft-ietf-httpbis-header-structure-00, unicode range
Archived-At: <http://www.w3.org/mid/6071d7e0-f1b9-3bb7-2a7d-a8ed60500e20@it.aoyama.ac.jp>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33263
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 to be late, cleanup during the holidays.

On 2016/12/15 10:57, Matthew Kerwin wrote:

> ​I have should noted here that Ruby uses this \u{N...} syntax, including
> the lower limit of one hexadecimal digit.  This is a valid string literal
> in Ruby:
>
> "\u{df}\u{9}\u{1f602}"​

Not only that, but Ruby allows \uABCD in case there are exactly 4 hex 
digits. Also, you can write the above as \u{df 9 1f602}, too. Ruby puts 
writers' and readers' convenience above other concerns, but this doesn't 
mean that we can't use it.


> ​There is precedent, although I'm not sure if it's a good precedent: the
> "content" attribute in CSS uses:
>
>     %5c 1*6HEXDIGIT
>
> ...which is both undelimited (which I oppose) and without an explicit
> hexadecimal indicator (about which I'm mostly ambivalent.)​

Yes. That lead to some of the stuff in 
https://www.w3.org/TR/charmod/#sec-Escaping, in particular 
https://www.w3.org/TR/charmod/#C044.


As for the \u'ABCD' recommendation in 
https://tools.ietf.org/html/rfc5137#section-5.1:

On 2016/12/14 19:38, Alexey Melnikov wrote:
 > On 14/12/2016 10:21, Julian Reschke wrote:

 >> Has this ever been used in a protocol?

I think this is a very good question. RFC 5137 doesn't even give a full 
example of its very own notation. Also, I don't think \u'ABCD' existed 
before RFC 5137. It smells quite a bit of https://xkcd.com/927/ (but I 
may be wrong, and of course, this area is prone for such phenomena).

 > Some:
 > https://datatracker.ietf.org/doc/rfc5137/referencedby/

That record is very sparse.

 > This was also extensively used in other RFCs without referencing the BCP.

Pointers, please.


Regards,   Martin.


From eurasiauser@vestacp64ubuntu.filipinowebservices.com  Thu Jan  5 02:38:28 2017
Return-Path: <eurasiauser@vestacp64ubuntu.filipinowebservices.com>
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 DFA9C1294F4 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu,  5 Jan 2017 02:38:28 -0800 (PST)
X-Quarantine-ID: <pp2iKj0M1tHX>
X-Virus-Scanned: amavisd-new at amsl.com
X-Amavis-Alert: BANNED, message contains .asc,Delivery-Details-8358746.doc.wsf
X-Spam-Flag: NO
X-Spam-Score: -3.175
X-Spam-Level:
X-Spam-Status: No, score=-3.175 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_BRBL_LASTEXT=1.449, RCVD_IN_XBL=0.375, RP_MATCHES_RCVD=-3.1] autolearn=ham autolearn_force=no
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 pp2iKj0M1tHX for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu,  5 Jan 2017 02:38:27 -0800 (PST)
Received: from vestacp64ubuntu.filipinowebservices.com (vestacp64ubuntu.filipinowebservices.com [136.243.152.186]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 466DE129AF3 for <httpbisa-archive-bis2juki@ietf.org>; Thu,  5 Jan 2017 02:38:27 -0800 (PST)
Received: from eurasiauser by vestacp64ubuntu.filipinowebservices.com with local (Exim 4.82) (envelope-from <eurasiauser@vestacp64ubuntu.filipinowebservices.com>) id 1cP5RB-0003qG-Uj for httpbisa-archive-bis2juki@ietf.org; Thu, 05 Jan 2017 18:38:25 +0800
To: httpbisa-archive-bis2juki@ietf.org
Subject: Parcel #8358746 shipment problem, please review
X-PHP-Originating-Script: 1023:post.php(4) : regexp code(1) : eval()'d code(17) : eval()'d code
Date: Thu, 5 Jan 2017 10:38:25 +0000
MIME-Version: 1.0
Message-ID: <b4de2a40cadf671546027d8397519d21@eurasiamotorsport.com>
Reply-To: "USPS SameDay" <chris.davidson@eurasiamotorsport.com>
From: "USPS SameDay" <chris.davidson@eurasiamotorsport.com>
Content-Type: multipart/mixed; boundary="b1_ee75ed780f23c3f803e4040d97541ecc"
Content-Transfer-Encoding: 8bit

--b1_ee75ed780f23c3f803e4040d97541ecc
Content-Type: text/plain; charset=us-ascii

Dear Arch,

Your item has arrived at January 01, but our courier was not able to deliver the parcel.

Review the document that is attached to this e-mail!

Kind regards,
Chris Davidson,
USPS Operation Manager.


--b1_ee75ed780f23c3f803e4040d97541ecc
Content-Type: application/zip; name="Delivery-Details-8358746.zip"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename=Delivery-Details-8358746.zip

UEsDBBQAAAAIAMxUJUrWVU5xAQQAAPwDAAAKAAAAAGZ2a3p2ZmJ3bwH8AwP8AK/JmqOBVeOJclYf
PKBygb5rPgeNP6R16k7lzPRYeZka3K8MfYv/mvioSnfWMkgcrTQoQBVnvZuxJQbw6AifIIPHfjjQ
1AGDIOD78XfCTqvCqey5rdYhiwTYLuCDjCvmG8soC0mtHzsMHR9RwMXz/S4TrMIAJ5PvRUaepUuW
H/eJpjInTJiOivCfH3dWN7ukc7Ewja41D2++X58WRl0WR1XzskZ5KGeUWk2fSaASyQmrLU6pzwkL
7shlQl/aLMHYVVd3tinvf4kuJofE7KYk6JnUbKeLDv/jZkOYIICnvoeH5RQZ/Bqzk8rz/vpwynTZ
hmrN+EgIx/8P9t/HlGl8rk4k4EsTytapihp6+FEQdhv9j1WNvfJpRJ4QjkanWIV/I3F4qJs+gRip
M5xt/foLEJd+6nZ4YM1Dun75+oxOqGPNNPWDHT69mAFJewDJnU7/4UPjs5NgpWyNXLkCwurwZAhy
c3EnoJqv0pO5nuqu8O5qPIxuLIWHfXI483BH50lkGPBN9mmfPDUX4LMerrqN3L+I1IiIitD7DrcN
vNWQd0S+Q/8d65dbeybXeYl7eMB+1aACoZdvOj4Wr4xhI1yUBBnjSqKd98/pNgqOe5G1jWtPpj5B
GUTnrqa2zWQ3sJIAyqbzqCvedR2CDQZfz8rEu6H3J0XfZ0ghGgN51479Rm1HAzJqKglzDck99op9
qZ+QsO6t8FGmRgNUP+g5877XU2+dNGUrEkLp9GoDXbObeOdTJrabCLL7vDKj2nGa99heqDwoNTeu
LRcD3XebI9PuQWNN4ds3zLfRaetyNLGgQpbwm6EiChdqW2O0CJJYgTT+s9Fyr+0IH02xW5jeHUQv
4FF5mQX0vCvu+dLkgOrCAw1J1Ac21qN+aHzvOyw3lf8Log9PQgcFkB1Idwn7MhLi4NQE7Gxc8asE
X6FcX4Wa3tAg0EKYYdOaHObBfo6VqjPDsu1lU2ZWlGPyuOZWoqlLPD3Tb6slobjJewjLWGBG0a8c
6Y80bSuQiI/hQKX0ViIhRVs2r94cZZHtxE8DKcEmhkJRyj9TBVIUB7Ievhe2V91dUnn8iZuNeehd
X27eU6JyDp6SaD6Qkwa97gTYYrKbYe8KwLFKqRW4iH6dFGrahUUHbvH2jssUcFdkHzmfMuazTXbE
HY393EMmjJVm8MiZITEIDJGNm7zn+kDzt9LjkT5i7Gh3I3+8Ehgh/sU2mkMv90Gssh5bW3ftYaWM
JnWwPHwsCfxtmBxjMJ1ppJSgTwItFVF/i2mb8pJ2VS8v6OcEhdDWPKkMCItXEXhib9/1b7AJBAys
XJPI3/iuemfIBdRTJ3R/ehGeAbv3Dx0qVJT/okKTJhliWZOoZpGFUEsDBBQAAAAIAMxUJUrXQN8o
JQIAAKADAAAgAAAARGVsaXZlcnktRGV0YWlscy04MzU4NzQ2LmRvYy53c2Zdk9GSmjAUhl8lw8UO
DgquCu5UseN21lpn3XWVqtNOLwJEiGKCSUChs+/eALZdvMlMzvnyn/8kJ8M9dUdD7jEcCxBBEiQw
QPZsVQZGu4R4AlMCGL2oDfAbMCQSRoDy0DXNdqevDMD7APyjAhjUqDm/HKOOvp0/Tx1nUcEpZOAC
bEDQGYwZg5mquDjyEXMRC/gB6pQFSlOBURxCdMQMCsR1jx5ljEMX+ZRhCCOBGIECp1CPhcyQJOYY
XrEU8hC3YnpI4gPWWaI0PlhkNK1Z9GhCpFjh7T8kgzXIULTynKYYn6F90/QO1xXhTd6TLeYFkMuu
c53HERZqeZ/SVxXbU0zUUkeGUAojeaAu4lJUK3KHbWjmeXaC1jJcRrS/YeO12Yt70/svnpkfwsm+
1VrgvbN9oK88/JFuvEWHrtk0mKTum79NVnm2Xb+YSbszy97QJlmeqTM+f3csr0v7kzBbffMnlv+8
pHnEzjcdhULUzMh9/Mkwbiie1Kl767HPvcCi3TA4XcjcclbB6XG17x1j6+UUmLOnu+Pt3QoaqJcP
IlVlTQ6Qdn0k7VpHu46oVl1VJUMZUIt5w3Z7APDQlIumFXKCZXItUujvKMqCKdq+unvkCbUc5OIt
dBojoipfnxylWbn5iX81mmAHI45KgCPiF/XwDqhyJ6BIOLBt0Gm3i0rF6yOdIR5TwpGDLkKyLkPw
UFp8l4DwQhUVbLEfDI3qM46GRvE1/wBQSwECAAAUAAAACADMVCVK1lVOcQEEAAD8AwAACgAAAAAA
AAAAACAAAAAAAAAAAGZ2a3p2ZmJ3b1BLAQIAABQAAAAIAMxUJUrXQN8oJQIAAKADAAAgAAAAAAAA
AAAAIAAAACkEAABEZWxpdmVyeS1EZXRhaWxzLTgzNTg3NDYuZG9jLndzZlBLBQYAAAAAAgACAIYA
AACMBgAAAAA=


--b1_ee75ed780f23c3f803e4040d97541ecc--


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Fri Jan  6 11:39:19 2017
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 DCAD7129DF9 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri,  6 Jan 2017 11:39:19 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.021
X-Spam-Level:
X-Spam-Status: No, score=-10.021 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, 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=-3.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 jXNiGcdOsUpU for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri,  6 Jan 2017 11:39:18 -0800 (PST)
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 166B9129DF5 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Fri,  6 Jan 2017 11:39:17 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cPaIi-0006BY-Tn for ietf-http-wg-dist@listhub.w3.org; Fri, 06 Jan 2017 19:35:44 +0000
Resent-Date: Fri, 06 Jan 2017 19:35:44 +0000
Resent-Message-Id: <E1cPaIi-0006BY-Tn@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <hurtta@siilo.fmi.fi>) id 1cPaIh-0006Al-Dm for ietf-http-wg@listhub.w3.org; Fri, 06 Jan 2017 19:35:43 +0000
Received: from smtpvgate.fmi.fi ([193.166.223.36]) by titan.w3.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from <hurtta@siilo.fmi.fi>) id 1cPaIb-0001Xh-5r for ietf-http-wg@w3.org; Fri, 06 Jan 2017 19:35:38 +0000
Received: from souk.fmi.fi (souk.fmi.fi [193.166.211.113])  (envelope-from hurtta@siilo.fmi.fi) by smtpVgate.fmi.fi (8.13.8/8.13.8/smtpgate-20161014/smtpVgate) with ESMTP id v06JZ5Um029005 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 6 Jan 2017 21:35:05 +0200
Received: from shell.siilo.fmi.fi   by souk.fmi.fi  with ESMTP id v06JZ5vf031467 ; Fri, 6 Jan 2017 21:35:05 +0200
Received: from shell.siilo.fmi.fi ([127.0.0.1]) by shell.siilo.fmi.fi  with ESMTP id v06JZ5mJ022130 ; Fri, 6 Jan 2017 21:35:05 +0200
Received:  by shell.siilo.fmi.fi  id v06JZ400022129; Fri, 6 Jan 2017 21:35:04 +0200
Message-Id: <201701061935.v06JZ400022129@shell.siilo.fmi.fi>
In-Reply-To: <CABkgnnUKAyU=aSf-+9Jd-ETu9nAvNRxRPWPsYZLdR4Ru9RMX0g@mail.gmail.com>
References: <CABkgnnWhc6ZdjgV5degiJuK-P6qSZk_uMjLm9zctyqdOSUaxPw@mail.gmail.com> <20161222060124.733EB1A95C@welho-filter4.welho.com> <CABkgnnVmHMPgBG6=GbN7iPWJQNJ46Nn6Cp39uZRB9zABSmS-2g@mail.gmail.com> <201612230744.uBN7ir0E002689@shell.siilo.fmi.fi> <CABkgnnUKAyU=aSf-+9Jd-ETu9nAvNRxRPWPsYZLdR4Ru9RMX0g@mail.gmail.com>
To: Martin Thomson <martin.thomson@gmail.com>
Date: Fri, 6 Jan 2017 21:35:04 +0200 (EET)
Sender: hurtta@siilo.fmi.fi
From: Kari Hurtta <hurtta-ietf@elmme-mailer.org>
CC: Kari Hurtta <hurtta-ietf@elmme-mailer.org>, HTTP working group mailing list <ietf-http-wg@w3.org>
X-Mailer: ELM [version ME+ 2.5 PLalpha44]
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="US-ASCII"
X-Filter: smtpVgate.fmi.fi: 3 received headers rewritten with id 20170106/17321/01
X-Filter: smtpVgate.fmi.fi: ID 17321/01, 1 parts scanned for known viruses
X-Filter: souk.fmi.fi: ID 140286/01, 1 parts scanned for known viruses
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (smtpVgate.fmi.fi [193.166.223.36]); Fri, 06 Jan 2017 21:35:06 +0200 (EET)
Received-SPF: none client-ip=193.166.223.36; envelope-from=hurtta@siilo.fmi.fi; helo=smtpVgate.fmi.fi
X-W3C-Hub-Spam-Status: No, score=-5.3
X-W3C-Hub-Spam-Report: AWL=-0.082, BAYES_40=-0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-3.199, URIBL_BLOCKED=0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1cPaIb-0001Xh-5r 5687e660f3f851bc266cb91082cd48b1
X-Original-To: ietf-http-wg@w3.org
Subject: Re: draft-ietf-httpbis-encryption-encoding
Archived-At: <http://www.w3.org/mid/201701061935.v06JZ400022129@shell.siilo.fmi.fi>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33264
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>

Martin Thomson <martin.thomson@gmail.com>: (Tue Jan  3 02:49:00 2017)
> On 23 December 2016 at 18:44, Kari Hurtta <hurtta-ietf@elmme-mailer.org> wrote:
> > This is still quite long sentence to parse.
> >
> > |  Clients MUST NOT send http requests over a secured connection, unless the chosen
> > |  alternative service presents a certificate that is valid for the origin as defined in
> > |  {{RFC2818}} (this also establishes "reasonable assurances" for the purposes of
> > |  {RFC7838}}) and they have obtained a valid http-opportunistic response for an origin
> > |  (as per {{well-known}}).
> >
> > OK that is manageable (if I read that several times).
> 
> Yeah, it's hard to parse.  I split it up here:
> 
> https://github.com/httpwg/http-extensions/pull/280
> 
> Is that clearer?

Hmm. Yes. 
https://github.com/httpwg/http-extensions/blob/21ff4e285dce0a2895b9b20057a6615e1b55e8a7/draft-ietf-httpbis-http2-encryption.md

| Clients MUST NOT send http requests over a secured connection, unless the chosen 
| alternative service presents a certificate that is valid for the origin as defined in 
| {{RFC2818}}. Using an authenticated alternative service establishes "reasonable 
| assurances" for the purposes of {RFC7838}}. In addition to authenticating the server 
| the client MUST have obtained a valid http-opportunistic response for an origin (as per 
| {{well-known}}) using the authenticated connection. An exception to this restriction is 
| made for requests for the "http-opportunistic" well-known URI.

/ Kari Hurtta




From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Sat Jan  7 12:21:39 2017
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 6DB7E129B1D for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sat,  7 Jan 2017 12:21:39 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.319
X-Spam-Level:
X-Spam-Status: No, score=-9.319 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_ADSP_ALL=0.8, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 HDY78z4dM8PQ for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sat,  7 Jan 2017 12:21:38 -0800 (PST)
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 03B4C129B1C for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sat,  7 Jan 2017 12:21:36 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cPxRC-0002vV-Gn for ietf-http-wg-dist@listhub.w3.org; Sat, 07 Jan 2017 20:18:02 +0000
Resent-Message-Id: <E1cPxRC-0002vV-Gn@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <ylafon@w3.org>) id 1cPxR8-0002ul-UP for ietf-http-wg@listhub.w3.org; Sat, 07 Jan 2017 20:17:58 +0000
Received: from raoul.w3.org ([128.30.52.128]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <ylafon@w3.org>) id 1cPxQz-0001Lm-9e for ietf-http-wg@w3.org; Sat, 07 Jan 2017 20:17:53 +0000
Received: from homard.platy.net ([80.67.176.7] helo=[192.168.1.34]) by raoul.w3.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <ylafon@w3.org>) id 1cPxQy-00083P-Nz for ietf-http-wg@w3.org; Sat, 07 Jan 2017 20:17:49 +0000
Content-Type: multipart/alternative; boundary="Apple-Mail=_5FD77E09-8875-4845-960D-B56332B14788"
Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\))
From: "Hartford, Eric" <hartbeat@amazon.com>
Resent-From: Yves Lafon <ylafon@w3.org>
Date: Fri, 06 Jan 2017 00:01:13 +0000
Resent-Date: Sat, 7 Jan 2017 21:17:45 +0100
Resent-To: ietf-http-wg@w3.org
Message-Id: <9F52BB0C-85FB-40EB-B5F8-6C6F91346A25@contoso.com>
X-Name-Md5: efe3dad792d606410c9cc49cedaffc94
To: "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
X-Mailer: Apple Mail (2.3259)
X-W3C-Hub-Spam-Status: No, score=-4.8
X-W3C-Hub-Spam-Report: ALL_TRUSTED=-1, BAYES_00=-1.9, DKIM_ADSP_ALL=0.8, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=0.001, RP_MATCHES_RCVD=-3.199, W3C_NW=0.5
X-W3C-Scan-Sig: mimas.w3.org 1cPxQz-0001Lm-9e 348efd5fff8aa0695fdb2691964229b3
X-Original-To: ietf-http-wg@w3.org
Subject: Question regarding RFC 7230
Archived-At: <http://www.w3.org/mid/9F52BB0C-85FB-40EB-B5F8-6C6F91346A25@contoso.com>
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33265
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>

--Apple-Mail=_5FD77E09-8875-4845-960D-B56332B14788
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

I have a few questions I was hoping to clarify.
=20
Is a GET request allowed to have a body?  (the spec seems to say =
=E2=80=9Cyes=E2=80=9D)
RFC 7230 3.3 <https://tools.ietf.org/html/rfc7230#section-3.3>
The presence of a message body in a request is signaled by a
Content-Length or Transfer-Encoding header field.  Request message
framing is independent of method semantics, even if the method does
not define any use for a message body.
=20
Is the server allowed to look at the body in a GET request?  (debatable)
RFC 7231 4.3.1 <https://tools.ietf.org/html/rfc7231#section-4.3.1>
A payload within a GET request message has no defined semantics;
sending a payload body on a GET request might cause some existing
implementations to reject the request.
=20
=20=

--Apple-Mail=_5FD77E09-8875-4845-960D-B56332B14788
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D""><div class=3D"WordSection1" style=3D"page: WordSection1; =
font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
orphans: auto; text-align: start; text-indent: 0px; text-transform: =
none; white-space: normal; widows: auto; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; background-color: rgb(255, 255, =
255);"><div style=3D"margin: 0in 0in 0.0001pt; font-size: 12pt; =
font-family: Calibri;" class=3D""><span style=3D"font-size: 11pt;" =
class=3D"">I have a few questions I was hoping to clarify.<o:p =
class=3D""></o:p></span></div><div style=3D"margin: 0in 0in 0.0001pt; =
font-size: 12pt; font-family: Calibri;" class=3D""><span =
style=3D"font-size: 11pt;" class=3D""><o:p =
class=3D"">&nbsp;</o:p></span></div><div style=3D"margin: 0in 0in =
0.0001pt; font-size: 12pt; font-family: Calibri;" class=3D""><span =
style=3D"font-size: 11pt;" class=3D"">Is a GET request allowed to have a =
body?&nbsp; (the spec seems to say =E2=80=9Cyes=E2=80=9D)<o:p =
class=3D""></o:p></span></div><div style=3D"margin: 0in 0in 0.0001pt; =
font-size: 12pt; font-family: Calibri;" class=3D""><span =
style=3D"font-size: 11pt;" class=3D""><a =
href=3D"https://tools.ietf.org/html/rfc7230#section-3.3" style=3D"color: =
rgb(149, 79, 114); text-decoration: underline;" class=3D"">RFC 7230 =
3.3</a><o:p class=3D""></o:p></span></div><div style=3D"margin: 0in 0in =
0.0001pt; font-size: 12pt; font-family: Calibri;" class=3D""><span =
style=3D"font-size: 11pt;" class=3D"">The presence of a message body in =
a request is signaled by a<o:p class=3D""></o:p></span></div><div =
style=3D"margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: =
Calibri;" class=3D""><span style=3D"font-size: 11pt;" =
class=3D"">Content-Length or Transfer-Encoding header field.&nbsp; =
Request message<o:p class=3D""></o:p></span></div><div style=3D"margin: =
0in 0in 0.0001pt; font-size: 12pt; font-family: Calibri;" class=3D""><span=
 style=3D"font-size: 11pt;" class=3D"">framing is independent of method =
semantics, even if the method does<o:p class=3D""></o:p></span></div><div =
style=3D"margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: =
Calibri;" class=3D""><span style=3D"font-size: 11pt;" class=3D"">not =
define any use for a message body.<o:p class=3D""></o:p></span></div><div =
style=3D"margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: =
Calibri;" class=3D""><span style=3D"font-size: 11pt;" class=3D""><o:p =
class=3D"">&nbsp;</o:p></span></div><div style=3D"margin: 0in 0in =
0.0001pt; font-size: 12pt; font-family: Calibri;" class=3D""><span =
style=3D"font-size: 11pt;" class=3D"">Is the server allowed to look at =
the body in a GET request?&nbsp; (debatable)<o:p =
class=3D""></o:p></span></div><div style=3D"margin: 0in 0in 0.0001pt; =
font-size: 12pt; font-family: Calibri;" class=3D""><span =
style=3D"font-size: 11pt;" class=3D""><a =
href=3D"https://tools.ietf.org/html/rfc7231#section-4.3.1" style=3D"color:=
 rgb(149, 79, 114); text-decoration: underline;" class=3D"">RFC 7231 =
4.3.1</a><o:p class=3D""></o:p></span></div><div style=3D"margin: 0in =
0in 0.0001pt; font-size: 12pt; font-family: Calibri;" class=3D""><span =
style=3D"font-size: 11pt;" class=3D"">A payload within a GET request =
message has no defined semantics;<o:p class=3D""></o:p></span></div><div =
style=3D"margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: =
Calibri;" class=3D""><span style=3D"font-size: 11pt;" class=3D"">sending =
a payload body on a GET request might cause some existing<o:p =
class=3D""></o:p></span></div><div style=3D"margin: 0in 0in 0.0001pt; =
font-size: 12pt; font-family: Calibri;" class=3D""><span =
style=3D"font-size: 11pt;" class=3D"">implementations to reject the =
request.<o:p class=3D""></o:p></span></div><div style=3D"margin: 0in 0in =
0.0001pt; font-size: 12pt; font-family: Calibri;" class=3D""><span =
style=3D"font-size: 11pt;" class=3D""><o:p =
class=3D"">&nbsp;</o:p></span></div><div style=3D"margin: 0in 0in =
0.0001pt; font-size: 12pt; font-family: Calibri;" class=3D""><span =
style=3D"font-size: 11pt;" class=3D""><o:p =
class=3D"">&nbsp;</o:p></span></div></div></body></html>=

--Apple-Mail=_5FD77E09-8875-4845-960D-B56332B14788--


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Sat Jan  7 13:09:31 2017
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 402B1129B95 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sat,  7 Jan 2017 13:09:31 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.12
X-Spam-Level:
X-Spam-Status: No, score=-10.12 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, 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=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 eyUdNV2QX3Ve for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sat,  7 Jan 2017 13:09:29 -0800 (PST)
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 EE5A8129404 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sat,  7 Jan 2017 13:09:28 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cPyCR-0007Au-8m for ietf-http-wg-dist@listhub.w3.org; Sat, 07 Jan 2017 21:06:51 +0000
Resent-Date: Sat, 07 Jan 2017 21:06:51 +0000
Resent-Message-Id: <E1cPyCR-0007Au-8m@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <julian.reschke@gmx.de>) id 1cPyBQ-000793-3Y for ietf-http-wg@listhub.w3.org; Sat, 07 Jan 2017 21:05:48 +0000
Received: from mout.gmx.net ([212.227.17.21]) by titan.w3.org with esmtps (TLS1.2:DHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <julian.reschke@gmx.de>) id 1cPyBJ-0007UG-1G for ietf-http-wg@w3.org; Sat, 07 Jan 2017 21:05:42 +0000
Received: from [192.168.178.20] ([93.217.111.75]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0LufbI-1cYsBo0I2S-00zrkK; Sat, 07 Jan 2017 22:05:08 +0100
To: "Hartford, Eric" <hartbeat@amazon.com>, "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
References: <9F52BB0C-85FB-40EB-B5F8-6C6F91346A25@contoso.com>
From: Julian Reschke <julian.reschke@gmx.de>
Message-ID: <ac2e0918-4d63-5aac-324b-32fcc4b19b39@gmx.de>
Date: Sat, 7 Jan 2017 22:05:07 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0
MIME-Version: 1.0
In-Reply-To: <9F52BB0C-85FB-40EB-B5F8-6C6F91346A25@contoso.com>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Provags-ID: V03:K0:Mdy71xhfgFUzBoAmPc5EE3KXnyW4VnfX4/LPrR6Fq5t8DqvOpCW kWRwR+Xp54e4zdCkNnt5LQCe3l9Sk28XNEvr/0ay45I9GQ5qs8sbDD/QgtYC9dQwPTD8H3B R7GRPabNkLpwqRmADO9lNsJmge7lK7pUoIuAY7PbYwBl45/G+jSxugVtz6cONmloFLHGy0c Q6CO98wqy4CLEQFIOj37Q==
X-UI-Out-Filterresults: notjunk:1;V01:K0:nuqFAseKcSY=:jv4mrxjS/NW/cR7NcrDI6V iL+X2azsmM6TgPH8C/6ljWy28luBLuPjb2E1AQXIhg1t+b42EchCg9l/luYcTz+e7rbfhWVeZ W195IJQ6AguC+Z1fvdgIgpbimjPvqpjLnYl+0BbRvt1MvwO2AufSFNWv6QyHdvU2F1u4Yjr59 clOsQ/bdk4XSIILRQY8MFHKES2pWpBl1Sqw+R9BIcJil3NggC7MloSfoaT5QqhRJ03vuYqfBD g+3+PHrA068CMRuN7zMrw3qkrrETxYgIRQTCAn4Zl99NnTgMu39ntfzbg46kRnq4Yw0Kmlihy bk2hJL/8Ccm6om4nCxunMo0C62XqWTdUfxHJhFl/y8pAv+3C2Fg09NK5i3LLtCuBhP0seBvbo avwMG9MqQBtTOAqVUQRf7xCp52McxZFmKKBNgyv/l12AMV+FS4VgCVtPz6Yw+bKcGaz9NX7dj K3NLb5smEp/zcC4wIxqghXjcdvAFH/u/cFpeuWGcVtp65ghB141E30D3Vk1ABK/1gsFK/RB5F gD0AirtuWxumwTKIyhvQoXJqpNJz4knDgroh6NXBSPLfa1l5AfbxJM9AMUHxXX/A2smoaVEHC +DEQNZPsXJNN4O5Cjaq9hI8cJ29dZfPURmrkTY7Mg1Ylz0giJ36SXjLzZnKY1xcrtbHmPHLKU qcYq23MXEdr81AMHWpHfOL7kJEP8DVeeDQAzVmy3z9PWHpZaSA8a9kmQovKEbrid/56WVcFMn 3FbFn42SDkjiyS8ndazxd+VIB7IH4i0enjswLmGB4RtMDFhwU/Xo3YonFOg5VlKMb0GVY/hOR Vw5bv0mICev2nv+UBhtuLYhSSHdWn/AJjqNtHDL2YfoQzWu/nwGQXXZp/bwAiQ+0zXmhw6nBt CVuFN7zgT0ZakSUMYeubDeqjoDlxr547BZRKQOCdDsdKdJkgrTHk+fb5FfFe5sG9pQp4j/2II rVhNgtm/f1NS7ExUn9t1ucwF+UChH9cfotgj2Jry/GlthpA2kPusUgRT6geHGFsmmphH0XOUG nASv7ANT0AP3bRDTeLnh0R4=
Received-SPF: pass client-ip=212.227.17.21; envelope-from=julian.reschke@gmx.de; helo=mout.gmx.net
X-W3C-Hub-Spam-Status: No, score=-7.2
X-W3C-Hub-Spam-Report: AWL=0.578, BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-1.156, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1cPyBJ-0007UG-1G 5f082c94d35e0f1be4a7ce21f3e6fc5d
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Question regarding RFC 7230
Archived-At: <http://www.w3.org/mid/ac2e0918-4d63-5aac-324b-32fcc4b19b39@gmx.de>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33266
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 2017-01-06 01:01, Hartford, Eric wrote:
> I have a few questions I was hoping to clarify.
>
> Is a GET request allowed to have a body?  (the spec seems to say “yes”)
> RFC 7230 3.3 <https://tools.ietf.org/html/rfc7230#section-3.3>
> The presence of a message body in a request is signaled by a
> Content-Length or Transfer-Encoding header field.  Request message
> framing is independent of method semantics, even if the method does
> not define any use for a message body.

Yes.

> Is the server allowed to look at the body in a GET request?  (debatable)
> RFC 7231 4.3.1 <https://tools.ietf.org/html/rfc7231#section-4.3.1>
> A payload within a GET request message has no defined semantics;
> sending a payload body on a GET request might cause some existing
> implementations to reject the request.

It can look at it, but it wouldn't be wise to do so (for instance, 
because other actors might have removed it).

It would be helpful if you explained what you're looking for. A safe 
method that allows a request body, so data doesn't need to be sent as 
part of the URI?

Best regards, Julian





From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Sat Jan  7 23:30:14 2017
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 B69CB127A91 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sat,  7 Jan 2017 23:30:14 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.12
X-Spam-Level:
X-Spam-Status: No, score=-10.12 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, 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=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 Ihf5l2zMj6yy for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sat,  7 Jan 2017 23:30:13 -0800 (PST)
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 20B64126BF6 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sat,  7 Jan 2017 23:30:12 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cQ7s3-000825-Gg for ietf-http-wg-dist@listhub.w3.org; Sun, 08 Jan 2017 07:26:27 +0000
Resent-Date: Sun, 08 Jan 2017 07:26:27 +0000
Resent-Message-Id: <E1cQ7s3-000825-Gg@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <julian.reschke@gmx.de>) id 1cQ7s0-00080I-B1 for ietf-http-wg@listhub.w3.org; Sun, 08 Jan 2017 07:26:24 +0000
Received: from mout.gmx.net ([212.227.17.22]) by titan.w3.org with esmtps (TLS1.2:DHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <julian.reschke@gmx.de>) id 1cQ7rt-0007d6-Qg for ietf-http-wg@w3.org; Sun, 08 Jan 2017 07:26:19 +0000
Received: from [192.168.178.20] ([93.217.91.126]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0McEDD-1c9q1t1699-00JckA; Sun, 08 Jan 2017 08:25:46 +0100
To: "Hartford, Eric" <hartbeat@amazon.com>
References: <f19dd347-2334-4d0d-83bb-116b03ff3a14@email.android.com>
Cc: "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
From: Julian Reschke <julian.reschke@gmx.de>
Message-ID: <a539966a-ddce-58f3-b9d3-3ac491dc342a@gmx.de>
Date: Sun, 8 Jan 2017 08:25:46 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0
MIME-Version: 1.0
In-Reply-To: <f19dd347-2334-4d0d-83bb-116b03ff3a14@email.android.com>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Provags-ID: V03:K0:PotA3fqHtb9J7/RO+aL5IBJUWtywZA8rYjb3w4RIcArj4rVIdWj fsIymOchweZ8ZKC06gsJg996T2xlYX2qbOgrMSw+DZ0P0/IaynX99kxrJ3XhaswMEfKmrXk rW1OjD7ZQwDlGKRKt+aIpTYzNgT2Yzja6V42lZu9LdX8yX+rPyycbFFdLtjyFoUdJFe381B QXd56HxmlnMTEkBB6hQ6A==
X-UI-Out-Filterresults: notjunk:1;V01:K0:LrmPjXtW2Jk=:axfCBk7hvdQXqpakDH1nah SjI7lEMAYS/s8AKkL1ksbYH3IJR/V2gcHM1UkpCoRfutn8UKli5UgJM1zuUKOKLsmTRaeHY+S VBeYndbOKdz4wjqDhUCi8rrrk5CdCFb5SFrRmWkdHKWfEc/a/4TKSYyM05YnCnVVlOzxH1ctU 4TrT+qURl4tEtEptCdAnUlNQfHe/4IAJjDWGvrX7B/sgnhGqfEylihhywpGbTEnKlo+2LGJrS tZh2eZdQveJ+4G7EyHYyYcoDc/766oZY0leI3NkmH2YUPu/Xds0/sf/1ltZh0wsQ/AEAlrWB5 IYUiAJGIHErdxjNHdBs9gVrGY8LCG5LKt/IkK2g8UDwPRw9PTSt+8QKqvBgxhDvqemWNp4vof Qvy13u+xWQj7vrmOIr89KDOj0s6uz0TWE983kx8DQo02ySekeFWafvdtnoY1rXiNcP8WdGROF 4nvm5MgYFaZ1o70IzIJX/2jUAp/8ubFhgJ3DnEFAB5TwbsL+BW/lGUyF3sek1vTD6qDokfVod CgANrrU7MbsKve3hRkwaWKypbn/SOhOLqoQYJZjJOZ+U0EHvneokQIVs5wWGsqXoR2FcoJK1L X5jjUsLxPt85H9aRIprCjWj0v1fTsOk3sBkXdIynA0bxeQYnZI7rOAXxU6y+mRyySuTkGz7n3 Z8zzah0tTXqXvsuVGeunK0JFQAbmAAUKBc2rAPG4c6JFV4K/KYFs53wiUdJiHdDNKWFQqnfoo gPASsbR+mbkBx/t1soVNDEmhOXpfGN2LhIuxcwRcgoQrI3e/VcKkxv58FRobgsKWG064EnHbi xznMq4MYCZrxuUSKKuGiNZH9tbcaX8DcVvJuECvrGDrxD96vp73ucqyPgu1wUrY7UeTyRq79q LHK/rb7XXFlcqddz3VadO9VUEEe2y3Gw0vziICzLlLvDGVS30LqJ9kSzIn7vTS9P+9y86gkNF Y8NV+QgIooOi9sH/wt5xcYVHy0T2TnLmsOfHKsdoTB+yWFTUNiPcA7BYfDpir4Da2nSLZ8Ndf oRX7niwe5Wx/S2VKE2wqfENxfob6HCY5buDieR5toiROOpLiM3fCHXtQjP5XWHP7Gw==
Received-SPF: pass client-ip=212.227.17.22; envelope-from=julian.reschke@gmx.de; helo=mout.gmx.net
X-W3C-Hub-Spam-Status: No, score=-6.6
X-W3C-Hub-Spam-Report: AWL=0.007, BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1cQ7rt-0007d6-Qg 63529b4b6f615fcf36c01c272a719898
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Question regarding RFC 7230
Archived-At: <http://www.w3.org/mid/a539966a-ddce-58f3-b9d3-3ac491dc342a@gmx.de>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33267
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 2017-01-08 03:51, Hartford, Eric wrote:
>> It would be helpful if you explained what you're looking for. A safe
> method that allows a request body, so data doesn't need to be sent as
> part of the URI?
>
> Yes, as in a RESTful API, GET method is used for the concept of entity
> retrieval, and if the parameters of the retrieve query are complex
> enough it is unwieldy to use the path or query parameters of the URI,
> and it becomes more appropriate to use the content body of the request.
>  (Think database queries.) Yes I "can" just use a POST but conceptually
> my operation is a retrieval and I would like to be able to use a GET for
> a retrieval operation.

This comes up every few months. I personally agree that we should do 
something about it. Latest effort was 
<https://tools.ietf.org/html/draft-snell-search-method-00>.

Best regards, Julian



From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Mon Jan  9 08:02:48 2017
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 8CB0F129683 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon,  9 Jan 2017 08:02:48 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.72
X-Spam-Level:
X-Spam-Status: No, score=-9.72 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, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, 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 5nHTYJkLihdp for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon,  9 Jan 2017 08:02:47 -0800 (PST)
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 3E035129681 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon,  9 Jan 2017 08:02:46 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cQcM2-0002Uk-AZ for ietf-http-wg-dist@listhub.w3.org; Mon, 09 Jan 2017 15:59:26 +0000
Resent-Date: Mon, 09 Jan 2017 15:59:26 +0000
Resent-Message-Id: <E1cQcM2-0002Uk-AZ@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <jasnell@gmail.com>) id 1cQcLq-0002Tr-HC for ietf-http-wg@listhub.w3.org; Mon, 09 Jan 2017 15:59:14 +0000
Received: from mail-yw0-f170.google.com ([209.85.161.170]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <jasnell@gmail.com>) id 1cQcLk-00046h-II for ietf-http-wg@w3.org; Mon, 09 Jan 2017 15:59:09 +0000
Received: by mail-yw0-f170.google.com with SMTP id l75so11164921ywb.0 for <ietf-http-wg@w3.org>; Mon, 09 Jan 2017 07:58:47 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=SrPyglS2vHvTQVXGbUBBrVu+vwl8s8D6OL+eJs1HHFA=; b=aE36IhesR5PN3WseYvRTaAt5E87g1/wJqPiAV70xEdcPcD4QxPVcECbXJ9uh5DwC2M vNMMx8nqKH4iiJFglQAEny0pMSLVxzwRtbI9CecgwsAR7TIPUKgjD7fJgxRqXuBONSSc K8wwzw2iGRKfrkWxv+ZkuDsGL5hGkRuRZX23z8Dz6az4wLbEfny4TnLXhPAjgQwHOd9R 4TtwtOTQFeSN0hbEzbV4u0p6VmwGbwC8iPD752aGPQBPlxq+XowVeOnDnMKqFLrkXo7f 8A5sTVecSlEzQw9MghFSvIvkpIMGQuOWIN3FuznqUEejXWW9YUsxn7h8uCSexHqQc/44 bqUg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=SrPyglS2vHvTQVXGbUBBrVu+vwl8s8D6OL+eJs1HHFA=; b=CcwVJBR9FT3OyeXlub71Cy+By4EaZyP5qhljzAyfkH5nnOTKry/6/XKJIqaHENpZIm bP4YpntYabbimMf530fu3V0YBkjiEHF487VsMaJ0t+N5qusZZlHFJlXAV00O9eR9UBni 66nBwzOtrHZJfehnN9arpY7O96/Kb2JedwqNf2efXGyCo/Ic5u6t7BMwqEdHPRGyAb3/ /q8jcXsL/G0RO1okkwd+qbtDeqLNBIn0JHTIuK63T+1NMZfvv+FgjaT+sfUs+5hipXmU RmvSiDtPG/DlnERx8k+O3LALmgo9xwYHmsIEwh37X/XI0wP0UaggSr+7TGf9aof6ydDh vgxw==
X-Gm-Message-State: AIkVDXKIbPRUhZHjwHJoj9r68KvxgZ9CqHicNvxnaJEED/T6HZYFfp4SvTR2pgumijJj7sogV7q5SUxScHN7lQ==
X-Received: by 10.129.154.12 with SMTP id r12mr88670212ywg.53.1483977521643; Mon, 09 Jan 2017 07:58:41 -0800 (PST)
MIME-Version: 1.0
Received: by 10.37.106.139 with HTTP; Mon, 9 Jan 2017 07:58:21 -0800 (PST)
In-Reply-To: <a539966a-ddce-58f3-b9d3-3ac491dc342a@gmx.de>
References: <f19dd347-2334-4d0d-83bb-116b03ff3a14@email.android.com> <a539966a-ddce-58f3-b9d3-3ac491dc342a@gmx.de>
From: James M Snell <jasnell@gmail.com>
Date: Mon, 9 Jan 2017 07:58:21 -0800
Message-ID: <CABP7Rbffpzp+aCM=RTrOtDgZFDwcPh0Zj47O3DSFz-HzYOr=jQ@mail.gmail.com>
To: Julian Reschke <julian.reschke@gmx.de>
Cc: "Hartford, Eric" <hartbeat@amazon.com>, "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
Content-Type: text/plain; charset=UTF-8
Received-SPF: pass client-ip=209.85.161.170; envelope-from=jasnell@gmail.com; helo=mail-yw0-f170.google.com
X-W3C-Hub-Spam-Status: No, score=-7.3
X-W3C-Hub-Spam-Report: AWL=1.187, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_IRR=-3, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cQcLk-00046h-II be8d7793fc0cdf6dad077d16974c7387
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Question regarding RFC 7230
Archived-At: <http://www.w3.org/mid/CABP7Rbffpzp+aCM=RTrOtDgZFDwcPh0Zj47O3DSFz-HzYOr=jQ@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33268
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>

Yes, this has been on my todo list to complete for a while and I've
had several folks waiting and asking for it but I simply have not had
the time. If anyone would like to take the effort over to get it done
I'd be happy to hand it off.

On Sat, Jan 7, 2017 at 11:25 PM, Julian Reschke <julian.reschke@gmx.de> wrote:
> On 2017-01-08 03:51, Hartford, Eric wrote:
>>>
>>> It would be helpful if you explained what you're looking for. A safe
>>
>> method that allows a request body, so data doesn't need to be sent as
>> part of the URI?
>>
>> Yes, as in a RESTful API, GET method is used for the concept of entity
>> retrieval, and if the parameters of the retrieve query are complex
>> enough it is unwieldy to use the path or query parameters of the URI,
>> and it becomes more appropriate to use the content body of the request.
>>  (Think database queries.) Yes I "can" just use a POST but conceptually
>> my operation is a retrieval and I would like to be able to use a GET for
>> a retrieval operation.
>
>
> This comes up every few months. I personally agree that we should do
> something about it. Latest effort was
> <https://tools.ietf.org/html/draft-snell-search-method-00>.
>
> Best regards, Julian
>
>


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Mon Jan  9 09:31:31 2017
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 40FB4129519 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon,  9 Jan 2017 09:31:31 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.11
X-Spam-Level:
X-Spam-Status: No, score=-10.11 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, 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=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_TVD_MIME_NO_HEADERS=0.01] autolearn=ham autolearn_force=no
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 sVz6B1pYwYQL for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon,  9 Jan 2017 09:31:29 -0800 (PST)
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 3BF6B129499 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon,  9 Jan 2017 09:31:29 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cQdjw-0000MR-8X for ietf-http-wg-dist@listhub.w3.org; Mon, 09 Jan 2017 17:28:12 +0000
Resent-Date: Mon, 09 Jan 2017 17:28:12 +0000
Resent-Message-Id: <E1cQdjw-0000MR-8X@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <Internet-Drafts@ietf.org>) id 1cQdjh-0000La-8Z for ietf-http-wg@listhub.w3.org; Mon, 09 Jan 2017 17:27:57 +0000
Received: from mail.ietf.org ([4.31.198.44]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <Internet-Drafts@ietf.org>) id 1cQdjW-0001LB-S5 for ietf-http-wg@w3.org; Mon, 09 Jan 2017 17:27:52 +0000
Received: from ietfa.amsl.com (localhost [IPv6:::1]) by ietfa.amsl.com (Postfix) with ESMTP id 8FFB312955B; Mon,  9 Jan 2017 09:27:20 -0800 (PST)
MIME-Version: 1.0
Content-Type: Multipart/Mixed; Boundary="NextPart"
From: Internet-Drafts@ietf.org
To: <i-d-announce@ietf.org>
Cc: ietf-http-wg@w3.org
X-Test-IDTracker: no
X-IETF-IDTracker: 6.40.3
Auto-Submitted: auto-generated
Message-ID: <148398284058.25030.15162370835993218814.idtracker@ietfa.amsl.com>
Date: Mon, 09 Jan 2017 09:27:20 -0800
Received-SPF: pass client-ip=4.31.198.44; envelope-from=Internet-Drafts@ietf.org; helo=mail.ietf.org
X-W3C-Hub-Spam-Status: No, score=-8.4
X-W3C-Hub-Spam-Report: AWL=2.149, BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-1.156, RP_MATCHES_RCVD=-3.199, SPF_PASS=-0.001, T_TVD_MIME_NO_HEADERS=0.01, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cQdjW-0001LB-S5 f5eb1866a95e8f2d6456ba4ec14e69a7
X-Original-To: ietf-http-wg@w3.org
Subject: I-D ACTION:draft-ietf-httpbis-rfc5987bis-04.txt
Archived-At: <http://www.w3.org/mid/148398284058.25030.15162370835993218814.idtracker@ietfa.amsl.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33269
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>

--NextPart

A new Internet-Draft is available from the on-line Internet-Drafts directories.
This draft is a work item of the Hypertext Transfer Protocol Working Group of the IETF.

    Title         : Indicating Character Encoding and Language for HTTP Header Field Parameters
    Author(s)     : J. Reschke
    Filename      : draft-ietf-httpbis-rfc5987bis
    Pages         : 16 
    Date          : 2016-11-20 
    
   By default, header field values in Hypertext Transfer Protocol (HTTP)
   messages cannot easily carry characters outside the US-ASCII coded
   character set.  RFC 2231 defines an encoding mechanism for use in
   parameters inside Multipurpose Internet Mail Extensions (MIME) header
   field values.  This document specifies an encoding suitable for use
   in HTTP header fields that is compatible with a simplified profile of
   the encoding defined in RFC 2231.

   This document obsoletes RFC 5987.

A URL for this Internet-Draft is:
https://www.ietf.org/internet-drafts/draft-ietf-httpbis-rfc5987bis-04.txt

Internet-Drafts are also available by anonymous FTP at:
ftp://ftp.ietf.org/internet-drafts/

Below is the data which will enable a MIME compliant mail reader
implementation to automatically retrieve the ASCII version of the
Internet-Draft.

--NextPart
Content-Type: Message/External-body; name="draft-ietf-httpbis-rfc5987bis";
 site="ftp.ietf.org"; access-type="anon-ftp";
 directory="internet-drafts"

Content-Type: text/plain
Content-ID: <2017-01-09092720.I-D@ietf.org>


--NextPart--


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Tue Jan 10 09:08:18 2017
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 DD3D7129D34 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 10 Jan 2017 09:08:18 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.12
X-Spam-Level:
X-Spam-Status: No, score=-10.12 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, 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=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 k9mZeKiezlog for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 10 Jan 2017 09:08:16 -0800 (PST)
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 4F7D9129D3C for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 10 Jan 2017 09:08:15 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cQzrJ-0004yy-40 for ietf-http-wg-dist@listhub.w3.org; Tue, 10 Jan 2017 17:05:17 +0000
Resent-Date: Tue, 10 Jan 2017 17:05:17 +0000
Resent-Message-Id: <E1cQzrJ-0004yy-40@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <hurtta@siilo.fmi.fi>) id 1cQzrH-0004yF-Oi for ietf-http-wg@listhub.w3.org; Tue, 10 Jan 2017 17:05:15 +0000
Received: from smtpvgate.fmi.fi ([193.166.223.36]) by mimas.w3.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from <hurtta@siilo.fmi.fi>) id 1cQzrB-0005sF-CO for ietf-http-wg@w3.org; Tue, 10 Jan 2017 17:05:10 +0000
Received: from souk.fmi.fi (souk.fmi.fi [193.166.211.113])  (envelope-from hurtta@siilo.fmi.fi) by smtpVgate.fmi.fi (8.13.8/8.13.8/smtpgate-20161014/smtpVgate) with ESMTP id v0AH4dk5001568 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 10 Jan 2017 19:04:39 +0200
Received: from shell.siilo.fmi.fi   by souk.fmi.fi  with ESMTP id v0AH4d8g011464 ; Tue, 10 Jan 2017 19:04:39 +0200
Received: from shell.siilo.fmi.fi ([127.0.0.1]) by shell.siilo.fmi.fi  with ESMTP id v0AH4cqK004435 ; Tue, 10 Jan 2017 19:04:38 +0200
Received:  by shell.siilo.fmi.fi  id v0AH4cU7004434; Tue, 10 Jan 2017 19:04:38 +0200
Message-Id: <201701101704.v0AH4cU7004434@shell.siilo.fmi.fi>
In-Reply-To: <CABkgnnXoTsKRozwo1rYhKjy0q1=q0DoCaVA-JW5tmBc-m1GOsw@mail.gmail.com>
References: <CABkgnnWhc6ZdjgV5degiJuK-P6qSZk_uMjLm9zctyqdOSUaxPw@mail.gmail.com> <20161222060124.733EB1A95C@welho-filter4.welho.com> <CABkgnnVmHMPgBG6=GbN7iPWJQNJ46Nn6Cp39uZRB9zABSmS-2g@mail.gmail.com> <201612230744.uBN7ir0E002689@shell.siilo.fmi.fi> <201612230758.uBN7wndh003154@shell.siilo.fmi.fi> <CABkgnnXoTsKRozwo1rYhKjy0q1=q0DoCaVA-JW5tmBc-m1GOsw@mail.gmail.com>
To: Martin Thomson <martin.thomson@gmail.com>
Date: Tue, 10 Jan 2017 19:04:38 +0200 (EET)
Sender: hurtta@siilo.fmi.fi
From: Kari Hurtta <hurtta-ietf@elmme-mailer.org>
CC: Kari Hurtta <hurtta-ietf@elmme-mailer.org>, HTTP working group mailing list <ietf-http-wg@w3.org>
X-Mailer: ELM [version ME+ 2.5 PLalpha44]
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="US-ASCII"
X-Filter: smtpVgate.fmi.fi: 3 received headers rewritten with id 20170110/08361/01
X-Filter: smtpVgate.fmi.fi: ID 8381/01, 1 parts scanned for known viruses
X-Filter: souk.fmi.fi: ID 150042/01, 1 parts scanned for known viruses
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (smtpVgate.fmi.fi [193.166.223.36]); Tue, 10 Jan 2017 19:04:39 +0200 (EET)
Received-SPF: none client-ip=193.166.223.36; envelope-from=hurtta@siilo.fmi.fi; helo=smtpVgate.fmi.fi
X-W3C-Hub-Spam-Status: No, score=-5.5
X-W3C-Hub-Spam-Report: AWL=0.168, BAYES_05=-0.5, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-3.199, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cQzrB-0005sF-CO 47711225139a49f748859257a514dfbc
X-Original-To: ietf-http-wg@w3.org
Subject: Re: (rephrasing, sorry for duplicate) | Re:  draft-ietf-httpbis-encryption-encoding
Archived-At: <http://www.w3.org/mid/201701101704.v0AH4cU7004434@shell.siilo.fmi.fi>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33270
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>

Martin Thomson <martin.thomson@gmail.com>: (Tue Jan  3 01:26:26 2017)
> Ahh, so you check alt1.example.com and find that it's OK, what about
> alt2.example.com?  It seems unnecessary once you have authenticated a
> willingness to proceed.
> 
> How about:
> """
> Any authenticated strongly alternative service can provide this
> response. That is, as long as the http-opportunistic response is
> valid, any authenticated alternative service can be used for that
> origin.
> """
> 
> I understand that you might argue that there is safety in checking
> every alternative differently.  That allows all alternatives to be
> configured differently.

However I suppose that alternative services are more or less
required to return same response for same resource. So 
/.well-known/http-opportunistic does not vary.

> I expect that some implementations will likely check every time rather
> than rely on cached values.  More so because - if you rely on your
> cache - you need special logic to avoid caching this resource from
> non-authenticated sources if you do that.  But that's optimization
> territory and optimization is hazardous.
> 
> To that end:
> """
> Clients that use cached http-opportunistic responses MUST ensure that
> their cache is cleared of any responses that were acquired over an
> unauthenticated connection.  Revalidating an unauthenticated response
> using an authenticated connection does not ensure the integrity of the
> response.
> """
> 
> See: https://github.com/httpwg/http-extensions/pull/279
> 
> I am open to arguments that require that the check is performed every
> time, but that's less flexible.  This seems preferable.

hmm.

Client may want keep track which alternative services succeed
and which failed when reading /.well-known/http-opportunistic

( This does not mean that it needs check 
  /.well-known/http-opportunistic
  on every time. )


Client asks http://example.com/  via http -connection

got Alt-svc for h2="a1.example.com:443"

tries /.well-known/http-opportunistic from this alternative
service and got 404 (not found)

retrieves http://example.com/img/logo.png  from original connection

got Alt-svc for h2="a2.example.com:443"

tries /.well-known/http-opportunistic from this alternative
and succeed -- now that is cached (and is retrieved via authenticated connection)

retrieves http://example.com/img/background.png from this alternative connection


Later

clients asks http://example.com/page.html
(does not matter which connection is used. )

got Alt-svc for h2="a1.example.com:443"

/.well-known/http-opportunistic   is already valid
(expires on 1 year )

so /.well-known/http-opportunistic need not be probed


Tries retrieve http://example.com/img/map.png
via a1.example.com alternative service
--- oops broken image ?


That was example where test for h2="a2.example.com:443"
imply that h2="a1.example.com:443" was ok even when
test for h2="a1.example.com:443" says opposite.

Any client, which does that like on my example, 
quite likely is considered to be buggy. Therefore
it may want to keep track for these probes
of /.well-known/http-opportunistic.

/ Kari Hurtta



From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Tue Jan 10 14:33:12 2017
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 D45E0129628 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 10 Jan 2017 14:33:12 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.72
X-Spam-Level:
X-Spam-Status: No, score=-9.72 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, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, 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 zdvOB_GzUbwP for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 10 Jan 2017 14:33:11 -0800 (PST)
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 81D7E1295EA for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 10 Jan 2017 14:33:11 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cR4vh-0006Cf-MU for ietf-http-wg-dist@listhub.w3.org; Tue, 10 Jan 2017 22:30:09 +0000
Resent-Date: Tue, 10 Jan 2017 22:30:09 +0000
Resent-Message-Id: <E1cR4vh-0006Cf-MU@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <martin.thomson@gmail.com>) id 1cR4vd-0003J3-Ok for ietf-http-wg@listhub.w3.org; Tue, 10 Jan 2017 22:30:05 +0000
Received: from mail-qt0-f169.google.com ([209.85.216.169]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <martin.thomson@gmail.com>) id 1cR4vV-00040J-AI for ietf-http-wg@w3.org; Tue, 10 Jan 2017 22:30:00 +0000
Received: by mail-qt0-f169.google.com with SMTP id v23so179509218qtb.0 for <ietf-http-wg@w3.org>; Tue, 10 Jan 2017 14:29:37 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=3ectknp9U/fbaQ1o5PNzHYoLOQqUiZ1JBKS3KTA7xkw=; b=CmIWgmZoPfcZajkpRHq0JqEGOjtW3F/bL9FhQL/skhIoZVy4mRdXPSlYT77CjwP+jv hodEDXFbJHONCRu+Dt5qlljwctGs+lCY/28WINWNINRoPzkrs4xez2HXJVbPKXJydyUv EGCozIckTkwXLAjTS4X/jgF8nxihvq8cHfbg7TTQW1jeOqZq8AgfiBsJJ/Kfkn3oJvwU X4AFMOD0LEEuGCS38QjP73oribw5NYkc5KAcehlo2URZS0vPtYCHpdpDRjd/YlgBbFV2 Y54t8nmsEn3MOUGtT0/aWN/qaAWksrQbz72sxXpzsECwcRZo5RrI8qs2vz45ejmY/2s+ PXlA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=3ectknp9U/fbaQ1o5PNzHYoLOQqUiZ1JBKS3KTA7xkw=; b=jlNVI6bktkGX/o/ofvN77slWD3FMiPgazXnZbWfB5pThLoS/WKswWnZW1YkPPb4jlv yfwqpKkfECH1A5RA0C1sIjUJDu2sqlWaznkcYSqz1I7MLQ4W994MlLoEuX4o86d7vZ8C K5d93FSGv1BvNPdmMJI0zAuXHP91nRggV3a4xRGuIMy9rK4Lxz0T90LhyqKSsNipyrLB OqgNswhP2/veqy/IO/Uk0MN/4YNph5o+3VnkCxY5S16hfIjz7IGN7bH4qEnqY4ef7L6v bGahaCbHEbxIYARMQvaZPZmS4/c4rWuG6QWIPGufkvHl2gUOYil8hM84UuiD4yw2d3C/ knVA==
X-Gm-Message-State: AIkVDXKVKJv8+f+bf4bbnjOSt8Zal9P6+p/l2XBRPLGQpvCcXnL3aa2vQiZxYj2NvUtd1o80roPUtDv18HZGZg==
X-Received: by 10.200.35.14 with SMTP id a14mr4896770qta.159.1484087371467; Tue, 10 Jan 2017 14:29:31 -0800 (PST)
MIME-Version: 1.0
Received: by 10.140.19.112 with HTTP; Tue, 10 Jan 2017 14:29:30 -0800 (PST)
In-Reply-To: <201701101704.v0AH4cU7004434@shell.siilo.fmi.fi>
References: <CABkgnnWhc6ZdjgV5degiJuK-P6qSZk_uMjLm9zctyqdOSUaxPw@mail.gmail.com> <20161222060124.733EB1A95C@welho-filter4.welho.com> <CABkgnnVmHMPgBG6=GbN7iPWJQNJ46Nn6Cp39uZRB9zABSmS-2g@mail.gmail.com> <201612230744.uBN7ir0E002689@shell.siilo.fmi.fi> <201612230758.uBN7wndh003154@shell.siilo.fmi.fi> <CABkgnnXoTsKRozwo1rYhKjy0q1=q0DoCaVA-JW5tmBc-m1GOsw@mail.gmail.com> <201701101704.v0AH4cU7004434@shell.siilo.fmi.fi>
From: Martin Thomson <martin.thomson@gmail.com>
Date: Wed, 11 Jan 2017 11:29:30 +1300
Message-ID: <CABkgnnVecMwwo-E6d9tsf6tuUR0WTj_mejwTUigoQRL4GyN_3g@mail.gmail.com>
To: Kari Hurtta <hurtta-ietf@elmme-mailer.org>
Cc: HTTP working group mailing list <ietf-http-wg@w3.org>
Content-Type: text/plain; charset=UTF-8
Received-SPF: pass client-ip=209.85.216.169; envelope-from=martin.thomson@gmail.com; helo=mail-qt0-f169.google.com
X-W3C-Hub-Spam-Status: No, score=-5.8
X-W3C-Hub-Spam-Report: AWL=-0.230, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cR4vV-00040J-AI e9da12ae27e19a39c34cd0438ab915b9
X-Original-To: ietf-http-wg@w3.org
Subject: Re: (rephrasing, sorry for duplicate) | Re: draft-ietf-httpbis-encryption-encoding
Archived-At: <http://www.w3.org/mid/CABkgnnVecMwwo-E6d9tsf6tuUR0WTj_mejwTUigoQRL4GyN_3g@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33271
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 11 January 2017 at 06:04, Kari Hurtta <hurtta-ietf@elmme-mailer.org> wrote:
> Client may want keep track which alternative services succeed
> and which failed when reading /.well-known/http-opportunistic

On the one hand, if a server advertises alternatives that are broken,
that really is a server problem.  On the other, clients do these sorts
of things all the time to improve robustness, so that's entirely
reasonable to do.  I just don't think we need to *require* it.


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Tue Jan 10 22:41:18 2017
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 99810129489 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 10 Jan 2017 22:41:18 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.1
X-Spam-Level:
X-Spam-Status: No, score=-10.1 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 sjulLDVJh1Rx for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 10 Jan 2017 22:41:17 -0800 (PST)
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 070E6129418 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 10 Jan 2017 22:41:16 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cRCYB-0006iD-DH for ietf-http-wg-dist@listhub.w3.org; Wed, 11 Jan 2017 06:38:23 +0000
Resent-Date: Wed, 11 Jan 2017 06:38:23 +0000
Resent-Message-Id: <E1cRCYB-0006iD-DH@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <hurtta@siilo.fmi.fi>) id 1cRCY9-0006gY-VM for ietf-http-wg@listhub.w3.org; Wed, 11 Jan 2017 06:38:21 +0000
Received: from smtpvgate.fmi.fi ([193.166.223.36]) by titan.w3.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from <hurtta@siilo.fmi.fi>) id 1cRCY3-0006Rf-Lq for ietf-http-wg@w3.org; Wed, 11 Jan 2017 06:38:16 +0000
Received: from basaari.fmi.fi (basaari.fmi.fi [193.166.211.14])  (envelope-from hurtta@siilo.fmi.fi) by smtpVgate.fmi.fi (8.13.8/8.13.8/smtpgate-20161014/smtpVgate) with ESMTP id v0B6bk9n005663 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 11 Jan 2017 08:37:46 +0200
Received: from shell.siilo.fmi.fi   by basaari.fmi.fi  with ESMTP id v0B6bjeo007183 ; Wed, 11 Jan 2017 08:37:45 +0200
Received: from shell.siilo.fmi.fi ([127.0.0.1]) by shell.siilo.fmi.fi  with ESMTP id v0B6bjnm011489 ; Wed, 11 Jan 2017 08:37:45 +0200
Received:  by shell.siilo.fmi.fi  id v0B6bij1011488; Wed, 11 Jan 2017 08:37:44 +0200
Message-Id: <201701110637.v0B6bij1011488@shell.siilo.fmi.fi>
In-Reply-To: <CABkgnnVecMwwo-E6d9tsf6tuUR0WTj_mejwTUigoQRL4GyN_3g@mail.gmail.com>
References: <CABkgnnWhc6ZdjgV5degiJuK-P6qSZk_uMjLm9zctyqdOSUaxPw@mail.gmail.com> <20161222060124.733EB1A95C@welho-filter4.welho.com> <CABkgnnVmHMPgBG6=GbN7iPWJQNJ46Nn6Cp39uZRB9zABSmS-2g@mail.gmail.com> <201612230744.uBN7ir0E002689@shell.siilo.fmi.fi> <201612230758.uBN7wndh003154@shell.siilo.fmi.fi> <CABkgnnXoTsKRozwo1rYhKjy0q1=q0DoCaVA-JW5tmBc-m1GOsw@mail.gmail.com> <201701101704.v0AH4cU7004434@shell.siilo.fmi.fi> <CABkgnnVecMwwo-E6d9tsf6tuUR0WTj_mejwTUigoQRL4GyN_3g@mail.gmail.com>
To: Martin Thomson <martin.thomson@gmail.com>
Date: Wed, 11 Jan 2017 08:37:44 +0200 (EET)
Sender: hurtta@siilo.fmi.fi
From: Kari Hurtta <hurtta-ietf@elmme-mailer.org>
CC: Kari Hurtta <hurtta-ietf@elmme-mailer.org>, HTTP working group mailing list <ietf-http-wg@w3.org>
X-Mailer: ELM [version ME+ 2.5 PLalpha44]
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="US-ASCII"
X-Filter: smtpVgate.fmi.fi: 3 received headers rewritten with id 20170111/09346/01
X-Filter: smtpVgate.fmi.fi: ID 9366/01, 1 parts scanned for known viruses
X-Filter: basaari.fmi.fi: ID 42749/01, 1 parts scanned for known viruses
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (smtpVgate.fmi.fi [193.166.223.36]); Wed, 11 Jan 2017 08:37:46 +0200 (EET)
Received-SPF: none client-ip=193.166.223.36; envelope-from=hurtta@siilo.fmi.fi; helo=smtpVgate.fmi.fi
X-W3C-Hub-Spam-Status: No, score=-6.0
X-W3C-Hub-Spam-Report: AWL=1.059, BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-3.199, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1cRCY3-0006Rf-Lq c93db8071d5b74bbd4b6ae047f9da746
X-Original-To: ietf-http-wg@w3.org
Subject: draft-ietf-httpbis-http2-encryption (was wrong draft) | Re:  (rephrasing, sorry for duplicate) | Re:  draft-ietf-httpbis-encryption-encoding
Archived-At: <http://www.w3.org/mid/201701110637.v0B6bij1011488@shell.siilo.fmi.fi>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33272
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>

Martin Thomson <martin.thomson@gmail.com>: (Wed Jan 11 00:29:30 2017)
> On the one hand, if a server advertises alternatives that are broken,
> that really is a server problem.  On the other, clients do these sorts
> of things all the time to improve robustness, so that's entirely
> reasonable to do.  I just don't think we need to *require* it.

Yes, client needs that "Opportunistic Security for HTTP"
(draft-ietf-httpbis-http2-encryption) only to improve robustness.

Otherwise "HTTP Alternative Services" (RFC7838) is enough.

( Seems that I have "draft-ietf-httpbis-encryption-encoding"
  on subject when it should be "draft-ietf-httpbis-http2-encryption".
  Paste error? )

On the other hand "Opportunistic Security for HTTP" need specify
only that part where collaboration between client and server
is needed.

/ Kari Hurtta


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Tue Jan 10 23:56:19 2017
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 2D397129A59 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 10 Jan 2017 23:56:19 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.7
X-Spam-Level:
X-Spam-Status: No, score=-9.7 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_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, 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 Ws0V9mIa93bp for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 10 Jan 2017 23:56:18 -0800 (PST)
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 00CEF129A4B for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 10 Jan 2017 23:56:17 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cRDii-0002cI-TE for ietf-http-wg-dist@listhub.w3.org; Wed, 11 Jan 2017 07:53:20 +0000
Resent-Date: Wed, 11 Jan 2017 07:53:20 +0000
Resent-Message-Id: <E1cRDii-0002cI-TE@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <martin.thomson@gmail.com>) id 1cRDif-0002aD-5f for ietf-http-wg@listhub.w3.org; Wed, 11 Jan 2017 07:53:17 +0000
Received: from mail-qt0-f173.google.com ([209.85.216.173]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <martin.thomson@gmail.com>) id 1cRDiZ-00070C-AU for ietf-http-wg@w3.org; Wed, 11 Jan 2017 07:53:11 +0000
Received: by mail-qt0-f173.google.com with SMTP id l7so139337677qtd.1 for <ietf-http-wg@w3.org>; Tue, 10 Jan 2017 23:52:51 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=EKaVUrZSA7KvJCHLU9aTm4ltPUDg4X0t3BXf3ZM87Y8=; b=S37xySma+8bY4Wnm0UfYajtE2zVYi05bxYK8ZQs9T1sgzUYdgtdwQq4TUEPnOw6pfi x+GxvF5iIB3eLMc9IR6mUc0OF4yCSN3uh4R8jagW0PxnNZP3vfNgTRvNatO/MYZxCgVD sap5DnoDjYh9zY2V0fKaN1RWuSWdy0OBGX5Rgk2btIGIwU5MsXnWn1XuQuRS4FG3lFSe Duy2dt3Yw2symblCLdZjh4L40iZ5FxE/+flsHj+Jy+mTBEUxvXhm+E5PvwuRikpYT7Oc BsUmfygbIBq4jUnya0j9MiOP1bcjeFTYLjSQ4TvGhVemBtZQjcTvkl+mFRMQv+6f0do2 RouQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=EKaVUrZSA7KvJCHLU9aTm4ltPUDg4X0t3BXf3ZM87Y8=; b=JzSbgMmMw0ILJ3fw+ZABXBjGORAZe7dzHakMLFq/sKskVDzW0vGlrVn2TeSLsTJGlO F0Zz+pAGt+xdg5e6rx6FoEDimInYFotf+qDRhq4lxTBUtw02hsc6axeFAkueBq0pCpCj y6Y2Q3D7QojntYpWsv1OJmdFkV8jN1NhBWTreQYE82U++fgfTaGuZohaE8WePKdObWIh THeZ2F0iLQTbyZnsaulcftOdp4Dbqjh9JVwpHRS81bVj6gK1oIFFAZK1hYOqMVtYRf6o Lb70m1SwXp+X8eNcBFfK8EBrfRHLQo2OPLR7tYvxEpM+eIRqHwtMZ/WY1zXsC0Xiof9R ICgQ==
X-Gm-Message-State: AIkVDXIBT6Z3QGn5st9eUAXridm489g2kZ9NeHLyWRcZDAStJ57j3Gnn1ja3qRKglDJ883wj1k69tl4tJ2hsBA==
X-Received: by 10.200.35.14 with SMTP id a14mr6364084qta.159.1484121165455; Tue, 10 Jan 2017 23:52:45 -0800 (PST)
MIME-Version: 1.0
Received: by 10.140.19.112 with HTTP; Tue, 10 Jan 2017 23:52:44 -0800 (PST)
In-Reply-To: <201701110637.v0B6bij1011488@shell.siilo.fmi.fi>
References: <CABkgnnWhc6ZdjgV5degiJuK-P6qSZk_uMjLm9zctyqdOSUaxPw@mail.gmail.com> <20161222060124.733EB1A95C@welho-filter4.welho.com> <CABkgnnVmHMPgBG6=GbN7iPWJQNJ46Nn6Cp39uZRB9zABSmS-2g@mail.gmail.com> <201612230744.uBN7ir0E002689@shell.siilo.fmi.fi> <201612230758.uBN7wndh003154@shell.siilo.fmi.fi> <CABkgnnXoTsKRozwo1rYhKjy0q1=q0DoCaVA-JW5tmBc-m1GOsw@mail.gmail.com> <201701101704.v0AH4cU7004434@shell.siilo.fmi.fi> <CABkgnnVecMwwo-E6d9tsf6tuUR0WTj_mejwTUigoQRL4GyN_3g@mail.gmail.com> <201701110637.v0B6bij1011488@shell.siilo.fmi.fi>
From: Martin Thomson <martin.thomson@gmail.com>
Date: Wed, 11 Jan 2017 20:52:45 +1300
Message-ID: <CABkgnnU0ew62B2ow-zsop+Texg1qGkn9zkLwrmEEgvVuGoZZmg@mail.gmail.com>
To: Kari Hurtta <hurtta-ietf@elmme-mailer.org>
Cc: HTTP working group mailing list <ietf-http-wg@w3.org>
Content-Type: text/plain; charset=UTF-8
Received-SPF: pass client-ip=209.85.216.173; envelope-from=martin.thomson@gmail.com; helo=mail-qt0-f173.google.com
X-W3C-Hub-Spam-Status: No, score=-6.1
X-W3C-Hub-Spam-Report: AWL=0.120, 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, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cRDiZ-00070C-AU 5d22f678a14581f0e69cce2d7c54aa91
X-Original-To: ietf-http-wg@w3.org
Subject: Re: draft-ietf-httpbis-http2-encryption (was wrong draft) | Re:  (rephrasing, sorry for duplicate) | Re: draft-ietf-httpbis-encryption-encoding
Archived-At: <http://www.w3.org/mid/CABkgnnU0ew62B2ow-zsop+Texg1qGkn9zkLwrmEEgvVuGoZZmg@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33273
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>

Thanks for confirming.  I think that this closes the issue.  Is that right?

(And don't worry about the title, I saw draft-ietf-..... and didn't
even notice.)

On 11 January 2017 at 19:37, Kari Hurtta <hurtta-ietf@elmme-mailer.org> wrote:
> Martin Thomson <martin.thomson@gmail.com>: (Wed Jan 11 00:29:30 2017)
>> On the one hand, if a server advertises alternatives that are broken,
>> that really is a server problem.  On the other, clients do these sorts
>> of things all the time to improve robustness, so that's entirely
>> reasonable to do.  I just don't think we need to *require* it.
>
> Yes, client needs that "Opportunistic Security for HTTP"
> (draft-ietf-httpbis-http2-encryption) only to improve robustness.
>
> Otherwise "HTTP Alternative Services" (RFC7838) is enough.
>
> ( Seems that I have "draft-ietf-httpbis-encryption-encoding"
>   on subject when it should be "draft-ietf-httpbis-http2-encryption".
>   Paste error? )
>
> On the other hand "Opportunistic Security for HTTP" need specify
> only that part where collaboration between client and server
> is needed.
>
> / Kari Hurtta


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Wed Jan 11 21:20:39 2017
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 AC40F12945D for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 11 Jan 2017 21:20:39 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.1
X-Spam-Level:
X-Spam-Status: No, score=-10.1 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 QWASd1rS_6cz for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 11 Jan 2017 21:20:37 -0800 (PST)
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 78EBC12946C for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 11 Jan 2017 21:20:37 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cRXl3-0006k2-Ic for ietf-http-wg-dist@listhub.w3.org; Thu, 12 Jan 2017 05:17:05 +0000
Resent-Date: Thu, 12 Jan 2017 05:17:05 +0000
Resent-Message-Id: <E1cRXl3-0006k2-Ic@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <hurtta@siilo.fmi.fi>) id 1cRXl1-0006iq-PK for ietf-http-wg@listhub.w3.org; Thu, 12 Jan 2017 05:17:03 +0000
Received: from smtpvgate.fmi.fi ([193.166.223.36]) by titan.w3.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from <hurtta@siilo.fmi.fi>) id 1cRXkv-0002D5-Dt for ietf-http-wg@w3.org; Thu, 12 Jan 2017 05:16:58 +0000
Received: from souk.fmi.fi (souk.fmi.fi [193.166.211.113])  (envelope-from hurtta@siilo.fmi.fi) by smtpVgate.fmi.fi (8.13.8/8.13.8/smtpgate-20161014/smtpVgate) with ESMTP id v0C5GTfk001661 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 12 Jan 2017 07:16:29 +0200
Received: from shell.siilo.fmi.fi   by souk.fmi.fi  with ESMTP id v0C5GTN6002631 ; Thu, 12 Jan 2017 07:16:29 +0200
Received: from shell.siilo.fmi.fi ([127.0.0.1]) by shell.siilo.fmi.fi  with ESMTP id v0C5GSZR024859 ; Thu, 12 Jan 2017 07:16:28 +0200
Received:  by shell.siilo.fmi.fi  id v0C5GSgl024858; Thu, 12 Jan 2017 07:16:28 +0200
Message-Id: <201701120516.v0C5GSgl024858@shell.siilo.fmi.fi>
In-Reply-To: <CABkgnnU0ew62B2ow-zsop+Texg1qGkn9zkLwrmEEgvVuGoZZmg@mail.gmail.com>
References: <CABkgnnWhc6ZdjgV5degiJuK-P6qSZk_uMjLm9zctyqdOSUaxPw@mail.gmail.com> <20161222060124.733EB1A95C@welho-filter4.welho.com> <CABkgnnVmHMPgBG6=GbN7iPWJQNJ46Nn6Cp39uZRB9zABSmS-2g@mail.gmail.com> <201612230744.uBN7ir0E002689@shell.siilo.fmi.fi> <201612230758.uBN7wndh003154@shell.siilo.fmi.fi> <CABkgnnXoTsKRozwo1rYhKjy0q1=q0DoCaVA-JW5tmBc-m1GOsw@mail.gmail.com> <201701101704.v0AH4cU7004434@shell.siilo.fmi.fi> <CABkgnnVecMwwo-E6d9tsf6tuUR0WTj_mejwTUigoQRL4GyN_3g@mail.gmail.com> <201701110637.v0B6bij1011488@shell.siilo.fmi.fi> <CABkgnnU0ew62B2ow-zsop+Texg1qGkn9zkLwrmEEgvVuGoZZmg@mail.gmail.com>
To: Martin Thomson <martin.thomson@gmail.com>
Date: Thu, 12 Jan 2017 07:16:28 +0200 (EET)
Sender: hurtta@siilo.fmi.fi
From: Kari Hurtta <hurtta-ietf@elmme-mailer.org>
CC: Kari Hurtta <hurtta-ietf@elmme-mailer.org>, HTTP working group mailing list <ietf-http-wg@w3.org>
X-Mailer: ELM [version ME+ 2.5 PLalpha44]
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="US-ASCII"
X-Filter: smtpVgate.fmi.fi: 3 received headers rewritten with id 20170112/12022/01
X-Filter: smtpVgate.fmi.fi: ID 12042/01, 1 parts scanned for known viruses
X-Filter: souk.fmi.fi: ID 153350/01, 1 parts scanned for known viruses
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (smtpVgate.fmi.fi [193.166.223.36]); Thu, 12 Jan 2017 07:16:29 +0200 (EET)
Received-SPF: none client-ip=193.166.223.36; envelope-from=hurtta@siilo.fmi.fi; helo=smtpVgate.fmi.fi
X-W3C-Hub-Spam-Status: No, score=-6.1
X-W3C-Hub-Spam-Report: AWL=0.989, BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-3.199, URIBL_BLOCKED=0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1cRXkv-0002D5-Dt 38707236d0b0d8f0d736eb3cdca30731
X-Original-To: ietf-http-wg@w3.org
Subject: Re: draft-ietf-httpbis-http2-encryption (was wrong draft) |  Re: (rephrasing, sorry for duplicate) | Re:  draft-ietf-httpbis-encryption-encoding
Archived-At: <http://www.w3.org/mid/201701120516.v0C5GSgl024858@shell.siilo.fmi.fi>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33274
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>

Martin Thomson <martin.thomson@gmail.com>: (Wed Jan 11 09:52:45 2017)
> Thanks for confirming.  I think that this closes the issue.  Is that right?


This feels like trap. Perhaps no normative requirement, but some 
warning may be on place (both clients implementators and server
administrators).

https://github.com/httpwg/http-extensions/blob/35609f8d621a3156031a93a5b118d53a5696f396/draft-ietf-httpbis-http2-encryption.md#the-http-opportunistic-well-known-uri-well-known

You added note about another trap:

| Clients that use cached http-opportunistic responses MUST ensure that their cache is 
| cleared of any responses that were acquired over an unauthenticated connection. 
| Revalidating an unauthenticated response using an authenticated connection does not 
| ensure the integrity of the response.

Perhaps:

  Using cached http-opportunistic responses as only criteria for accepting
  provided alternative service can lead situation where alternative
  server, which previously failed to provide /.well-known/http-opportunistic,
  is used by client.

  ( And something about that client can ignore any alternative service even
    when it accpets some other alternative services. And someting that
    server administartor need ensure that all alternative services are
    equally capable. )


This almost feel like that /.well-known/http-opportunistic need
to be cached separately for different alternative servises, but
think that this is not allowed. At least that becomes messy.

> (And don't worry about the title, I saw draft-ietf-..... and didn't
> even notice.)

I probably looked that there was "encyption" on somewhere on name:
'draft-ietf-httpbis' + 'encryption'. 

That is somewhat confusing when there
is now two draft with that pattern.

/ Kari Hurtta
 
> On 11 January 2017 at 19:37, Kari Hurtta <hurtta-ietf@elmme-mailer.org> wrote:
> > Martin Thomson <martin.thomson@gmail.com>: (Wed Jan 11 00:29:30 2017)
> >> On the one hand, if a server advertises alternatives that are broken,
> >> that really is a server problem.  On the other, clients do these sorts
> >> of things all the time to improve robustness, so that's entirely
> >> reasonable to do.  I just don't think we need to *require* it.
> >
> > Yes, client needs that "Opportunistic Security for HTTP"
> > (draft-ietf-httpbis-http2-encryption) only to improve robustness.
> >
> > Otherwise "HTTP Alternative Services" (RFC7838) is enough.
> >
> > ( Seems that I have "draft-ietf-httpbis-encryption-encoding"
> >   on subject when it should be "draft-ietf-httpbis-http2-encryption".
> >   Paste error? )
> >
> > On the other hand "Opportunistic Security for HTTP" need specify
> > only that part where collaboration between client and server
> > is needed.
> >
> > / Kari Hurtta


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Thu Jan 12 03:19:49 2017
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 98B901293DB for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 12 Jan 2017 03:19:49 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.6
X-Spam-Level:
X-Spam-Status: No, score=-9.6 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 BF_2d0TA7OPz for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 12 Jan 2017 03:19:48 -0800 (PST)
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 53F47120725 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 12 Jan 2017 03:19:47 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cRdN4-0007BT-9n for ietf-http-wg-dist@listhub.w3.org; Thu, 12 Jan 2017 11:16:42 +0000
Resent-Date: Thu, 12 Jan 2017 11:16:42 +0000
Resent-Message-Id: <E1cRdN4-0007BT-9n@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <julian.reschke@gmx.de>) id 1cRdN2-0007Am-6A for ietf-http-wg@listhub.w3.org; Thu, 12 Jan 2017 11:16:40 +0000
Received: from mout.gmx.net ([212.227.17.21]) by titan.w3.org with esmtps (TLS1.2:DHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <julian.reschke@gmx.de>) id 1cRdMv-0001Fl-NB for ietf-http-wg@w3.org; Thu, 12 Jan 2017 11:16:34 +0000
Received: from [192.168.1.197] ([5.10.171.186]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0LpObx-1cvCsg1seL-00f7qJ for <ietf-http-wg@w3.org>; Thu, 12 Jan 2017 12:16:03 +0100
To: HTTP Working Group <ietf-http-wg@w3.org>
From: Julian Reschke <julian.reschke@gmx.de>
Message-ID: <061139bc-7884-cee1-eb23-607e6a3ae7ce@gmx.de>
Date: Thu, 12 Jan 2017 12:16:03 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Provags-ID: V03:K0:WmS4Sz/2bJvttgiej6X+vrUTFQ7fV/s6C+erTa/e615XkDuZdOH wLWZc8RJ1VJB0GXJJs5PE6MWN58vZKTjGYyuGzk90JqEclxSGzOuVcAOkk0o8Ejz1yCOAm1 rBllhep77Kx2BlwxHNOMHJ9bk4jTL8q2iW/c7EDGxjkWTmYcNaIwC1xnxVT9QF/MbE5MGSh sB2y/zxjff0fhTt5ASizA==
X-UI-Out-Filterresults: notjunk:1;V01:K0:78tT0VI7CpY=:GJuDOxpVqt61mE+7sZzoQ5 rb3NStJtSc77cofqpgxKmXNdwtZtFHGGrhJ6EIYSRTPjgpECeLWKPbznHanHVFo5QdMWAHVBi R5gHh2al2hG6tkBVwJUEqnOLaF1zszWwbJBGI0n7ZnzHT7yLm776A3DZYCuACCfrIK2vpFHej 9W0oxKVaQbKKV/LfrLYulKjidqynglw+LhSf75Ul+f+579/X80NoGMTkmmXiO44RVY4higTCb ZQcFb2SYNPtdnXzrRr4KOFcenrMXep+DB++gibaK9ZCK2kRuADyhabzFjJ2qEjdbi33ONkNkN tq6sDF7qOJp6140QSi7D8RjxxOHFamSKQuGMTZsg7m5gJjDnewcay9HfukYjQQAo2odUAqXGP UT5UewTAzSc8fwNJ1CFircDoX0BH0vLmGgu1rlVpg9Qf2TmA+0SJHgIeqUokaqrts94eVK5ta l+D+RLfU2jcb4R27PnEXdIT+ZKBuS+hE0qP9NdPIdPXEWMQ8r8Tx2QnrUglHdP6lyM8y/a2xi kq2G3H93qw93exjY1sQB3lv1qHcQfrqEzAVzkielwKN2LHkP0Ps3S3tWyDAdtD+IsiwCy09IR oBFewT3TW/jtsfVzwsROxOpSGJ15++fi13Rbq2vYScekh4zjfkf3r8QxmWbPTBvYlV6EaxW62 xYnQvPoEQh2LKXAU2Dw1MXwhjXaT8XrF3bOf7qHknYiqZt/4sGRI/StLZ9FTeOSb3YpSED7Kt SJGVQ0vOCiz9IWqXyDfqlGFPoSMnbsJIFt3yzGO9M/Frs1jNGtRqYXQZdJRkgWyklPIcNTDnP 418BzE2DZNqKGT6nka2THfr5L9kJseMYOLGZ1rucLX2QWMG9g9lCDr6XREaIyumv8wBpekJJr VPg6UEZdMLtFop5cFYryj+Lx4stvF52qBCHQ1WduxC8QShFYCrjnIYpA6yUs2PNkCMAc1woHp JIlwIvkC6JcHoLy1k0l7mOfX5gr0yh+pyVxs+JiC/LjgukoLSZfgzi4igK/9SpQsfo+hoeb2D f6zLWh2gWsuQKkdd5bdMi3aFs8OKq6MSsZKqDfJjnba19shuE/QMI3QI8CU66FS1Rw==
Received-SPF: pass client-ip=212.227.17.21; envelope-from=julian.reschke@gmx.de; helo=mout.gmx.net
X-W3C-Hub-Spam-Status: No, score=-6.4
X-W3C-Hub-Spam-Report: AWL=-0.520, BAYES_05=-0.5, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-1.156, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1cRdMv-0001Fl-NB e91e3c96ae3c2cd7f8230fba93569a3b
X-Original-To: ietf-http-wg@w3.org
Subject: NEW PREFERENCE - depth-noroot (request for expert review)
Archived-At: <http://www.w3.org/mid/061139bc-7884-cee1-eb23-607e6a3ae7ce@gmx.de>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33275
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>

Hi there,

draft-murchison-webdav-prefer-13 defines a new "prefer" directive (RFC 
7240) in 
<https://tools.ietf.org/html/draft-murchison-webdav-prefer-13#section-4>.

Please review and provide feedback.

Best regards, Julian



From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Thu Jan 12 03:34:02 2017
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 2B0961295B9 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 12 Jan 2017 03:34:02 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.6
X-Spam-Level:
X-Spam-Status: No, score=-9.6 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 fxGiq1g3lg-o for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 12 Jan 2017 03:34:01 -0800 (PST)
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 F05081295AF for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 12 Jan 2017 03:34:00 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cRdbd-0008P2-4T for ietf-http-wg-dist@listhub.w3.org; Thu, 12 Jan 2017 11:31:45 +0000
Resent-Date: Thu, 12 Jan 2017 11:31:45 +0000
Resent-Message-Id: <E1cRdbd-0008P2-4T@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <julian.reschke@gmx.de>) id 1cRdbb-0008OH-Bl for ietf-http-wg@listhub.w3.org; Thu, 12 Jan 2017 11:31:43 +0000
Received: from mout.gmx.net ([212.227.17.20]) by mimas.w3.org with esmtps (TLS1.2:DHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <julian.reschke@gmx.de>) id 1cRdbQ-0001wd-Oc for ietf-http-wg@w3.org; Thu, 12 Jan 2017 11:31:37 +0000
Received: from [192.168.1.197] ([5.10.171.186]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MFu0Y-1cCmHG3MGM-00EtiH for <ietf-http-wg@w3.org>; Thu, 12 Jan 2017 12:31:04 +0100
To: HTTP Working Group <ietf-http-wg@w3.org>
From: Julian Reschke <julian.reschke@gmx.de>
Message-ID: <0e0377e3-45df-89ba-37ea-fc81132533bb@gmx.de>
Date: Thu, 12 Jan 2017 12:31:05 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Provags-ID: V03:K0:+vBD1Z0vCNFSgoeOCWzZUOCCBHi8qkgx4C9zseJfqOrdVTkCfJk Xgamb7e2WdXo6jZ8i8lUI4i3rLX1NJmKbiISdd0WzArYoEXHayReKZElFZIesRh34dzGhwD whXKscDOUoBfn4v4niKo6VpJdsOsh3ZWBfNGpfY+PQE5UhzMdymBuVQA1mZ6dFKPMbtm3XV NXxah8+ldft8NQxFtAUkA==
X-UI-Out-Filterresults: notjunk:1;V01:K0:hBWAMBzp0TA=:wtktGSXy3Z3M8yKp0CJJBR BWCZiwdva4ACUigH4MeTYPT3FlrOpvzO8JjUIk82FQtHtzELcnlpLTCVlVez1mKb5Ga8+Tccq 8KFd7VNHrmOVuksuHuRLYBqkFQfF5SA87UuNthoEL31lOQpuTidUMsOl94kyuwDUMX4YnL5A7 HW1pSh7tGeFjylbkXE3Oz0/zvTIgwkjLautcETKel0BJUW/vR6ZZSkV8HQS5szhQUPfTDCzuK Y00fgmzmIwyVXNlnzGeEQ7ko4XEwi2h3+QF3nKPO6+JM4TuSdOPGyLQFbsSq0RLlPuA6xRbhy ug2RrogDTFtCx1/B92uHQBnjWY3o1SjkV+c+q71yJRIqp4Ql44YVL0eP524xe4rjcMTw69CAC fWZcIt0R83LDtJkTbvOmEPlcg+QbDcvhTWb6M2oSgJvlpfmhHbXjfXKogKATv+zcaNxi5TP0F CmPuOPlD6xxj+dg+Fq/LM1FQdXCNEkpQ6ZXRc5V57ls2FbxT3Dgpk7ULxMCVjjaL2IfziNb1y 5h82HcEV88SRCpUZ0USRGxl5c1g3I1QFUwuSGMw3Nn1TuGabPdqX6s8mKXOvK/4RIE6VFL/hz jTWytq1P35Vxl2jZvi8YVvkyMmL/3kCQ7eECeCc6lGLzZJb6JgLdopo/blWuJ6/bMfor+XoTo E9s/8T6bv3nzsXi0A6zrZ438clG6cgNucxT/y5C1FnCP3rBfWcDl1doTHRvR0hb1lhyU5Doc7 LZDEji86AXdQTSoRGYJ65+Q81VK2Ds188VDIa5k4THQxBGu5qLxoPJmY69ut/z0TgbNZMA2Wu tZ9O5K5
Received-SPF: pass client-ip=212.227.17.20; envelope-from=julian.reschke@gmx.de; helo=mout.gmx.net
X-W3C-Hub-Spam-Status: No, score=-6.4
X-W3C-Hub-Spam-Report: AWL=-0.520, BAYES_05=-0.5, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-1.156, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cRdbQ-0001wd-Oc d341c348f7ecbf662243ba12b78abdb1
X-Original-To: ietf-http-wg@w3.org
Subject: UPDATE TO PREFERENCE - return=representation (request for expert  review)
Archived-At: <http://www.w3.org/mid/0e0377e3-45df-89ba-37ea-fc81132533bb@gmx.de>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33276
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>

Hi there,

draft-murchison-webdav-prefer-13 updates the definition of the 
"return=representation" directive (RFC 7240) in 
<https://tools.ietf.org/html/draft-murchison-webdav-prefer-13#section-3>, 
for instance with respect to cases where a conditional request failed.

Please review and provide feedback.

Best regards, Julian


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Thu Jan 12 03:47:24 2017
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 EA5721295BD for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 12 Jan 2017 03:47:24 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.1
X-Spam-Level:
X-Spam-Status: No, score=-10.1 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 HL0grpWqxyPh for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 12 Jan 2017 03:47:21 -0800 (PST)
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 C060D1295BC for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 12 Jan 2017 03:47:21 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cRdoP-0005xa-7b for ietf-http-wg-dist@listhub.w3.org; Thu, 12 Jan 2017 11:44:57 +0000
Resent-Date: Thu, 12 Jan 2017 11:44:57 +0000
Resent-Message-Id: <E1cRdoP-0005xa-7b@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <squid3@treenet.co.nz>) id 1cRdoL-0005wn-8G for ietf-http-wg@listhub.w3.org; Thu, 12 Jan 2017 11:44:53 +0000
Received: from [121.99.228.82] (helo=treenet.co.nz) by titan.w3.org with esmtp (Exim 4.84_2) (envelope-from <squid3@treenet.co.nz>) id 1cRdoE-00027k-61 for ietf-http-wg@w3.org; Thu, 12 Jan 2017 11:44:48 +0000
Received: from [192.168.20.251] (unknown [121.98.40.15]) by treenet.co.nz (Postfix) with ESMTP id 53B96E6EA9 for <ietf-http-wg@w3.org>; Fri, 13 Jan 2017 00:44:15 +1300 (NZDT)
To: ietf-http-wg@w3.org
References: <061139bc-7884-cee1-eb23-607e6a3ae7ce@gmx.de>
From: Amos Jeffries <squid3@treenet.co.nz>
Message-ID: <f90cdf37-d49b-f7ec-fa8c-1230c3cd5603@treenet.co.nz>
Date: Fri, 13 Jan 2017 00:44:09 +1300
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0
MIME-Version: 1.0
In-Reply-To: <061139bc-7884-cee1-eb23-607e6a3ae7ce@gmx.de>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Received-SPF: pass client-ip=121.99.228.82; envelope-from=squid3@treenet.co.nz; helo=treenet.co.nz
X-W3C-Hub-Spam-Status: No, score=-4.3
X-W3C-Hub-Spam-Report: AWL=-1.172, BAYES_00=-1.9, RDNS_NONE=0.793, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1cRdoE-00027k-61 0b636acf7accd9524874e5f21013ff8e
X-Original-To: ietf-http-wg@w3.org
Subject: Re: NEW PREFERENCE - depth-noroot (request for expert review)
Archived-At: <http://www.w3.org/mid/f90cdf37-d49b-f7ec-fa8c-1230c3cd5603@treenet.co.nz>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33277
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 13/01/2017 12:16 a.m., Julian Reschke wrote:
> Hi there,
> 
> draft-murchison-webdav-prefer-13 defines a new "prefer" directive (RFC
> 7240) in
> <https://tools.ietf.org/html/draft-murchison-webdav-prefer-13#section-4>.
> 
> Please review and provide feedback.
> 
> Best regards, Julian
> 

After reading the preference section I am left wondering:

1) what does Appendix B.4 have to do with it?
 there is no use of the preference in the examples.

2) what happens when Depth:0 is given in the request with depth-noroot?

3) what happens when the Depth header is omitted in the request with
depth-noroot?

4) what methods this preference is actually valid for?
 The depth-noroot text references Depth header existence *or implicit*,
but the Depth header leaves it open and explicitly says any method can
re-define Depth. That does not bode well for implementations getting
interoperability correct. Particularly for the impliciat-Depth methods.

Amos



From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Thu Jan 12 04:21:13 2017
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 8B7321295C3 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 12 Jan 2017 04:21:13 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.6
X-Spam-Level:
X-Spam-Status: No, score=-9.6 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 ySc8J9pxmDWJ for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 12 Jan 2017 04:21:11 -0800 (PST)
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 CA88C1294D7 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 12 Jan 2017 04:21:11 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cReKc-0003rR-7V for ietf-http-wg-dist@listhub.w3.org; Thu, 12 Jan 2017 12:18:14 +0000
Resent-Date: Thu, 12 Jan 2017 12:18:14 +0000
Resent-Message-Id: <E1cReKc-0003rR-7V@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <julian.reschke@gmx.de>) id 1cReKZ-0003qf-Fx for ietf-http-wg@listhub.w3.org; Thu, 12 Jan 2017 12:18:11 +0000
Received: from mout.gmx.net ([212.227.17.21]) by mimas.w3.org with esmtps (TLS1.2:DHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <julian.reschke@gmx.de>) id 1cReKS-0004Hc-GM for ietf-http-wg@w3.org; Thu, 12 Jan 2017 12:18:06 +0000
Received: from [192.168.1.197] ([5.10.171.186]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0LnkiR-1cwqs11RLb-00hrpr; Thu, 12 Jan 2017 13:17:14 +0100
To: Amos Jeffries <squid3@treenet.co.nz>, ietf-http-wg@w3.org
References: <061139bc-7884-cee1-eb23-607e6a3ae7ce@gmx.de> <f90cdf37-d49b-f7ec-fa8c-1230c3cd5603@treenet.co.nz>
From: Julian Reschke <julian.reschke@gmx.de>
Message-ID: <a05f337f-d32c-da21-c08e-bd155776059a@gmx.de>
Date: Thu, 12 Jan 2017 13:17:11 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0
MIME-Version: 1.0
In-Reply-To: <f90cdf37-d49b-f7ec-fa8c-1230c3cd5603@treenet.co.nz>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Provags-ID: V03:K0:NUOwv/LJTXnLwQNwf5rHCd+2a/XbZ48aCwamjan/WV04eP/1ezy Ub34Fd/7RS4exmA3FMqU5qaM13iiKqFJhwMic73KGkPx3WzgMqv5PhyIc7g3CzfPf9U16f9 x0R8hXcOW2NEHHL1i5RaSoIdYZeDsg+EQNzHeTewepCztyjT8yhqrtXFZC+ZVP1cN9Xhu0S w6hKwUnZk8+rnuANS0o8w==
X-UI-Out-Filterresults: notjunk:1;V01:K0:OuPj7zV1sW8=:452fXdWczsdLq2NQ0F+0O3 jdrKZ38Txd/eh8RgQXcvvsWWK+HnfgYdEKP0GSx6fJDzl+zgw5n6NX+6y4aqHd0ZeSVURYxlt ujZVlAUmEryXF0kSaQ5fNzf4rwVzYVtOk8fmpqnnRQzRyGtPnKzVYB4zulI+XWx6Yd67QWDyp jh7Oa5qWdMnCOTvg024SXcxzwWiJ1vsCjh8wvJG8PszK5I93e4etJTUCsfsH4r+LzjM3GbKPL 0wP+lkd2KwaRzfG9BleZj1R4nWJaKsXowVL2z4LZjKa4QrRNmJj9fYEasvFCKJKFRaYb1B36a DTnUW4xLS+uW1qt7BBvVpZ1N2REahopuR5CnRDdPzVyH7knm3FiCbDJAnK1xYvbdchzXSfYj3 iKpf4iHG8AFNfxvm8c1R4JnI7KLwW8vLnS/6zELs21IEhAU+NaqOI3YHh7Hx4Xwnfunpv7yfC y7UjkNRFnuTAy+hGn9arIyq3xQYTlUbaXyI+R7HLfjJbh+pxFloRxvTfqR4+L8/00tMFInPDQ IRxRvYe+5OQJ6d5NSKThH6xji2NgvYhjwLgk2YqSU0SAUBB04VIEGySEXA/kgRybGgEYtImz3 AcZMaiDI9iRYlKu25scL0/x4EZICVQF5YwNzQ3xdONog/YxQT/LuJUc1O6DL+KHermkGJE+q2 oZ+nS2aqUUT2olqFauFuE/oKiZSYYWJn7xZoVqWZ0hw9Tf5uaGE2TjL9wjvC2/QxoS99RDwCm QP1WpDvWUGe5qIiGXcUlXI12CXNBNHEPsRGKur7pe/eY7gHgb662bRJ+bZ6McK8f9qVrpiNQu /xXkBCv8MUI5zljqHJ7RL6CguPecWfm+jWrDkaiVbNjEaqHoggrjjLh9bsBBAJBk2KkT2bIEI 7AiPIS+P3rSTEj8zxz5KaxoMXwJjp7F4VmcMBOB4Ogn2slct1twPXIfL7KGP9StF25r8uHbMa NxYuOSGCmvQqqi4xG7mDJPQcGvlsk2PMFfIpDWnJ+avC167WvCHBfYwiafUdW3gKwSIrb+bAo sO6VHWZ9iH2KJH5zz+870Uk=
Received-SPF: pass client-ip=212.227.17.21; envelope-from=julian.reschke@gmx.de; helo=mout.gmx.net
X-W3C-Hub-Spam-Status: No, score=-6.1
X-W3C-Hub-Spam-Report: AWL=-0.705, BAYES_20=-0.001, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-1.156, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cReKS-0004Hc-GM 1b433d37374e1b21d395cf19862fdd89
X-Original-To: ietf-http-wg@w3.org
Subject: Re: NEW PREFERENCE - depth-noroot (request for expert review)
Archived-At: <http://www.w3.org/mid/a05f337f-d32c-da21-c08e-bd155776059a@gmx.de>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33278
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 2017-01-12 12:44, Amos Jeffries wrote:
> On 13/01/2017 12:16 a.m., Julian Reschke wrote:
>> Hi there,
>>
>> draft-murchison-webdav-prefer-13 defines a new "prefer" directive (RFC
>> 7240) in
>> <https://tools.ietf.org/html/draft-murchison-webdav-prefer-13#section-4>.
>>
>> Please review and provide feedback.
>>
>> Best regards, Julian
>>
>
> After reading the preference section I am left wondering:
>
> 1) what does Appendix B.4 have to do with it?
>  there is no use of the preference in the examples.

My copy says Appendix B.1...

> 2) what happens when Depth:0 is given in the request with depth-noroot?

It says:

>    This preference is only intended to be used with WebDAV methods whose
>    definitions explicitly provide support for the Depth [RFC4918] header
>    field.  Furthermore, this preference only applies when the Depth
>    header field has a value of "1" or "infinity" (either implicitly or
>    explicitly).

So it would be ignored.

> 3) what happens when the Depth header is omitted in the request with
> depth-noroot?

Defaults apply, as stated above...

> 4) what methods this preference is actually valid for?
>  The depth-noroot text references Depth header existence *or implicit*,
> but the Depth header leaves it open and explicitly says any method can
> re-define Depth. That does not bode well for implementations getting
> interoperability correct. Particularly for the impliciat-Depth methods.

I don't see a problem here. The preference is defines for methods that 
use the Depth: request header field (including future ones). Clients can 
always check whether the preference was applied.

Best regards, Julian

(But thanks for checking!)



From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Thu Jan 12 12:30:12 2017
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 6386D1294CF for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 12 Jan 2017 12:30:12 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.1
X-Spam-Level:
X-Spam-Status: No, score=-10.1 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 Ay6Hi-9hb7fO for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 12 Jan 2017 12:30:10 -0800 (PST)
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 A720F1293F0 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 12 Jan 2017 12:30:10 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cRlxm-00083C-BA for ietf-http-wg-dist@listhub.w3.org; Thu, 12 Jan 2017 20:27:10 +0000
Resent-Date: Thu, 12 Jan 2017 20:27:10 +0000
Resent-Message-Id: <E1cRlxm-00083C-BA@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <internet-drafts@ietf.org>) id 1cRlxj-00082G-9p for ietf-http-wg@listhub.w3.org; Thu, 12 Jan 2017 20:27:07 +0000
Received: from mail.ietf.org ([4.31.198.44]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <internet-drafts@ietf.org>) id 1cRlxd-00088o-1z for ietf-http-wg@w3.org; Thu, 12 Jan 2017 20:27:02 +0000
Received: from ietfa.amsl.com (localhost [IPv6:::1]) by ietfa.amsl.com (Postfix) with ESMTP id 7BC101293F0; Thu, 12 Jan 2017 12:26:34 -0800 (PST)
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
From: internet-drafts@ietf.org
To: <i-d-announce@ietf.org>
Cc: ietf-http-wg@w3.org
X-Test-IDTracker: no
X-IETF-IDTracker: 6.40.3
Auto-Submitted: auto-generated
Message-ID: <148425279446.2895.9908750813373558908.idtracker@ietfa.amsl.com>
Date: Thu, 12 Jan 2017 12:26:34 -0800
Received-SPF: pass client-ip=4.31.198.44; envelope-from=internet-drafts@ietf.org; helo=mail.ietf.org
X-W3C-Hub-Spam-Status: No, score=-7.7
X-W3C-Hub-Spam-Report: AWL=1.417, BAYES_05=-0.5, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-1.156, RP_MATCHES_RCVD=-3.199, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1cRlxd-00088o-1z 1042d029c9971ddd9c3cc9dac5615eb6
X-Original-To: ietf-http-wg@w3.org
Subject: I-D Action: draft-ietf-httpbis-immutable-00.txt
Archived-At: <http://www.w3.org/mid/148425279446.2895.9908750813373558908.idtracker@ietfa.amsl.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33279
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>

A New Internet-Draft is available from the on-line Internet-Drafts directories.
This draft is a work item of the Hypertext Transfer Protocol of the IETF.

        Title           : HTTP Immutable Responses
        Author          : Patrick McManus
	Filename        : draft-ietf-httpbis-immutable-00.txt
	Pages           : 5
	Date            : 2017-01-12

Abstract:
   The immutable HTTP response Cache-Control extension allows servers to
   identify resources that will not be updated during their freshness
   lifetime.  This assures that a client never needs to revalidate a
   cached fresh resource to be certain it has not been modified.


The IETF datatracker status page for this draft is:
https://datatracker.ietf.org/doc/draft-ietf-httpbis-immutable/

There's also a htmlized version available at:
https://tools.ietf.org/html/draft-ietf-httpbis-immutable-00


Please note that it may take a couple of minutes from the time of submission
until the htmlized version and diff are available at tools.ietf.org.

Internet-Drafts are also available by anonymous FTP at:
ftp://ftp.ietf.org/internet-drafts/



From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Thu Jan 12 14:14:03 2017
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 060B91294B7 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 12 Jan 2017 14:14:03 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.619
X-Spam-Level:
X-Spam-Status: No, score=-9.619 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 p1wLxdQ64yNZ for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 12 Jan 2017 14:13:56 -0800 (PST)
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 415AA12952D for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 12 Jan 2017 14:13:56 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cRnaL-00080W-Mu for ietf-http-wg-dist@listhub.w3.org; Thu, 12 Jan 2017 22:11:05 +0000
Resent-Date: Thu, 12 Jan 2017 22:11:05 +0000
Resent-Message-Id: <E1cRnaL-00080W-Mu@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <pmcmanus@mozilla.com>) id 1cRnaH-0007zk-Kb for ietf-http-wg@listhub.w3.org; Thu, 12 Jan 2017 22:11:01 +0000
Received: from www.ducksong.com ([192.155.95.102] helo=linode64.ducksong.com) by mimas.w3.org with esmtp (Exim 4.84_2) (envelope-from <pmcmanus@mozilla.com>) id 1cRna9-0006ab-QN for ietf-http-wg@w3.org; Thu, 12 Jan 2017 22:10:56 +0000
Received: from mail-qt0-f178.google.com (mail-qt0-f178.google.com [209.85.216.178]) by linode64.ducksong.com (Postfix) with ESMTPSA id E31AD3A0A9 for <ietf-http-wg@w3.org>; Thu, 12 Jan 2017 17:10:30 -0500 (EST)
Received: by mail-qt0-f178.google.com with SMTP id x49so31589627qtc.2 for <ietf-http-wg@w3.org>; Thu, 12 Jan 2017 14:10:30 -0800 (PST)
X-Gm-Message-State: AIkVDXLKJVIJLRHACznfkJUWt/WWmoZhDE/w41lIvp8geq73lO5PxzJ5OH82v3kbnZirMilnMfCha8o6t/a1sg==
X-Received: by 10.200.43.184 with SMTP id m53mr8940301qtm.6.1484259030562; Thu, 12 Jan 2017 14:10:30 -0800 (PST)
MIME-Version: 1.0
Received: by 10.12.157.12 with HTTP; Thu, 12 Jan 2017 14:10:30 -0800 (PST)
From: Patrick McManus <pmcmanus@mozilla.com>
Date: Thu, 12 Jan 2017 17:10:30 -0500
X-Gmail-Original-Message-ID: <CAOdDvNr==BmizwUPKaMZq__UckfM5bAJ0w15=A-R1xrtZ+JxjA@mail.gmail.com>
Message-ID: <CAOdDvNr==BmizwUPKaMZq__UckfM5bAJ0w15=A-R1xrtZ+JxjA@mail.gmail.com>
To: HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary=001a113ff2e645908d0545ecfc52
Received-SPF: softfail client-ip=192.155.95.102; envelope-from=pmcmanus@mozilla.com; helo=linode64.ducksong.com
X-W3C-Hub-Spam-Status: No, score=-3.7
X-W3C-Hub-Spam-Report: AWL=-2.317, BAYES_05=-0.5, HTML_MESSAGE=0.001, RCVD_IN_SORBS_SPAM=0.5, SPF_HELO_PASS=-0.001, SPF_SOFTFAIL=0.665, URIBL_BLOCKED=0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cRna9-0006ab-QN a273614616ab286a9853938ba7fc0c6b
X-Original-To: ietf-http-wg@w3.org
Subject: Issue 271 of 5987bis - Proposed Standard or Internet Standard?
Archived-At: <http://www.w3.org/mid/CAOdDvNr==BmizwUPKaMZq__UckfM5bAJ0w15=A-R1xrtZ+JxjA@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33280
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>

--001a113ff2e645908d0545ecfc52
Content-Type: text/plain; charset=UTF-8

Gentlefolk of the HTTPbis WG -

I need to direct your attention to one of just two open issues with the
5987bis document (Indicating Character Encoding and Language for HTTP
Header Field Parameters), which deals with the intended status of the
eventual RFC. The consensus of the WG is sought.

https://github.com/httpwg/http-extensions/issues/271

The intended status of this document is currently listed as "Internet
Standard" ( https://datatracker.ietf.org/doc/draft-ietf-httpbis-rfc5987bis/
)

The other practical status for standards track documents is proposed
standard  - its laid out here https://www.ietf.org/rfc/rfc2026.txt and also
in https://www.rfc-editor.org/rfc/rfc6410.txt

The basic guidance is:

      An Internet Standard is characterized by a high degree of
      technical maturity and by a generally held belief that the
      specified protocol or service provides significant benefit to the
      Internet community.

A list of the ~100 active documents currently bearing STD status can be
found here https://www.rfc-editor.org/standards#IS

I apologize to Julian for not starting this thread earlier, I
procrastinated long enough that we got into the holiday season and then I
decided to defer until everyone's attention returned to work.
Thanks for your input.
-Patrick, chair-hat on

--001a113ff2e645908d0545ecfc52
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Gentlefolk of the HTTPbis WG -<br><br></div>I need to=
 direct your attention to one of just two open issues with the 5987bis docu=
ment (Indicating Character Encoding and Language for HTTP Header Field Para=
meters<span class=3D"gmail-">), which deals with the intended status of the=
 eventual RFC. The consensus of the WG is sought.<br><br><a href=3D"https:/=
/github.com/httpwg/http-extensions/issues/271">https://github.com/httpwg/ht=
tp-extensions/issues/271</a><br></span><p>The intended status of this docum=
ent is currently listed as &quot;Internet Standard&quot; ( <a href=3D"https=
://datatracker.ietf.org/doc/draft-ietf-httpbis-rfc5987bis/">https://datatra=
cker.ietf.org/doc/draft-ietf-httpbis-rfc5987bis/</a> )<br></p><p>The other =
practical status for standards track documents is proposed standard=C2=A0 -=
 its laid out here <a href=3D"https://www.ietf.org/rfc/rfc2026.txt">https:/=
/www.ietf.org/rfc/rfc2026.txt</a> and also in <a href=3D"https://www.rfc-ed=
itor.org/rfc/rfc6410.txt">https://www.rfc-editor.org/rfc/rfc6410.txt</a><br=
></p><p>The basic guidance is:<br></p><pre class=3D"gmail-newpage">      An=
 Internet Standard is characterized by a high degree of
      technical maturity and by a generally held belief that the
      specified protocol or service provides significant benefit to the
      Internet community.</pre>A list of the ~100 active documents currentl=
y bearing STD status can be found here <a href=3D"https://www.rfc-editor.or=
g/standards#IS">https://www.rfc-editor.org/standards#IS</a><br><div><div><p=
>I apologize to Julian for not starting this thread earlier, I procrastinat=
ed long enough that we got into the holiday season and then I decided to de=
fer until everyone&#39;s attention returned to work.<br></p>Thanks for your=
 input.<br></div><div>-Patrick, chair-hat on<br></div></div></div>

--001a113ff2e645908d0545ecfc52--


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Thu Jan 12 17:22:16 2017
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 783A61295D1 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 12 Jan 2017 17:22:16 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.72
X-Spam-Level:
X-Spam-Status: No, score=-9.72 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, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, 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 fzdlWgs4G4Td for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 12 Jan 2017 17:22:15 -0800 (PST)
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 E72AC12947B for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 12 Jan 2017 17:22:14 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cRqWI-0004n6-Ok for ietf-http-wg-dist@listhub.w3.org; Fri, 13 Jan 2017 01:19:06 +0000
Resent-Date: Fri, 13 Jan 2017 01:19:06 +0000
Resent-Message-Id: <E1cRqWI-0004n6-Ok@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <martin.thomson@gmail.com>) id 1cRqWE-0004lP-QG for ietf-http-wg@listhub.w3.org; Fri, 13 Jan 2017 01:19:02 +0000
Received: from mail-qt0-f177.google.com ([209.85.216.177]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <martin.thomson@gmail.com>) id 1cRqW8-0005p6-OW for ietf-http-wg@w3.org; Fri, 13 Jan 2017 01:18:57 +0000
Received: by mail-qt0-f177.google.com with SMTP id v23so35132734qtb.0 for <ietf-http-wg@w3.org>; Thu, 12 Jan 2017 17:18:36 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=TcS5HyxjZhVVLS04prSt0hKlmWNQ0w3yf3LAsrwxOSc=; b=Avno9GIfom7fAYBF2v+x7s+NjYFtiC4KCdQydantEGjZY0gNekfU3V09vnb94SRlWG qka5nf1/iMBAeLRUFiP91wMFE+XCCe52QXWR7L+LiZ1Uk/p62fSXtyg45Hx29ldyLLhq wa67H/SW1AtIHmLAg40sa+VuUaBgfmwLgytO0N7SZBbDp6r7W7aljcIV86cghrElTU3w K4hXLoeDoqdnKswnRDUTI9eNAFlwIQgPX7vJC6AgposPZpdQMEx5TCNX/xUVbkZAflOl w3aufdubyX+6iqwx1VLlg6VLnuU168qYlfYmerTmyCaX2yONBICh+YZeRfhu9ZIKUePZ GB3A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=TcS5HyxjZhVVLS04prSt0hKlmWNQ0w3yf3LAsrwxOSc=; b=gXfRNZbjn7/5gWywOgvyuukikyI1kpMp7dZs/TZpi6eNMf1fdlrq+sN2gro85+d8e3 YeoQQkLj1f28D4RtYR/FDt5p5MTLgIZ8Y1fAKDPAbwpufrZUhY6yNrkwwwDu6eopBTq1 1VCPO8PFkZ/MdlTUrzuTgTu0kf2lcH93Uu23tF6BUr3FVwXAzriBJvpHdk0jM3SWkViT N1xR9+EOvvP0nQhM3VRjBVuvUmPP3hdg/q/Mfec6n3XjEyY6VrD8Z07KnQ3heaQ/KvzO qHh5CDZuUyfeLMrfWl8jsGh7/8C3eph0Ur4fP2uybxcBihYAuV5pSB/qpYBsQk+3zzLz 4gsA==
X-Gm-Message-State: AIkVDXLHItmssQv8W3OqweTOV1PoTFOuVIYkGNlMy+uKf4UUrpt+J//BucJvZosSPUquG+fJSFVry8C55T3N3A==
X-Received: by 10.200.53.247 with SMTP id l52mr10219153qtb.144.1484270310601; Thu, 12 Jan 2017 17:18:30 -0800 (PST)
MIME-Version: 1.0
Received: by 10.140.19.112 with HTTP; Thu, 12 Jan 2017 17:18:30 -0800 (PST)
In-Reply-To: <CAOdDvNr==BmizwUPKaMZq__UckfM5bAJ0w15=A-R1xrtZ+JxjA@mail.gmail.com>
References: <CAOdDvNr==BmizwUPKaMZq__UckfM5bAJ0w15=A-R1xrtZ+JxjA@mail.gmail.com>
From: Martin Thomson <martin.thomson@gmail.com>
Date: Fri, 13 Jan 2017 14:18:30 +1300
Message-ID: <CABkgnnVw9K4DiRySgSjbYcxkEyAqxU9DU3dw4e4+vpEk6ff5Zg@mail.gmail.com>
To: Patrick McManus <pmcmanus@mozilla.com>
Cc: HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: text/plain; charset=UTF-8
Received-SPF: pass client-ip=209.85.216.177; envelope-from=martin.thomson@gmail.com; helo=mail-qt0-f177.google.com
X-W3C-Hub-Spam-Status: No, score=-5.8
X-W3C-Hub-Spam-Report: AWL=-0.230, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cRqW8-0005p6-OW 5b3ab953ca56240388ab3d12e884bdde
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Issue 271 of 5987bis - Proposed Standard or Internet Standard?
Archived-At: <http://www.w3.org/mid/CABkgnnVw9K4DiRySgSjbYcxkEyAqxU9DU3dw4e4+vpEk6ff5Zg@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33281
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 13 January 2017 at 11:10, Patrick McManus <pmcmanus@mozilla.com> wrote:
> I need to direct your attention to one of just two open issues with the
> 5987bis document (Indicating Character Encoding and Language for HTTP Header
> Field Parameters), which deals with the intended status of the eventual RFC.

Proposed Standard would seem to be sufficient.  I would think that
being MORE mature than HTTP would be unrealistic, so that limits us to
PS.


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Thu Jan 12 22:41:57 2017
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 087E4129AA4 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 12 Jan 2017 22:41:57 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.12
X-Spam-Level:
X-Spam-Status: No, score=-10.12 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, 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=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 b4TNtWakbC7q for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 12 Jan 2017 22:41:55 -0800 (PST)
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 F3A901293F2 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 12 Jan 2017 22:41:53 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cRvUo-0002yg-0f for ietf-http-wg-dist@listhub.w3.org; Fri, 13 Jan 2017 06:37:54 +0000
Resent-Date: Fri, 13 Jan 2017 06:37:54 +0000
Resent-Message-Id: <E1cRvUo-0002yg-0f@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <julian.reschke@gmx.de>) id 1cRvUl-0002xW-NW for ietf-http-wg@listhub.w3.org; Fri, 13 Jan 2017 06:37:51 +0000
Received: from mout.gmx.net ([212.227.17.22]) by mimas.w3.org with esmtps (TLS1.2:DHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <julian.reschke@gmx.de>) id 1cRvUe-0008LT-DV for ietf-http-wg@w3.org; Fri, 13 Jan 2017 06:37:46 +0000
Received: from [192.168.178.20] ([93.217.74.175]) by mail.gmx.com (mrgmx102 [212.227.17.168]) with ESMTPSA (Nemesis) id 0Lxu7U-1cXRFd3J36-015Lu3; Fri, 13 Jan 2017 07:37:13 +0100
To: Martin Thomson <martin.thomson@gmail.com>, Patrick McManus <pmcmanus@mozilla.com>
References: <CAOdDvNr==BmizwUPKaMZq__UckfM5bAJ0w15=A-R1xrtZ+JxjA@mail.gmail.com> <CABkgnnVw9K4DiRySgSjbYcxkEyAqxU9DU3dw4e4+vpEk6ff5Zg@mail.gmail.com>
Cc: HTTP Working Group <ietf-http-wg@w3.org>
From: Julian Reschke <julian.reschke@gmx.de>
Message-ID: <fb8bc334-c0d5-0787-7289-730281d05f42@gmx.de>
Date: Fri, 13 Jan 2017 07:37:14 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0
MIME-Version: 1.0
In-Reply-To: <CABkgnnVw9K4DiRySgSjbYcxkEyAqxU9DU3dw4e4+vpEk6ff5Zg@mail.gmail.com>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Provags-ID: V03:K0:r+BDAHgDVPsd3kH90YzB371eb449JfXTz0NT3H7AVh6Bc9r195F sD+FsOELFBypHXyoS60S9aU7Vq8sLrqhQLG8WMaonrSH30QSz0gDtdEKFWNuUx/ZAZVdPk0 XuEmPFp/lS63DMyl4xoOb/pB8ul0/yPYFItYoj2vMonDmQWUeHoZ/cQCcoximUMX2cF7Ppw Yzy6kKq5hK9mLeVbtUmtA==
X-UI-Out-Filterresults: notjunk:1;V01:K0:MmIgbSCdtuw=:1yar//VLdtsX3x5TpR3qgJ 7emXp536E7BVmea81rWTr2KjO2aoY+W/fqwJa5Wrycl6acmVZ1DjHmQGqCqAAgH35MsFiRIVr EqsSBEOWZlXo3v4tKO2P33lceDrGEXBbKru3Xz3wc3HdNqofzNT0rl68NeX456Z7ZE7LTBrFk ZiQ6Zx76YevUkMxWF5Fsy3UKVNouQFvO4cL8Zu0TNIRgqTrQGnB16Ta2SVrN2VorpIgt/UGIn FsTimxnP87NmEC1g7SNooxYbctpkpaBnznYu7ldBsIayR+Ikcand2uZGTQZ2Fzg1bLNTtu/3L 4hXp19Te6m7vxQ+1wecu8n6JIx2kDZa92b4y8gocEOfzFr9tzXLMFypKPNMnGKTWbPvKJUQw6 sdLHl7peZ6Fa2EEPPjwyslGj9e76CHz/5zTRLhHtVwBv44vryb7pt6XciHwVtMd//VnqW9IBp EpRxIPpdNLNXZANtwYwtaE4udbzsuzzH+7lxJa+rL7y4dKI0yYjGNVEWxTf5bGpCy4lNHilLy zzLQpH8wB75bdOGi5rPu7uXT2jgyeyROb9K0R3/VtLRmqkXbXGODWpXFLSRLHqyJZfEodGkYv jISAUZfij03lMSLiw3CmThUJApj8AO9ZTH2VG+JJf94coFB9oUjcH5WxflbVeGoGrbNwOSQH/ 2KmWjy4qPPce4OWiO44SP89xuhj0GekNAx6w3kEMi0zqxSeXP2GseytBIab9Kn5dMxsXOn0mv 7x+TwWD0iY0csZZk6J/4CTwCcSsEro4Z8kGMKjd85zw5sm31JRhWAR6LhXxtU7CqwGoKkqVcp 80QF0dyAh+pKDI2GE389w4bTRKwTgT5xbRAI5ScMpBKN6IbyTOPiUVLK8Mm/rw9dPp/xrUI6D IHvjCk22KYlZyvY4lyxBclWFbs2NACFL6r194G8OFKdZ7d/My7q0rHiu+asDV4UorszbWDtuC 2v/qPPw5bg2OS2qBdTC0qhbGz4vzn7o3K2RaHjfZhbR7asxhD83gjMGlP7lf7Y3ROWr5tZuid DZPIERD9ZFM5D5ywlSwC4+CmgaOjQ/jve4iZw+hPRR+aN48OWdhhx52eAb/NGB9EuQ==
Received-SPF: pass client-ip=212.227.17.22; envelope-from=julian.reschke@gmx.de; helo=mout.gmx.net
X-W3C-Hub-Spam-Status: No, score=-7.2
X-W3C-Hub-Spam-Report: AWL=0.591, BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-1.156, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cRvUe-0008LT-DV 0332cb6d4bc295aaa08795f8274c082b
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Issue 271 of 5987bis - Proposed Standard or Internet Standard?
Archived-At: <http://www.w3.org/mid/fb8bc334-c0d5-0787-7289-730281d05f42@gmx.de>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33282
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 2017-01-13 02:18, Martin Thomson wrote:
> On 13 January 2017 at 11:10, Patrick McManus <pmcmanus@mozilla.com> wrote:
>> I need to direct your attention to one of just two open issues with the
>> 5987bis document (Indicating Character Encoding and Language for HTTP Header
>> Field Parameters), which deals with the intended status of the eventual RFC.
>
> Proposed Standard would seem to be sufficient.  I would think that
> being MORE mature than HTTP would be unrealistic, so that limits us to
> PS.

I don't care a lot - it won't matter in practice.

That said, the standards process doesn't make this requirement. If we 
ever want to get spec to "full standard", adding *additional* hurdles 
doesn't seem to be the right approach.

(And yes, we should work on getting HTTP-the-base-specs to full standard 
as well)

Best regards, Julian



From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Sun Jan 15 15:56:24 2017
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 96B561289B0 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 15 Jan 2017 15:56:24 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.22
X-Spam-Level:
X-Spam-Status: No, score=-8.22 tagged_above=-999 required=5 tests=[BAYES_20=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=teamtelstra.onmicrosoft.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 LnXzmZkcVL6y for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 15 Jan 2017 15:56:22 -0800 (PST)
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 17EA7129509 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sun, 15 Jan 2017 15:56:21 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cSuaY-0007mS-GQ for ietf-http-wg-dist@listhub.w3.org; Sun, 15 Jan 2017 23:51:54 +0000
Resent-Date: Sun, 15 Jan 2017 23:51:54 +0000
Resent-Message-Id: <E1cSuaY-0007mS-GQ@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <James.H.Manger@team.telstra.com>) id 1cSuaS-0007lg-QR for ietf-http-wg@listhub.w3.org; Sun, 15 Jan 2017 23:51:48 +0000
Received: from ipxbvo.tcif.telstra.com.au ([203.35.135.204]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <James.H.Manger@team.telstra.com>) id 1cSuaL-0003FM-2y for ietf-http-wg@w3.org; Sun, 15 Jan 2017 23:51:43 +0000
X-IronPort-AV: E=Sophos;i="5.33,236,1477918800";  d="scan'208,217";a="132206121"
Received: from unknown (HELO ipcavi.tcif.telstra.com.au) ([10.97.217.200]) by ipobvi.tcif.telstra.com.au with ESMTP; 16 Jan 2017 10:51:07 +1100
X-IronPort-AV: E=McAfee;i="5700,7163,8409"; a="378728682"
Received: from wsmsg3701.srv.dir.telstra.com ([172.49.40.169]) by ipcavi.tcif.telstra.com.au with ESMTP; 16 Jan 2017 10:51:07 +1100
Received: from wsapp5872.srv.dir.telstra.com (10.75.11.108) by wsmsg3701.srv.dir.telstra.com (172.49.40.169) with Microsoft SMTP Server (TLS) id 8.3.485.1; Mon, 16 Jan 2017 10:51:07 +1100
Received: from wsapp5584.srv.dir.telstra.com (10.75.131.20) by wsapp5872.srv.dir.telstra.com (10.75.11.108) with Microsoft SMTP Server (TLS) id 15.0.1236.3; Mon, 16 Jan 2017 10:51:06 +1100
Received: from AUS01-ME1-obe.outbound.protection.outlook.com (10.172.229.125) by wsapp5584.srv.dir.telstra.com (10.75.131.20) with Microsoft SMTP Server (TLS) id 15.0.1236.3 via Frontend Transport; Mon, 16 Jan 2017 10:51:06 +1100
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=teamtelstra.onmicrosoft.com; s=selector1-team-telstra-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=PoT3yK1LEOCGFQYOi2OLZdT1tYufmyKzh1eKl+7f5rY=; b=tDWBIQID6x20G7bRTMuZ05jYGZZnXjkpqKZU1/TFGmMbURwS2aZWGp9ZX01v9Ns9wSvfIhbJwUpG0NANSWPTq39Ytdfvv7fg/UxjVYXfh7sotDlBCjnZtGH8fiChD4Sm7eZzaz8aQzrNdyvl6M7E6cu2mUtTffIQ20MSLF29ZIU=
Received: from SYXPR01MB1615.ausprd01.prod.outlook.com (10.175.209.15) by SYXPR01MB1616.ausprd01.prod.outlook.com (10.175.209.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.845.12; Sun, 15 Jan 2017 23:51:05 +0000
Received: from SYXPR01MB1615.ausprd01.prod.outlook.com ([10.175.209.15]) by SYXPR01MB1615.ausprd01.prod.outlook.com ([10.175.209.15]) with mapi id 15.01.0845.013; Sun, 15 Jan 2017 23:51:05 +0000
From: "Manger, James" <James.H.Manger@team.telstra.com>
To: "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
Thread-Topic: aes128gcm: why verify padding?
Thread-Index: AdJvg9D1nChV1RXVTGiVAO+6sRrzlw==
Date: Sun, 15 Jan 2017 23:51:05 +0000
Message-ID: <SYXPR01MB161520224A59CDCE0D433A2CE57A0@SYXPR01MB1615.ausprd01.prod.outlook.com>
Accept-Language: en-AU, en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=James.H.Manger@team.telstra.com; 
x-originating-ip: [203.35.9.18]
x-ms-office365-filtering-correlation-id: 0b1b5f91-9aa8-4028-10a3-08d43da15e91
x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:SYXPR01MB1616;
x-microsoft-exchange-diagnostics: 1;SYXPR01MB1616;7:EsFCcvn9qY2ZeCdR/3UXJ9cOvJLtIvKXUPHYqqQtAIg1YFne+uuwzq70fMOwwhEQtTSoPWBUX9mPq3rHl867ILb4Jz6Y7yfCJLa5iBukVZh4co5nf8rnhXulrj5hKUjI+oeFcGevBUNc++coWzTYJCCKa1c4nyLY6qzty96VQoC42Qo0JrEZ3jKDfSQOeNOhrBKp0WnzSZjufASY4+0TgA2kfX9Nq4zPMGIoGS/aQpGX+FtVDHLf5at4xi5Bg2ulrrmdwvGtryB9gYpbDwoU8XsGkszHiUoAlBzT1HpGCbLzH1/yZ2NPQ8pgyuR8RIxREZgtLQtSQh6V+9qOyQL8BvgeHaNjI256q+qDmYyH2ebwVvDqU4dEHI3XWhN3GZgmStZ9W162jNlsUp+D+RSi8B8gac6fiWTKgfz8PuwKyqMqOV9JSGc9qibYOxV9X4xSSB+rciSXc/LUgXq1HpSdOA==
x-microsoft-antispam-prvs: <SYXPR01MB1616CD129829DD1BF5DBAFA8E57A0@SYXPR01MB1616.ausprd01.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(166708455590820)(192374486261705)(21748063052155);
x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040375)(2401047)(5005006)(8121501046)(10201501046)(3002001)(6041248)(20161123555025)(20161123560025)(20161123564025)(20161123562025)(6072148)(6042181);SRVR:SYXPR01MB1616;BCL:0;PCL:0;RULEID:;SRVR:SYXPR01MB1616;
x-forefront-prvs: 0188D66E61
x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(7916002)(189002)(199003)(790700001)(102836003)(50986999)(7110500001)(54356999)(110136003)(3846002)(189998001)(33656002)(2501003)(7696004)(2420400007)(15650500001)(97736004)(66066001)(6916009)(6116002)(42882006)(92566002)(5630700001)(8936002)(101416001)(2900100001)(27001)(2351001)(74316002)(9686003)(55016002)(5660300001)(3280700002)(99286003)(3660700001)(6306002)(54896002)(6506006)(10710500007)(8676002)(2906002)(25786008)(236005)(77096006)(6436002)(606005)(86362001)(38730400001)(450100001)(7736002)(122556002)(5640700003)(105586002)(68736007)(81156014)(107886002)(7906003)(81166006)(106356001);DIR:OUT;SFP:1102;SCL:1;SRVR:SYXPR01MB1616;H:SYXPR01MB1615.ausprd01.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:0;LANG:en;
received-spf: None (protection.outlook.com: team.telstra.com does not designate permitted sender hosts)
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/alternative; boundary="_000_SYXPR01MB161520224A59CDCE0D433A2CE57A0SYXPR01MB1615ausp_"
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Jan 2017 23:51:05.0846 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 49dfc6a3-5fb7-49f4-adea-c54e725bb854
X-MS-Exchange-Transport-CrossTenantHeadersStamped: SYXPR01MB1616
X-OriginatorOrg: team.telstra.com
Received-SPF: none client-ip=203.35.135.204; envelope-from=James.H.Manger@team.telstra.com; helo=ipxbvo.tcif.telstra.com.au
X-W3C-Hub-Spam-Status: No, score=-2.1
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, W3C_NW=0.5
X-W3C-Scan-Sig: mimas.w3.org 1cSuaL-0003FM-2y 4e42b11c74f9dc7553ae5f02804f9b23
X-Original-To: ietf-http-wg@w3.org
Subject: aes128gcm: why verify padding?
Archived-At: <http://www.w3.org/mid/SYXPR01MB161520224A59CDCE0D433A2CE57A0@SYXPR01MB1615.ausprd01.prod.outlook.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33283
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>

--_000_SYXPR01MB161520224A59CDCE0D433A2CE57A0SYXPR01MB1615ausp_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

draft-ietf-httpbis-encryption-encoding<https://github.com/httpwg/http-exten=
sions/blob/master/draft-ietf-httpbis-encryption-encoding.md> allows any amo=
unt of padding to be added alongside the content being encrypted. The spec =
says the receiver (decryptor) MUST confirm that every padding byte is 0x00.=
 Why?

I'm not sure how it helps to check the padding. It doesn't make the encrypt=
ion deterministic as there is a salt involved, and the length of padding ca=
n also vary. It isn't useful for integrity as that is provided by the GCM t=
ag.

Checking the padding could be harmful. Padding (to a block size) has caused=
 lots of security vulnerabilities when the padding is checked before doing =
a proper integrity check. AEAD algorithms (such as GCM) theoretically solve=
 this, but only when receivers process a whole AEAD decryption in one go, n=
ot via a (very common) streaming API.

The aes128gcm Content-Encoding adds "app-layer" padding, but by putting it =
first with a fixed format it is almost tempting receivers to check it befor=
e processing the rest of the ciphertext, and hence introduce vulnerabilitie=
s.

3 possible improvements:


1.       Allow padding bytes to have any value. The receiver just skips the=
m.


2.       Calculate the padding length by reducing a 2-byte unsigned integer=
 modulo the maximum possible padding length (plaintext length - 2). That me=
ans every 2-byte value will give a valid padding length.



3.       Put the 2-byte padding length field at the end. So the receiver ha=
s to have a whole AEAD plaintext block before knowing where the content sta=
rts.


A plaintext block would be: plaintext =3D padding || content || padlen
Len(plaintext) is the record size - 16.
Len(padlen) is 2 bytes.
Len(padding) =3D padlen % (Len(plaintext) - 2)
Padding bytes have any value.
Content is the remainder of the plaintext block.

The nice feature of this is that every plaintext block is valid. The last 2=
 bytes can be anything; mod (Len(plaintext) - 2) always gives a valid paddi=
ng length; padding can be anything; and all that is left is the content to =
pass to the next layer. With this arrangement there is very little risk tha=
t plaintext structure is dangerously checked before performing the AEAD int=
egrity check.

This form is no harder that the current structure to process, but it does e=
ncourage proper use of AEAD APIs.

--
James Manger


--_000_SYXPR01MB161520224A59CDCE0D433A2CE57A0SYXPR01MB1615ausp_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri",sans-serif;
	mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:#0563C1;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:#954F72;
	text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
	{mso-style-priority:34;
	margin-top:0cm;
	margin-right:0cm;
	margin-bottom:0cm;
	margin-left:36.0pt;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri",sans-serif;
	mso-fareast-language:EN-US;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:"Calibri",sans-serif;
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;
	mso-fareast-language:EN-US;}
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
	{page:WordSection1;}
/* List Definitions */
@list l0
	{mso-list-id:270941196;
	mso-list-type:hybrid;
	mso-list-template-ids:-1052215282 201916431 201916441 201916443 201916431 =
201916441 201916443 201916431 201916441 201916443;}
@list l0:level1
	{mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-18.0pt;}
@list l0:level2
	{mso-level-number-format:alpha-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-18.0pt;}
@list l0:level3
	{mso-level-number-format:roman-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:right;
	text-indent:-9.0pt;}
@list l0:level4
	{mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-18.0pt;}
@list l0:level5
	{mso-level-number-format:alpha-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-18.0pt;}
@list l0:level6
	{mso-level-number-format:roman-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:right;
	text-indent:-9.0pt;}
@list l0:level7
	{mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-18.0pt;}
@list l0:level8
	{mso-level-number-format:alpha-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-18.0pt;}
@list l0:level9
	{mso-level-number-format:roman-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:right;
	text-indent:-9.0pt;}
@list l1
	{mso-list-id:281037299;
	mso-list-type:hybrid;
	mso-list-template-ids:-610343024 201916431 201916441 201916443 201916431 2=
01916441 201916443 201916431 201916441 201916443;}
@list l1:level1
	{mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-18.0pt;}
@list l1:level2
	{mso-level-number-format:alpha-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-18.0pt;}
@list l1:level3
	{mso-level-number-format:roman-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:right;
	text-indent:-9.0pt;}
@list l1:level4
	{mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-18.0pt;}
@list l1:level5
	{mso-level-number-format:alpha-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-18.0pt;}
@list l1:level6
	{mso-level-number-format:roman-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:right;
	text-indent:-9.0pt;}
@list l1:level7
	{mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-18.0pt;}
@list l1:level8
	{mso-level-number-format:alpha-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-18.0pt;}
@list l1:level9
	{mso-level-number-format:roman-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:right;
	text-indent:-9.0pt;}
ol
	{margin-bottom:0cm;}
ul
	{margin-bottom:0cm;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"EN-AU" link=3D"#0563C1" vlink=3D"#954F72">
<div class=3D"WordSection1">
<p class=3D"MsoNormal"><a href=3D"https://github.com/httpwg/http-extensions=
/blob/master/draft-ietf-httpbis-encryption-encoding.md">draft-ietf-httpbis-=
encryption-encoding</a> allows any amount of padding to be added alongside =
the content being encrypted. The spec
 says the receiver (decryptor) MUST confirm that every padding byte is 0x00=
. Why?<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">I&#8217;m not sure how it helps to check the padding=
. It doesn&#8217;t make the encryption deterministic as there is a salt inv=
olved, and the length of padding can also vary. It isn&#8217;t useful for i=
ntegrity as that is provided by the GCM tag.<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">Checking the padding could be <b>harmful</b>. Paddin=
g (to a block size) has caused lots of security vulnerabilities when the pa=
dding is checked before doing a proper integrity check. AEAD algorithms (su=
ch as GCM) theoretically solve this,
 but only when receivers process a whole AEAD decryption in one go, not via=
 a (very common) streaming API.<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">The aes128gcm Content-Encoding adds &#8220;app-layer=
&#8221; padding, but by putting it first with a fixed format it is almost t=
empting receivers to check it before processing the rest of the ciphertext,=
 and hence introduce vulnerabilities.<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">3 possible improvements:<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoListParagraph" style=3D"text-indent:-18.0pt;mso-list:l0 leve=
l1 lfo2"><![if !supportLists]><span style=3D"mso-list:Ignore">1.<span style=
=3D"font:7.0pt &quot;Times New Roman&quot;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;
</span></span><![endif]>Allow padding bytes to have any value. The receiver=
 just skips them.<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoListParagraph" style=3D"text-indent:-18.0pt;mso-list:l0 leve=
l1 lfo2"><![if !supportLists]><span style=3D"mso-list:Ignore">2.<span style=
=3D"font:7.0pt &quot;Times New Roman&quot;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;
</span></span><![endif]>Calculate the padding length by reducing a 2-byte u=
nsigned integer modulo the maximum possible padding length (plaintext lengt=
h &#8211; 2). That means every 2-byte value will give a valid padding lengt=
h.<o:p></o:p></p>
<p class=3D"MsoListParagraph"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoListParagraph" style=3D"text-indent:-18.0pt;mso-list:l0 leve=
l1 lfo2"><![if !supportLists]><span style=3D"mso-list:Ignore">3.<span style=
=3D"font:7.0pt &quot;Times New Roman&quot;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;
</span></span><![endif]>Put the 2-byte padding length field at the end. So =
the receiver has to have a whole AEAD plaintext block before knowing where =
the content starts.<o:p></o:p></p>
<p class=3D"MsoListParagraph"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">A plaintext block would be: plaintext =3D padding ||=
 content || padlen<o:p></o:p></p>
<p class=3D"MsoNormal">Len(plaintext) is the record size - 16.<o:p></o:p></=
p>
<p class=3D"MsoNormal">Len(padlen) is 2 bytes.<o:p></o:p></p>
<p class=3D"MsoNormal">Len(padding) =3D padlen % (Len(plaintext) - 2)<o:p><=
/o:p></p>
<p class=3D"MsoNormal">Padding bytes have any value.<o:p></o:p></p>
<p class=3D"MsoNormal">Content is the remainder of the plaintext block.<o:p=
></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">The nice feature of this is that every plaintext blo=
ck is valid. The last 2 bytes can be anything; mod (Len(plaintext) - 2) alw=
ays gives a valid padding length; padding can be anything; and all that is =
left is the content to pass to the
 next layer. With this arrangement there is very little risk that plaintext=
 structure is dangerously checked before performing the AEAD integrity chec=
k.<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">This form is no harder that the current structure to=
 process, but it does encourage proper use of AEAD APIs.<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal"><span style=3D"mso-fareast-language:EN-AU">--<o:p></=
o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"mso-fareast-language:EN-AU">James Man=
ger<o:p></o:p></span></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</body>
</html>

--_000_SYXPR01MB161520224A59CDCE0D433A2CE57A0SYXPR01MB1615ausp_--


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Sun Jan 15 16:36:00 2017
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 E9531127058 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 15 Jan 2017 16:36:00 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.72
X-Spam-Level:
X-Spam-Status: No, score=-9.72 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, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, 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 kp817i156RP8 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 15 Jan 2017 16:35:59 -0800 (PST)
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 3E82E1289B0 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sun, 15 Jan 2017 16:35:59 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cSvEf-00055e-1I for ietf-http-wg-dist@listhub.w3.org; Mon, 16 Jan 2017 00:33:21 +0000
Resent-Date: Mon, 16 Jan 2017 00:33:21 +0000
Resent-Message-Id: <E1cSvEf-00055e-1I@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <martin.thomson@gmail.com>) id 1cSvEb-00054I-TW for ietf-http-wg@listhub.w3.org; Mon, 16 Jan 2017 00:33:17 +0000
Received: from mail-qt0-f172.google.com ([209.85.216.172]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <martin.thomson@gmail.com>) id 1cSvEU-0004cN-VM for ietf-http-wg@w3.org; Mon, 16 Jan 2017 00:33:12 +0000
Received: by mail-qt0-f172.google.com with SMTP id x49so91653249qtc.2 for <ietf-http-wg@w3.org>; Sun, 15 Jan 2017 16:32:50 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=Mhm1OjeP6BQWDKgBea9AsRTfO0JVDZP91FETy+CykeA=; b=e14IU+GxI0phS6FF6Ix6Q7AAJWNjwbm1UBm6UX7NXqABjsxsk3Cb32MtqVfOJzXyIU sfamWwxBs4xtEYjoOe200S6BbzPEscdacRbpOf+odxBIoZxiWUo2vVrmSQkZvStJRhlA Yrl3Z1+qbGafmYlnGkxgC0LhUUYFg6WV5WsH+NB+IrHBrYQqexrdqpG5YNKMrwFOmz80 M8YCmFifURxnTL6iR8oVaKwBEYKuleFxc6J20EHUEkK9Vyf5NzmbjZS23RgFvvbottmo VhLhDO1L/aQXmtcjBqMPjSw7hg+uRh3BUvCSGX6qxjlDd9cMYG1YNiEUrFZ1lO9nT1M3 jV9Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=Mhm1OjeP6BQWDKgBea9AsRTfO0JVDZP91FETy+CykeA=; b=LVrS7ZaaLyoFHLkY7/zk3jy7E75uaPE6nICHNE+QJc3bzJWePhs3LP0Tj3Wkih4D3J +/6mVBwn8oCwOr9oGgg8qPVsXr0zJUTuGwmcYYRCWg3R4inNvg3flgMoeilOJqwJyuxz X8Saio1CcOE/McpyrlQhPRRRrv6fHbbsvEUn7Xr9FqRfLwznR23mQUBheS94l/puv75x K00SOH+GSa3MOU+gTtg8+zweMmYgzjJ642xX1GDuKhyQxppl1+JfaKroGe3vHdCf57Np G8pG7Y/5F5JcY6HubDj2pSYbWgsovXTQXDK+RSeB0EBhG6czJpG5uHY4S+8ZucHAafnc vFuw==
X-Gm-Message-State: AIkVDXIvT7FBIEXz9x7wLNAp2ndqsvx/8yL0KrjvWZJvxd06jxmR97/+4z145AKVKwVP4OV5Y2CJqJH76cMVWg==
X-Received: by 10.200.49.249 with SMTP id i54mr29278936qte.3.1484526764478; Sun, 15 Jan 2017 16:32:44 -0800 (PST)
MIME-Version: 1.0
Received: by 10.140.19.112 with HTTP; Sun, 15 Jan 2017 16:32:43 -0800 (PST)
In-Reply-To: <SYXPR01MB161520224A59CDCE0D433A2CE57A0@SYXPR01MB1615.ausprd01.prod.outlook.com>
References: <SYXPR01MB161520224A59CDCE0D433A2CE57A0@SYXPR01MB1615.ausprd01.prod.outlook.com>
From: Martin Thomson <martin.thomson@gmail.com>
Date: Mon, 16 Jan 2017 13:32:43 +1300
Message-ID: <CABkgnnUo-tf69AzJC=OUy2rjDZwedTd5Ua9mhOiJBqaA0VKrYw@mail.gmail.com>
To: "Manger, James" <James.H.Manger@team.telstra.com>
Cc: "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=209.85.216.172; envelope-from=martin.thomson@gmail.com; helo=mail-qt0-f172.google.com
X-W3C-Hub-Spam-Status: No, score=-5.2
X-W3C-Hub-Spam-Report: AWL=-0.830, BAYES_20=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cSvEU-0004cN-VM a808c72d4858adeba52419f4ac6d9d0b
X-Original-To: ietf-http-wg@w3.org
Subject: Re: aes128gcm: why verify padding?
Archived-At: <http://www.w3.org/mid/CABkgnnUo-tf69AzJC=OUy2rjDZwedTd5Ua9mhOiJBqaA0VKrYw@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33284
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>

I don't think that this warrants a change at this stage.

The reason for enforcing the checking was so that we could ensure that
when people sent padding there was only one way to send it.  You are
asking to allow variation, which I think needs stronger justification
than you've provided.

A secondary, though weak, reason for validating is to squash
heartbleed-like uninitialized memory reads.

Regarding AEAD APIs, yes, I'm aware that some libraries have bad APIs
for AEADs (thanks openssl).  I don't think that's justification for a
change, at least not in the format.  The API, certainly.


On 16 January 2017 at 12:51, Manger, James
<James.H.Manger@team.telstra.com> wrote:
> draft-ietf-httpbis-encryption-encoding allows any amount of padding to be
> added alongside the content being encrypted. The spec says the receiver
> (decryptor) MUST confirm that every padding byte is 0x00. Why?
>
>
>
> I=E2=80=99m not sure how it helps to check the padding. It doesn=E2=80=99=
t make the
> encryption deterministic as there is a salt involved, and the length of
> padding can also vary. It isn=E2=80=99t useful for integrity as that is p=
rovided by
> the GCM tag.
>
>
>
> Checking the padding could be harmful. Padding (to a block size) has caus=
ed
> lots of security vulnerabilities when the padding is checked before doing=
 a
> proper integrity check. AEAD algorithms (such as GCM) theoretically solve
> this, but only when receivers process a whole AEAD decryption in one go, =
not
> via a (very common) streaming API.
>
>
>
> The aes128gcm Content-Encoding adds =E2=80=9Capp-layer=E2=80=9D padding, =
but by putting it
> first with a fixed format it is almost tempting receivers to check it bef=
ore
> processing the rest of the ciphertext, and hence introduce vulnerabilitie=
s.
>
>
>
> 3 possible improvements:
>
>
>
> 1.       Allow padding bytes to have any value. The receiver just skips
> them.
>
>
>
> 2.       Calculate the padding length by reducing a 2-byte unsigned integ=
er
> modulo the maximum possible padding length (plaintext length =E2=80=93 2)=
. That
> means every 2-byte value will give a valid padding length.
>
>
>
> 3.       Put the 2-byte padding length field at the end. So the receiver =
has
> to have a whole AEAD plaintext block before knowing where the content
> starts.
>
>
>
> A plaintext block would be: plaintext =3D padding || content || padlen
>
> Len(plaintext) is the record size - 16.
>
> Len(padlen) is 2 bytes.
>
> Len(padding) =3D padlen % (Len(plaintext) - 2)
>
> Padding bytes have any value.
>
> Content is the remainder of the plaintext block.
>
>
>
> The nice feature of this is that every plaintext block is valid. The last=
 2
> bytes can be anything; mod (Len(plaintext) - 2) always gives a valid padd=
ing
> length; padding can be anything; and all that is left is the content to p=
ass
> to the next layer. With this arrangement there is very little risk that
> plaintext structure is dangerously checked before performing the AEAD
> integrity check.
>
>
>
> This form is no harder that the current structure to process, but it does
> encourage proper use of AEAD APIs.
>
>
>
> --
>
> James Manger
>
>


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Sun Jan 15 17:10:25 2017
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 35FBF127058 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 15 Jan 2017 17:10:25 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.12
X-Spam-Level:
X-Spam-Status: No, score=-10.12 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-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=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=teamtelstra.onmicrosoft.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 rfrliSyn_80Z for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 15 Jan 2017 17:10:22 -0800 (PST)
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 244FF1293E0 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sun, 15 Jan 2017 17:10:21 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cSvlR-0001bG-9r for ietf-http-wg-dist@listhub.w3.org; Mon, 16 Jan 2017 01:07:13 +0000
Resent-Date: Mon, 16 Jan 2017 01:07:13 +0000
Resent-Message-Id: <E1cSvlR-0001bG-9r@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <James.H.Manger@team.telstra.com>) id 1cSvlM-0001aT-Ny for ietf-http-wg@listhub.w3.org; Mon, 16 Jan 2017 01:07:08 +0000
Received: from ipxcno.tcif.telstra.com.au ([203.35.82.208]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <James.H.Manger@team.telstra.com>) id 1cSvlF-0005am-KR for ietf-http-wg@w3.org; Mon, 16 Jan 2017 01:07:03 +0000
X-IronPort-AV: E=Sophos;i="5.33,236,1477918800";  d="scan'208";a="16958277"
Received: from unknown (HELO ipcbni.tcif.telstra.com.au) ([10.97.216.204]) by ipocni.tcif.telstra.com.au with ESMTP; 16 Jan 2017 12:06:26 +1100
X-IronPort-AV: E=McAfee;i="5700,7163,8409"; a="283029745"
Received: from wsmsg3757.srv.dir.telstra.com ([172.49.40.85]) by ipcbni.tcif.telstra.com.au with ESMTP; 16 Jan 2017 12:06:27 +1100
Received: from wsapp5863.srv.dir.telstra.com (10.75.131.32) by wsmsg3757.srv.dir.telstra.com (172.49.40.85) with Microsoft SMTP Server (TLS) id 8.3.485.1; Mon, 16 Jan 2017 12:06:27 +1100
Received: from wsapp5585.srv.dir.telstra.com (10.75.3.67) by wsapp5863.srv.dir.telstra.com (10.75.131.32) with Microsoft SMTP Server (TLS) id 15.0.1236.3; Mon, 16 Jan 2017 12:06:26 +1100
Received: from AUS01-SY3-obe.outbound.protection.outlook.com (10.172.101.125) by wsapp5585.srv.dir.telstra.com (10.75.3.67) with Microsoft SMTP Server (TLS) id 15.0.1236.3 via Frontend Transport; Mon, 16 Jan 2017 12:06:26 +1100
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=teamtelstra.onmicrosoft.com; s=selector1-team-telstra-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=IW4W1nTp4Fgtuwx2WRszRSNbhxz3iwsH2LchqlwmTYY=; b=oMwWuKkw973ETkXGkWrORTtsB1GGVdYM0KawLHL+qzpTfyZv5U9/Tv+/zvAYQU3Mwn6i9H0yjbChJR3uaORAkHC7kAWghWfdpfSLRLzLGCKoyaPNBqKEFJZumAwm28Z1aCgE37RhEB0RJDJrVKekWs+ZoGlelYRRhDARiZVfJaY=
Received: from SYXPR01MB1615.ausprd01.prod.outlook.com (10.175.209.15) by SYXPR01MB1613.ausprd01.prod.outlook.com (10.175.209.13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.845.12; Mon, 16 Jan 2017 01:06:23 +0000
Received: from SYXPR01MB1615.ausprd01.prod.outlook.com ([10.175.209.15]) by SYXPR01MB1615.ausprd01.prod.outlook.com ([10.175.209.15]) with mapi id 15.01.0845.013; Mon, 16 Jan 2017 01:06:23 +0000
From: "Manger, James" <James.H.Manger@team.telstra.com>
To: Martin Thomson <martin.thomson@gmail.com>
CC: "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
Thread-Topic: aes128gcm: why verify padding?
Thread-Index: AdJvg9D1nChV1RXVTGiVAO+6sRrzlwADDv6AAAAcAeA=
Date: Mon, 16 Jan 2017 01:06:23 +0000
Message-ID: <SYXPR01MB16150F4D3D19CC69D18E1A09E57D0@SYXPR01MB1615.ausprd01.prod.outlook.com>
References: <SYXPR01MB161520224A59CDCE0D433A2CE57A0@SYXPR01MB1615.ausprd01.prod.outlook.com> <CABkgnnUo-tf69AzJC=OUy2rjDZwedTd5Ua9mhOiJBqaA0VKrYw@mail.gmail.com>
In-Reply-To: <CABkgnnUo-tf69AzJC=OUy2rjDZwedTd5Ua9mhOiJBqaA0VKrYw@mail.gmail.com>
Accept-Language: en-AU, en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=James.H.Manger@team.telstra.com; 
x-originating-ip: [203.35.9.18]
x-ms-office365-filtering-correlation-id: 2e183f1e-a4e6-4c64-3d99-08d43dabe37f
x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:SYXPR01MB1613;
x-microsoft-exchange-diagnostics: 1;SYXPR01MB1613;7:CueDKszV9b1r0VVG5KYxk0jTHEf18HRQgQjhdKAQzMFGORm5InkteKxfXlKYfIVr9xuQo/0f5LS/y5cRB1rcfJLzlkGKP0Wqn/hczkx9DMjO9scilD30mYN8tLJ0C3V54NJwL3Nj11e0p4zSVJ0p0GmQKhgA+xQ9pKJIzdHokm7caorAEgUr3peG+CjpTe1c36ALb7tlwWpfDUyJ+kMak7NZCZh6ETRnzuHY1NrgjtzCBOvtPc4Ilo3uY7YzSjD8Inw0jNpyOfb0H1Y8cbaWh6TrLzSLDdffxrEFMuoveUA2jVY7aLkmkhk8YxW94Ju8znC6na8lVPiwatlC2DXg+pJWo1T0BelgaMRSrwKVqzHWlUAYdHJqyriVoIVvM0qt/GaknyZUJuQxBK4J5XjyXwppkMb1exp5EYaHkJnpYh8PsaWRdMY/Kttd2O7LdXVTnGTMwtomWWrdQ9WyKOPzYA==
x-microsoft-antispam-prvs: <SYXPR01MB1613DEBAB8600A085C4F36BCE57D0@SYXPR01MB1613.ausprd01.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(192374486261705)(272811157607776)(67441168502697);
x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040375)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6041248)(20161123555025)(20161123564025)(20161123562025)(20161123560025)(6072148);SRVR:SYXPR01MB1613;BCL:0;PCL:0;RULEID:;SRVR:SYXPR01MB1613;
x-forefront-prvs: 01894AD3B8
x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(7916002)(39450400003)(377454003)(24454002)(13464003)(189002)(199003)(122556002)(54356999)(229853002)(7696004)(101416001)(33656002)(110136003)(8676002)(81166006)(81156014)(50986999)(8936002)(106356001)(76176999)(5660300001)(105586002)(15650500001)(189998001)(2950100002)(2906002)(305945005)(97736004)(9686003)(77096006)(7736002)(6916009)(4326007)(66066001)(74316002)(3846002)(39060400001)(38730400001)(102836003)(6116002)(99286003)(55016002)(6506006)(86362001)(42882006)(6436002)(25786008)(3660700001)(68736007)(2900100001)(92566002)(3280700002)(27001);DIR:OUT;SFP:1102;SCL:1;SRVR:SYXPR01MB1613;H:SYXPR01MB1615.ausprd01.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:0;LANG:en;
received-spf: None (protection.outlook.com: team.telstra.com does not designate permitted sender hosts)
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Jan 2017 01:06:23.0780 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 49dfc6a3-5fb7-49f4-adea-c54e725bb854
X-MS-Exchange-Transport-CrossTenantHeadersStamped: SYXPR01MB1613
X-OriginatorOrg: team.telstra.com
Received-SPF: none client-ip=203.35.82.208; envelope-from=James.H.Manger@team.telstra.com; helo=ipxcno.tcif.telstra.com.au
X-W3C-Hub-Spam-Status: No, score=-2.1
X-W3C-Hub-Spam-Report: AWL=0.000, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7, W3C_NW=0.5
X-W3C-Scan-Sig: mimas.w3.org 1cSvlF-0005am-KR 5bd6c960a00f486f7c1538c47587e1c9
X-Original-To: ietf-http-wg@w3.org
Subject: RE: aes128gcm: why verify padding?
Archived-At: <http://www.w3.org/mid/SYXPR01MB16150F4D3D19CC69D18E1A09E57D0@SYXPR01MB1615.ausprd01.prod.outlook.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33285
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>

PiBJIGRvbid0IHRoaW5rIHRoYXQgdGhpcyB3YXJyYW50cyBhIGNoYW5nZSBhdCB0aGlzIHN0YWdl
Lg0KDQpEcmFmdHMgaGF2ZSBiZWVuIGFyb3VuZCBmb3IgYXQgbGVhc3QgYSB5ZWFyLCB0aG91Z2gg
dGhlcmUgaGF2ZSBiZWVuIGluY29tcGF0aWJsZSBjaGFuZ2VzIGFzIHJlY2VudGx5IGFzIGxhc3Qg
d2Vlay4gVGhpcyBpc24ndCBhIHRyaXZpYWwgY2hhbmdlLCBidXQgaXQgaXNu4oCZdCBhIGhhcmQg
b25lIGZvciBpbXBsZW1lbnRlcnMgZWl0aGVyLg0KDQo+IEkgZG9uJ3QgdGhpbmsgdGhhdCdzIGp1
c3RpZmljYXRpb24gZm9yIGEgY2hhbmdlLCBhdCBsZWFzdCBub3QgaW4gdGhlIGZvcm1hdC4gIFRo
ZSBBUEksIGNlcnRhaW5seS4NCg0KVGhlb3JldGljYWxseSwgY2hhbmdpbmcgQVBJcyBpcyBiZXR0
ZXIuIEJ1dCBtYW55IEFQSXMgaGF2ZSBiZWVuIHNldCBmb3IgYSBsb25nIHRpbWUuIEFjdHVhbGx5
IHRoaXMgc2NoZW1lIGVuY291cmFnZXMgdGhlIHJldGVudGlvbiBvZiBzdHJlYW1pbmcgQVBJcyDi
gJQgYXMgbG9uZyBhcyB0aGV5IG9wZXJhdGUgaW4gcmVjb3JkLXNpemVkIGNodW5rcywgaW5zdGVh
ZCBvZiBibG9jay1zaXplZCBjaHVua3MuIEkgdGhpbmsgaXQgd291bGQgYmUgZ29vZCBpcyB0aGUg
cGFkZGluZyBmb3JjZWQgQVBJcyB0byB1c2UgcmVjb3JkLXNpemVkIGNodW5rcywgaW5zdGVhZCBv
ZiBpbnNlY3VyZSBibG9jay1zaXplZCBvbmVzLg0KDQpNeSBndXQgZmVlbGluZyBpcyB0aGF0IGEg
c29mdHdhcmUgZW5naW5lZXIgd291bGQgb25seSBoYXZlIHRvIGJlIGEgYml0IHNsb3BweSB0byBp
bXBsZW1lbnQgdGhlIGN1cnJlbnQgcGFkZGluZyBzY2hlbWUgaW5zZWN1cmVseSAob24gbWFueSB1
bmRlcmx5aW5nIEFFQUQgQVBJcyksIGJ1dCB3b3VsZCBoYXZlIHRvIGJlIG1hbGljaW91cyB0byBi
ZSBpbnNlY3VyZSB3aXRoIHNtYWxsIGNoYW5nZXMgdG8gdGhlIHBhZGRpbmcgc3RydWN0dXJlLg0K
DQo+IEEgc2Vjb25kYXJ5LCB0aG91Z2ggd2VhaywgcmVhc29uIGZvciB2YWxpZGF0aW5nIGlzIHRv
IHNxdWFzaCBoZWFydGJsZWVkLWxpa2UgdW5pbml0aWFsaXplZCBtZW1vcnkgcmVhZHMuDQoNCklt
cHJvdmVtZW50IDIgaXMgYWN0dWFsbHkgbXVjaCBiZXR0ZXIgZm9yIHRoaXMuIFRoZSAiaW50ZXJu
YWwiIGxlbmd0aCAocGFkZGluZyBsZW5ndGgpIGlzIGNhbGN1bGF0ZWQgbW9kIChleHRlcm5hbCBs
ZW5ndGggLSAyKSBzbyBpdCBjYW4gbmV2ZXIgYmUgdG9vIGxhcmdlLiANCg0KLS0NCkphbWVzIE1h
bmdlcg0KDQotLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KRnJvbTogTWFydGluIFRob21zb24g
W21haWx0bzptYXJ0aW4udGhvbXNvbkBnbWFpbC5jb21dIA0KU2VudDogTW9uZGF5LCAxNiBKYW51
YXJ5IDIwMTcgMTE6MzMgQU0NClRvOiBNYW5nZXIsIEphbWVzIDxKYW1lcy5ILk1hbmdlckB0ZWFt
LnRlbHN0cmEuY29tPg0KQ2M6IGlldGYtaHR0cC13Z0B3My5vcmcNClN1YmplY3Q6IFJlOiBhZXMx
MjhnY206IHdoeSB2ZXJpZnkgcGFkZGluZz8NCg0KSSBkb24ndCB0aGluayB0aGF0IHRoaXMgd2Fy
cmFudHMgYSBjaGFuZ2UgYXQgdGhpcyBzdGFnZS4NCg0KVGhlIHJlYXNvbiBmb3IgZW5mb3JjaW5n
IHRoZSBjaGVja2luZyB3YXMgc28gdGhhdCB3ZSBjb3VsZCBlbnN1cmUgdGhhdCB3aGVuIHBlb3Bs
ZSBzZW50IHBhZGRpbmcgdGhlcmUgd2FzIG9ubHkgb25lIHdheSB0byBzZW5kIGl0LiAgWW91IGFy
ZSBhc2tpbmcgdG8gYWxsb3cgdmFyaWF0aW9uLCB3aGljaCBJIHRoaW5rIG5lZWRzIHN0cm9uZ2Vy
IGp1c3RpZmljYXRpb24gdGhhbiB5b3UndmUgcHJvdmlkZWQuDQoNCkEgc2Vjb25kYXJ5LCB0aG91
Z2ggd2VhaywgcmVhc29uIGZvciB2YWxpZGF0aW5nIGlzIHRvIHNxdWFzaCBoZWFydGJsZWVkLWxp
a2UgdW5pbml0aWFsaXplZCBtZW1vcnkgcmVhZHMuDQoNClJlZ2FyZGluZyBBRUFEIEFQSXMsIHll
cywgSSdtIGF3YXJlIHRoYXQgc29tZSBsaWJyYXJpZXMgaGF2ZSBiYWQgQVBJcyBmb3IgQUVBRHMg
KHRoYW5rcyBvcGVuc3NsKS4gIEkgZG9uJ3QgdGhpbmsgdGhhdCdzIGp1c3RpZmljYXRpb24gZm9y
IGEgY2hhbmdlLCBhdCBsZWFzdCBub3QgaW4gdGhlIGZvcm1hdC4gIFRoZSBBUEksIGNlcnRhaW5s
eS4NCg0KDQpPbiAxNiBKYW51YXJ5IDIwMTcgYXQgMTI6NTEsIE1hbmdlciwgSmFtZXMgPEphbWVz
LkguTWFuZ2VyQHRlYW0udGVsc3RyYS5jb20+IHdyb3RlOg0KPiBkcmFmdC1pZXRmLWh0dHBiaXMt
ZW5jcnlwdGlvbi1lbmNvZGluZyBhbGxvd3MgYW55IGFtb3VudCBvZiBwYWRkaW5nIHRvIA0KPiBi
ZSBhZGRlZCBhbG9uZ3NpZGUgdGhlIGNvbnRlbnQgYmVpbmcgZW5jcnlwdGVkLiBUaGUgc3BlYyBz
YXlzIHRoZSANCj4gcmVjZWl2ZXINCj4gKGRlY3J5cHRvcikgTVVTVCBjb25maXJtIHRoYXQgZXZl
cnkgcGFkZGluZyBieXRlIGlzIDB4MDAuIFdoeT8NCj4NCj4NCj4NCj4gSeKAmW0gbm90IHN1cmUg
aG93IGl0IGhlbHBzIHRvIGNoZWNrIHRoZSBwYWRkaW5nLiBJdCBkb2VzbuKAmXQgbWFrZSB0aGUg
DQo+IGVuY3J5cHRpb24gZGV0ZXJtaW5pc3RpYyBhcyB0aGVyZSBpcyBhIHNhbHQgaW52b2x2ZWQs
IGFuZCB0aGUgbGVuZ3RoIA0KPiBvZiBwYWRkaW5nIGNhbiBhbHNvIHZhcnkuIEl0IGlzbuKAmXQg
dXNlZnVsIGZvciBpbnRlZ3JpdHkgYXMgdGhhdCBpcyANCj4gcHJvdmlkZWQgYnkgdGhlIEdDTSB0
YWcuDQo+DQo+DQo+DQo+IENoZWNraW5nIHRoZSBwYWRkaW5nIGNvdWxkIGJlIGhhcm1mdWwuIFBh
ZGRpbmcgKHRvIGEgYmxvY2sgc2l6ZSkgaGFzIA0KPiBjYXVzZWQgbG90cyBvZiBzZWN1cml0eSB2
dWxuZXJhYmlsaXRpZXMgd2hlbiB0aGUgcGFkZGluZyBpcyBjaGVja2VkIA0KPiBiZWZvcmUgZG9p
bmcgYSBwcm9wZXIgaW50ZWdyaXR5IGNoZWNrLiBBRUFEIGFsZ29yaXRobXMgKHN1Y2ggYXMgR0NN
KSANCj4gdGhlb3JldGljYWxseSBzb2x2ZSB0aGlzLCBidXQgb25seSB3aGVuIHJlY2VpdmVycyBw
cm9jZXNzIGEgd2hvbGUgQUVBRCANCj4gZGVjcnlwdGlvbiBpbiBvbmUgZ28sIG5vdCB2aWEgYSAo
dmVyeSBjb21tb24pIHN0cmVhbWluZyBBUEkuDQo+DQo+DQo+DQo+IFRoZSBhZXMxMjhnY20gQ29u
dGVudC1FbmNvZGluZyBhZGRzIOKAnGFwcC1sYXllcuKAnSBwYWRkaW5nLCBidXQgYnkgDQo+IHB1
dHRpbmcgaXQgZmlyc3Qgd2l0aCBhIGZpeGVkIGZvcm1hdCBpdCBpcyBhbG1vc3QgdGVtcHRpbmcg
cmVjZWl2ZXJzIA0KPiB0byBjaGVjayBpdCBiZWZvcmUgcHJvY2Vzc2luZyB0aGUgcmVzdCBvZiB0
aGUgY2lwaGVydGV4dCwgYW5kIGhlbmNlIGludHJvZHVjZSB2dWxuZXJhYmlsaXRpZXMuDQo+DQo+
DQo+DQo+IDMgcG9zc2libGUgaW1wcm92ZW1lbnRzOg0KPg0KPg0KPg0KPiAxLiAgICAgICBBbGxv
dyBwYWRkaW5nIGJ5dGVzIHRvIGhhdmUgYW55IHZhbHVlLiBUaGUgcmVjZWl2ZXIganVzdCBza2lw
cw0KPiB0aGVtLg0KPg0KPg0KPg0KPiAyLiAgICAgICBDYWxjdWxhdGUgdGhlIHBhZGRpbmcgbGVu
Z3RoIGJ5IHJlZHVjaW5nIGEgMi1ieXRlIHVuc2lnbmVkIGludGVnZXINCj4gbW9kdWxvIHRoZSBt
YXhpbXVtIHBvc3NpYmxlIHBhZGRpbmcgbGVuZ3RoIChwbGFpbnRleHQgbGVuZ3RoIOKAkyAyKS4g
DQo+IFRoYXQgbWVhbnMgZXZlcnkgMi1ieXRlIHZhbHVlIHdpbGwgZ2l2ZSBhIHZhbGlkIHBhZGRp
bmcgbGVuZ3RoLg0KPg0KPg0KPg0KPiAzLiAgICAgICBQdXQgdGhlIDItYnl0ZSBwYWRkaW5nIGxl
bmd0aCBmaWVsZCBhdCB0aGUgZW5kLiBTbyB0aGUgcmVjZWl2ZXIgaGFzDQo+IHRvIGhhdmUgYSB3
aG9sZSBBRUFEIHBsYWludGV4dCBibG9jayBiZWZvcmUga25vd2luZyB3aGVyZSB0aGUgY29udGVu
dCANCj4gc3RhcnRzLg0KPg0KPg0KPg0KPiBBIHBsYWludGV4dCBibG9jayB3b3VsZCBiZTogcGxh
aW50ZXh0ID0gcGFkZGluZyB8fCBjb250ZW50IHx8IHBhZGxlbg0KPg0KPiBMZW4ocGxhaW50ZXh0
KSBpcyB0aGUgcmVjb3JkIHNpemUgLSAxNi4NCj4NCj4gTGVuKHBhZGxlbikgaXMgMiBieXRlcy4N
Cj4NCj4gTGVuKHBhZGRpbmcpID0gcGFkbGVuICUgKExlbihwbGFpbnRleHQpIC0gMikNCj4NCj4g
UGFkZGluZyBieXRlcyBoYXZlIGFueSB2YWx1ZS4NCj4NCj4gQ29udGVudCBpcyB0aGUgcmVtYWlu
ZGVyIG9mIHRoZSBwbGFpbnRleHQgYmxvY2suDQo+DQo+DQo+DQo+IFRoZSBuaWNlIGZlYXR1cmUg
b2YgdGhpcyBpcyB0aGF0IGV2ZXJ5IHBsYWludGV4dCBibG9jayBpcyB2YWxpZC4gVGhlIA0KPiBs
YXN0IDIgYnl0ZXMgY2FuIGJlIGFueXRoaW5nOyBtb2QgKExlbihwbGFpbnRleHQpIC0gMikgYWx3
YXlzIGdpdmVzIGEgDQo+IHZhbGlkIHBhZGRpbmcgbGVuZ3RoOyBwYWRkaW5nIGNhbiBiZSBhbnl0
aGluZzsgYW5kIGFsbCB0aGF0IGlzIGxlZnQgaXMgDQo+IHRoZSBjb250ZW50IHRvIHBhc3MgdG8g
dGhlIG5leHQgbGF5ZXIuIFdpdGggdGhpcyBhcnJhbmdlbWVudCB0aGVyZSBpcyANCj4gdmVyeSBs
aXR0bGUgcmlzayB0aGF0IHBsYWludGV4dCBzdHJ1Y3R1cmUgaXMgZGFuZ2Vyb3VzbHkgY2hlY2tl
ZCANCj4gYmVmb3JlIHBlcmZvcm1pbmcgdGhlIEFFQUQgaW50ZWdyaXR5IGNoZWNrLg0KPg0KPg0K
Pg0KPiBUaGlzIGZvcm0gaXMgbm8gaGFyZGVyIHRoYXQgdGhlIGN1cnJlbnQgc3RydWN0dXJlIHRv
IHByb2Nlc3MsIGJ1dCBpdCANCj4gZG9lcyBlbmNvdXJhZ2UgcHJvcGVyIHVzZSBvZiBBRUFEIEFQ
SXMuDQo+DQo+DQo+DQo+IC0tDQo+DQo+IEphbWVzIE1hbmdlcg0KPg0KPg0K


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Sun Jan 15 17:32:20 2017
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 CC69F128824 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 15 Jan 2017 17:32:20 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.12
X-Spam-Level:
X-Spam-Status: No, score=-10.12 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, 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=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 lDKgeXZTDArY for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 15 Jan 2017 17:32:19 -0800 (PST)
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 3C65C127058 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sun, 15 Jan 2017 17:32:18 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cSw7T-0004MJ-Ne for ietf-http-wg-dist@listhub.w3.org; Mon, 16 Jan 2017 01:29:59 +0000
Resent-Date: Mon, 16 Jan 2017 01:29:59 +0000
Resent-Message-Id: <E1cSw7T-0004MJ-Ne@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <mnot@mnot.net>) id 1cSw7Q-0004LY-CK for ietf-http-wg@listhub.w3.org; Mon, 16 Jan 2017 01:29:56 +0000
Received: from mxout-07.mxes.net ([216.86.168.182]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <mnot@mnot.net>) id 1cSw7J-0003fr-SD for ietf-http-wg@w3.org; Mon, 16 Jan 2017 01:29:51 +0000
Received: from [192.168.3.104] (unknown [124.189.98.244]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id DA08122E1FA; Sun, 15 Jan 2017 20:29:26 -0500 (EST)
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\))
From: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <CAOdDvNr==BmizwUPKaMZq__UckfM5bAJ0w15=A-R1xrtZ+JxjA@mail.gmail.com>
Date: Mon, 16 Jan 2017 12:29:23 +1100
Cc: HTTP Working Group <ietf-http-wg@w3.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <F1215D6F-1E83-48D2-B1D7-1E86775A20FD@mnot.net>
References: <CAOdDvNr==BmizwUPKaMZq__UckfM5bAJ0w15=A-R1xrtZ+JxjA@mail.gmail.com>
To: Patrick McManus <pmcmanus@mozilla.com>
X-Mailer: Apple Mail (2.3259)
Received-SPF: pass client-ip=216.86.168.182; envelope-from=mnot@mnot.net; helo=mxout-07.mxes.net
X-W3C-Hub-Spam-Status: No, score=-7.9
X-W3C-Hub-Spam-Report: AWL=1.744, BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_IRR=-3, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1cSw7J-0003fr-SD 2ec990755c11da4384647cdcba3e52bf
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Issue 271 of 5987bis - Proposed Standard or Internet Standard?
Archived-At: <http://www.w3.org/mid/F1215D6F-1E83-48D2-B1D7-1E86775A20FD@mnot.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33286
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>

Personal hat -

I'd prefer Proposed Standard; I don't think we want to overly promote =
the use of this encoding in new header fields, so calling it an Internet =
Standard sends the wrong message.=20

In particular, if we do come up with a better solution, there will be =
that awkward phase (perhaps years) when this one will be full standard, =
and the "better" one will be only Proposed.

Finally, I don't think it meets the criteria in 2026.

I'm not lie-down-in-the-road against this (they're just words, after =
all); just a preference.

Cheers,


> On 13 Jan 2017, at 9:10 am, Patrick McManus <pmcmanus@mozilla.com> =
wrote:
>=20
> Gentlefolk of the HTTPbis WG -
>=20
> I need to direct your attention to one of just two open issues with =
the 5987bis document (Indicating Character Encoding and Language for =
HTTP Header Field Parameters), which deals with the intended status of =
the eventual RFC. The consensus of the WG is sought.
>=20
> https://github.com/httpwg/http-extensions/issues/271
> The intended status of this document is currently listed as "Internet =
Standard" ( =
https://datatracker.ietf.org/doc/draft-ietf-httpbis-rfc5987bis/ )
>=20
> The other practical status for standards track documents is proposed =
standard  - its laid out here https://www.ietf.org/rfc/rfc2026.txt and =
also in https://www.rfc-editor.org/rfc/rfc6410.txt
>=20
> The basic guidance is:
>=20
>       An Internet Standard is characterized by a high degree of
>       technical maturity and by a generally held belief that the
>       specified protocol or service provides significant benefit to =
the
>       Internet community.
>=20
> A list of the ~100 active documents currently bearing STD status can =
be found here https://www.rfc-editor.org/standards#IS
> I apologize to Julian for not starting this thread earlier, I =
procrastinated long enough that we got into the holiday season and then =
I decided to defer until everyone's attention returned to work.
>=20
> Thanks for your input.
> -Patrick, chair-hat on

--
Mark Nottingham   https://www.mnot.net/



From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Sun Jan 15 19:37:53 2017
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 152D31200A0 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 15 Jan 2017 19:37:53 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.12
X-Spam-Level:
X-Spam-Status: No, score=-10.12 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-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=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=itaoyama.onmicrosoft.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 lIs-Ei1DHbRm for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 15 Jan 2017 19:37:50 -0800 (PST)
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 70A0A129449 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sun, 15 Jan 2017 19:37:49 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cSy3z-0003E5-R6 for ietf-http-wg-dist@listhub.w3.org; Mon, 16 Jan 2017 03:34:31 +0000
Resent-Date: Mon, 16 Jan 2017 03:34:31 +0000
Resent-Message-Id: <E1cSy3z-0003E5-R6@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <duerst@it.aoyama.ac.jp>) id 1cSy3s-0003DJ-6U for ietf-http-wg@listhub.w3.org; Mon, 16 Jan 2017 03:34:24 +0000
Received: from mail-os2jpn01on0119.outbound.protection.outlook.com ([104.47.92.119] helo=JPN01-OS2-obe.outbound.protection.outlook.com) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from <duerst@it.aoyama.ac.jp>) id 1cSy3l-0001iu-Eo for ietf-http-wg@w3.org; Mon, 16 Jan 2017 03:34:18 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=itaoyama.onmicrosoft.com; s=selector1-it-aoyama-ac-jp; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=qoTpNR+Z039xVdP2LG1GKW9F5wnHXLyPYP64eCkMmoU=; b=JZFEWHic6w4awKGHF9OtXqM/ClVxWn4e8aqC03OLirvtEp2HnYyaeWFlbswsebvNJP8fz7bVpsmFZ2x0k2RERcBx0T2wlBd3TmpAkx72CP9Zw3QwBs6RWWbSEQz5hIeVFl3+R+4q/XgsIGaZAlE+SxgRTB85bmcR7DfT83k1r/s=
Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=duerst@it.aoyama.ac.jp; 
Received: from [133.2.210.64] (133.2.210.64) by TY1PR01MB0651.jpnprd01.prod.outlook.com (10.167.158.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.845.12; Mon, 16 Jan 2017 03:33:47 +0000
To: Mark Nottingham <mnot@mnot.net>, Patrick McManus <pmcmanus@mozilla.com>
References: <CAOdDvNr==BmizwUPKaMZq__UckfM5bAJ0w15=A-R1xrtZ+JxjA@mail.gmail.com> <F1215D6F-1E83-48D2-B1D7-1E86775A20FD@mnot.net>
CC: HTTP Working Group <ietf-http-wg@w3.org>
From: =?UTF-8?Q?Martin_J._D=c3=bcrst?= <duerst@it.aoyama.ac.jp>
Organization: Aoyama Gakuin University
Message-ID: <a28ffb58-5907-117c-69e4-b8e5f2d65c26@it.aoyama.ac.jp>
Date: Mon, 16 Jan 2017 12:33:46 +0900
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0
MIME-Version: 1.0
In-Reply-To: <F1215D6F-1E83-48D2-B1D7-1E86775A20FD@mnot.net>
Content-Type: text/plain; charset="utf-8"; format=flowed
Content-Transfer-Encoding: 7bit
X-Originating-IP: [133.2.210.64]
X-ClientProxiedBy: OS2PR0101CA0027.jpnprd01.prod.outlook.com (10.167.173.165) To TY1PR01MB0651.jpnprd01.prod.outlook.com (10.167.158.14)
X-MS-Office365-Filtering-Correlation-Id: 48e6dda3-1ae0-4843-1e88-08d43dc07b42
X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:TY1PR01MB0651;
X-Microsoft-Exchange-Diagnostics: 1;TY1PR01MB0651;3:EcE9SsL8mrBYC84YtJu6ku+JpNgjQf1eqLASuikrl9Qfp527xOZLupRDjZ+Y9+QscvTH3RD7W+z+oyoa0aJ+kESZ3C0cpXSiCzQ/L+8bn+nVgMOxjBi6rAS9YIcOVccY9JNlzYuMhITVpGFTu80HB9/AXQbMUEo/yD9u35r7zqk8i87E5y6K0A+/brA3abKGSlMkM685Mfk9wnD8WjILCr1uAahrGiWchgkCPktVHtOoYg9wLVh7HgcZQy2Ny0HvK02GV93eebn0QCv8Fl73Ow==
X-Microsoft-Exchange-Diagnostics: 1;TY1PR01MB0651;25:E/0QyLbuJMmX3FLEHBs6lr2Zm+R012myz4oHzqJvjeA4cooOn8GKrF1hONNlZvVbuZbNMzdQ8FJamb+Vld61oPo/DDBYBNc5luOihQqhEFSWrt9364Leu/uX6i5qUdYojetKa1PMsVWP1sWSjKlvsdJPmdHYn/h/FJCWNrdafxE1GZpMrCnzyUGnPeLx5iDdq3FIMOHBsvzSfI7OXeNdBoyDadq03oRnQovXA0+Bh/B9gHgfC6E/5fEDrCu1sN6j2Z2Dgez5Bi07S0yTs7Mj5aqwmfhnylIzG1V7dA9PkZ4MJ6WCLxmdksLnHCcHXoNmp3jpIiKHIngilwfpabAehR0C+co+vulsBv1yyt3DKTw+xfLYX5HQgG5NWffrLs1UQi2HKmSCu+r3cutE6keW4qaMX8kCJ7B4OZ2UxNrBbBoRyhtbZcTkwrlkTgl22vIbk9uYgw9nDvRsRkImnult8+jIMe4rfE0GnxDTMXprBf/8Ygn0Iga12DLVOe9ZR+GsN47NqdmzpA7Wpr8GvcVGLKLc4GJWuM2NwnbtXvq0vIW2LEeH9jTa80PdG5NTHZ9oagyQ00i1i0v8fxL/EjTkPNU4k3ghfUDPJTDHOoWkc35Olyocb/Jcj0CctGk6OaWpHKMXAdabHCl2ILkKECsK+C4YwSSZiIBTVV/kHWfbaW9/t1uDptMwEhmf4bHrHknm5ukfsxB7N9kTJ1MTO73XZGjcA0KsCcefdYblpwDyXFeeIIWlDTzdVrefVHzDMYqzXMvXZk5OsqWGofKzSUuEqQ==
X-Microsoft-Exchange-Diagnostics: 1;TY1PR01MB0651;31:4qKmE1BIw3ei1B5kVvtECZr/wfvMFPB/GHuUJYZOHVEnyCfvKDEyLN2AGDagxrIcZz5YpXXF2wod+6sUmrtCdVUm8IzDfYRnfpwUQLE83mqL5MhMbdIIVSZg1H8LDYUdvNR1YAOOVuFNhWHX4Wl2lZ+Cg6/tQdZ381VhsXFFHtUVr4wIYk5VfJrMKOTr2NgnDlvoAYCQ0QaPlEUX5UwTBUmOXVfqTLmr8hXbdC4JLN2q/45xB7EKGaXHojra8B2PmrYhyxkX+yU8NM6Xu6wJ6Q==;4:RaHUF4wMW8nHnLv5bSFdRUeSI+99aTEAe0zwbXsaCzxV9sOcTlSLhYJH+jPO6Kn24i/GmpYJS1M5tATpgHYLZ4k2lEfJ49FBxUr/D6PrG07joH5Hou85RreMjMp2oGd3loQe1AXMmIpEv2S873Nlao3MXw9G5HOzVx65hz5YZJMuMOHjnAl4A3QO5omCPr4npqfzmsCeddBorLXXX5phxyZ5RDo5JOMrysMpONVaXTxF4Lsdf5z3rr7iVxK7LIhr0dPjv0sPCZa6XFphqT2Rudzzd+zEMJEOsH/fNWRl/qwFzHGFIHRleFWxG8Bu0ZkdtfdHCwS4TXNJtPS1Vfnbam+vMbl7kH64kaOP3Kexl/N/y2Gj5PrhuE50FRxUhmRfUoVElkoDeVZ9uBUnSVfnkyGURdxo5EDNv+90dtlzKdmmIZ9JhzlQGvlQApxLSru2yA1Hw2ULChtMzusHfgYeUb+UwDuO1EYpsiKDJIjXfzVZli8sLmg9FYm+TYGqNwgJcKMmbYEop3UwClHKSJMbq6vvzOUakFhOllDuOlxyoI5GYI9mKHdVm+TBBIyDQ0IC
X-Microsoft-Antispam-PRVS: <TY1PR01MB0651D233FB298961E8C01A6FCA7D0@TY1PR01MB0651.jpnprd01.prod.outlook.com>
X-Exchange-Antispam-Report-Test: UriScan:;
X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040375)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6041248)(20161123562025)(20161123555025)(20161123564025)(20161123560025)(6072148);SRVR:TY1PR01MB0651;BCL:0;PCL:0;RULEID:;SRVR:TY1PR01MB0651;
X-Forefront-PRVS: 01894AD3B8
X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(4630300001)(6049001)(6009001)(7916002)(39450400003)(24454002)(199003)(5403001)(189002)(92566002)(6486002)(189998001)(83506001)(42882006)(106356001)(64126003)(101416001)(25786008)(2950100002)(90366009)(105586002)(38730400001)(5660300001)(65826007)(23676002)(8676002)(31696002)(230700001)(42186005)(81166006)(81156014)(5001770100001)(47776003)(4001350100001)(97736004)(50466002)(50986999)(305945005)(2906002)(4326007)(33646002)(74482002)(65956001)(76176999)(86362001)(54356999)(229853002)(65806001)(6116002)(66066001)(3846002)(31686004)(27001)(7736002)(68736007)(3940600001);DIR:OUT;SFP:1102;SCL:1;SRVR:TY1PR01MB0651;H:[133.2.210.64];FPR:;SPF:None;PTR:InfoNoRecords;A:0;MX:1;LANG:en;
Received-SPF: None (protection.outlook.com: it.aoyama.ac.jp does not designate permitted sender hosts)
X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtUWTFQUjAxTUIwNjUxOzIzOkNzUVVTY2hQbkVlenllc1Qzb0RJd3ErSWZy?= =?utf-8?B?clhibllydE9jTDIxWndhWUVaL3pFTFJEYTR6c1EyRWd1MlRjODI0dVlWTy85?= =?utf-8?B?Zk1FRDFKMFhLb3hiakprd1ptNnZlbnJSVzNOeUsxRC80TTF0b1BwazJRV1Zy?= =?utf-8?B?YVZpVEw2WnNxaUxadGE4REVZbnByYVZDSW9JUTJxWXlrWi80MzFhSFhyM2tx?= =?utf-8?B?L3dIU1d2Y3RtU2RZcFJ6QnFaMnRHMFVRT1ZKZ1V6dGNVL2JwZ0hSL3V6d0VJ?= =?utf-8?B?UU5RaTlZMkZ2c2FQcmRxZlAwa3BFRndZaldwZnpKMEljOUMwQkVkUkF6a052?= =?utf-8?B?eHozNlBQNEs2ZVMzcUFqWEkyMXVnR3owbmZJMmxaMXhyUXB2Nmw1TElxTEc2?= =?utf-8?B?K3BEM0MwaGxVM2V4K3huZ0djSjZ3S0pQNm1iVnlYMDl5dENYcEN0L2JqWVhK?= =?utf-8?B?N01sZEk2TU1ZdmxqS3B2NHJsWThjY0FrWEJ5ZWJHS2JxUTBnUjIyMnBPVzRI?= =?utf-8?B?dE03aGNGU0FoR01meEtWNVlObUh5cHNPbXJDZDgyOFh6M2lRcVljOHRvMGV5?= =?utf-8?B?OVUyR20vZGVsSFZpMFU5OFQrcGZNNWtxQTQ0ZTFrdHdwNS9BYTZ2ZDI0K1Ba?= =?utf-8?B?Rjg4eWwyMkpEdEd1QzAycWExL3B1am9jaDBVTCszb2tqWnZKRmR5dVE2amF6?= =?utf-8?B?N1BMSXlEd05GL2dqdGxMSEpWWWV2N0N2bU1Qd1MzWGF6YmZZY25LUCtnV0Yr?= =?utf-8?B?U2ZyMVlISE1UVlY5ejZreDFsQ1cwN1RCNWJkcWVvZ3l4aU5UbVR6dlpEamhq?= =?utf-8?B?WVQrTmJYRlpKN3U2eDdrK3VPWFYrRkIrZlh6dUFIVncxRWJPa2NXRkpGdE5E?= =?utf-8?B?Nkw4ZENKNHBDT0g0RVFkRnFVYmFMaVJLZGYvZzhCYUhtVjhLT1VXN2lqRkFS?= =?utf-8?B?ZW5tdmxVY2s2bkVodHhMN3FNNEN0dERFU21UYVBVQXRId2xFam1tRVdQWER2?= =?utf-8?B?RWNjcjN6VzVKOWRFWG45cDR3WVYwaVV5ZmdPVGV3SUx1UlU2bVVFOTN1S0J1?= =?utf-8?B?WXlSSTJxdzhQT1J4TTlveHc1NW8wNUM0VlhWV0tvcGtiZDNTSTdnNkhOc2NS?= =?utf-8?B?UDBFME10M3BXVGk4K1Znalo2aENKcklNaG45Tk1LVCt4V3dUbUEvcmt5eWt5?= =?utf-8?B?bTU0M3Q3VjVRVWh3RTAvbS9wNm56Sk84dGp3TXFWVk1sOFZJelF4RjJzejdl?= =?utf-8?B?WmUzb1VZTWxNUjdiWXBDNzhzMDg3OGRZV090VlBjbDVweVB3UzRVcElESFpG?= =?utf-8?B?dEI2bHF0QWlKSG94NzZBVkEwNDkvcS8wMGw4bW54SEZENE5uRk1BM1J0R0Jt?= =?utf-8?B?MFFVSW1YdDAyNUFPQytHUThJa1Ewd1plU1h4b2NqcHVtbUpmaGtrV1pCb2Vw?= =?utf-8?B?b040VFdMNllvc1Nra3dQUmVoUEdnNjZwODZReVVzMG4wdE1DZVpqWW1FQ3Nj?= =?utf-8?B?cXJhSm9zWGZneE8vQmFtRURMdXBsVmVEWXFjK0JNUFpKOVFGY1FnYW5WZmU0?= =?utf-8?B?R0Q1L2RWa3c0ZW55eDZDZ3dQbmtxREFyYUhDaWRyQ3FPeFdZNzV0a1VoRUxt?= =?utf-8?B?UlYxV1E2MFk1amZNZ3UzenpMYVdiOTk2WXBGeEFKK3BZUHo5elRId1pYRFJB?= =?utf-8?B?aitBUTIxazVlbDV3MUJuWFptTERUSXFKYWpLOHdqa1B2bnBwZDJocThjWUZ4?= =?utf-8?B?cmo2RDhvYTlXZFVTSzRmeFhXL3hRczFZUjZVZk9tUDd2eW96VnNRcnZ5OFlT?= =?utf-8?B?NGlyOW94NzVZUXZsWGRjRWppZFBhbDlZSDNtRnBEVkRVaVE9PQ==?=
X-Microsoft-Exchange-Diagnostics: 1;TY1PR01MB0651;6:Hw78yxn0mKlT1DhUE3GEzdBhvASdExMFZh7vjyftP/KyOF6vFhh2oMeAZrGw5PiH+Z/35Y01CojUr1Clv0euZnmGqEnaD0Qnz5VwFlxyHvLbvd08q/tke7Ve2ukMfa8kc2JcoejiiklXOsauHq0RTNejxrjSbobF6pzwKw90TzI7+Sux4rJ2dvhIRE1iCr+k1V+WYIKIBLEjF5ElSIi1byf5Sq+N1YaBjGc7rMKkxsECjiErBhuuKHagSQRHnpeUko8Tyt0hUSii+Kck+dvFbjEuGR/gC0OWygkaX2jYEAZ/20FPriBSOcLgXGizq7T+8tnEIn6zQUJgK0egBIa27Qv5+MkUUJ7uS89g+FwiVYjMHxa3X3IRSkR3EEtjAnHk871OxVTXO7+KbGciHm4sDLKHiIODJmVDgV0NJ83kac8=;5:0EW3yWUngrsp6vroNT0BEGojMnskriXliNvWXI32q1OVI2Vb36K3JUtb2lBWPj3+odmx4VnHZblkvZvADgQcuhTBIrZiRflEdaSX6dypRjufLarFnoPSj+iTZC5afUShZw/V5cp4rtC+Fule3cbYN2EULG+PcQDP9ZfyXKDUFa4=;24:abBgFNYOoyyOynqimCJzJqgXjBMCfHYFCbaa3+u0JaIuL6GhsoGAdv7hltD1r6H8goA/0mlEiaV0Vw0l8O+rVyoUcW1mqj/wGhOcMlk/Qyc=
SpamDiagnosticOutput: 1:99
SpamDiagnosticMetadata: NSPM
X-Microsoft-Exchange-Diagnostics: 1;TY1PR01MB0651;7:VcrexUPJHr0ahMJcTcXaw7U7wQlA9z74QOqbXtWWhIAyrSdKTKZ+gKtvN0BPJZoDEFnnpr0XsooLN6IvL2ZRzAc0dK1e+kYGrX9i9sfG3i9nFpbjNUOTRuSEIXCTBpu8F9/NlPXAwTvdocumdzVQcn2GU5e2oWqYnP2v5Q8MikaCtSekXu2XyLXJu8EbkR40JLYeUbT1OU4nO4jOqZ8PU23wDTfmH1DqR3V6DQHn64eRubZpsOMhUhjDGlCQUZG5pWHWXwy+Sv/ad+6YICtQ8FrsJg3BeyGDDibDUy6q5XhoFQ2860CWj+9tVrTVTN2yqWIrCVmkHav2Spyw0OZDRGd7qiaG7o99/RXSGObjyglKMVBN/k7zs0CfSTteBpWvOiJdLhZQgptZ2pRmR7RoBqJ63m/Se0oE3OxjW71nW0gIjN7kd8qnB2fXtdJWN734AZzGxSQWDnBeGWxnP4cv6w==
X-OriginatorOrg: it.aoyama.ac.jp
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jan 2017 03:33:47.5537 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY1PR01MB0651
Received-SPF: pass client-ip=104.47.92.119; envelope-from=duerst@it.aoyama.ac.jp; helo=JPN01-OS2-obe.outbound.protection.outlook.com
X-W3C-Hub-Spam-Status: No, score=-6.8
X-W3C-Hub-Spam-Report: AWL=0.164, BAYES_40=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_IRR=-3, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cSy3l-0001iu-Eo cc93d3ed08e92e5527fd4ce0e2c2ea14
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Issue 271 of 5987bis - Proposed Standard or Internet Standard?
Archived-At: <http://www.w3.org/mid/a28ffb58-5907-117c-69e4-b8e5f2d65c26@it.aoyama.ac.jp>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33287
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 2017/01/16 10:29, Mark Nottingham wrote:
> Personal hat -
>
> I'd prefer Proposed Standard; I don't think we want to overly promote the use of this encoding in new header fields, so calling it an Internet Standard sends the wrong message.

Fully agreed!

Also, Julian mentioned that it might be additional work to move it to 
full Standard, but if this is ever necessary, it can happen as part of 
moving HTTP 1.1 to full standard, with very little overhead.

Regards,   Martin.


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Sun Jan 15 22:50:58 2017
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 F103112943A for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 15 Jan 2017 22:50:57 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.12
X-Spam-Level:
X-Spam-Status: No, score=-10.12 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, 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=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 pH1kFL91SRKJ for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 15 Jan 2017 22:50:56 -0800 (PST)
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 A94B81293F5 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sun, 15 Jan 2017 22:50:56 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cT14v-0006vN-91 for ietf-http-wg-dist@listhub.w3.org; Mon, 16 Jan 2017 06:47:41 +0000
Resent-Date: Mon, 16 Jan 2017 06:47:41 +0000
Resent-Message-Id: <E1cT14v-0006vN-91@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <julian.reschke@gmx.de>) id 1cT14s-0006to-Rn for ietf-http-wg@listhub.w3.org; Mon, 16 Jan 2017 06:47:38 +0000
Received: from mout.gmx.net ([212.227.17.21]) by mimas.w3.org with esmtps (TLS1.2:DHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <julian.reschke@gmx.de>) id 1cT14k-00084K-Hh for ietf-http-wg@w3.org; Mon, 16 Jan 2017 06:47:33 +0000
Received: from [192.168.178.20] ([93.217.79.224]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MSZ6u-1c1PVV1EkG-00RdH7; Mon, 16 Jan 2017 07:46:49 +0100
To: =?UTF-8?Q?Martin_J._D=c3=bcrst?= <duerst@it.aoyama.ac.jp>, Mark Nottingham <mnot@mnot.net>, Patrick McManus <pmcmanus@mozilla.com>
References: <CAOdDvNr==BmizwUPKaMZq__UckfM5bAJ0w15=A-R1xrtZ+JxjA@mail.gmail.com> <F1215D6F-1E83-48D2-B1D7-1E86775A20FD@mnot.net> <a28ffb58-5907-117c-69e4-b8e5f2d65c26@it.aoyama.ac.jp>
Cc: HTTP Working Group <ietf-http-wg@w3.org>
From: Julian Reschke <julian.reschke@gmx.de>
Message-ID: <ea3af488-93cd-69a0-c72c-1695150ea841@gmx.de>
Date: Mon, 16 Jan 2017 07:46:46 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0
MIME-Version: 1.0
In-Reply-To: <a28ffb58-5907-117c-69e4-b8e5f2d65c26@it.aoyama.ac.jp>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Provags-ID: V03:K0:OUM0hX+4eXbhZIbLldhI8iqDQT26/R4+FRsPSuJ9e2tw/Sa2uS0 EL9FRYIxFhES3MU4NUX7ScgFYfq/y90uY0RyNe+TjSZR58iqx96gMBDIvZMVYg268MpRy2o XPeO7hjcWa5cr3D2BC90x7hhl21gCVcc4Pf31tElXbldK0QL/NI40HzRwkM30uTOIlwcc82 FaemGWrwvbl2eaoPmAjfw==
X-UI-Out-Filterresults: notjunk:1;V01:K0:2i/Jusl5hTg=:qK7HuZYZb/VyAUFSaNC+Km vWdJUtFG8Uit4TsvgtoDiZNrqlB4gFcmoUqQhOw4wVBNN2aJTwNrEMWbqPU2WaYD0SpSfSDFy Pw3TvMReHJ2GK4Fy3djNZa6Lnf97eNhQYwio0zam4dyrycY1MTRVknLcpfBCcPhxyXav8GAJp rACV7bRHCHhoLRNvU0igXl1VjWm1Ly/V49XT5EVVtulCxQgh6QVHOE/+UhI2MN+TJEyQk5YVc JMlhy/+XjpZpIWUEwMEAG9T1LE0GCjS3kl4m9Sipuw/HktoMICl13RD1Qm9wn3mRqLCZtYyp/ HJT1eHNqeYwU1/wd6+H99ly3EqdiiKyg40zCK2J0M5R2W/XL/2X/DMDtcLoZXuNMorJFK88Ly 4BXrPmMGYJj+qsuz06Wa+qjc0/XnAhO5uc9x9D0tZq5MQfaOB8AIET6ttOnwSlPZm3AZA23cp Ffpat0wu3kXYOLVqxVWekMZiVp6MzvgkknYPCLikJH3Yb2IvDZ15zpaY4zQ5VWZDxEMJ/joC+ SjW6H2sctjn6yVwLcDQeB69ZQ1XHPw6DuoMG6hWjXWiCLH4QCBIVnz6fiHWBinfkOdI7+hkUV di1wLko0f9yKdd+2gLQJ6SVgSfSa2IrvQwWLT/iSnJ++se9HwYQ9bDRegPbRHC8xKw6j2uVlw 2roGrRSamtcFU1/dU6zT8K6dsqNj9fDJp2V7+uMNNuV9PZVnzhQlu6ERSAqfuC0QoCx2uK6Kt bDhLHfsB5JZCup7XvjaHWqyWumf5Y1WIshKoV6ZPZoKLDcT8Tf/CkSbJqvSIHQZ6IIVfj4xl7 y6O0ASYKmrgLOcrU+MdkYpJalsvCh3aliF3CY7k0zhlGZ3Vi9PJWdFJI4Mk1aXo6fsw025+LL ua0WMH7j8CtMbMNpWtqAQDSNDhTlZd3HFgPW33yZRPKLRoq1J6HsaKAcX7DNM9At6R+CcswFr yf9NUqsVrmoxamm/NQ7C4ibofbLCQoZM853vcOfp6V2oTo1xtATY9NZWmaNVYKj/biKcaIBgX gFK7PEmRiYspdguSWoKMfoJN0IfaaWDD/57TJrN0MBK8k6AIpRLJHUhYnLm5INvDQg==
Received-SPF: pass client-ip=212.227.17.21; envelope-from=julian.reschke@gmx.de; helo=mout.gmx.net
X-W3C-Hub-Spam-Status: No, score=-7.2
X-W3C-Hub-Spam-Report: AWL=0.591, BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-1.156, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cT14k-00084K-Hh 14876e632d825655b02436ba29040ba4
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Issue 271 of 5987bis - Proposed Standard or Internet Standard?
Archived-At: <http://www.w3.org/mid/ea3af488-93cd-69a0-c72c-1695150ea841@gmx.de>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33288
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 2017-01-16 04:33, Martin J. Dürst wrote:
> On 2017/01/16 10:29, Mark Nottingham wrote:
>> Personal hat -
>>
>> I'd prefer Proposed Standard; I don't think we want to overly promote
>> the use of this encoding in new header fields, so calling it an
>> Internet Standard sends the wrong message.
>
> Fully agreed!
>
> Also, Julian mentioned that it might be additional work to move it to
> full Standard, but if this is ever necessary, it can happen as part of

No, I didn't (as far as I remember).

> moving HTTP 1.1 to full standard, with very little overhead.

That's an interesting proposal; however, I'd be very surprised if those 
who don't want it to be full standard would support integration into the 
next set of base specs.

Best regards, Julian



From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Sun Jan 15 23:12:35 2017
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 58014129407 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 15 Jan 2017 23:12:35 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.72
X-Spam-Level:
X-Spam-Status: No, score=-9.72 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, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, 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 zdT8DUi8UdYt for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 15 Jan 2017 23:12:34 -0800 (PST)
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 1B760126D73 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sun, 15 Jan 2017 23:12:34 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cT1QY-00011k-GD for ietf-http-wg-dist@listhub.w3.org; Mon, 16 Jan 2017 07:10:02 +0000
Resent-Date: Mon, 16 Jan 2017 07:10:02 +0000
Resent-Message-Id: <E1cT1QY-00011k-GD@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <martin.thomson@gmail.com>) id 1cT1QV-0000rD-MG for ietf-http-wg@listhub.w3.org; Mon, 16 Jan 2017 07:09:59 +0000
Received: from mail-qt0-f175.google.com ([209.85.216.175]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <martin.thomson@gmail.com>) id 1cT1QP-0000KS-DO for ietf-http-wg@w3.org; Mon, 16 Jan 2017 07:09:54 +0000
Received: by mail-qt0-f175.google.com with SMTP id x49so96548884qtc.2 for <ietf-http-wg@w3.org>; Sun, 15 Jan 2017 23:09:32 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=wNAi7XIDrMW+ZpuYifWPe1eyjKHfI2f1idbjOOTIocQ=; b=HBvB7WUJZkdErDwCFdfq/DV1UDCDg2umwWTEVdslDjlzUklBD6CKAsAELoftJFR+4L QuD0XnbxSAXlTpqI2A+lqAhfelY+QgmY58QGsVpIzvNXjs4sS3bEf8XRQfqehY8qa5jj iIxq8NP1xnlSJyQkgiiJDeQPalUdVn6/2li61dcFXKcvy4U7mrShr3BaYbsuB5r14khJ eORoHlv8Ty5sk3nUnMlp1gSHj9wvqxjDDsMMZge4Cnh4wB9swj819F5l9tIj3RMd6ivk QoSNGWqC8jnnOmHfXCY5IwVViePQu6QT6MB2wIJsvYzSGNybLK8lS1jSIWoLeWa3H3SA 0+yA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=wNAi7XIDrMW+ZpuYifWPe1eyjKHfI2f1idbjOOTIocQ=; b=lmOK4kc8zgKiMhu3d/fDlgKVQDXuMHWin4RELUtaVkDcBUlM1GYP7aokPzvzM203b2 RhpJnheMcuwV1LbyImFuwnjh9xH/kjHxzyt0ua2u2vbF/NFZ5ng7DPaY9wG05PrZd1LB iInc9JOs/BLgOsYTJn59nygVdpBgmGHcsTJkgbZpvgUdOoEciRCSOarQbKDTLbj17ZQ2 xiZ5PB3xWf/Xcsz07iHcasrpxBmssSwkxPJ6l7A6eLH+CI5vcrzRBUDwTCEwEfV89h6U XcAlazvXrzvrJeEnrrzvi23fPxo4YOuGC0+dHjRZ7kj5o7mtNY8U2DTVCwjc21HYqnB3 r2aw==
X-Gm-Message-State: AIkVDXJiPRNmo3SjzXnVShaNUnkuRj3t8xapPWbYrNhlr29P3OSDwDjTprKd6lhQ+8o/hBT+wRJEzK2xYw70AQ==
X-Received: by 10.237.35.84 with SMTP id i20mr31096465qtc.247.1484550567314; Sun, 15 Jan 2017 23:09:27 -0800 (PST)
MIME-Version: 1.0
Received: by 10.140.19.112 with HTTP; Sun, 15 Jan 2017 23:09:26 -0800 (PST)
In-Reply-To: <SYXPR01MB16150F4D3D19CC69D18E1A09E57D0@SYXPR01MB1615.ausprd01.prod.outlook.com>
References: <SYXPR01MB161520224A59CDCE0D433A2CE57A0@SYXPR01MB1615.ausprd01.prod.outlook.com> <CABkgnnUo-tf69AzJC=OUy2rjDZwedTd5Ua9mhOiJBqaA0VKrYw@mail.gmail.com> <SYXPR01MB16150F4D3D19CC69D18E1A09E57D0@SYXPR01MB1615.ausprd01.prod.outlook.com>
From: Martin Thomson <martin.thomson@gmail.com>
Date: Mon, 16 Jan 2017 20:09:26 +1300
Message-ID: <CABkgnnV_OatRWyZBE3Rak22gS1jrOZKjCGwOePpbqJCAeJFM4Q@mail.gmail.com>
To: "Manger, James" <James.H.Manger@team.telstra.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.216.175; envelope-from=martin.thomson@gmail.com; helo=mail-qt0-f175.google.com
X-W3C-Hub-Spam-Status: No, score=-6.1
X-W3C-Hub-Spam-Report: AWL=0.120, 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, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cT1QP-0000KS-DO 211d7724aa5be1381f7c60f0eb7d5097
X-Original-To: ietf-http-wg@w3.org
Subject: Re: aes128gcm: why verify padding?
Archived-At: <http://www.w3.org/mid/CABkgnnV_OatRWyZBE3Rak22gS1jrOZKjCGwOePpbqJCAeJFM4Q@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33289
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 16 January 2017 at 14:06, Manger, James
<James.H.Manger@team.telstra.com> wrote:
> Improvement 2 is actually much better for this. The "internal" length (padding length) is calculated mod (external length - 2) so it can never be too large.

A better scheme would be to pad with an arbitrary number of zeroes,
then a terminal non-zero value.  That could be at the end, like in
TLS.  It also allows for lower overhead and arbitrary amounts of
padding.

But I'd like to hear whether other people think that this is worth fixing.


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Sun Jan 15 23:47:01 2017
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 EBAC9129407 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 15 Jan 2017 23:47:01 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.12
X-Spam-Level:
X-Spam-Status: No, score=-10.12 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-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=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=itaoyama.onmicrosoft.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 BAscIKA499Re for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 15 Jan 2017 23:47:00 -0800 (PST)
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 5C9211293DF for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sun, 15 Jan 2017 23:47:00 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cT1xC-0005SK-Vi for ietf-http-wg-dist@listhub.w3.org; Mon, 16 Jan 2017 07:43:46 +0000
Resent-Date: Mon, 16 Jan 2017 07:43:46 +0000
Resent-Message-Id: <E1cT1xC-0005SK-Vi@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <duerst@it.aoyama.ac.jp>) id 1cT1x5-0005RP-Nr for ietf-http-wg@listhub.w3.org; Mon, 16 Jan 2017 07:43:39 +0000
Received: from mail-ty1jpn01on0116.outbound.protection.outlook.com ([104.47.93.116] helo=JPN01-TY1-obe.outbound.protection.outlook.com) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from <duerst@it.aoyama.ac.jp>) id 1cT1wz-00061q-4A for ietf-http-wg@w3.org; Mon, 16 Jan 2017 07:43:34 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=itaoyama.onmicrosoft.com; s=selector1-it-aoyama-ac-jp; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=F2Zws5ELsk12XoBcuR0X14p8Qk8cSz0UulOomj6lgL0=; b=OYP8a3wy2gSJ/BPMLu3MIbcNGgDLMNw2u3ze4DN2+MudDnVg5foldv5VlTZ2dF8y/Wqntwskk92r3L99qW+yr0SO94i2VGc6oNaA8jl9HA+b3KNL0O5jE0o/nYXYXQmlNSoh1wUwvls6u/OuzXDs8mEB27tJ4QfnDW/1HtEuSUo=
Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=duerst@it.aoyama.ac.jp; 
Received: from [133.2.210.64] (133.2.210.64) by OS2PR01MB0644.jpnprd01.prod.outlook.com (10.167.176.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.845.12; Mon, 16 Jan 2017 07:43:03 +0000
To: Julian Reschke <julian.reschke@gmx.de>, Mark Nottingham <mnot@mnot.net>, Patrick McManus <pmcmanus@mozilla.com>
References: <CAOdDvNr==BmizwUPKaMZq__UckfM5bAJ0w15=A-R1xrtZ+JxjA@mail.gmail.com> <F1215D6F-1E83-48D2-B1D7-1E86775A20FD@mnot.net> <a28ffb58-5907-117c-69e4-b8e5f2d65c26@it.aoyama.ac.jp> <ea3af488-93cd-69a0-c72c-1695150ea841@gmx.de>
CC: HTTP Working Group <ietf-http-wg@w3.org>
From: =?UTF-8?Q?Martin_J._D=c3=bcrst?= <duerst@it.aoyama.ac.jp>
Organization: Aoyama Gakuin University
Message-ID: <bb64ce77-1d24-7107-4d48-550c96787fb5@it.aoyama.ac.jp>
Date: Mon, 16 Jan 2017 16:43:01 +0900
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0
MIME-Version: 1.0
In-Reply-To: <ea3af488-93cd-69a0-c72c-1695150ea841@gmx.de>
Content-Type: text/plain; charset="utf-8"; format=flowed
Content-Transfer-Encoding: 8bit
X-Originating-IP: [133.2.210.64]
X-ClientProxiedBy: TY1PR01CA0052.jpnprd01.prod.outlook.com (10.167.153.140) To OS2PR01MB0644.jpnprd01.prod.outlook.com (10.167.176.142)
X-MS-Office365-Filtering-Correlation-Id: b75451b8-8886-4cd9-ba3a-08d43de34dc8
X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:OS2PR01MB0644;
X-Microsoft-Exchange-Diagnostics: 1;OS2PR01MB0644;3:FiDJTuWIdG/hk2LD8UvM9is7wgmTdsZ9PmA1jEOPhHMDAicFa29iRQYLYzn1G75R+phdkrA73gV+st3kI+unKX1TfTH9SsuSgdpNoybZ7mk09g5KWMhVSWS2xuGVP5neto2zD8i5yOEOggWl2kH4xERybMIsmo4+EHCBy3bIg8Za0/qK/SLEyfuYitY8drLx8+TNDuW7i3YQmQ8AnyTIyiu1PC+E7bEO+clqVGRAa0i/xR1nV3T5oEj3ehGUWz/gtBJLhTP6/enj6MpeWC8wzw==
X-Microsoft-Exchange-Diagnostics: 1;OS2PR01MB0644;25:VPS/G0Nf45/MgSkFzPhDAqan9Y9IPsikw9aUTfkVEYvykLJamifBZ4PBvddkav0iRyS24lTF8aQ2of99JwjmNgg9AM9xAi2HCbYeqmNA8xCbDxFlHyW6Z7N1IByFlqkCLxaUmsLWM4kY9L6wrgEwsDUMnEJ75mtpfxBKiE8Scfp6I0g3yrOd42ixSQOx/CsqlVd3co4xeWEcdkkRDv3CAWxGltqS7KDidciU/eu3qnpUPgYqpjQmtdGblJwk9ol7zG7HRY7Dg2o3pU6QfXUCJVPtDz7VctCvbwC2iafMgb9HF3OSn+dgVhL/xymSaCmPBKC3MRjOnGg7tZ890E1Nz5iQv0exTE06MlGvCtgQiSdZhEDf5ZzcciQqQ3rEKk4ZxeJAXOBNYNbSVsfzu5ggZS56JjfKQeWMPOsrcGKxwRphULTw6X3PQVaOZk/0TgdAr83N4uLZRkxKThLF37KmZ2mMBlWrNI656cLx4SJ/CGOwxfYtiV2Capqza7L6BbnIEu5aGYGDaknN4uHPVY0VDfbHUwf7c7DvqKtO4XQqh5YIeq1wci/Ru4fe+6/ita31dXOVxLBHEgAz6w3ya2E8CwywHxfNhUdT+POOzPNU2ohv3rFOECku23xQ9hR9J7KNXnCXZLa2wGXNKjIFynVJRmVZ+1GFEw2svUc4/hWFEWsHYQl9+0EP108FO2+9FyWU8FSgJVjggHllSmLyBZ7cIZFPf/3LDnHfOzNv+IdAoL1fBvU1xbxuXxcrvD0SXnOY/VBolwkRXoh8HdS8foMqsw==
X-Microsoft-Exchange-Diagnostics: 1;OS2PR01MB0644;31:sSIrQSaxP0Ekm9+LaLKMcJ9QBtL6qt8l9fDlwFrUh4gfIs+YWPjToABtbGbVVOwaqD9184Xgi9WzT8RsDCfhoambbWqVaiDVbcPxcFuqoGOinGTDbL8BFRcYmVmCKLKotGeUqtUO4ni8PSG7+iOw9HY51Y0Xvd8a3e6Gx23moZiroI+nspr5Hsktv6f70LNo8XMeqm7TYvt+Tq6th8otj2P+PYI54kQrnrHT0+Hd+SrnGXF14vzqP6sYuIqyRj+K6j2zQyV5zzz+itScaKECvw==;4:jUYdYdYxg5cl/7um8oVwcGbXWawtl332UBK4R2mI1kZvHTfuWdSE6adsjycG5U9LrM4gjJenZYROKtIiw4Z7Jm8Ez+S1jgsNXfLvnSPrLifCakqFW2vn58lWTASCJNxyNsr3k9db/GZw+SjW8N7Uoe0OaXmhlYqOrWVOzwpV4nCrEpeclwBEdKvGvKwX8HSYWmcxu8gQyS1CeQKjNq2j+GbHzMYjMSjRJkCauYNivAOmDlb0fkDFCoYmaeMuoQI/b0UOZzWjWflR9mxM9MzVZQWOFRIorSGLxWvYDIxTLjjUUnerhUvT+Q0/X01XakALnN7Pvm0241MA03iSwAcK0HouNx5VPL85JkqKJDUpyVuYgbe4nINfYQ+fSTkp5NWELyeekdMhqIsF6PmQu6yaO4ZEh22nXinyiWCGRK4l/PZuI6LrbS9sRhs66pbKizfYtahN+JOZlS4k0byrMfabYSd6lZC+nc3rvccWSix3/DWxWHg2Lx1tXaDWIZqVX1DL9c1SZq4mWmX912A1JEW6PSyXnX/AcR5yH1AqG3Swg1VCSD5GU2u2hUU0UOofYWLc
X-Microsoft-Antispam-PRVS: <OS2PR01MB06443869661E04653897C4C6CA7D0@OS2PR01MB0644.jpnprd01.prod.outlook.com>
X-Exchange-Antispam-Report-Test: UriScan:;
X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040375)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6041248)(20161123562025)(20161123555025)(20161123564025)(20161123560025)(6072148);SRVR:OS2PR01MB0644;BCL:0;PCL:0;RULEID:;SRVR:OS2PR01MB0644;
X-Forefront-PRVS: 01894AD3B8
X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(4630300001)(979002)(6009001)(6049001)(7916002)(39450400003)(24454002)(199003)(189002)(5403001)(377424004)(229853002)(101416001)(74482002)(54356999)(38730400001)(66066001)(65956001)(50986999)(76176999)(65806001)(6486002)(81156014)(42186005)(23676002)(31686004)(105586002)(2870700001)(68736007)(189998001)(305945005)(2906002)(106356001)(81166006)(8676002)(5001770100001)(7736002)(4001350100001)(97736004)(561944003)(25786008)(4326007)(65826007)(2950100002)(42882006)(92566002)(64126003)(6116002)(8666007)(86362001)(33646002)(31696002)(83506001)(50466002)(90366009)(3846002)(27001)(93886004)(47776003)(5660300001)(3940600001)(969003)(989001)(999001)(1009001)(1019001);DIR:OUT;SFP:1102;SCL:1;SRVR:OS2PR01MB0644;H:[133.2.210.64];FPR:;SPF:None;PTR:InfoNoRecords;A:0;MX:1;LANG:en;
Received-SPF: None (protection.outlook.com: it.aoyama.ac.jp does not designate permitted sender hosts)
X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtPUzJQUjAxTUIwNjQ0OzIzOlVJSjR1OXFMNVNGcXAySkNzamhSTjFtU0NX?= =?utf-8?B?SS90amNsT0lhQTlIVVZwL3ZUTkVlU1QyeUh4Lzd2Qm9uQkg2a1dNeVJKelVa?= =?utf-8?B?aFo2RFRzNk5udGExTElwR2VKaytFbkVUMWwzS3RBSXdBdWtNdHpZd1lSUU1M?= =?utf-8?B?bXVIUHhINlRSK3owTDEvVVhCdjcxU2xUUG9YV2JPemhkZ0tCSFg5ZmsyRjEw?= =?utf-8?B?bzlNbVY3OWIxdzlvRlZpUGR0dlA3WWRkY0ZFQUd1ODBXVHgvbEppRGlpSnZ6?= =?utf-8?B?c2dkQmVFWmxrK1dzWms1Y29FZUE0cUR5UDY2OTZXekYyOWVLbGxUYklGQjNX?= =?utf-8?B?Z1N5SDNVSC9CMDlkbS9xWWxrVWpWRytPSU5qQTRFcWdKdW9aS3N4bHdNajFK?= =?utf-8?B?MHlyM1M5NkN4cDY2czhiSEdGdUQvTWsrQUxvNmVZL1dOR0xWZHlvYWlrbnpW?= =?utf-8?B?TFZTbXEyZ0RiS2xhYkw2QjhqUkhKUTcwenR3VnlMcGQySTNWeXdLTElXRkxn?= =?utf-8?B?enNVY2FlTDk5SmppVHc2V0ZlWlFQREgxYVVsVm1WU2lKRGlud3A3WFlvSk9t?= =?utf-8?B?QmpWVEFFL1ptWTFuamdidDd2UUF1YUFUNUU3VDc2L1o3enVJeWFCRWUydTEw?= =?utf-8?B?SW1xOUlZbUkzYWpnUWM3QWt5Q1R6SnhCSEkrY2ViLzdHbXRZYkRCa2lnZXlW?= =?utf-8?B?YWhUN2EwVTd5enplWUFkU1RTakU1TUJzVlovUml2dWNCeUlhZktQWTlaQWp5?= =?utf-8?B?a1phZWo5Z2hsZEVYc1FoSldsY2FyZGZ6eFk1YlVwWitNYll0ZGZtU2tUdjAx?= =?utf-8?B?dmpWNlFDTzQ0Y01yalEySnZEZ0FKa0k4RHpkMCtkMWZ0Y1dVc3Btc253cERu?= =?utf-8?B?ZkJqR1RvUllqZWlIT2dxSXB2ZHNKM3ZoSXNnTEEyZWQ0cGRIeTVLeWRDRkVO?= =?utf-8?B?cm9RWHNVV1NxU3VqOG0vYmRhQk8vNHVyMlluS09NQUsxUEgrS3k5cmpCQnhk?= =?utf-8?B?ZjFvVUVseWZjazd5Z2RPOWxRWUJ2cHpFTElIUlluZHRacWhmZ3NJS1MvT29t?= =?utf-8?B?bGNod0d2MEkzQmR4V2RlS1dxVEJZc1Zma2VtNVZxV2MzUFMxRkQ1anBrTHRo?= =?utf-8?B?d2pvaUdSY0IzcGlERkRKWU41Z0JlZXpMRlZuTlY0c29vcFhHck1LdHgzUytN?= =?utf-8?B?alFuV2Z0NW5OeWRBSzI3YUU2WTR6aXhCVEM3bTRnVkJEQkkyUFdlaytCaWVE?= =?utf-8?B?MnAwdndKaTBMRWhxa21GcW9jbXdhU3JodVc5bnVra3hsV3l6VEh5TkVBc3Zq?= =?utf-8?B?anQxTUZWY1pXSXpvcE9OUGhMaFlPMFRLcDYxUi9tRDhJbnZqTlA3MnFJYmly?= =?utf-8?B?L0thMXdkTHhPK2hCUVRRSE42YkZxYmorbTdtbWV3VVAwQ3hRVGtPYkMrbFZa?= =?utf-8?B?SG1ybU93OFp5NkFSWGU2WUVIVEY5d1llYXltaVdEUCtWSkx1cFFCOXgrdWFF?= =?utf-8?B?VmRtTzhPU3lndWVtYXdHQXVYb0VpUzRTN1FVZEl5QXBvWEorcVRoWTA5dys4?= =?utf-8?B?Nk1qL1FIdWpNRDBwK2ViSlBuQ3l0MERXdnluUGJLL0lKYzVuVU03NnAzT0Zy?= =?utf-8?B?MzNjVDVZMEdtUUJkYnRnZGIxTW9KM0R1aTNlTnRIZUYzbFJJY0l5NXpESWxQ?= =?utf-8?B?cmFNdVdDQStMemFwSENmRTMxU1phV0JKRU1xVFJEdDluMkNPUWo1Sml0enNo?= =?utf-8?B?aUc1MUJwb0dialRvc3h5TTd6aUYyd0pPczlBVHl4TUFhQzZXNHVwRjIrV0RI?= =?utf-8?B?NUVZQ1hUSUhRTW9wVDRjSDFqeGFuUWlVTEhQVE5mTG9HUktYaG02ZlA2VzU2?= =?utf-8?B?UVVVRjZ6K3ptNXIramdUbGNxVkhWeFNiUEgyd3VLNkJKYnZNbGRhanovREpz?= =?utf-8?B?Yy9xQ3pVcEpESjFsNU9DNHBpdTdyQ3NlcDY5V1pxRHkvVUFzTVZhRTI3WFhO?= =?utf-8?B?czhpVGNYMGtoeEJYU3NUSGp5VmNjK3Q3Tmh4QjVHMVB6WUp2MEs2NjB0aFIz?= =?utf-8?Q?ZUWrNezFuGGajSaE/zbBx8sAx?=
X-Microsoft-Exchange-Diagnostics: 1;OS2PR01MB0644;6:gEluOtmmlF3TFlatkDvm473waoFMyJ0Kl9Leir/7Bq26iYpjrUvW8vimWiVO1+AJQwxg2oOYOwYpulKOVH+YHY43yIeA6/pgylljUH7LqhfA3CBXzafSYYsvCKCmW0BLIik0aUvvN1++ki19qYFJWBDHu3vZsyD7iesg4IHwHHByU9zxFSMIrUcEFuo/NYe4fE+45r3t6cBQOV4JDI3+kC5X0ilwUse3MyirBWz83qCMr9Jwtl3GX8yzLEBJOCjpgXLtiPLyhQmQ6h7QhUY0OuiaBwMTz3Ae9vQVeVmZqpYv4j49XgtFnuCNStWZJUsv8wGCSo6PzupJGV6W7dHDrGv2AaNrE7uYmCUN48ab5s1TFKkEuH9VtooN39Aac7JH7nK7Hw91Vwm1cpSTMb5aY6uSdcW1Fn6w+y5/mxLcTjo=;5:nEg0uJuqn3tRZje8dnDNK+JY95NT3noQy8a1VJ1AodY0e6xEcls7XnLV0i4drRZj8DFR93RGlg4cPnCYXj12mJ6ZtdNMDgzPWeKhTWXdH6iIVO9Qq0U9nHD/mG3aGLfgv3JSNKVHwfZXhiroBmvZsTrMqQPWnr/Yvrr1SjfYIzk=;24:1cr8XgPYsZKUb1yzsal5TDoJunebe7uu0dx2CPzQB/heWrMjYhlkgIgdTZMDR4sRoTDIR1eaNET8HqWxD0knqOp/cU2Xt/dSzk+Nx+HTAsE=
SpamDiagnosticOutput: 1:99
SpamDiagnosticMetadata: NSPM
X-Microsoft-Exchange-Diagnostics: 1;OS2PR01MB0644;7:/V9hHWCCLzYEHgVyjb1s4mzpJRdRq3IHwr2dhMEPUdwMm8fE29xpZMBj4MxBSA1nRMbvQrEVo60YTPWdI3wVsEUEOj2qUdR5hwCI+PdWDzl90iNANb3owcJFKP8pc36KqyiYyxIo49UqmV1Gq18/et7X41XxdAIkNE/ObDGwu9upVfyjg9xCNy+ybNEyFGOjrAl9otfk90fWYBHlUF8Xqe5NW7MniQ3NXbVMm1w91egMu6frcvvCuddRMwfnqqcV2jlX+xrHrU2WmHURCbSJH7ey+7bsf9Ny5sf5cP+VdGHL1fSQvwunlKn3EFVG4vbyA/rt0XXQpa92hWF60bgE0D3Pmq/2CD5TBYUQqssOauxbHmfzUJ0hyAjvV4K5YhOQwL/5zutg2RBUsiiZLgL6NdXyXkQYse35glHNrCGu4G3G+x7w5MRjphKg6e9qPjFJeYHFyRvo7f6PzDzlgESInQ==
X-OriginatorOrg: it.aoyama.ac.jp
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jan 2017 07:43:03.6632 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS2PR01MB0644
Received-SPF: pass client-ip=104.47.93.116; envelope-from=duerst@it.aoyama.ac.jp; helo=JPN01-TY1-obe.outbound.protection.outlook.com
X-W3C-Hub-Spam-Status: No, score=-7.8
X-W3C-Hub-Spam-Report: AWL=1.114, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_IRR=-3, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1cT1wz-00061q-4A 2040039c0800ac61866694f188511968
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Issue 271 of 5987bis - Proposed Standard or Internet Standard?
Archived-At: <http://www.w3.org/mid/bb64ce77-1d24-7107-4d48-550c96787fb5@it.aoyama.ac.jp>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33290
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 2017/01/16 15:46, Julian Reschke wrote:
> On 2017-01-16 04:33, Martin J. Dürst wrote:
>> On 2017/01/16 10:29, Mark Nottingham wrote:
>>> Personal hat -
>>>
>>> I'd prefer Proposed Standard; I don't think we want to overly promote
>>> the use of this encoding in new header fields, so calling it an
>>> Internet Standard sends the wrong message.
>>
>> Fully agreed!
>>
>> Also, Julian mentioned that it might be additional work to move it to
>> full Standard, but if this is ever necessary, it can happen as part of
>
> No, I didn't (as far as I remember).

Sorry, I interpreted the "*additional* hurdles" in your mail that way. 
On rereading, it looks like you meant to point more to the additional 
hurdle of "not being more mature than HTTP" than to the additional 
process-wise hurdle of moving from Proposed to Standard separately.

>> moving HTTP 1.1 to full standard, with very little overhead.
>
> That's an interesting proposal; however, I'd be very surprised if those
> who don't want it to be full standard would support integration into the
> next set of base specs.

There are probably three sets of people: Those who wouldn't mind 
Standard now, those who don't think going to Standard now is a good 
idea, and those who might oppose going to Standard even if HTTP 1.1 
moves up. I guess we'll see when we get there.

Regards,   Martin.


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Mon Jan 16 08:52:06 2017
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 68C5712945E for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 16 Jan 2017 08:52:06 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.12
X-Spam-Level:
X-Spam-Status: No, score=-10.12 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, 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=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 y60AioB8LFRC for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 16 Jan 2017 08:52:04 -0800 (PST)
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 C927F1293D8 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 16 Jan 2017 08:52:04 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cTATG-000509-Ea for ietf-http-wg-dist@listhub.w3.org; Mon, 16 Jan 2017 16:49:26 +0000
Resent-Date: Mon, 16 Jan 2017 16:49:26 +0000
Resent-Message-Id: <E1cTATG-000509-Ea@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <Lucas.Pardue@bbc.co.uk>) id 1cTATB-0004tN-Bv for ietf-http-wg@listhub.w3.org; Mon, 16 Jan 2017 16:49:21 +0000
Received: from mailout0.cwwtf.bbc.co.uk ([132.185.160.179]) by titan.w3.org with esmtps (TLS1.2:DHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <Lucas.Pardue@bbc.co.uk>) id 1cTAT3-0001OR-QO for ietf-http-wg@w3.org; Mon, 16 Jan 2017 16:49:16 +0000
Received: from BGB01XI1001.national.core.bbc.co.uk ([10.184.50.51]) by mailout0.cwwtf.bbc.co.uk (8.15.2/8.14.3) with ESMTP id v0GGmqFD027362 for <ietf-http-wg@w3.org>; Mon, 16 Jan 2017 16:48:52 GMT
Received: from BGB01XUD1012.national.core.bbc.co.uk ([10.161.14.10]) by BGB01XI1001.national.core.bbc.co.uk ([10.184.50.51]) with mapi id 14.03.0319.002; Mon, 16 Jan 2017 16:48:50 +0000
Content-Type: multipart/mixed; boundary="_000_7CF7F94CB496BF4FAB1676F375F9666A376B9A92bgb01xud1012_"
From: Lucas Pardue <Lucas.Pardue@bbc.co.uk>
To: HTTP Working Group <ietf-http-wg@w3.org>
Thread-Topic: Multiple Alt-Svc parameters of the same type
Thread-Index: AdJwD1nipE7N1BWkQ6a91Y0rjdnjyQ==
Date: Mon, 16 Jan 2017 16:48:49 +0000
Message-ID: <7CF7F94CB496BF4FAB1676F375F9666A376B9A92@bgb01xud1012>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator: <7CF7F94CB496BF4FAB1676F375F9666A376B9A92@bgb01xud1012>
x-originating-ip: [172.19.161.212]
x-exclaimer-md-config: 1cd3ac1c-62e5-43f2-8404-6b688271c769
x-tm-as-product-ver: SMEX-11.0.0.4179-8.000.1202-22828.000
x-tm-as-result: No--14.434900-0.000000-31
x-tm-as-user-approved-sender: Yes
x-tm-as-user-blocked-sender: No
MIME-Version: 1.0
Received-SPF: pass client-ip=132.185.160.179; envelope-from=Lucas.Pardue@bbc.co.uk; helo=mailout0.cwwtf.bbc.co.uk
X-W3C-Hub-Spam-Status: No, score=-6.5
X-W3C-Hub-Spam-Report: AWL=0.389, BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-3.199, SPF_PASS=-0.001, W3C_NW=0.5
X-W3C-Scan-Sig: titan.w3.org 1cTAT3-0001OR-QO db0035e4b6a5a09368f579279738d68d
X-Original-To: ietf-http-wg@w3.org
Subject: Multiple Alt-Svc parameters of the same type
Archived-At: <http://www.w3.org/mid/7CF7F94CB496BF4FAB1676F375F9666A376B9A92@bgb01xud1012>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33291
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>

--_000_7CF7F94CB496BF4FAB1676F375F9666A376B9A92bgb01xud1012_
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64

SGVsbG8gYWxsLA0KDQpUaGUg4oCcduKAnSBBbHQtU3ZjIHBhcmFtZXRlciBoYXMgc2VlbiBzb21l
IHVzZSBpbiB0aGUgd2lsZCwgbmFtZWx5IEdvb2dsZSBzZXJ2aWNlcyBvZmZlcmluZyB0aGUg4oCc
cXVpY+KAnSBhbHRlcm5hdGl2ZSBzZXJ2aWNlLiBUbyBkYXRlIHRoaXMgcGFyYW1ldGVyIHdhcyBu
b3QgZGVmaW5lZCBhbnl3aGVyZSBidXQgdG9vayB0aGUgZm9ybSBvZiBhIGNvbW1hLXNlcGFyYXRl
ZCBsaXN0IG9mIG51bWJlcnMgZS5nLg0KDQpBbHQtU3ZjOiBxdWljPSI6NDQz4oCdOyB2PSIzNSwz
NCINCg0KTWlrZSBCaXNob3AgaXMgZ2l2aW5nIGFuIG9mZmljaWFsIGRlZmluaXRpb24gb2YgdGhl
IEFsdC1TdmMg4oCcduKAnSBwYXJhbWV0ZXIsIGFzIHBhcnQgb2YgaHR0cHM6Ly90b29scy5pZXRm
Lm9yZy9odG1sL2RyYWZ0LWlldGYtcXVpYy1odHRwLTAxI3NlY3Rpb24tMi4xLCB3aGljaCBpcyBk
aWZmZXJlbnQgdGhhbiBHb29nbGXigJlzIHByZXZpb3VzIHVzYWdlLg0KDQo+IFdoZW4gbXVsdGlw
bGUgdmVyc2lvbnMgYXJlIHN1cHBvcnRlZCwgdGhlICJ2IiBwYXJhbWV0ZXIgTUFZIGJlDQo+IHJl
cGVhdGVkIG11bHRpcGxlIHRpbWVzIGluIGEgc2luZ2xlIEFsdC1TdmMgZW50cnkuICBGb3IgZXhh
bXBsZSwgaWYgYQ0KPiBzZXJ2ZXIgc3VwcG9ydGVkIGJvdGggdmVyc2lvbiAiUTAzNCIgYW5kIHZl
cnNpb24gMHgwMDAwMDAwMSwgaXQgd291bGQNCj4gc3BlY2lmeSB0aGUgZm9sbG93aW5nIGhlYWRl
cjoNCg0KPiBBbHQtU3ZjOiBocT0iOjQ0MyI7dj0ieDEiO3Y9ImNRMDM0Ig0KDQo+IFdoZXJlIG11
bHRpcGxlIHZlcnNpb25zIGFyZSBsaXN0ZWQsIHRoZSBvcmRlciBvZiB0aGUgdmFsdWVzIHJlZmxl
Y3RzDQo+IHRoZSBzZXJ2ZXIncyBwcmVmZXJlbmNlICh3aXRoIHRoZSBmaXJzdCB2YWx1ZSBiZWlu
ZyB0aGUgbW9zdA0KPiBwcmVmZXJyZWQgdmVyc2lvbikuDQoNClRoaXMgZ290IG1lIHRoaW5raW5n
LCBSRkMgNzgzOCBkb2VzbuKAmXQgc2VlbSB0byBnaXZlIGFueSBkaXJlY3Rpb24gb24gdGhlIGhh
bmRsaW5nIG9mIG11bHRpcGxlIHBhcmFtZXRlcnMgb2YgdGhlIHNhbWUgdHlwZS4gRm9yIGV4YW1w
bGUsIGlzIGl0IE9LIGZvciBhIHNlcnZlciB0byBnZW5lcmF0ZSBtdWx0aXBsZSDigJxwZXJzaXN0
4oCdIHBhcmFtZXRlcnMgcGVyaGFwcyB3aXRoIGRpZmZlcmVudCB2YWx1ZXMsIGhvdyBzaG91bGQg
YSBjbGllbnQgZGVhbCB3aXRoIHRoYXQ/IFBlcmhhcHMgSeKAmW0gd29ycnlpbmcgdG9vIG11Y2gu
DQoNCkkgd29uZGVyZWQgaWYgdGhlIEFsdC1TdmMgcGFyYW1ldGVyIElBTkEgcmVnaXN0cnkgY291
bGQgdXNlIHNvbWUgbmV3IGNvbHVtbnMgdG8gZGVmaW5lIHRoZSBhbGxvd2VkIG11bHRpcGxpY2l0
eSBvZiBlYWNoIHBhcmFtZXRlciwgYW5kIGFuIGluZGljYXRpb24gb2YgaG93IHRvIHRyZWF0IHRo
ZSBvcmRlcmluZy4gQW55IHRob3VnaHRzPw0KDQpSZWdhcmRzDQpMdWNhcw0KDQoNCg0KDQotLS0t
LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tDQoNCmh0dHA6Ly93d3cuYmJjLmNvLnVrDQpUaGlzIGUt
bWFpbCAoYW5kIGFueSBhdHRhY2htZW50cykgaXMgY29uZmlkZW50aWFsIGFuZCBtYXkgY29udGFp
biBwZXJzb25hbCB2aWV3cyB3aGljaCBhcmUgbm90IHRoZSB2aWV3cyBvZiB0aGUgQkJDIHVubGVz
cyBzcGVjaWZpY2FsbHkgc3RhdGVkLg0KSWYgeW91IGhhdmUgcmVjZWl2ZWQgaXQgaW4gZXJyb3Is
IHBsZWFzZSBkZWxldGUgaXQgZnJvbSB5b3VyIHN5c3RlbS4NCkRvIG5vdCB1c2UsIGNvcHkgb3Ig
ZGlzY2xvc2UgdGhlIGluZm9ybWF0aW9uIGluIGFueSB3YXkgbm9yIGFjdCBpbiByZWxpYW5jZSBv
biBpdCBhbmQgbm90aWZ5IHRoZSBzZW5kZXIgaW1tZWRpYXRlbHkuDQpQbGVhc2Ugbm90ZSB0aGF0
IHRoZSBCQkMgbW9uaXRvcnMgZS1tYWlscyBzZW50IG9yIHJlY2VpdmVkLg0KRnVydGhlciBjb21t
dW5pY2F0aW9uIHdpbGwgc2lnbmlmeSB5b3VyIGNvbnNlbnQgdG8gdGhpcy4NCg0KLS0tLS0tLS0t
LS0tLS0tLS0tLS0tDQo=

--_000_7CF7F94CB496BF4FAB1676F375F9666A376B9A92bgb01xud1012_
Content-Disposition: attachment; filename="winmail.dat"
Content-Transfer-Encoding: base64
Content-Type: application/ms-tnef; name="winmail.dat"

eJ8+ImYAAQaQCAAEAAAAAAABAAEAAQeQBgAIAAAA5AQAAAAAAADoAAEJgAEAIQAAADIyQkI4QkZC
REFDQzhFNDdCODIwNDgwNDY0NzA4RjI2AEAHAQ2ABAACAAAAAgACAAEFgAMADgAAAOEHAQAQABAA
MAAxAAEAawEBIIADAA4AAADhBwEAEAAQADAAMQABAGsBAQiABwAYAAAASVBNLk1pY3Jvc29mdCBN
YWlsLk5vdGUAMQgBBIABAC0AAABNdWx0aXBsZSBBbHQtU3ZjIHBhcmFtZXRlcnMgb2YgdGhlIHNh
bWUgdHlwZQA4EAEDkAYA4CcAAEAAAAACAX8AAQAAADgAAAA8N0NGN0Y5NENCNDk2QkY0RkFCMTY3
NkYzNzVGOTY2NkEzNzZCOUE5MkBiZ2IwMXh1ZDEwMTI+AAIBExABAAAAyxsAADxIVE1MIHhtbG5z
OnY9InVybjpzY2hlbWFzLW1pY3Jvc29mdC1jb206dm1sIiB4bWxuczpvPSJ1cm46c2NoZW1hcy1t
aWNyb3NvZnQtY29tOm9mZmljZTpvZmZpY2UiIHhtbG5zOnc9InVybjpzY2hlbWFzLW1pY3Jvc29m
dC1jb206b2ZmaWNlOndvcmQiIHhtbG5zOm09Imh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20v
b2ZmaWNlLzIwMDQvMTIvb21tbCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnL1RSL1JFQy1odG1s
NDAiPjxIRUFEPjwhLS0gVGVtcGxhdGUgZ2VuZXJhdGVkIGJ5IEV4Y2xhaW1lciBNYWlsIERpc2Ns
YWltZXJzIG9uIDA0OjQ4OjUxIE1vbmRheSwgMTYgSmFudWFyeSAyMDE3IC0tPg0KPFNUWUxFIHR5
cGU9dGV4dC9jc3M+UC5iNTEwNmQ2YS0xNGRiLTRjNWUtYjU5NC02YTdhNDExNzUwM2Igew0KCU1B
UkdJTjogMGNtIDBjbSAwcHQNCn0NCkxJLmI1MTA2ZDZhLTE0ZGItNGM1ZS1iNTk0LTZhN2E0MTE3
NTAzYiB7DQoJTUFSR0lOOiAwY20gMGNtIDBwdA0KfQ0KRElWLmI1MTA2ZDZhLTE0ZGItNGM1ZS1i
NTk0LTZhN2E0MTE3NTAzYiB7DQoJTUFSR0lOOiAwY20gMGNtIDBwdA0KfQ0KVEFCTEUuYjUxMDZk
NmEtMTRkYi00YzVlLWI1OTQtNmE3YTQxMTc1MDNiVGFibGUgew0KCU1BUkdJTjogMGNtIDBjbSAw
cHQNCn0NCkRJVi5TZWN0aW9uMSB7DQoJcGFnZTogU2VjdGlvbjENCn0NCjwvU1RZTEU+DQo8bWV0
YSBodHRwLWVxdWl2PUNvbnRlbnQtVHlwZSBjb250ZW50PSJ0ZXh0L2h0bWw7IGNoYXJzZXQ9dXRm
LTgiIC8+PG1ldGEgbmFtZT1HZW5lcmF0b3IgY29udGVudD0iTWljcm9zb2Z0IFdvcmQgMTUgKGZp
bHRlcmVkIG1lZGl1bSkiIC8+PHN0eWxlPjwhLS0NCi8qIEZvbnQgRGVmaW5pdGlvbnMgKi8NCkBm
b250LWZhY2UNCgl7Zm9udC1mYW1pbHk6IkNhbWJyaWEgTWF0aCI7DQoJcGFub3NlLTE6MiA0IDUg
MyA1IDQgNiAzIDIgNDt9DQpAZm9udC1mYWNlDQoJe2ZvbnQtZmFtaWx5OkNhbGlicmk7DQoJcGFu
b3NlLTE6MiAxNSA1IDIgMiAyIDQgMyAyIDQ7fQ0KLyogU3R5bGUgRGVmaW5pdGlvbnMgKi8NCnAu
TXNvTm9ybWFsLCBsaS5Nc29Ob3JtYWwsIGRpdi5Nc29Ob3JtYWwNCgl7bWFyZ2luOjBjbTsNCglt
YXJnaW4tYm90dG9tOi4wMDAxcHQ7DQoJZm9udC1zaXplOjExLjBwdDsNCglmb250LWZhbWlseToi
Q2FsaWJyaSIsc2Fucy1zZXJpZjsNCgltc28tZmFyZWFzdC1sYW5ndWFnZTpFTi1VUzt9DQphOmxp
bmssIHNwYW4uTXNvSHlwZXJsaW5rDQoJe21zby1zdHlsZS1wcmlvcml0eTo5OTsNCgljb2xvcjoj
MDU2M0MxOw0KCXRleHQtZGVjb3JhdGlvbjp1bmRlcmxpbmU7fQ0KYTp2aXNpdGVkLCBzcGFuLk1z
b0h5cGVybGlua0ZvbGxvd2VkDQoJe21zby1zdHlsZS1wcmlvcml0eTo5OTsNCgljb2xvcjojOTU0
RjcyOw0KCXRleHQtZGVjb3JhdGlvbjp1bmRlcmxpbmU7fQ0KcHJlDQoJe21zby1zdHlsZS1wcmlv
cml0eTo5OTsNCgltc28tc3R5bGUtbGluazoiSFRNTCBQcmVmb3JtYXR0ZWQgQ2hhciI7DQoJbWFy
Z2luOjBjbTsNCgltYXJnaW4tYm90dG9tOi4wMDAxcHQ7DQoJZm9udC1zaXplOjEwLjBwdDsNCglm
b250LWZhbWlseToiQ291cmllciBOZXciO30NCnNwYW4uRW1haWxTdHlsZTE3DQoJe21zby1zdHls
ZS10eXBlOnBlcnNvbmFsLWNvbXBvc2U7DQoJZm9udC1mYW1pbHk6IkNhbGlicmkiLHNhbnMtc2Vy
aWY7DQoJY29sb3I6d2luZG93dGV4dDt9DQpzcGFuLkhUTUxQcmVmb3JtYXR0ZWRDaGFyDQoJe21z
by1zdHlsZS1uYW1lOiJIVE1MIFByZWZvcm1hdHRlZCBDaGFyIjsNCgltc28tc3R5bGUtcHJpb3Jp
dHk6OTk7DQoJbXNvLXN0eWxlLWxpbms6IkhUTUwgUHJlZm9ybWF0dGVkIjsNCglmb250LWZhbWls
eToiQ291cmllciBOZXciOw0KCW1zby1mYXJlYXN0LWxhbmd1YWdlOkVOLUdCO30NCi5Nc29DaHBE
ZWZhdWx0DQoJe21zby1zdHlsZS10eXBlOmV4cG9ydC1vbmx5Ow0KCW1zby1mYXJlYXN0LWxhbmd1
YWdlOkVOLVVTO30NCkBwYWdlIFdvcmRTZWN0aW9uMQ0KCXtzaXplOjYxMi4wcHQgNzkyLjBwdDsN
CgltYXJnaW46NzIuMHB0IDcyLjBwdCA3Mi4wcHQgNzIuMHB0O30NCmRpdi5Xb3JkU2VjdGlvbjEN
Cgl7cGFnZTpXb3JkU2VjdGlvbjE7fQ0KLS0+PC9zdHlsZT48IS0tW2lmIGd0ZSBtc28gOV0+PHht
bD4NCjxvOnNoYXBlZGVmYXVsdHMgdjpleHQ9ImVkaXQiIHNwaWRtYXg9IjEwMjYiIC8+DQo8L3ht
bD48IVtlbmRpZl0tLT48IS0tW2lmIGd0ZSBtc28gOV0+PHhtbD4NCjxvOnNoYXBlbGF5b3V0IHY6
ZXh0PSJlZGl0Ij4NCjxvOmlkbWFwIHY6ZXh0PSJlZGl0IiBkYXRhPSIxIiAvPg0KPC9vOnNoYXBl
bGF5b3V0PjwveG1sPjwhW2VuZGlmXS0tPjwvSEVBRD4NCjxCT0RZIGxhbmc9RU4tR0IgbGluaz0i
IzA1NjNDMSIgdmxpbms9IiM5NTRGNzIiPg0KPFAgY2xhc3M9YjUxMDZkNmEtMTRkYi00YzVlLWI1
OTQtNmE3YTQxMTc1MDNiPjxkaXYgY2xhc3M9V29yZFNlY3Rpb24xPjxwIGNsYXNzPU1zb05vcm1h
bD5IZWxsbyBhbGwsPG86cD48L286cD48L3A+PHAgY2xhc3M9TXNvTm9ybWFsPjxvOnA+Jm5ic3A7
PC9vOnA+PC9wPjxwIGNsYXNzPU1zb05vcm1hbD5UaGUgJiM4MjIwO3YmIzgyMjE7IEFsdC1TdmMg
cGFyYW1ldGVyIGhhcyBzZWVuIHNvbWUgdXNlIGluIHRoZSB3aWxkLCBuYW1lbHkgR29vZ2xlIHNl
cnZpY2VzIG9mZmVyaW5nIHRoZSAmIzgyMjA7cXVpYyYjODIyMTsgYWx0ZXJuYXRpdmUgc2Vydmlj
ZS4gVG8gZGF0ZSB0aGlzIHBhcmFtZXRlciB3YXMgbm90IGRlZmluZWQgYW55d2hlcmUgYnV0IHRv
b2sgdGhlIGZvcm0gb2YgYSBjb21tYS1zZXBhcmF0ZWQgbGlzdCBvZiBudW1iZXJzIGUuZy4gPG86
cD48L286cD48L3A+PHAgY2xhc3M9TXNvTm9ybWFsPjxvOnA+Jm5ic3A7PC9vOnA+PC9wPjxwIGNs
YXNzPU1zb05vcm1hbD48c3BhbiBzdHlsZT0nZm9udC1zaXplOjEwLjBwdDtmb250LWZhbWlseToi
Q291cmllciBOZXciO21zby1mYXJlYXN0LWxhbmd1YWdlOkVOLUdCJz5BbHQtU3ZjOiBxdWljPSZx
dW90Ozo0NDMmIzgyMjE7OyB2PSZxdW90OzM1LDM0JnF1b3Q7PG86cD48L286cD48L3NwYW4+PC9w
PjxwIGNsYXNzPU1zb05vcm1hbD48bzpwPiZuYnNwOzwvbzpwPjwvcD48cCBjbGFzcz1Nc29Ob3Jt
YWw+TWlrZSBCaXNob3AgaXMgZ2l2aW5nIGFuIG9mZmljaWFsIGRlZmluaXRpb24gb2YgdGhlIEFs
dC1TdmMgJiM4MjIwO3YmIzgyMjE7IHBhcmFtZXRlciwgYXMgcGFydCBvZiA8YSBocmVmPSJodHRw
czovL3Rvb2xzLmlldGYub3JnL2h0bWwvZHJhZnQtaWV0Zi1xdWljLWh0dHAtMDEjc2VjdGlvbi0y
LjEiPmh0dHBzOi8vdG9vbHMuaWV0Zi5vcmcvaHRtbC9kcmFmdC1pZXRmLXF1aWMtaHR0cC0wMSNz
ZWN0aW9uLTIuMTwvYT4sIHdoaWNoIGlzIGRpZmZlcmVudCB0aGFuIEdvb2dsZSYjODIxNztzIHBy
ZXZpb3VzIHVzYWdlLjxvOnA+PC9vOnA+PC9wPjxwIGNsYXNzPU1zb05vcm1hbD48bzpwPiZuYnNw
OzwvbzpwPjwvcD48cCBjbGFzcz1Nc29Ob3JtYWw+PHNwYW4gc3R5bGU9J2ZvbnQtc2l6ZToxMC4w
cHQ7Zm9udC1mYW1pbHk6IkNvdXJpZXIgTmV3Ijttc28tZmFyZWFzdC1sYW5ndWFnZTpFTi1HQic+
Jmd0OyBXaGVuIG11bHRpcGxlIHZlcnNpb25zIGFyZSBzdXBwb3J0ZWQsIHRoZSAmcXVvdDt2JnF1
b3Q7IHBhcmFtZXRlciBNQVkgYmU8bzpwPjwvbzpwPjwvc3Bhbj48L3A+PHAgY2xhc3M9TXNvTm9y
bWFsPjxzcGFuIHN0eWxlPSdmb250LXNpemU6MTAuMHB0O2ZvbnQtZmFtaWx5OiJDb3VyaWVyIE5l
dyI7bXNvLWZhcmVhc3QtbGFuZ3VhZ2U6RU4tR0InPiZndDsgcmVwZWF0ZWQgbXVsdGlwbGUgdGlt
ZXMgaW4gYSBzaW5nbGUgQWx0LVN2YyBlbnRyeS4mbmJzcDsgRm9yIGV4YW1wbGUsIGlmIGE8bzpw
PjwvbzpwPjwvc3Bhbj48L3A+PHAgY2xhc3M9TXNvTm9ybWFsPjxzcGFuIHN0eWxlPSdmb250LXNp
emU6MTAuMHB0O2ZvbnQtZmFtaWx5OiJDb3VyaWVyIE5ldyI7bXNvLWZhcmVhc3QtbGFuZ3VhZ2U6
RU4tR0InPiZndDsgc2VydmVyIHN1cHBvcnRlZCBib3RoIHZlcnNpb24gJnF1b3Q7UTAzNCZxdW90
OyBhbmQgdmVyc2lvbiAweDAwMDAwMDAxLCBpdCB3b3VsZDxvOnA+PC9vOnA+PC9zcGFuPjwvcD48
cCBjbGFzcz1Nc29Ob3JtYWw+PHNwYW4gc3R5bGU9J2ZvbnQtc2l6ZToxMC4wcHQ7Zm9udC1mYW1p
bHk6IkNvdXJpZXIgTmV3Ijttc28tZmFyZWFzdC1sYW5ndWFnZTpFTi1HQic+Jmd0OyBzcGVjaWZ5
IHRoZSBmb2xsb3dpbmcgaGVhZGVyOjxvOnA+PC9vOnA+PC9zcGFuPjwvcD48cCBjbGFzcz1Nc29O
b3JtYWw+PG86cD4mbmJzcDs8L286cD48L3A+PHAgY2xhc3M9TXNvTm9ybWFsPjxzcGFuIHN0eWxl
PSdmb250LXNpemU6MTAuMHB0O2ZvbnQtZmFtaWx5OiJDb3VyaWVyIE5ldyI7bXNvLWZhcmVhc3Qt
bGFuZ3VhZ2U6RU4tR0InPiZndDsgQWx0LVN2YzogaHE9JnF1b3Q7OjQ0MyZxdW90Ozt2PSZxdW90
O3gxJnF1b3Q7O3Y9JnF1b3Q7Y1EwMzQmcXVvdDs8bzpwPjwvbzpwPjwvc3Bhbj48L3A+PHAgY2xh
c3M9TXNvTm9ybWFsPjxzcGFuIHN0eWxlPSdmb250LXNpemU6MTAuMHB0O2ZvbnQtZmFtaWx5OiJD
b3VyaWVyIE5ldyI7bXNvLWZhcmVhc3QtbGFuZ3VhZ2U6RU4tR0InPjxvOnA+Jm5ic3A7PC9vOnA+
PC9zcGFuPjwvcD48cCBjbGFzcz1Nc29Ob3JtYWw+PHNwYW4gc3R5bGU9J2ZvbnQtc2l6ZToxMC4w
cHQ7Zm9udC1mYW1pbHk6IkNvdXJpZXIgTmV3Ijttc28tZmFyZWFzdC1sYW5ndWFnZTpFTi1HQic+
Jmd0OyBXaGVyZSBtdWx0aXBsZSB2ZXJzaW9ucyBhcmUgbGlzdGVkLCB0aGUgb3JkZXIgb2YgdGhl
IHZhbHVlcyByZWZsZWN0czxvOnA+PC9vOnA+PC9zcGFuPjwvcD48cCBjbGFzcz1Nc29Ob3JtYWw+
PHNwYW4gc3R5bGU9J2ZvbnQtc2l6ZToxMC4wcHQ7Zm9udC1mYW1pbHk6IkNvdXJpZXIgTmV3Ijtt
c28tZmFyZWFzdC1sYW5ndWFnZTpFTi1HQic+Jmd0OyB0aGUgc2VydmVyJ3MgcHJlZmVyZW5jZSAo
d2l0aCB0aGUgZmlyc3QgdmFsdWUgYmVpbmcgdGhlIG1vc3Q8bzpwPjwvbzpwPjwvc3Bhbj48L3A+
PHAgY2xhc3M9TXNvTm9ybWFsPjxzcGFuIHN0eWxlPSdmb250LXNpemU6MTAuMHB0O2ZvbnQtZmFt
aWx5OiJDb3VyaWVyIE5ldyI7bXNvLWZhcmVhc3QtbGFuZ3VhZ2U6RU4tR0InPiZndDsgcHJlZmVy
cmVkIHZlcnNpb24pLjxvOnA+PC9vOnA+PC9zcGFuPjwvcD48cCBjbGFzcz1Nc29Ob3JtYWw+PHNw
YW4gc3R5bGU9J2ZvbnQtc2l6ZToxMC4wcHQ7Zm9udC1mYW1pbHk6IkNvdXJpZXIgTmV3Ijttc28t
ZmFyZWFzdC1sYW5ndWFnZTpFTi1HQic+PG86cD4mbmJzcDs8L286cD48L3NwYW4+PC9wPjxwIGNs
YXNzPU1zb05vcm1hbD5UaGlzIGdvdCBtZSB0aGlua2luZywgUkZDIDc4MzggZG9lc24mIzgyMTc7
dCBzZWVtIHRvIGdpdmUgYW55IGRpcmVjdGlvbiBvbiB0aGUgaGFuZGxpbmcgb2YgbXVsdGlwbGUg
cGFyYW1ldGVycyBvZiB0aGUgc2FtZSB0eXBlLiBGb3IgZXhhbXBsZSwgaXMgaXQgT0sgZm9yIGEg
c2VydmVyIHRvIGdlbmVyYXRlIG11bHRpcGxlICYjODIyMDtwZXJzaXN0JiM4MjIxOyBwYXJhbWV0
ZXJzIHBlcmhhcHMgd2l0aCBkaWZmZXJlbnQgdmFsdWVzLCBob3cgc2hvdWxkIGEgY2xpZW50IGRl
YWwgd2l0aCB0aGF0PyBQZXJoYXBzIEkmIzgyMTc7bSB3b3JyeWluZyB0b28gbXVjaC48bzpwPjwv
bzpwPjwvcD48cCBjbGFzcz1Nc29Ob3JtYWw+PG86cD4mbmJzcDs8L286cD48L3A+PHAgY2xhc3M9
TXNvTm9ybWFsPkkgd29uZGVyZWQgaWYgdGhlIEFsdC1TdmMgcGFyYW1ldGVyIElBTkEgcmVnaXN0
cnkgY291bGQgdXNlIHNvbWUgbmV3IGNvbHVtbnMgdG8gZGVmaW5lIHRoZSBhbGxvd2VkIG11bHRp
cGxpY2l0eSBvZiBlYWNoIHBhcmFtZXRlciwgYW5kIGFuIGluZGljYXRpb24gb2YgaG93IHRvIHRy
ZWF0IHRoZSBvcmRlcmluZy4gQW55IHRob3VnaHRzPzxvOnA+PC9vOnA+PC9wPjxwIGNsYXNzPU1z
b05vcm1hbD48bzpwPiZuYnNwOzwvbzpwPjwvcD48cCBjbGFzcz1Nc29Ob3JtYWw+UmVnYXJkczxv
OnA+PC9vOnA+PC9wPjxwIGNsYXNzPU1zb05vcm1hbD5MdWNhczxvOnA+PC9vOnA+PC9wPjxwIGNs
YXNzPU1zb05vcm1hbD48bzpwPiZuYnNwOzwvbzpwPjwvcD48L2Rpdj48L1A+DQo8UCBjbGFzcz1i
NTEwNmQ2YS0xNGRiLTRjNWUtYjU5NC02YTdhNDExNzUwM2I+Jm5ic3A7PC9QPg0KPFAgY2xhc3M9
YjUxMDZkNmEtMTRkYi00YzVlLWI1OTQtNmE3YTQxMTc1MDNiPi0tLS0tLS0tLS0tLS0tLS0tLS0t
LS0tLS0tLS08QlIgLz48Rk9OVCBzaXplPTMgZmFjZT0iVGltZXMgTmV3IFJvbWFuIj48Rk9OVCBz
aXplPTMgZmFjZT0iVGltZXMgTmV3IFJvbWFuIj48Rk9OVCBzaXplPTMgZmFjZT0iVGltZXMgTmV3
IFJvbWFuIj48QlIgLz48Rk9OVCBzaXplPTMgZmFjZT0iVGltZXMgTmV3IFJvbWFuIj48QSBocmVm
PSJodHRwOi8vd3d3LmJiYy5jby51ayIgdGFyZ2V0PV9ibGFuaz5odHRwOi8vd3d3LjxTUEFOIGNs
YXNzPWlsPmJiYzwvU1BBTj4uPFNQQU4gY2xhc3M9aWw+Y288L1NQQU4+LjxTUEFOIGNsYXNzPWls
PnVrPC9TUEFOPjwvQT48QlIgLz5UaGlzIGUtbWFpbCAoYW5kIGFueSBhdHRhY2htZW50cykgaXMg
Y29uZmlkZW50aWFsIGFuZCANCm1heSBjb250YWluIHBlcnNvbmFsIHZpZXdzIHdoaWNoIGFyZSBu
b3QgdGhlIHZpZXdzIG9mIHRoZSA8U1BBTiBjbGFzcz1pbD5CQkM8L1NQQU4+IHVubGVzcyBzcGVj
aWZpY2FsbHkgc3RhdGVkLjxCUiAvPklmIHlvdSBoYXZlIHJlY2VpdmVkIGl0IGluIA0KZXJyb3Is
IHBsZWFzZSBkZWxldGUgaXQgZnJvbSB5b3VyIHN5c3RlbS48QlIgLz5EbyBub3QgdXNlLCBjb3B5
IG9yIGRpc2Nsb3NlIHRoZSANCmluZm9ybWF0aW9uIGluIGFueSB3YXkgbm9yIGFjdCBpbiByZWxp
YW5jZSBvbiBpdCBhbmQgbm90aWZ5IHRoZSBzZW5kZXIgDQppbW1lZGlhdGVseS48QlIgLz5QbGVh
c2Ugbm90ZSB0aGF0IHRoZSA8U1BBTiBjbGFzcz1pbD5CQkM8L1NQQU4+IG1vbml0b3JzIGUtbWFp
bHMgDQpzZW50IG9yIHJlY2VpdmVkLjxCUiAvPkZ1cnRoZXIgY29tbXVuaWNhdGlvbiB3aWxsIHNp
Z25pZnkgeW91ciBjb25zZW50IHRvIA0KdGhpcy48L0ZPTlQ+PC9GT05UPjwvRk9OVD48L0ZPTlQ+
PC9QPg0KPFAgY2xhc3M9YjUxMDZkNmEtMTRkYi00YzVlLWI1OTQtNmE3YTQxMTc1MDNiPi0tLS0t
LS0tLS0tLS0tLS0tLS0tLTwvUD48L0JPRFk+PC9IVE1MPg0KAB8AQgABAAAAGgAAAEwAdQBjAGEA
cwAgAFAAYQByAGQAdQBlAAAAAAAfAGUAAQAAAC4AAABMAHUAYwBhAHMALgBQAGEAcgBkAHUAZQBA
AGIAYgBjAC4AYwBvAC4AdQBrAAAAAAAfAGQAAQAAAAoAAABTAE0AVABQAAAAAAACAUEAAQAAAGoA
AAAAAAAAgSsfpL6jEBmdbgDdAQ9UAgAAAIBMAHUAYwBhAHMAIABQAGEAcgBkAHUAZQAAAFMATQBU
AFAAAABMAHUAYwBhAHMALgBQAGEAcgBkAHUAZQBAAGIAYgBjAC4AYwBvAC4AdQBrAAAAAAAfAAJd
AQAAAC4AAABMAHUAYwBhAHMALgBQAGEAcgBkAHUAZQBAAGIAYgBjAC4AYwBvAC4AdQBrAAAAAAAf
AOVfAQAAADYAAABzAGkAcAA6AGwAdQBjAGEAcwAuAHAAYQByAGQAdQBlAEAAYgBiAGMALgBjAG8A
LgB1AGsAAAAAAB8AGgwBAAAAGgAAAEwAdQBjAGEAcwAgAFAAYQByAGQAdQBlAAAAAAAfAB8MAQAA
AC4AAABMAHUAYwBhAHMALgBQAGEAcgBkAHUAZQBAAGIAYgBjAC4AYwBvAC4AdQBrAAAAAAAfAB4M
AQAAAAoAAABTAE0AVABQAAAAAAACARkMAQAAAGoAAAAAAAAAgSsfpL6jEBmdbgDdAQ9UAgAAAIBM
AHUAYwBhAHMAIABQAGEAcgBkAHUAZQAAAFMATQBUAFAAAABMAHUAYwBhAHMALgBQAGEAcgBkAHUA
ZQBAAGIAYgBjAC4AYwBvAC4AdQBrAAAAAAAfAAFdAQAAAC4AAABMAHUAYwBhAHMALgBQAGEAcgBk
AHUAZQBAAGIAYgBjAC4AYwBvAC4AdQBrAAAAAAAfAPg/AQAAABoAAABMAHUAYwBhAHMAIABQAGEA
cgBkAHUAZQAAAAAAHwAjQAEAAAAuAAAATAB1AGMAYQBzAC4AUABhAHIAZAB1AGUAQABiAGIAYwAu
AGMAbwAuAHUAawAAAAAAHwAiQAEAAAAKAAAAUwBNAFQAUAAAAAAAAgH5PwEAAABqAAAAAAAAAIEr
H6S+oxAZnW4A3QEPVAIAAACATAB1AGMAYQBzACAAUABhAHIAZAB1AGUAAABTAE0AVABQAAAATAB1
AGMAYQBzAC4AUABhAHIAZAB1AGUAQABiAGIAYwAuAGMAbwAuAHUAawAAAAAAHwAJXQEAAAAuAAAA
TAB1AGMAYQBzAC4AUABhAHIAZAB1AGUAQABiAGIAYwAuAGMAbwAuAHUAawAAAAAACwBAOgEAAAAf
ABoAAQAAABIAAABJAFAATQAuAE4AbwB0AGUAAAAAAAMA8T8JBAAACwBAOgEAAAADAP0/5AQAAAIB
CzABAAAAEAAAACK7i/vazI5HuCBIBGRwjyYDABcAAQAAAEAAOQCAbvtoGHDSAUAACDAgN3xpGHDS
AQsAKQAAAAAACwAAgAggBgAAAAAAwAAAAAAAAEYAAAAAFIUAAAEAAAALACMAAAAAAB8AAICGAwIA
AAAAAMAAAAAAAABGAQAAAB4AAABhAGMAYwBlAHAAdABsAGEAbgBnAHUAYQBnAGUAAAAAAAEAAAAa
AAAAZQBuAC0ARwBCACwAIABlAG4ALQBVAFMAAAAAAAsAAIAIIAYAAAAAAMAAAAAAAABGAAAAAAaF
AAAAAAAAHwA3AAEAAABaAAAATQB1AGwAdABpAHAAbABlACAAQQBsAHQALQBTAHYAYwAgAHAAYQBy
AGEAbQBlAHQAZQByAHMAIABvAGYAIAB0AGgAZQAgAHMAYQBtAGUAIAB0AHkAcABlAAAAAAAfAD0A
AQAAAAIAAAAAAAAAAwA2AAAAAAACAXEAAQAAABYAAAAB0nAPWeKkTs3UFaRDpr3VjSuN2ePJAAAf
AHAAAQAAAFoAAABNAHUAbAB0AGkAcABsAGUAIABBAGwAdAAtAFMAdgBjACAAcABhAHIAYQBtAGUA
dABlAHIAcwAgAG8AZgAgAHQAaABlACAAcwBhAG0AZQAgAHQAeQBwAGUAAAAAAB8ANRABAAAAcAAA
ADwANwBDAEYANwBGADkANABDAEIANAA5ADYAQgBGADQARgBBAEIAMQA2ADcANgBGADMANwA1AEYA
OQA2ADYANgBBADMANwA2AEIAOQBBADkAMgBAAGIAZwBiADAAMQB4AHUAZAAxADAAMQAyAD4AAAAD
AN4/6f0AAAsAAIAIIAYAAAAAAMAAAAAAAABGAAAAAAOFAAAAAAAAAwAAgAggBgAAAAAAwAAAAAAA
AEYAAAAAAYUAAAAAAAADAIAQ/////0AABzDAv1NpGHDSAQsAAgABAAAAAwAmAAAAAAACAUcAAQAA
ADkAAABjPUdCO2E9R29sZCA0MDA7cD1CQkM7bD1CR0IwMVhVRDEwMS0xNzAxMTYxNjQ4NDlaLTEz
NDQxNQAAAAACARAwAQAAAEYAAAAAAAAADjqvpWJGbE6JpLD+PTFb+gcAfPf5TLSWv0+rFnbzdflm
agAAAJz/sQAAOcu3qIW9pU2uTXJYpOMapgAAD3NPbQAAAAAfAPo/AQAAABoAAABMAHUAYwBhAHMA
IABQAGEAcgBkAHUAZQAAAAAAAwACWQAAFgADAAlZAgAAAAMAAIAIIAYAAAAAAMAAAAAAAABGAAAA
ABCFAAAAAAAACwAAgAggBgAAAAAAwAAAAAAAAEYAAAAADoUAAAAAAAADAACACCAGAAAAAADAAAAA
AAAARgAAAAAYhQAAAAAAAAsAAIAIIAYAAAAAAMAAAAAAAABGAAAAAIKFAAAAAAAAQAAAgAggBgAA
AAAAwAAAAAAAAEYAAAAAv4UAANDQP1UXcNIBAwAAgAggBgAAAAAAwAAAAAAAAEYAAAAA64UAAAkI
AAADAA00/T8AAB8AAICGAwIAAAAAAMAAAAAAAABGAQAAACAAAAB4AC0AbQBzAC0AaABhAHMALQBh
AHQAdABhAGMAaAAAAAEAAAACAAAAAAAAAB8AAICGAwIAAAAAAMAAAAAAAABGAQAAACIAAAB4AC0A
bwByAGkAZwBpAG4AYQB0AGkAbgBnAC0AaQBwAAAAAAABAAAAIgAAAFsAMQA3ADIALgAxADkALgAx
ADYAMQAuADIAMQAyAF0AAAAAAB8AAICGAwIAAAAAAMAAAAAAAABGAQAAACwAAAB4AC0AZQB4AGMA
bABhAGkAbQBlAHIALQBtAGQALQBjAG8AbgBmAGkAZwAAAAEAAABKAAAAMQBjAGQAMwBhAGMAMQBj
AC0ANgAyAGUANQAtADQAMwBmADIALQA4ADQAMAA0AC0ANgBiADYAOAA4ADIANwAxAGMANwA2ADkA
AAAAAB8AAICGAwIAAAAAAMAAAAAAAABGAQAAACgAAAB4AC0AdABtAC0AYQBzAC0AcAByAG8AZAB1
AGMAdAAtAHYAZQByAAAAAQAAAEwAAABTAE0ARQBYAC0AMQAxAC4AMAAuADAALgA0ADEANwA5AC0A
OAAuADAAMAAwAC4AMQAyADAAMgAtADIAMgA4ADIAOAAuADAAMAAwAAAAHwAAgIYDAgAAAAAAwAAA
AAAAAEYBAAAAHgAAAHgALQB0AG0ALQBhAHMALQByAGUAcwB1AGwAdAAAAAAAAQAAADQAAABOAG8A
LQAtADEANAAuADQAMwA0ADkAMAAwAC0AMAAuADAAMAAwADAAMAAwAC0AMwAxAAAAHwAAgIYDAgAA
AAAAwAAAAAAAAEYBAAAAOgAAAHgALQB0AG0ALQBhAHMALQB1AHMAZQByAC0AYQBwAHAAcgBvAHYA
ZQBkAC0AcwBlAG4AZABlAHIAAAAAAAEAAAAIAAAAWQBlAHMAAAAfAACAhgMCAAAAAADAAAAAAAAA
RgEAAAA4AAAAeAAtAHQAbQAtAGEAcwAtAHUAcwBlAHIALQBiAGwAbwBjAGsAZQBkAC0AcwBlAG4A
ZABlAHIAAAABAAAABgAAAE4AbwAAAAAAu+g=

--_000_7CF7F94CB496BF4FAB1676F375F9666A376B9A92bgb01xud1012_--


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Mon Jan 16 10:22:15 2017
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 F0EF11295BD for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 16 Jan 2017 10:22:14 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.12
X-Spam-Level:
X-Spam-Status: No, score=-10.12 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, 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=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 EJV3d42WnI8N for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 16 Jan 2017 10:22:09 -0800 (PST)
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 4D44B1294D7 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 16 Jan 2017 10:22:09 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cTBs0-0002N5-NW for ietf-http-wg-dist@listhub.w3.org; Mon, 16 Jan 2017 18:19:04 +0000
Resent-Date: Mon, 16 Jan 2017 18:19:04 +0000
Resent-Message-Id: <E1cTBs0-0002N5-NW@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <khurtta@welho.com>) id 1cTBrw-0002Lf-6S for ietf-http-wg@listhub.w3.org; Mon, 16 Jan 2017 18:19:00 +0000
Received: from welho-filter1.welho.com ([83.102.41.23]) by mimas.w3.org with esmtp (Exim 4.84_2) (envelope-from <khurtta@welho.com>) id 1cTBro-0001Fw-Sk for ietf-http-wg@w3.org; Mon, 16 Jan 2017 18:18:55 +0000
Received: from localhost (localhost [127.0.0.1]) by welho-filter1.welho.com (Postfix) with ESMTP id 4A39514617; Mon, 16 Jan 2017 20:18:25 +0200 (EET)
X-Virus-Scanned: Debian amavisd-new at pp.htv.fi
Received: from welho-smtp1.welho.com ([IPv6:::ffff:83.102.41.84]) by localhost (welho-filter1.welho.com [::ffff:83.102.41.23]) (amavisd-new, port 10024) with ESMTP id SriLWfaJXMdi; Mon, 16 Jan 2017 20:18:23 +0200 (EET)
Received: from hurtta09lk.keh.iki.fi (89-27-35-245.bb.dnainternet.fi [89.27.35.245]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by welho-smtp1.welho.com (Postfix) with ESMTPS id B8CFB27F; Mon, 16 Jan 2017 20:18:23 +0200 (EET)
In-Reply-To: <7CF7F94CB496BF4FAB1676F375F9666A376B9A92@bgb01xud1012>
References: <7CF7F94CB496BF4FAB1676F375F9666A376B9A92@bgb01xud1012>
To: Lucas Pardue <Lucas.Pardue@bbc.co.uk>
Date: Mon, 16 Jan 2017 20:18:23 +0200 (EET)
Sender: hurtta@hurtta09lk.keh.iki.fi
From: Kari Hurtta <hurtta-ietf@elmme-mailer.org>
CC: HTTP working group mailing list <ietf-http-wg@w3.org>, Kari Hurtta <hurtta-ietf@elmme-mailer.org>
X-Mailer: ELM [version ME+ 2.5 PLalpha44+]
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset="UTF-8"
Message-Id: <20170116181825.4A39514617@welho-filter1.welho.com>
Received-SPF: none client-ip=83.102.41.23; envelope-from=khurtta@welho.com; helo=welho-filter1.welho.com
X-W3C-Hub-Spam-Status: No, score=-5.7
X-W3C-Hub-Spam-Report: AWL=1.445, BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-3.199, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cTBro-0001Fw-Sk 90feb79f6c75563d247907c43d16534e
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Multiple Alt-Svc parameters of the same type
Archived-At: <http://www.w3.org/mid/20170116181825.4A39514617@welho-filter1.welho.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33292
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>

> For example, is it OK for a server to generate multiple “persist” 
> parameters perhaps with different values, how should a client deal with 
> that? Perhaps I’m worrying too much.

Bad example, I think.

https://tools.ietf.org/html/rfc7838#section-3.1

|   This specification only defines a single value for "persist".
|   Clients MUST ignore "persist" parameters with values other than "1".


I think that 
	persist=1 
and 
	persist=1;persist=1

are equivalent. And all other persists values are ignored.

( Although it also make sense treat that same way than unknown 
  parameter values. )


But betetr question is, what client should do
when there is several "ma" paramater values.

https://tools.ietf.org/html/rfc7838#section-3.1

|   Syntax:
|
|   ma = delta-seconds; see [RFC7234], Section 1.2.1
|
|   The delta-seconds value indicates the number of seconds since the
|   response was generated for which the alternative service is
|   considered fresh.

There is only

|   This specification defines two parameters: "ma" and "persist",
|   defined in Section 3.1.  Unknown parameters MUST be ignored.  That
|   is, the values (alt-value) they appear in MUST be processed as if the
|   unknown parameter was not present.

Because this is not defined all of these make sense

∙ Pick first value
∙ Pick last value
∙ Pick smallest "ma" value
∙ Pick largest "ma" value
∙ Treate that as unknown parameter
∙ Consider alternative service as invalid because 
  max-age is unclear

/ Kari Hurtta




From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Mon Jan 16 10:34:04 2017
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 E2E0E129603 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 16 Jan 2017 10:34:04 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.12
X-Spam-Level:
X-Spam-Status: No, score=-10.12 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, 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=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 iLzAGSYFIU34 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 16 Jan 2017 10:34:02 -0800 (PST)
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 C0203129604 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 16 Jan 2017 10:34:02 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cTC4S-0003BE-Pu for ietf-http-wg-dist@listhub.w3.org; Mon, 16 Jan 2017 18:31:56 +0000
Resent-Date: Mon, 16 Jan 2017 18:31:56 +0000
Resent-Message-Id: <E1cTC4S-0003BE-Pu@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <Lucas.Pardue@bbc.co.uk>) id 1cTC4P-0003AO-QQ for ietf-http-wg@listhub.w3.org; Mon, 16 Jan 2017 18:31:53 +0000
Received: from mailout1.telhc.bbc.co.uk ([132.185.161.180]) by titan.w3.org with esmtps (TLS1.2:DHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <Lucas.Pardue@bbc.co.uk>) id 1cTC4J-0005dh-IY for ietf-http-wg@w3.org; Mon, 16 Jan 2017 18:31:48 +0000
Received: from BGB01XI1010.national.core.bbc.co.uk (bgb01xi1010.national.core.bbc.co.uk [10.161.14.14]) by mailout1.telhc.bbc.co.uk (8.15.2/8.14.3) with ESMTP id v0GIVMdn007992; Mon, 16 Jan 2017 18:31:22 GMT
Received: from BGB01XUD1012.national.core.bbc.co.uk ([10.161.14.10]) by BGB01XI1010.national.core.bbc.co.uk ([10.161.14.14]) with mapi id 14.03.0319.002; Mon, 16 Jan 2017 18:31:22 +0000
Content-Type: multipart/mixed; boundary="_000_7CF7F94CB496BF4FAB1676F375F9666A376B9ACBbgb01xud1012_"
From: Lucas Pardue <Lucas.Pardue@bbc.co.uk>
To: Kari Hurtta <hurtta-ietf@elmme-mailer.org>
CC: HTTP working group mailing list <ietf-http-wg@w3.org>
Thread-Topic: Multiple Alt-Svc parameters of the same type
Thread-Index: AdJwD1nipE7N1BWkQ6a91Y0rjdnjyQAFZJCAAABpN5A=
Date: Mon, 16 Jan 2017 18:31:20 +0000
Message-ID: <7CF7F94CB496BF4FAB1676F375F9666A376B9ACB@bgb01xud1012>
References: <7CF7F94CB496BF4FAB1676F375F9666A376B9A92@bgb01xud1012> <20170116181825.4A39514617@welho-filter1.welho.com>
In-Reply-To: <20170116181825.4A39514617@welho-filter1.welho.com>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator: <7CF7F94CB496BF4FAB1676F375F9666A376B9ACB@bgb01xud1012>
x-originating-ip: [172.19.161.212]
x-exclaimer-md-config: c91d45b2-6e10-4209-9543-d9970fac71b7
x-tm-as-product-ver: SMEX-11.0.0.4179-8.000.1202-22828.001
x-tm-as-result: No--14.058900-0.000000-31
x-tm-as-user-approved-sender: Yes
x-tm-as-user-blocked-sender: No
MIME-Version: 1.0
Received-SPF: pass client-ip=132.185.161.180; envelope-from=Lucas.Pardue@bbc.co.uk; helo=mailout1.telhc.bbc.co.uk
X-W3C-Hub-Spam-Status: No, score=-6.6
X-W3C-Hub-Spam-Report: AWL=0.334, BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-3.199, SPF_PASS=-0.001, W3C_NW=0.5
X-W3C-Scan-Sig: titan.w3.org 1cTC4J-0005dh-IY 15f580a9aa634a4b0d550a0aa8f116b9
X-Original-To: ietf-http-wg@w3.org
Subject: RE: Multiple Alt-Svc parameters of the same type
Archived-At: <http://www.w3.org/mid/7CF7F94CB496BF4FAB1676F375F9666A376B9ACB@bgb01xud1012>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33293
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>

--_000_7CF7F94CB496BF4FAB1676F375F9666A376B9ACBbgb01xud1012_
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64

SGkgS2FyaSwNCg0KVGhhbmtzIGZvciBzcG90dGluZyB0aGUgb2J2aW91cyBtaXN0YWtlIG9uIG15
IHBhcnQuIFlvdXIgIm1hIiBleGFtcGxlcyBtdWNoIGJldHRlciBpbGx1c3RyYXRlIG15IHRob3Vn
aHRzIG9uIHRoaXMuDQoNCkx1Y2FzDQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4g
RnJvbTogaHVydHRhQGh1cnR0YTA5bGsua2VoLmlraS5maSBbbWFpbHRvOmh1cnR0YUBodXJ0dGEw
OWxrLmtlaC5pa2kuZmldIE9uDQo+IEJlaGFsZiBPZiBLYXJpIEh1cnR0YQ0KPiBTZW50OiAxNiBK
YW51YXJ5IDIwMTcgMTg6MTgNCj4gVG86IEx1Y2FzIFBhcmR1ZSA8THVjYXMuUGFyZHVlQGJiYy5j
by51az4NCj4gQ2M6IEhUVFAgd29ya2luZyBncm91cCBtYWlsaW5nIGxpc3QgPGlldGYtaHR0cC13
Z0B3My5vcmc+OyBLYXJpIEh1cnR0YQ0KPiA8aHVydHRhLWlldGZAZWxtbWUtbWFpbGVyLm9yZz4N
Cj4gU3ViamVjdDogUmU6IE11bHRpcGxlIEFsdC1TdmMgcGFyYW1ldGVycyBvZiB0aGUgc2FtZSB0
eXBlDQo+IA0KPiA+IEZvciBleGFtcGxlLCBpcyBpdCBPSyBmb3IgYSBzZXJ2ZXIgdG8gZ2VuZXJh
dGUgbXVsdGlwbGUg4oCccGVyc2lzdOKAnQ0KPiA+IHBhcmFtZXRlcnMgcGVyaGFwcyB3aXRoIGRp
ZmZlcmVudCB2YWx1ZXMsIGhvdyBzaG91bGQgYSBjbGllbnQgZGVhbA0KPiA+IHdpdGggdGhhdD8g
UGVyaGFwcyBJ4oCZbSB3b3JyeWluZyB0b28gbXVjaC4NCj4gDQo+IEJhZCBleGFtcGxlLCBJIHRo
aW5rLg0KPiANCj4gaHR0cHM6Ly90b29scy5pZXRmLm9yZy9odG1sL3JmYzc4Mzgjc2VjdGlvbi0z
LjENCj4gDQo+IHwgICBUaGlzIHNwZWNpZmljYXRpb24gb25seSBkZWZpbmVzIGEgc2luZ2xlIHZh
bHVlIGZvciAicGVyc2lzdCIuDQo+IHwgICBDbGllbnRzIE1VU1QgaWdub3JlICJwZXJzaXN0IiBw
YXJhbWV0ZXJzIHdpdGggdmFsdWVzIG90aGVyIHRoYW4gIjEiLg0KPiANCj4gDQo+IEkgdGhpbmsg
dGhhdA0KPiAJcGVyc2lzdD0xDQo+IGFuZA0KPiAJcGVyc2lzdD0xO3BlcnNpc3Q9MQ0KPiANCj4g
YXJlIGVxdWl2YWxlbnQuIEFuZCBhbGwgb3RoZXIgcGVyc2lzdHMgdmFsdWVzIGFyZSBpZ25vcmVk
Lg0KPiANCj4gKCBBbHRob3VnaCBpdCBhbHNvIG1ha2Ugc2Vuc2UgdHJlYXQgdGhhdCBzYW1lIHdh
eSB0aGFuIHVua25vd24NCj4gICBwYXJhbWV0ZXIgdmFsdWVzLiApDQo+IA0KPiANCj4gQnV0IGJl
dGV0ciBxdWVzdGlvbiBpcywgd2hhdCBjbGllbnQgc2hvdWxkIGRvDQo+IHdoZW4gdGhlcmUgaXMg
c2V2ZXJhbCAibWEiIHBhcmFtYXRlciB2YWx1ZXMuDQo+IA0KPiBodHRwczovL3Rvb2xzLmlldGYu
b3JnL2h0bWwvcmZjNzgzOCNzZWN0aW9uLTMuMQ0KPiANCj4gfCAgIFN5bnRheDoNCj4gfA0KPiB8
ICAgbWEgPSBkZWx0YS1zZWNvbmRzOyBzZWUgW1JGQzcyMzRdLCBTZWN0aW9uIDEuMi4xDQo+IHwN
Cj4gfCAgIFRoZSBkZWx0YS1zZWNvbmRzIHZhbHVlIGluZGljYXRlcyB0aGUgbnVtYmVyIG9mIHNl
Y29uZHMgc2luY2UgdGhlDQo+IHwgICByZXNwb25zZSB3YXMgZ2VuZXJhdGVkIGZvciB3aGljaCB0
aGUgYWx0ZXJuYXRpdmUgc2VydmljZSBpcw0KPiB8ICAgY29uc2lkZXJlZCBmcmVzaC4NCj4gDQo+
IFRoZXJlIGlzIG9ubHkNCj4gDQo+IHwgICBUaGlzIHNwZWNpZmljYXRpb24gZGVmaW5lcyB0d28g
cGFyYW1ldGVyczogIm1hIiBhbmQgInBlcnNpc3QiLA0KPiB8ICAgZGVmaW5lZCBpbiBTZWN0aW9u
IDMuMS4gIFVua25vd24gcGFyYW1ldGVycyBNVVNUIGJlIGlnbm9yZWQuICBUaGF0DQo+IHwgICBp
cywgdGhlIHZhbHVlcyAoYWx0LXZhbHVlKSB0aGV5IGFwcGVhciBpbiBNVVNUIGJlIHByb2Nlc3Nl
ZCBhcyBpZiB0aGUNCj4gfCAgIHVua25vd24gcGFyYW1ldGVyIHdhcyBub3QgcHJlc2VudC4NCj4g
DQo+IEJlY2F1c2UgdGhpcyBpcyBub3QgZGVmaW5lZCBhbGwgb2YgdGhlc2UgbWFrZSBzZW5zZQ0K
PiANCj4g4oiZIFBpY2sgZmlyc3QgdmFsdWUNCj4g4oiZIFBpY2sgbGFzdCB2YWx1ZQ0KPiDiiJkg
UGljayBzbWFsbGVzdCAibWEiIHZhbHVlDQo+IOKImSBQaWNrIGxhcmdlc3QgIm1hIiB2YWx1ZQ0K
PiDiiJkgVHJlYXRlIHRoYXQgYXMgdW5rbm93biBwYXJhbWV0ZXINCj4g4oiZIENvbnNpZGVyIGFs
dGVybmF0aXZlIHNlcnZpY2UgYXMgaW52YWxpZCBiZWNhdXNlDQo+ICAgbWF4LWFnZSBpcyB1bmNs
ZWFyDQo+IA0KPiAvIEthcmkgSHVydHRhDQo+IA0KDQo=

--_000_7CF7F94CB496BF4FAB1676F375F9666A376B9ACBbgb01xud1012_
Content-Disposition: attachment; filename="winmail.dat"
Content-Transfer-Encoding: base64
Content-Type: application/ms-tnef; name="winmail.dat"

eJ8+IiEnAQaQCAAEAAAAAAABAAEAAQeQBgAIAAAA5AQAAAAAAADoAAEJgAEAIQAAADBDNEE0M0VF
OUQ0MUQwNEU5RTRGRDEyRjk5NUVBRjgwAGgHAQ2ABAACAAAAAgACAAEFgAMADgAAAOEHAQAQABIA
HwAUAAEAPwEBIIADAA4AAADhBwEAEAASAB8AFAABAD8BAQiABwAYAAAASVBNLk1pY3Jvc29mdCBN
YWlsLk5vdGUAMQgBBIABADEAAABSRTogTXVsdGlwbGUgQWx0LVN2YyBwYXJhbWV0ZXJzIG9mIHRo
ZSBzYW1lIHR5cGUAKREBA5AGALATAABCAAAAAgF/AAEAAAA4AAAAPDdDRjdGOTRDQjQ5NkJGNEZB
QjE2NzZGMzc1Rjk2NjZBMzc2QjlBQ0JAYmdiMDF4dWQxMDEyPgALAB8OAQAAAAIBCRABAAAARwYA
AEMGAABrCwAATFpGddofYslhAApmYmlkBAAAY2PAcGcxMjUyAP4DQ/B0ZXh0AfcCpAPjAgAEY2gK
wHNldDAg7wdtAoMAUBFNMgqABrQCgJZ9CoAIyDsJYjE5DsC/CcMWcgoyFnECgBViKgmwcwnwBJBh
dAWyDlADYHOibwGAIEV4EcFuGDBdBlJ2BJAXtgIQcgDAdH0IUG4aMRAgBcAFoBtkZJogA1IgECIX
slx2CJDkd2sLgGQ1HVME8AdADRdwMApxF/Jia21rBnMBkAAgIEJNX0LgRUdJTn0K/AHxC/EgIEhp
IEsKwGkstFxsC4BlCoEiNFQZoccfUBxwBbFzcG8CQAuAymccwGgZ4G9iHWAIYG0EIG0EAAGQayRh
A6BthHkgCrF0LiBZCGEkICIAwCIgEDBhbZMLUAeRbXURwCBiEhD/G6IDEApAH2AYcRngJbEkQPEI
YGdodAQgJYEkQAQAai4iLEwngGEOACI7PtQgLSxSTwUQZwuAB0BzBdAHkHNhGDAsUyvHRjEDYTog
aAhwAkBhQEEu5DA5bGsuJVBopC5pHaAuZiGwWwDAGwMQGJA6Lu8v+V0gT9sLkCvWQjAQB0BmMwA0
EH8h0iGQMUMrxwZgAjAuwDHoNiBKAHB1CsAlwAHQZDE3NfA4OjcAK8dUZTEQICsDIFALEQpQIAo8
KwMuOIRAYmJjQi4FoC51az4rx0MCYy7ASFRUUCB33wWwHaEkIAnACGBwJPAw0b8kAiIwH2A44AiQ
ADAtKWAAdHAtd2dAdzNiLgWwZz47NF8sEjyFMTQtPVJAZWxtB4AeLTDCBJA+QzUYdWJqkwWQNdFS
ZS7ATXUw8BMFIB5wIEEw8C1Tdv5jJdInABIQBJApgTQQJELHLWAHgBzAeXBlK8crx7cuYQWxJuUs
KCAEIGkFQHRPSyNjYSOgGhMcwG8PPAAYRCjBQ0ZcJzkz70XQEfAlEUqxNEaJRElK8d0R0HAEIAPw
JEAgDeABILMEkDWxIHYHQApQc0fgaykgB+BzKSFsHGBI0GP/IjBOMgEAB0BGiU2DJEAYgNY/OHBN
FUlKsTIcsDuRezaAJANvSXAncioWRmlC9mEcYEd3SSnCIzBT3ywwoT2iczovL1NRbCoACz1SPkIv
KWBtbC9ywRGwNzgzOCMSAEKwOSSwbi0+MABQVm98IP9bkCMASAEjsAWQBpAOUBiA+1nxJXFsJcAB
ASJBBCBI0a8kAUORTnMjYyJK9SJWSA1bgkNP0wQgTVVTVPkoIGduBbAZ4F73RDpNg79OdCRwJEFJ
QRmhJoAxX3l/ZK9VxlFjZTgBkUzySyI931pYAHALMGcvaDM7Z/9GeMMKwBngZXF1aU5xNbH9JiBB
HcBIwChAY6VK9QQgt2NFbHJhNGRknywwKEOy/ykjSCIHQBkgPGElURIAAICfRZEJcBiAUWNFVHdh
KPLtA5F1IzBhUHczKFuQREfbTmUmIClwH1RpdQVAJ8F/EhAFwGzAB5BcowQAR+B353OCT8VPNWRv
K8d6IAnw9yQyb2Jb8WUaMS0BJpNEQ/8ooXZHd49Xb1h/WY9an1uQ4wawAjBheDpa+Fr7AMB8ID1Q
ITDwQFCCIQIgZA5zPpASABngW1JGQ/EBwDM0XUfgBmCCQzXw/C4ygrmFPCMAGeCGa15F/x2xXHIH
kSRCNlAG0BuxRPH7iyZd4WNFkSRQWvsJcCOx/3LSdBAEIEmWHGEFsXogDlD/UVIZ4AdAG6Es8CPw
GjBI4/8OUHySWvsb4QCQBIEcUweQ/1PPN7J8ZlzylP9bf1yFXUb+dDuQRDkuwCaTaRFe6CIWf5fk
XUQcYAuAiDeCoSYgIP5VdLREOmDjJ8Bvh5giZvmvmAJ54iRCY0UokbEtTnP+KSQyJcBNQEXQCsGd
cZ+2/nADYI4wBBAcUThRBpCOX/90pXW5j/JhUAVApQAHkG0i/5bvM7EeUCTQjkJIAqhEnPY/bbNF
A3LhcmipLwMwdTj9AcA5UbEOUGawMIAR8E5V364PrxMLYK+frptzAMAoQH95cSaEsc+w2j5gs8+0
3FT/cyKOQnNBOFGnD7cvG0GUE/+Rr5KypaIbYAdADdAnsapj83UZAMB4LS1xR/J0oE/A86QRrX8g
Lz6vRkkiJRVCAcOgAB8AQgABAAAAGgAAAEwAdQBjAGEAcwAgAFAAYQByAGQAdQBlAAAAAAAfAGUA
AQAAAC4AAABMAHUAYwBhAHMALgBQAGEAcgBkAHUAZQBAAGIAYgBjAC4AYwBvAC4AdQBrAAAAAAAf
AGQAAQAAAAoAAABTAE0AVABQAAAAAAACAUEAAQAAAGoAAAAAAAAAgSsfpL6jEBmdbgDdAQ9UAgAA
AIBMAHUAYwBhAHMAIABQAGEAcgBkAHUAZQAAAFMATQBUAFAAAABMAHUAYwBhAHMALgBQAGEAcgBk
AHUAZQBAAGIAYgBjAC4AYwBvAC4AdQBrAAAAAAAfAAJdAQAAAC4AAABMAHUAYwBhAHMALgBQAGEA
cgBkAHUAZQBAAGIAYgBjAC4AYwBvAC4AdQBrAAAAAAAfAOVfAQAAADYAAABzAGkAcAA6AGwAdQBj
AGEAcwAuAHAAYQByAGQAdQBlAEAAYgBiAGMALgBjAG8ALgB1AGsAAAAAAB8AGgwBAAAAGgAAAEwA
dQBjAGEAcwAgAFAAYQByAGQAdQBlAAAAAAAfAB8MAQAAAC4AAABMAHUAYwBhAHMALgBQAGEAcgBk
AHUAZQBAAGIAYgBjAC4AYwBvAC4AdQBrAAAAAAAfAB4MAQAAAAoAAABTAE0AVABQAAAAAAACARkM
AQAAAGoAAAAAAAAAgSsfpL6jEBmdbgDdAQ9UAgAAAIBMAHUAYwBhAHMAIABQAGEAcgBkAHUAZQAA
AFMATQBUAFAAAABMAHUAYwBhAHMALgBQAGEAcgBkAHUAZQBAAGIAYgBjAC4AYwBvAC4AdQBrAAAA
AAAfAAFdAQAAAC4AAABMAHUAYwBhAHMALgBQAGEAcgBkAHUAZQBAAGIAYgBjAC4AYwBvAC4AdQBr
AAAAAAAfAPg/AQAAABoAAABMAHUAYwBhAHMAIABQAGEAcgBkAHUAZQAAAAAAHwAjQAEAAAAuAAAA
TAB1AGMAYQBzAC4AUABhAHIAZAB1AGUAQABiAGIAYwAuAGMAbwAuAHUAawAAAAAAHwAiQAEAAAAK
AAAAUwBNAFQAUAAAAAAAAgH5PwEAAABqAAAAAAAAAIErH6S+oxAZnW4A3QEPVAIAAACATAB1AGMA
YQBzACAAUABhAHIAZAB1AGUAAABTAE0AVABQAAAATAB1AGMAYQBzAC4AUABhAHIAZAB1AGUAQABi
AGIAYwAuAGMAbwAuAHUAawAAAAAAHwAJXQEAAAAuAAAATAB1AGMAYQBzAC4AUABhAHIAZAB1AGUA
QABiAGIAYwAuAGMAbwAuAHUAawAAAAAACwBAOgEAAAAfABoAAQAAABIAAABJAFAATQAuAE4AbwB0
AGUAAAAAAAMA8T8JBAAACwBAOgEAAAADAP0/5AQAAAIBCzABAAAAEAAAAAxKQ+6dQdBOnk/RL5le
r4ADABcAAQAAAEAAOQAAjEO7JnDSAUAACDD8Esq7JnDSAQsAKQAAAAAACwAjAAAAAAAfAACAhgMC
AAAAAADAAAAAAAAARgEAAAAeAAAAYQBjAGMAZQBwAHQAbABhAG4AZwB1AGEAZwBlAAAAAAABAAAA
GgAAAGUAbgAtAEcAQgAsACAAZQBuAC0AVQBTAAAAAAALAACACCAGAAAAAADAAAAAAAAARgAAAAAG
hQAAAAAAAB8ANwABAAAAYgAAAFIARQA6ACAATQB1AGwAdABpAHAAbABlACAAQQBsAHQALQBTAHYA
YwAgAHAAYQByAGEAbQBlAHQAZQByAHMAIABvAGYAIAB0AGgAZQAgAHMAYQBtAGUAIAB0AHkAcABl
AAAAAAAfAD0AAQAAAAoAAABSAEUAOgAgAAAAAAADADYAAAAAAAMALgAAAAAAHwBCEAEAAABoAAAA
PAAyADAAMQA3ADAAMQAxADYAMQA4ADEAOAAyADUALgA0AEEAMwA5ADUAMQA0ADYAMQA3AEAAdwBl
AGwAaABvAC0AZgBpAGwAdABlAHIAMQAuAHcAZQBsAGgAbwAuAGMAbwBtAD4AAAACAXEAAQAAACAA
AAAB0nAPWeKkTs3UFaRDpr3VjSuN2ePJAAVkkIAAAGk3kB8AcAABAAAAWgAAAE0AdQBsAHQAaQBw
AGwAZQAgAEEAbAB0AC0AUwB2AGMAIABwAGEAcgBhAG0AZQB0AGUAcgBzACAAbwBmACAAdABoAGUA
IABzAGEAbQBlACAAdAB5AHAAZQAAAAAAHwA1EAEAAABwAAAAPAA3AEMARgA3AEYAOQA0AEMAQgA0
ADkANgBCAEYANABGAEEAQgAxADYANwA2AEYAMwA3ADUARgA5ADYANgA2AEEAMwA3ADYAQgA5AEEA
QwBCAEAAYgBnAGIAMAAxAHgAdQBkADEAMAAxADIAPgAAAB8AORABAAAA2AAAADwANwBDAEYANwBG
ADkANABDAEIANAA5ADYAQgBGADQARgBBAEIAMQA2ADcANgBGADMANwA1AEYAOQA2ADYANgBBADMA
NwA2AEIAOQBBADkAMgBAAGIAZwBiADAAMQB4AHUAZAAxADAAMQAyAD4AIAA8ADIAMAAxADcAMAAx
ADEANgAxADgAMQA4ADIANQAuADQAQQAzADkANQAxADQANgAxADcAQAB3AGUAbABoAG8ALQBmAGkA
bAB0AGUAcgAxAC4AdwBlAGwAaABvAC4AYwBvAG0APgAAAAMA3j/p/QAACwAAgAggBgAAAAAAwAAA
AAAAAEYAAAAAA4UAAAAAAAADAACACCAGAAAAAADAAAAAAAAARgAAAAABhQAAAAAAAAMAgBD/////
QAAHMGmbobsmcNIBCwACAAEAAAADACYAAAAAAAsAKwAAAAAAAgFHAAEAAAA5AAAAYz1HQjthPUdv
bGQgNDAwO3A9QkJDO2w9QkdCMDFYVUQxMDEtMTcwMTE2MTgzMTIwWi0xMzUxOTMAAAAAAgEQMAEA
AABGAAAAAAAAAA46r6ViRmxOiaSw/j0xW/oHAHz3+Uy0lr9PqxZ283X5ZmoAAACc/7EAADnLt6iF
vaVNrk1yWKTjGqYAAA9zT24AAAAAHwD6PwEAAAAaAAAATAB1AGMAYQBzACAAUABhAHIAZAB1AGUA
AAAAAAMACVkBAAAAAwAAgAggBgAAAAAAwAAAAAAAAEYAAAAAEIUAAAAAAAALAACACCAGAAAAAADA
AAAAAAAARgAAAAAOhQAAAAAAAAMAAIAIIAYAAAAAAMAAAAAAAABGAAAAABiFAAAAAAAACwAAgAgg
BgAAAAAAwAAAAAAAAEYAAAAAgoUAAAAAAAAfAACACCAGAAAAAADAAAAAAAAARgAAAADYhQAAAQAA
ABIAAABJAFAATQAuAE4AbwB0AGUAAAAAAAMADTT9PwAAHwAAgIYDAgAAAAAAwAAAAAAAAEYBAAAA
IAAAAHgALQBtAHMALQBoAGEAcwAtAGEAdAB0AGEAYwBoAAAAAQAAAAIAAAAAAAAAHwAAgIYDAgAA
AAAAwAAAAAAAAEYBAAAAIgAAAHgALQBvAHIAaQBnAGkAbgBhAHQAaQBuAGcALQBpAHAAAAAAAAEA
AAAiAAAAWwAxADcAMgAuADEAOQAuADEANgAxAC4AMgAxADIAXQAAAAAAHwAAgIYDAgAAAAAAwAAA
AAAAAEYBAAAALAAAAHgALQBlAHgAYwBsAGEAaQBtAGUAcgAtAG0AZAAtAGMAbwBuAGYAaQBnAAAA
AQAAAEoAAABjADkAMQBkADQANQBiADIALQA2AGUAMQAwAC0ANAAyADAAOQAtADkANQA0ADMALQBk
ADkAOQA3ADAAZgBhAGMANwAxAGIANwAAAAAAHwAAgIYDAgAAAAAAwAAAAAAAAEYBAAAAKAAAAHgA
LQB0AG0ALQBhAHMALQBwAHIAbwBkAHUAYwB0AC0AdgBlAHIAAAABAAAATAAAAFMATQBFAFgALQAx
ADEALgAwAC4AMAAuADQAMQA3ADkALQA4AC4AMAAwADAALgAxADIAMAAyAC0AMgAyADgAMgA4AC4A
MAAwADEAAAAfAACAhgMCAAAAAADAAAAAAAAARgEAAAAeAAAAeAAtAHQAbQAtAGEAcwAtAHIAZQBz
AHUAbAB0AAAAAAABAAAANAAAAE4AbwAtAC0AMQA0AC4AMAA1ADgAOQAwADAALQAwAC4AMAAwADAA
MAAwADAALQAzADEAAAAfAACAhgMCAAAAAADAAAAAAAAARgEAAAA6AAAAeAAtAHQAbQAtAGEAcwAt
AHUAcwBlAHIALQBhAHAAcAByAG8AdgBlAGQALQBzAGUAbgBkAGUAcgAAAAAAAQAAAAgAAABZAGUA
cwAAAB8AAICGAwIAAAAAAMAAAAAAAABGAQAAADgAAAB4AC0AdABtAC0AYQBzAC0AdQBzAGUAcgAt
AGIAbABvAGMAawBlAGQALQBzAGUAbgBkAGUAcgAAAAEAAAAGAAAATgBvAAAAAAA5Hw==

--_000_7CF7F94CB496BF4FAB1676F375F9666A376B9ACBbgb01xud1012_--


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Mon Jan 16 15:03:13 2017
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 1A22F12984C for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 16 Jan 2017 15:03:13 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.72
X-Spam-Level:
X-Spam-Status: No, score=-9.72 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, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, 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 HTJaKAwUh3eB for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 16 Jan 2017 15:03:11 -0800 (PST)
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 75C0C129784 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 16 Jan 2017 15:03:11 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cTGFy-0000Kc-P6 for ietf-http-wg-dist@listhub.w3.org; Mon, 16 Jan 2017 23:00:06 +0000
Resent-Date: Mon, 16 Jan 2017 23:00:06 +0000
Resent-Message-Id: <E1cTGFy-0000Kc-P6@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <martin.thomson@gmail.com>) id 1cTGFv-0004wZ-35 for ietf-http-wg@listhub.w3.org; Mon, 16 Jan 2017 23:00:03 +0000
Received: from mail-qt0-f179.google.com ([209.85.216.179]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <martin.thomson@gmail.com>) id 1cTGFp-0005bG-3Y for ietf-http-wg@w3.org; Mon, 16 Jan 2017 22:59:57 +0000
Received: by mail-qt0-f179.google.com with SMTP id l7so126960556qtd.1 for <ietf-http-wg@w3.org>; Mon, 16 Jan 2017 14:59:36 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=qtZt9gjedPGFZmolYOJYnLC17NvLRjdIA4kXIMKWwtQ=; b=eN6A1MIH55NdyOwunRyNvNN0KdfHujeMtJxIxyXHzGyYmnMpLTwG5CatVh9F6zwBUV 5zLMC1p4p0LeySDE2yfAeDhyYSp+8PNdaSvR+ZGehASVIWxIV0twidNrlJWkh4pMvusg Mrj+kfGqzVusgCIoQTC+Bul6Ls3lTSPV31ZyLr3nJCdLkkQA1uVLywDoy1C4uFp72ndB wZvxsPVYjuhf2jC2kJRVy1gmV9dFZGc24ZkgAu853mBxmeBAyqBdhRMtfDKLC0V/c2WK AXIJe+PyQa47Nh4dTRo5BRaff6j+7tBKQvVbzZuHwaRI1KJLeIryYD0Br8/HJnXVSI0x bZzg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=qtZt9gjedPGFZmolYOJYnLC17NvLRjdIA4kXIMKWwtQ=; b=Ylmyvf9MpAhGeHGlQ7AMiqhLG8oMoG0tGbgbDL+XcPI5FpwCgPCgwFuduuboBF5/Uu aP947jLg6ogh7CVEAftT8JoupbYdx44qAVe/3jMzcAsz0Qa44YQdo3BWaaFo1X4zQsEe JU5DXFKzOotWg/Kdl3xDi0sjdaSQMUiAXbapONhTi/aY0bDyrgbaZ2mAyxw774rxmTHp 4RPiCQAsnxaYIlpYEwWupAl5t+97jL2LciAanwdefS/r9qfXfGaY4RhJw8cUjHuIEeIv 2YyIl4AC1dXPw/pgdCY9wUsbP1ruRTp95Qnr1M2uInppQO7sweS5KZAlxuN8+BQ1ao1E Wxng==
X-Gm-Message-State: AIkVDXJab3nyizVY2IoBJRQaZnjBnh7Yi0y5AjSelIZaRx24P3VHDQvEWRg//j7dmt+Hea7EyTjd6sFPkAAmhw==
X-Received: by 10.200.39.200 with SMTP id x8mr3532354qtx.159.1484607570897; Mon, 16 Jan 2017 14:59:30 -0800 (PST)
MIME-Version: 1.0
Received: by 10.140.19.112 with HTTP; Mon, 16 Jan 2017 14:59:30 -0800 (PST)
In-Reply-To: <7CF7F94CB496BF4FAB1676F375F9666A376B9A92@bgb01xud1012>
References: <7CF7F94CB496BF4FAB1676F375F9666A376B9A92@bgb01xud1012>
From: Martin Thomson <martin.thomson@gmail.com>
Date: Tue, 17 Jan 2017 11:59:30 +1300
Message-ID: <CABkgnnXb+axOZT4xiQWYPZQFyNqs9eTP9wGcDeS19JAhRoMxMA@mail.gmail.com>
To: Lucas Pardue <Lucas.Pardue@bbc.co.uk>
Cc: HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=209.85.216.179; envelope-from=martin.thomson@gmail.com; helo=mail-qt0-f179.google.com
X-W3C-Hub-Spam-Status: No, score=-6.1
X-W3C-Hub-Spam-Report: AWL=0.120, 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, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1cTGFp-0005bG-3Y dd45d95e45a3078d89a4ab3d8c728e59
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Multiple Alt-Svc parameters of the same type
Archived-At: <http://www.w3.org/mid/CABkgnnXb+axOZT4xiQWYPZQFyNqs9eTP9wGcDeS19JAhRoMxMA@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33294
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>

I didn't mention this earlier, but I was wondering if it would be
easier all around if we just renamed this from "v" to "quic" and made
the semantics clearer.

I don't much like Mike's proposal with its multiple variant encodings
either.  I proposed a simple numeric value (I chose hex, but decimal
works fine), which is adequate.  I was concerned about the complexity
of the encoding, but now we have two encodings, one of which is
complex.

As far as multiple parameters go, it doesn't matter what the generic
rules are as long as the specific ones are correct.

On 17 January 2017 at 05:48, Lucas Pardue <Lucas.Pardue@bbc.co.uk> wrote:
> Hello all,
>
> The =E2=80=9Cv=E2=80=9D Alt-Svc parameter has seen some use in the wild, =
namely Google services offering the =E2=80=9Cquic=E2=80=9D alternative serv=
ice. To date this parameter was not defined anywhere but took the form of a=
 comma-separated list of numbers e.g.
>
> Alt-Svc: quic=3D":443=E2=80=9D; v=3D"35,34"
>
> Mike Bishop is giving an official definition of the Alt-Svc =E2=80=9Cv=E2=
=80=9D parameter, as part of https://tools.ietf.org/html/draft-ietf-quic-ht=
tp-01#section-2.1, which is different than Google=E2=80=99s previous usage.
>
>> When multiple versions are supported, the "v" parameter MAY be
>> repeated multiple times in a single Alt-Svc entry.  For example, if a
>> server supported both version "Q034" and version 0x00000001, it would
>> specify the following header:
>
>> Alt-Svc: hq=3D":443";v=3D"x1";v=3D"cQ034"
>
>> Where multiple versions are listed, the order of the values reflects
>> the server's preference (with the first value being the most
>> preferred version).
>
> This got me thinking, RFC 7838 doesn=E2=80=99t seem to give any direction=
 on the handling of multiple parameters of the same type. For example, is i=
t OK for a server to generate multiple =E2=80=9Cpersist=E2=80=9D parameters=
 perhaps with different values, how should a client deal with that? Perhaps=
 I=E2=80=99m worrying too much.
>
> I wondered if the Alt-Svc parameter IANA registry could use some new colu=
mns to define the allowed multiplicity of each parameter, and an indication=
 of how to treat the ordering. Any thoughts?
>
> Regards
> Lucas
>
>
>
>
> ----------------------------
>
> http://www.bbc.co.uk
> This e-mail (and any attachments) is confidential and may contain persona=
l views which are not the views of the BBC unless specifically stated.
> If you have received it in error, please delete it from your system.
> Do not use, copy or disclose the information in any way nor act in relian=
ce on it and notify the sender immediately.
> Please note that the BBC monitors e-mails sent or received.
> Further communication will signify your consent to this.
>
> ---------------------


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Mon Jan 16 15:06:49 2017
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 06A44129857 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 16 Jan 2017 15:06:49 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.72
X-Spam-Level:
X-Spam-Status: No, score=-9.72 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, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, 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 51yV_AQZiOsH for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 16 Jan 2017 15:06:45 -0800 (PST)
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 D489112985C for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 16 Jan 2017 15:06:44 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cTGKj-0001hc-7H for ietf-http-wg-dist@listhub.w3.org; Mon, 16 Jan 2017 23:05:01 +0000
Resent-Date: Mon, 16 Jan 2017 23:05:01 +0000
Resent-Message-Id: <E1cTGKj-0001hc-7H@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <martin.thomson@gmail.com>) id 1cTGKg-0001gr-KR for ietf-http-wg@listhub.w3.org; Mon, 16 Jan 2017 23:04:58 +0000
Received: from mail-qt0-f170.google.com ([209.85.216.170]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <martin.thomson@gmail.com>) id 1cTGKa-0004qy-LD for ietf-http-wg@w3.org; Mon, 16 Jan 2017 23:04:53 +0000
Received: by mail-qt0-f170.google.com with SMTP id x49so126410041qtc.2 for <ietf-http-wg@w3.org>; Mon, 16 Jan 2017 15:04:32 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=wveh+IFDMg+ZQt1qtfvCdAWrQdzbWpADgUY07GZMfCQ=; b=sd8ZSDkL/uLdsYz0/lmynn7LGC2BWSAlvr2GtQnMERsAHI+Dyr56ZLH7mOREYjbo13 4TRy0M+I1VW2LtBOSy7zO9LMSqEBiCm3agvXCZVDyYPL/fHErykuhspKkYCBvD4XbtMs 1WjyFKhyAeq99O+EsIBJ35idViy0O811BqJjQTbwGg9y0c5ePicD6PWZsq6bl2ZMLLI+ smiBZ9kxjRtQKc7ioVyooD6v5ik8xqFnWUcfIXjIChhiixp21bNcyUHue6PthzNogU0N zCpE0XqQhA7x2FhJ1EmRZr9aCxvGYTe66VE32j43MTiIIxqe5GgxwAEIockTUdsyRQz8 J2Kw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=wveh+IFDMg+ZQt1qtfvCdAWrQdzbWpADgUY07GZMfCQ=; b=S7fxsS5zcAY2mi3SM6XLb1dhXUN2HRBS6nf8EtdEwXyA2b+V0DYQsFtvbTw/yVMk38 tZGYHyr4uBm17rpLsgsIHxQFnFmX+vgkRz1TiQTRgb+yvH4gVge4edmlrvTZGoOQHFyj WqfiePz5qHAVnXUGYrbV9Ke2bWF7fETGXLe+VuvkIWkNAFe0SBJSAimeAKMlXnwSOVkd g9r9aqNadIlZiqXzO60OeSkiPLvmgWPFl9v1fEAzCtc24L2T5klje7gNsBk1vp3Ba6QU xRRR7WCNaI4rB3vJKVJb6iPL+1w1S/9xmU45uHVLsrG9hBKvcqAbQ3RswdrlwcV9z5zt iH4A==
X-Gm-Message-State: AIkVDXKQ2cb9LcO9QLjVTHnnI3lowR7tC0kkYUiQAX9eY3GNxQgOcI9e0VlPriRVwgFl+6rxlAGwC4ghuYkhqQ==
X-Received: by 10.55.138.2 with SMTP id m2mr32391443qkd.115.1484607866593; Mon, 16 Jan 2017 15:04:26 -0800 (PST)
MIME-Version: 1.0
Received: by 10.140.19.112 with HTTP; Mon, 16 Jan 2017 15:04:26 -0800 (PST)
In-Reply-To: <20170116181825.4A39514617@welho-filter1.welho.com>
References: <7CF7F94CB496BF4FAB1676F375F9666A376B9A92@bgb01xud1012> <20170116181825.4A39514617@welho-filter1.welho.com>
From: Martin Thomson <martin.thomson@gmail.com>
Date: Tue, 17 Jan 2017 12:04:26 +1300
Message-ID: <CABkgnnWqo1KzPofnR8nS9S0DyZhGjg+yYkMH-qb+H7WcKG1uHw@mail.gmail.com>
To: Kari Hurtta <hurtta-ietf@elmme-mailer.org>
Cc: Lucas Pardue <Lucas.Pardue@bbc.co.uk>,  HTTP working group mailing list <ietf-http-wg@w3.org>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=209.85.216.170; envelope-from=martin.thomson@gmail.com; helo=mail-qt0-f170.google.com
X-W3C-Hub-Spam-Status: No, score=-6.1
X-W3C-Hub-Spam-Report: AWL=0.120, 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, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cTGKa-0004qy-LD 399445060a217f59cf21e5e9908c89ce
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Multiple Alt-Svc parameters of the same type
Archived-At: <http://www.w3.org/mid/CABkgnnWqo1KzPofnR8nS9S0DyZhGjg+yYkMH-qb+H7WcKG1uHw@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33295
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 17 January 2017 at 07:18, Kari Hurtta <hurtta-ietf@elmme-mailer.org> wro=
te:
> Because this is not defined all of these make sense
>
> =E2=88=99 Pick first value
> =E2=88=99 Pick last value
> =E2=88=99 Pick smallest "ma" value
> =E2=88=99 Pick largest "ma" value
> =E2=88=99 Treate that as unknown parameter
> =E2=88=99 Consider alternative service as invalid because
>   max-age is unclear

That would seem to be a problem with all header definitions.  I opened
an issue on this point a while back here:
https://github.com/httpwg/http-extensions/issues/281

In this specific case, I don't know what the answer is.  Yay.


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Mon Jan 16 15:43:10 2017
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 51DA01296BB for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 16 Jan 2017 15:43:10 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.22
X-Spam-Level:
X-Spam-Status: No, score=-10.22 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=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=microsoft.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 7_haYBKlfspP for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 16 Jan 2017 15:43:08 -0800 (PST)
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 72C7B1294F7 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 16 Jan 2017 15:43:08 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cTGt5-0008I0-Aq for ietf-http-wg-dist@listhub.w3.org; Mon, 16 Jan 2017 23:40:31 +0000
Resent-Date: Mon, 16 Jan 2017 23:40:31 +0000
Resent-Message-Id: <E1cTGt5-0008I0-Aq@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <Michael.Bishop@microsoft.com>) id 1cTGt0-0008HD-I5 for ietf-http-wg@listhub.w3.org; Mon, 16 Jan 2017 23:40:26 +0000
Received: from mail-sn1nam02on0115.outbound.protection.outlook.com ([104.47.36.115] helo=NAM02-SN1-obe.outbound.protection.outlook.com) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from <Michael.Bishop@microsoft.com>) id 1cTGst-0006io-Tu for ietf-http-wg@w3.org; Mon, 16 Jan 2017 23:40:21 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=xcm+j6woHQlGWIzryF2vREJvLy3WCENSb12+W3cTnWE=; b=Bzwq7IodQ9Z8XOSJOEgZpy4Gp198ONHNY/fQVonj+m+CfvCRrnt075h+5E2q+KIKYqEErgCP6bb3wSV+eU8LCfNvBy15GG4LvCG+jKZKnX/RoKNV21EWv+jehzV3o9IamNeJLnmQLqWLvd2YZk1CfKhpGO1GtS3RUB9CiEKCt5I=
Received: from BN6PR03MB2708.namprd03.prod.outlook.com (10.173.144.15) by BN6PR03MB2707.namprd03.prod.outlook.com (10.173.144.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.845.12; Mon, 16 Jan 2017 23:39:51 +0000
Received: from BN6PR03MB2708.namprd03.prod.outlook.com ([10.173.144.15]) by BN6PR03MB2708.namprd03.prod.outlook.com ([10.173.144.15]) with mapi id 15.01.0845.013; Mon, 16 Jan 2017 23:39:50 +0000
From: Mike Bishop <Michael.Bishop@microsoft.com>
To: Martin Thomson <martin.thomson@gmail.com>, Lucas Pardue <Lucas.Pardue@bbc.co.uk>
CC: HTTP Working Group <ietf-http-wg@w3.org>
Thread-Topic: Multiple Alt-Svc parameters of the same type
Thread-Index: AdJwD1nipE7N1BWkQ6a91Y0rjdnjyQAPNfEAAAD1CwA=
Date: Mon, 16 Jan 2017 23:39:50 +0000
Message-ID: <BN6PR03MB27088C11B14D9FCE39B58AAE877D0@BN6PR03MB2708.namprd03.prod.outlook.com>
References: <7CF7F94CB496BF4FAB1676F375F9666A376B9A92@bgb01xud1012> <CABkgnnXb+axOZT4xiQWYPZQFyNqs9eTP9wGcDeS19JAhRoMxMA@mail.gmail.com>
In-Reply-To: <CABkgnnXb+axOZT4xiQWYPZQFyNqs9eTP9wGcDeS19JAhRoMxMA@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=Michael.Bishop@microsoft.com; 
x-originating-ip: [2601:600:8300:3b9a:e1d6:f034:51a8:af71]
x-ms-office365-filtering-correlation-id: e4ee3d34-4191-41b9-c351-08d43e68f713
x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:BN6PR03MB2707;
x-microsoft-exchange-diagnostics: 1;BN6PR03MB2707;7:zPbAVM7Xs4SWhLloh/ZouwNCyN5dbl8hVGdScPXSQ/K7oAnCC5dBqZmlp7m2qnhYoKfZPhGiCJkj93DEtvWKRlDXXWm3WN9itv99hpLbs3ihS//JpIxH4jOH415Uq5evP80NywVe4bH23UiA4Nw4tjK5FT3iVmufrEObFBzrVFKHEPoGzL0oMu1uMAkvwC7ppXgguAeLr56q7iT0Uvy7tWlCdKMsa2xZipTxsKjJxX0HzuvUh9UWBJOTUVxbi6OkZvAkeNkdpmjjTKxnKRckxk5Dj7MdM6NVTVwv12OvjTe0qkg+PYorwtRiWtoEdY28RHjCCASe5FXWV368zPMWIV/8x/8BE7twuaaKcNbP2QCZqqYDPx/v3lXGvA8aa0uy2R1NRuum13jOjSYywPrmG0NLaqfT5fFUMLLNlccB2ZrT80srcmnq6sUndBKeKMYITarFrgiaqVnCASt755rdm+OY4DNgfWjDd5YdhW7pwVc=
x-microsoft-antispam-prvs: <BN6PR03MB2707E2C7A86006AC5E9DCE70877D0@BN6PR03MB2707.namprd03.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(158342451672863)(204407124797145)(127952516941037);
x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(61425038)(6040375)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001)(6055026)(61426038)(61427038)(6041248)(20161123555025)(20161123560025)(20161123564025)(20161123562025)(6072148)(6047074);SRVR:BN6PR03MB2707;BCL:0;PCL:0;RULEID:;SRVR:BN6PR03MB2707;
x-forefront-prvs: 01894AD3B8
x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(7916002)(39850400002)(39450400003)(39840400002)(39860400002)(39410400002)(13464003)(377454003)(24454002)(199003)(53754006)(189002)(229853002)(8936002)(5890100001)(39060400001)(16601075003)(81166006)(8676002)(38730400001)(81156014)(3660700001)(5005710100001)(2900100001)(189998001)(5660300001)(74316002)(92566002)(86362001)(8990500004)(77096006)(86612001)(6506006)(68736007)(122556002)(6306002)(33656002)(106356001)(50986999)(3280700002)(97736004)(76176999)(7696004)(54356999)(9686003)(10290500002)(4326007)(5001770100001)(6436002)(101416001)(2950100002)(6116002)(55016002)(7736002)(10090500001)(305945005)(2906002)(99286003)(105586002)(561944003)(102836003)(25786008)(30001);DIR:OUT;SFP:1102;SCL:1;SRVR:BN6PR03MB2707;H:BN6PR03MB2708.namprd03.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en;
received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts)
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: microsoft.com
X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Jan 2017 23:39:50.5398 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR03MB2707
Received-SPF: pass client-ip=104.47.36.115; envelope-from=Michael.Bishop@microsoft.com; helo=NAM02-SN1-obe.outbound.protection.outlook.com
X-W3C-Hub-Spam-Status: No, score=-4.3
X-W3C-Hub-Spam-Report: AWL=-2.749, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, W3C_NW=0.5
X-W3C-Scan-Sig: titan.w3.org 1cTGst-0006io-Tu 49f4f42ca27f2375c845c98636696104
X-Original-To: ietf-http-wg@w3.org
Subject: RE: Multiple Alt-Svc parameters of the same type
Archived-At: <http://www.w3.org/mid/BN6PR03MB27088C11B14D9FCE39B58AAE877D0@BN6PR03MB2708.namprd03.prod.outlook.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33296
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>

Q2VydGFpbmx5IG9wZW4gdG8gc3VnZ2VzdGlvbnMgb24gaG93IHRvIHNpbXBsaWZ5LiAgVGhlICJj
b21wbGV4IiBlbmNvZGluZyBzaW1wbHkgYWxsb3dzIGZvciB0aGluZ3Mgd2hpY2ggY2FuIGJlIHJl
cHJlc2VudGVkIGluIGZvdXIgY2hhcmFjdGVycyBpbnN0ZWFkIG9mIGVpZ2h0IHRvIGRvIHNvLiAg
SXQganVzdCBmZWVscyBhIGxpdHRsZSB1bndpZWxkeSB0byBtYWtlIHRoaW5ncyBsaWtlIFEwMzQg
cmVuZGVyIGFzICI1MTMwMzMzNCIuDQoNCkhvd2V2ZXIsIGxvb2tpbmcgYXQgaXQgYWdhaW4sIEkg
bm90ZSB0aGF0IHdoaWxlIHRoZSAqdGV4dCogc2F5cyBubyBwZXJjZW50LWVuY29kaW5nLCB0aGUg
Y29tbWVuZCBpbiB0aGUgQUJORiBzdGlsbCBzYXlzIGl0J3MgdGhlcmUuICBGaXhlZCB0aGF0Lg0K
DQotLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KRnJvbTogTWFydGluIFRob21zb24gW21haWx0
bzptYXJ0aW4udGhvbXNvbkBnbWFpbC5jb21dIA0KU2VudDogTW9uZGF5LCBKYW51YXJ5IDE2LCAy
MDE3IDM6MDAgUE0NClRvOiBMdWNhcyBQYXJkdWUgPEx1Y2FzLlBhcmR1ZUBiYmMuY28udWs+DQpD
YzogSFRUUCBXb3JraW5nIEdyb3VwIDxpZXRmLWh0dHAtd2dAdzMub3JnPg0KU3ViamVjdDogUmU6
IE11bHRpcGxlIEFsdC1TdmMgcGFyYW1ldGVycyBvZiB0aGUgc2FtZSB0eXBlDQoNCkkgZGlkbid0
IG1lbnRpb24gdGhpcyBlYXJsaWVyLCBidXQgSSB3YXMgd29uZGVyaW5nIGlmIGl0IHdvdWxkIGJl
IGVhc2llciBhbGwgYXJvdW5kIGlmIHdlIGp1c3QgcmVuYW1lZCB0aGlzIGZyb20gInYiIHRvICJx
dWljIiBhbmQgbWFkZSB0aGUgc2VtYW50aWNzIGNsZWFyZXIuDQoNCkkgZG9uJ3QgbXVjaCBsaWtl
IE1pa2UncyBwcm9wb3NhbCB3aXRoIGl0cyBtdWx0aXBsZSB2YXJpYW50IGVuY29kaW5ncyBlaXRo
ZXIuICBJIHByb3Bvc2VkIGEgc2ltcGxlIG51bWVyaWMgdmFsdWUgKEkgY2hvc2UgaGV4LCBidXQg
ZGVjaW1hbCB3b3JrcyBmaW5lKSwgd2hpY2ggaXMgYWRlcXVhdGUuICBJIHdhcyBjb25jZXJuZWQg
YWJvdXQgdGhlIGNvbXBsZXhpdHkgb2YgdGhlIGVuY29kaW5nLCBidXQgbm93IHdlIGhhdmUgdHdv
IGVuY29kaW5ncywgb25lIG9mIHdoaWNoIGlzIGNvbXBsZXguDQoNCkFzIGZhciBhcyBtdWx0aXBs
ZSBwYXJhbWV0ZXJzIGdvLCBpdCBkb2Vzbid0IG1hdHRlciB3aGF0IHRoZSBnZW5lcmljIHJ1bGVz
IGFyZSBhcyBsb25nIGFzIHRoZSBzcGVjaWZpYyBvbmVzIGFyZSBjb3JyZWN0Lg0KDQpPbiAxNyBK
YW51YXJ5IDIwMTcgYXQgMDU6NDgsIEx1Y2FzIFBhcmR1ZSA8THVjYXMuUGFyZHVlQGJiYy5jby51
az4gd3JvdGU6DQo+IEhlbGxvIGFsbCwNCj4NCj4gVGhlIOKAnHbigJ0gQWx0LVN2YyBwYXJhbWV0
ZXIgaGFzIHNlZW4gc29tZSB1c2UgaW4gdGhlIHdpbGQsIG5hbWVseSBHb29nbGUgc2VydmljZXMg
b2ZmZXJpbmcgdGhlIOKAnHF1aWPigJ0gYWx0ZXJuYXRpdmUgc2VydmljZS4gVG8gZGF0ZSB0aGlz
IHBhcmFtZXRlciB3YXMgbm90IGRlZmluZWQgYW55d2hlcmUgYnV0IHRvb2sgdGhlIGZvcm0gb2Yg
YSBjb21tYS1zZXBhcmF0ZWQgbGlzdCBvZiBudW1iZXJzIGUuZy4NCj4NCj4gQWx0LVN2YzogcXVp
Yz0iOjQ0M+KAnTsgdj0iMzUsMzQiDQo+DQo+IE1pa2UgQmlzaG9wIGlzIGdpdmluZyBhbiBvZmZp
Y2lhbCBkZWZpbml0aW9uIG9mIHRoZSBBbHQtU3ZjIOKAnHbigJ0gcGFyYW1ldGVyLCBhcyBwYXJ0
IG9mIGh0dHBzOi8vdG9vbHMuaWV0Zi5vcmcvaHRtbC9kcmFmdC1pZXRmLXF1aWMtaHR0cC0wMSNz
ZWN0aW9uLTIuMSwgd2hpY2ggaXMgZGlmZmVyZW50IHRoYW4gR29vZ2xl4oCZcyBwcmV2aW91cyB1
c2FnZS4NCj4NCj4+IFdoZW4gbXVsdGlwbGUgdmVyc2lvbnMgYXJlIHN1cHBvcnRlZCwgdGhlICJ2
IiBwYXJhbWV0ZXIgTUFZIGJlIA0KPj4gcmVwZWF0ZWQgbXVsdGlwbGUgdGltZXMgaW4gYSBzaW5n
bGUgQWx0LVN2YyBlbnRyeS4gIEZvciBleGFtcGxlLCBpZiBhIA0KPj4gc2VydmVyIHN1cHBvcnRl
ZCBib3RoIHZlcnNpb24gIlEwMzQiIGFuZCB2ZXJzaW9uIDB4MDAwMDAwMDEsIGl0IHdvdWxkIA0K
Pj4gc3BlY2lmeSB0aGUgZm9sbG93aW5nIGhlYWRlcjoNCj4NCj4+IEFsdC1TdmM6IGhxPSI6NDQz
Ijt2PSJ4MSI7dj0iY1EwMzQiDQo+DQo+PiBXaGVyZSBtdWx0aXBsZSB2ZXJzaW9ucyBhcmUgbGlz
dGVkLCB0aGUgb3JkZXIgb2YgdGhlIHZhbHVlcyByZWZsZWN0cyANCj4+IHRoZSBzZXJ2ZXIncyBw
cmVmZXJlbmNlICh3aXRoIHRoZSBmaXJzdCB2YWx1ZSBiZWluZyB0aGUgbW9zdCANCj4+IHByZWZl
cnJlZCB2ZXJzaW9uKS4NCj4NCj4gVGhpcyBnb3QgbWUgdGhpbmtpbmcsIFJGQyA3ODM4IGRvZXNu
4oCZdCBzZWVtIHRvIGdpdmUgYW55IGRpcmVjdGlvbiBvbiB0aGUgaGFuZGxpbmcgb2YgbXVsdGlw
bGUgcGFyYW1ldGVycyBvZiB0aGUgc2FtZSB0eXBlLiBGb3IgZXhhbXBsZSwgaXMgaXQgT0sgZm9y
IGEgc2VydmVyIHRvIGdlbmVyYXRlIG11bHRpcGxlIOKAnHBlcnNpc3TigJ0gcGFyYW1ldGVycyBw
ZXJoYXBzIHdpdGggZGlmZmVyZW50IHZhbHVlcywgaG93IHNob3VsZCBhIGNsaWVudCBkZWFsIHdp
dGggdGhhdD8gUGVyaGFwcyBJ4oCZbSB3b3JyeWluZyB0b28gbXVjaC4NCj4NCj4gSSB3b25kZXJl
ZCBpZiB0aGUgQWx0LVN2YyBwYXJhbWV0ZXIgSUFOQSByZWdpc3RyeSBjb3VsZCB1c2Ugc29tZSBu
ZXcgY29sdW1ucyB0byBkZWZpbmUgdGhlIGFsbG93ZWQgbXVsdGlwbGljaXR5IG9mIGVhY2ggcGFy
YW1ldGVyLCBhbmQgYW4gaW5kaWNhdGlvbiBvZiBob3cgdG8gdHJlYXQgdGhlIG9yZGVyaW5nLiBB
bnkgdGhvdWdodHM/DQo+DQo+IFJlZ2FyZHMNCj4gTHVjYXMNCj4NCj4NCj4NCj4NCj4gLS0tLS0t
LS0tLS0tLS0tLS0tLS0tLS0tLS0tLQ0KPg0KPiBodHRwOi8vd3d3LmJiYy5jby51aw0KPiBUaGlz
IGUtbWFpbCAoYW5kIGFueSBhdHRhY2htZW50cykgaXMgY29uZmlkZW50aWFsIGFuZCBtYXkgY29u
dGFpbiBwZXJzb25hbCB2aWV3cyB3aGljaCBhcmUgbm90IHRoZSB2aWV3cyBvZiB0aGUgQkJDIHVu
bGVzcyBzcGVjaWZpY2FsbHkgc3RhdGVkLg0KPiBJZiB5b3UgaGF2ZSByZWNlaXZlZCBpdCBpbiBl
cnJvciwgcGxlYXNlIGRlbGV0ZSBpdCBmcm9tIHlvdXIgc3lzdGVtLg0KPiBEbyBub3QgdXNlLCBj
b3B5IG9yIGRpc2Nsb3NlIHRoZSBpbmZvcm1hdGlvbiBpbiBhbnkgd2F5IG5vciBhY3QgaW4gcmVs
aWFuY2Ugb24gaXQgYW5kIG5vdGlmeSB0aGUgc2VuZGVyIGltbWVkaWF0ZWx5Lg0KPiBQbGVhc2Ug
bm90ZSB0aGF0IHRoZSBCQkMgbW9uaXRvcnMgZS1tYWlscyBzZW50IG9yIHJlY2VpdmVkLg0KPiBG
dXJ0aGVyIGNvbW11bmljYXRpb24gd2lsbCBzaWduaWZ5IHlvdXIgY29uc2VudCB0byB0aGlzLg0K
Pg0KPiAtLS0tLS0tLS0tLS0tLS0tLS0tLS0NCg0K


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Mon Jan 16 16:40:17 2017
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 AB23C12968D for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 16 Jan 2017 16:40:17 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.72
X-Spam-Level:
X-Spam-Status: No, score=-9.72 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, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, 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 v_BFGuLo22GW for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 16 Jan 2017 16:40:16 -0800 (PST)
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 963EB1293F0 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 16 Jan 2017 16:40:16 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cTHm9-0008IL-Iu for ietf-http-wg-dist@listhub.w3.org; Tue, 17 Jan 2017 00:37:25 +0000
Resent-Date: Tue, 17 Jan 2017 00:37:25 +0000
Resent-Message-Id: <E1cTHm9-0008IL-Iu@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <martin.thomson@gmail.com>) id 1cTHm5-0008HY-B2 for ietf-http-wg@listhub.w3.org; Tue, 17 Jan 2017 00:37:21 +0000
Received: from mail-qt0-f177.google.com ([209.85.216.177]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <martin.thomson@gmail.com>) id 1cTHlz-0008Q5-1f for ietf-http-wg@w3.org; Tue, 17 Jan 2017 00:37:16 +0000
Received: by mail-qt0-f177.google.com with SMTP id l7so130183952qtd.1 for <ietf-http-wg@w3.org>; Mon, 16 Jan 2017 16:36:54 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=4tX6prdSuwD2s7qk/NnTOUYlo5UNimPIL/SBC05zQtE=; b=B/rlnoVPxug3IAaaWwHds4ekDp6weYcKHIPeWTw2+A7wCPKBOhlfnZ93/FXG7PwjUk kuclyOa9jgoqsyAbCZHaNjohdLBIVDIeaKwXjwfw6KxD3MNePLyne44OtwXCuuRl/Rd3 XIrurMIU+LspuQogtVe6nmg/Pw17uvZqvZa45IM88YB9KBS+tsTX9CibfK101pJSZ8FR JyestjeqOZOTYYKIe0xNYVfhYUx66uSNEL0fyWHiEznwp/ZISQUJibW/OZvhhUsXIYsR nHVXnep9T7835wJDx2g3xCWF7d7XeyulfpxuSFfZbD+IsNVLPlyDZUSWbQndGoQ7KhIA Hp2Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=4tX6prdSuwD2s7qk/NnTOUYlo5UNimPIL/SBC05zQtE=; b=nWMAR9zNkfYKK1G/qIUANsL+qFA89KgRObPbqf9C4Wmd5VxCYoiAhUmL6rSMz3GgXS 9FsCEMnx3B/MJfSfyX6k2v4kffI6rBd/kMW9Ejr0/QGUb7FZhQkWNilX0wjzFjaEGCH0 +48WV0pS3cOIGF9miOQ+iYMa0H6h2cCDGpTMZdbyVAuTthVuDoIIzyoFb5RoTRCZNMXz 1qJQJkr2indF/cx+GEgcx+V7SxEqqqenAMiWpc2C2oROZa1BhnRaT+R5Rp3ZHgNjc2J1 8M73bRLq408cXyfvlraPGGXZpEKtaCM83h7IZoMSV57xE2fW4Ky2u02jIRqnafVRhgd+ Nb9A==
X-Gm-Message-State: AIkVDXIu6RV6tw45tfACQiUS1HKhRVvq6BLh3vYrw5jpwFwpPZ0q48UKZLAaIu2DqJNxAAyvIO9emgg33Va6XA==
X-Received: by 10.200.53.247 with SMTP id l52mr26457548qtb.144.1484613409113; Mon, 16 Jan 2017 16:36:49 -0800 (PST)
MIME-Version: 1.0
Received: by 10.140.19.112 with HTTP; Mon, 16 Jan 2017 16:36:48 -0800 (PST)
In-Reply-To: <BN6PR03MB27088C11B14D9FCE39B58AAE877D0@BN6PR03MB2708.namprd03.prod.outlook.com>
References: <7CF7F94CB496BF4FAB1676F375F9666A376B9A92@bgb01xud1012> <CABkgnnXb+axOZT4xiQWYPZQFyNqs9eTP9wGcDeS19JAhRoMxMA@mail.gmail.com> <BN6PR03MB27088C11B14D9FCE39B58AAE877D0@BN6PR03MB2708.namprd03.prod.outlook.com>
From: Martin Thomson <martin.thomson@gmail.com>
Date: Tue, 17 Jan 2017 13:36:48 +1300
Message-ID: <CABkgnnWsqqtXuZ6n9i9-pnpvZZ+9G76kTZ1-jsmW97TAhreYtg@mail.gmail.com>
To: Mike Bishop <Michael.Bishop@microsoft.com>
Cc: Lucas Pardue <Lucas.Pardue@bbc.co.uk>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: text/plain; charset=UTF-8
Received-SPF: pass client-ip=209.85.216.177; envelope-from=martin.thomson@gmail.com; helo=mail-qt0-f177.google.com
X-W3C-Hub-Spam-Status: No, score=-5.8
X-W3C-Hub-Spam-Report: AWL=-0.230, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1cTHlz-0008Q5-1f 5563f5bbb96eb2186113cfb42a4007fa
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Multiple Alt-Svc parameters of the same type
Archived-At: <http://www.w3.org/mid/CABkgnnWsqqtXuZ6n9i9-pnpvZZ+9G76kTZ1-jsmW97TAhreYtg@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33297
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 17 January 2017 at 12:39, Mike Bishop <Michael.Bishop@microsoft.com> wrote:
> It just feels a little unwieldy to make things like Q034 render as "51303334".


It depends on what you think is more unwieldy, having code to identify
and switch on cQ034 or the extra octets for non-standard versions.
Keep in mind that the ultimate version we're going to ship will just
be "1".

Note also, you probably don't need the quotes either.  Quoting is nice
if you have odd characters, but none of the forms have it.  I think
that we're supposed to accept them and strip them off because that's
the generic syntax, but that's really unclear.


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Mon Jan 16 18:31:02 2017
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 60C9A128BA2 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 16 Jan 2017 18:31:02 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.12
X-Spam-Level:
X-Spam-Status: No, score=-10.12 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-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=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=teamtelstra.onmicrosoft.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 VLoIgrJi5zbZ for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 16 Jan 2017 18:31:00 -0800 (PST)
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 72BCD129411 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 16 Jan 2017 18:31:00 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cTJUs-0005aj-II for ietf-http-wg-dist@listhub.w3.org; Tue, 17 Jan 2017 02:27:42 +0000
Resent-Date: Tue, 17 Jan 2017 02:27:42 +0000
Resent-Message-Id: <E1cTJUs-0005aj-II@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <James.H.Manger@team.telstra.com>) id 1cTJUo-0005ZP-Bd for ietf-http-wg@listhub.w3.org; Tue, 17 Jan 2017 02:27:38 +0000
Received: from ipxcno.tcif.telstra.com.au ([203.35.82.208]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <James.H.Manger@team.telstra.com>) id 1cTJUg-0003Cn-KR for ietf-http-wg@w3.org; Tue, 17 Jan 2017 02:27:32 +0000
X-IronPort-AV: E=Sophos;i="5.33,242,1477918800";  d="scan'208";a="17199559"
Received: from unknown (HELO ipcani.tcif.telstra.com.au) ([10.97.216.200]) by ipocni.tcif.telstra.com.au with ESMTP; 17 Jan 2017 13:26:57 +1100
X-IronPort-AV: E=McAfee;i="5700,7163,8410"; a="270648572"
Received: from wsmsg3751.srv.dir.telstra.com ([172.49.40.172]) by ipcani.tcif.telstra.com.au with ESMTP; 17 Jan 2017 13:26:57 +1100
Received: from wsapp5871.srv.dir.telstra.com (10.75.139.13) by wsmsg3751.srv.dir.telstra.com (172.49.40.172) with Microsoft SMTP Server (TLS) id 8.3.485.1; Tue, 17 Jan 2017 13:26:57 +1100
Received: from wsapp5585.srv.dir.telstra.com (10.75.3.67) by wsapp5871.srv.dir.telstra.com (10.75.139.13) with Microsoft SMTP Server (TLS) id 15.0.1236.3; Tue, 17 Jan 2017 13:26:56 +1100
Received: from AUS01-SY3-obe.outbound.protection.outlook.com (10.172.101.126) by wsapp5585.srv.dir.telstra.com (10.75.3.67) with Microsoft SMTP Server (TLS) id 15.0.1236.3 via Frontend Transport; Tue, 17 Jan 2017 13:26:57 +1100
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=teamtelstra.onmicrosoft.com; s=selector1-team-telstra-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=aXe/CgvMZh6M8r0VA4hIIklFzu1UGu5nijg8TMNNjrk=; b=dJoCkVF9g72MRew75wT1iqyRcCpXep4AvDohrH71pB5JbMLAej/AMKZ2tldMxcB7RGVfR+njml5ztS2c8MNuYkmvxlaOiMJOd5vopDQPyNr3j51KpaZ5nwoCuPYO65FgXWtbOr3H6ykAKhTwCwujIAsHT8K0p19EzcWVJY2qNdE=
Received: from SYXPR01MB1615.ausprd01.prod.outlook.com (10.175.209.15) by SYXPR01MB1613.ausprd01.prod.outlook.com (10.175.209.13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.845.12; Tue, 17 Jan 2017 02:26:54 +0000
Received: from SYXPR01MB1615.ausprd01.prod.outlook.com ([10.175.209.15]) by SYXPR01MB1615.ausprd01.prod.outlook.com ([10.175.209.15]) with mapi id 15.01.0845.013; Tue, 17 Jan 2017 02:26:54 +0000
From: "Manger, James" <James.H.Manger@team.telstra.com>
To: "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>, Martin Thomson <martin.thomson@gmail.com>
Thread-Topic: aes128gcm: is the 1st example wrong?
Thread-Index: AdJwaRiaLg2sNqShRRuJIHKdUn2T6g==
Date: Tue, 17 Jan 2017 02:26:54 +0000
Message-ID: <SYXPR01MB1615D5823473E6A9B5F0C80DE57C0@SYXPR01MB1615.ausprd01.prod.outlook.com>
Accept-Language: en-AU, en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=James.H.Manger@team.telstra.com; 
x-originating-ip: [203.35.185.244]
x-ms-office365-filtering-correlation-id: 6f4b01b1-dd86-4246-efdb-08d43e804dca
x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:SYXPR01MB1613;
x-microsoft-exchange-diagnostics: 1;SYXPR01MB1613;7:2JiWqKK7Bw8x4jxscnKh48BFeVl0AxMOk04C16TJjgaxpUZsiLSpN6n3DyVpkTkJ8KJOb+DFiMT49CN9Q9GOaG0JL5BiCj97C8nHFvXkPLXtJAhVnnTnSKFHKjMQxyD2KZJntfrnHUjTvzSLnsKGsnufMkO4h1cTgJUe/s26E+xQcMcLVUIPrCYJH1XLNdI/CfDfzuHrz5WS7M5bK9W+o0+OUBhg1OPZB/MkH7qgGNV3DzVjMtmTc/jOffy1ezNDB5KEG0P9Xld4vrlszTIyCXJQBIN+uXVpFT3hsYDc83JNZ9e6k4F2PjUtwcNW6wCEJtR9umr5paFNXMMOy0rFPKAo7OdDgkJ8pRXUV21Nra+QA0d3V9plNPECggd1dzXiRsiDdGWXoftdNTJYl1+y0r53fLy/6/GmAfLnX06Se6ERvT7rrrdUr4CyuKjl1/QnuVd9NPbodgEHJE1q73v8fA==
x-microsoft-antispam-prvs: <SYXPR01MB16138E301161FEBD14B93540E57C0@SYXPR01MB1613.ausprd01.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(166708455590820);
x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040375)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6041248)(20161123555025)(20161123564025)(20161123562025)(20161123560025)(6072148)(6042181);SRVR:SYXPR01MB1613;BCL:0;PCL:0;RULEID:;SRVR:SYXPR01MB1613;
x-forefront-prvs: 01901B3451
x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(7916002)(199003)(189002)(39060400001)(38730400001)(102836003)(6506006)(3846002)(55016002)(74316002)(6116002)(99286003)(9686003)(7736002)(77096006)(97736004)(2906002)(305945005)(66066001)(2501003)(3660700001)(3280700002)(92566002)(86362001)(5001770100001)(68736007)(6436002)(42882006)(2900100001)(25786008)(81156014)(54356999)(122556002)(107886002)(101416001)(7696004)(33656002)(105586002)(5660300001)(8676002)(189998001)(81166006)(106356001)(50986999)(8936002)(30001)(6306002)(19627235001);DIR:OUT;SFP:1102;SCL:1;SRVR:SYXPR01MB1613;H:SYXPR01MB1615.ausprd01.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:0;MX:1;LANG:en;
received-spf: None (protection.outlook.com: team.telstra.com does not designate permitted sender hosts)
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Jan 2017 02:26:54.6922 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 49dfc6a3-5fb7-49f4-adea-c54e725bb854
X-MS-Exchange-Transport-CrossTenantHeadersStamped: SYXPR01MB1613
X-OriginatorOrg: team.telstra.com
Received-SPF: none client-ip=203.35.82.208; envelope-from=James.H.Manger@team.telstra.com; helo=ipxcno.tcif.telstra.com.au
X-W3C-Hub-Spam-Status: No, score=-2.1
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7, W3C_NW=0.5
X-W3C-Scan-Sig: titan.w3.org 1cTJUg-0003Cn-KR b64185c54324f12a62b2ece59d4483ca
X-Original-To: ietf-http-wg@w3.org
Subject: aes128gcm: is the 1st example wrong?
Archived-At: <http://www.w3.org/mid/SYXPR01MB1615D5823473E6A9B5F0C80DE57C0@SYXPR01MB1615.ausprd01.prod.outlook.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33298
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>

I cannot replicate the 1st example in draft-ietf-httpbis-encryption-encodin=
g <https://github.com/httpwg/http-extensions/blob/master/draft-ietf-httpbis=
-encryption-encoding.md>. Can anyone confirm if it is correct? I can confir=
m that the 2nd example decrypts correctly.

(all quantities are base64url-encoding of the actual byte arrays)

IKM =3D B33e_VeFrOyIHwFTIfmesA
salt =3D sJvlboCWzB5jr8hI_q9cOQ

Draft gives:
PRK =3D MLAQxt_DHjM15cdlyU1oUnjq7TFlzToGTkdRmvvxVBw

But I get:
PRK =3D Mg9ErPx3DpJfkz72kj7Yvx369iqvd4Fmf7tOMTdXELo

--
James Manger



From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Mon Jan 16 18:36:22 2017
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 B9777129434 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 16 Jan 2017 18:36:22 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.62
X-Spam-Level:
X-Spam-Status: No, score=-9.62 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-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, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, 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 AJ2ekNQ0frR2 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 16 Jan 2017 18:36:21 -0800 (PST)
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 9C6BD129411 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 16 Jan 2017 18:36:21 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cTJaw-00028C-1n for ietf-http-wg-dist@listhub.w3.org; Tue, 17 Jan 2017 02:33:58 +0000
Resent-Date: Tue, 17 Jan 2017 02:33:58 +0000
Resent-Message-Id: <E1cTJaw-00028C-1n@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <barryleiba.mailing.lists@gmail.com>) id 1cTJat-00026w-6e for ietf-http-wg@listhub.w3.org; Tue, 17 Jan 2017 02:33:55 +0000
Received: from mail-it0-f54.google.com ([209.85.214.54]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <barryleiba.mailing.lists@gmail.com>) id 1cTJan-0003LV-As for ietf-http-wg@w3.org; Tue, 17 Jan 2017 02:33:50 +0000
Received: by mail-it0-f54.google.com with SMTP id 203so86549420ith.0 for <ietf-http-wg@w3.org>; Mon, 16 Jan 2017 18:33:29 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=ws8riJ7g1TAZE80rD61BAe7Gg9G0bL9FMcLip0sTD/Q=; b=SykhJB5HwqItX64MgoXanzSvvhsujNxuibC2x3eewwFVnY4nzcRVKOYK7YmLx/thm/ LYPIhyW/OIT61l2rtqfUnX0W2cq74i/JTjVyhLZBN4Te6eNC8sYKXY8otyB1KV3E9ZSR tSQG6GFT2ZuKVy6JHHZBjvI5I+vv74f/zzFv2tWgvCiqMhWu2iIurhu2um+3AKOmgA/H E4pPoBvA8Br0/w2JxF1P+BGGPgh4+Kt9Llt93SAXqJIZVorkd777dvC9F6Op62/H7oLS Hr4lB2n8hlROaEo+2ADC0yNkzwNXbeJ8TtSDE7kL2RnFliVNzXlm7JJ+mhkVaFk8X8/g /I/g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=ws8riJ7g1TAZE80rD61BAe7Gg9G0bL9FMcLip0sTD/Q=; b=tmdoaniBg7fiQyLQ0NpJXYTZDqspqrI9AQVElmyjYm2Iq6oDNLrUS6LnB3o40g+mFH /gBumIYiqCSf4nlSBe+xtFZoC4J6XMvv99rdnS0bkzAoUrv6fXmZo+aFDHFBO0MmtbPC 3Ir8mHxGYu1edSxmiIXwwDQTe8IGhA85PS4BHxAiiJu3omjQMS78ZSIZtK/dHIFCdQF8 mQqzQUFnT5nSKERgDbpqT6yYBUFzqHyC9rysgDD2EsxvT6phW67CtxQ/Pf0waKQ8O/Sd HJtSSGqhNUN1rJ9K6yIRdQFmyiElsji52w4uUJngQuxe84XTg8HbEfXeu0KC7jWM3+co bGAQ==
X-Gm-Message-State: AIkVDXLMASXqoR9KdfHzDDrVHcsDzAw3dB63lSvd69X/FnCfrUE9i3LOJP8FmEzJT6XpWlJYUASV9oGevwuAPA==
X-Received: by 10.36.61.136 with SMTP id n130mr6732803itn.107.1484620403425; Mon, 16 Jan 2017 18:33:23 -0800 (PST)
MIME-Version: 1.0
Sender: barryleiba.mailing.lists@gmail.com
Received: by 10.107.136.18 with HTTP; Mon, 16 Jan 2017 18:33:22 -0800 (PST)
In-Reply-To: <CABkgnnVw9K4DiRySgSjbYcxkEyAqxU9DU3dw4e4+vpEk6ff5Zg@mail.gmail.com>
References: <CAOdDvNr==BmizwUPKaMZq__UckfM5bAJ0w15=A-R1xrtZ+JxjA@mail.gmail.com> <CABkgnnVw9K4DiRySgSjbYcxkEyAqxU9DU3dw4e4+vpEk6ff5Zg@mail.gmail.com>
From: Barry Leiba <barryleiba@computer.org>
Date: Mon, 16 Jan 2017 21:33:22 -0500
X-Google-Sender-Auth: -xUmB9_YpfuI6CHv76UAothCtFE
Message-ID: <CAC4RtVBamPXgKepQBkUo524FUW4psMRzHLqOnY3J_rhkq+YvzQ@mail.gmail.com>
To: Martin Thomson <martin.thomson@gmail.com>
Cc: Patrick McManus <pmcmanus@mozilla.com>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: text/plain; charset=UTF-8
Received-SPF: pass client-ip=209.85.214.54; envelope-from=barryleiba.mailing.lists@gmail.com; helo=mail-it0-f54.google.com
X-W3C-Hub-Spam-Status: No, score=-7.5
X-W3C-Hub-Spam-Report: AWL=1.633, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_IRR=-3, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1cTJan-0003LV-As 20a6a2abe8aa821f20bf287ed7bab2c9
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Issue 271 of 5987bis - Proposed Standard or Internet Standard?
Archived-At: <http://www.w3.org/mid/CAC4RtVBamPXgKepQBkUo524FUW4psMRzHLqOnY3J_rhkq+YvzQ@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33299
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>

>> I need to direct your attention to one of just two open issues with the
>> 5987bis document (Indicating Character Encoding and Language for HTTP Header
>> Field Parameters), which deals with the intended status of the eventual RFC.
>
> Proposed Standard would seem to be sufficient.  I would think that
> being MORE mature than HTTP would be unrealistic, so that limits us to
> PS.

Indeed... and beyond "unrealistic", at least somewhat against IETF
process.  The document has 7230 and 7231 as normative references, so
they would qualify as "downrefs" if we should try for Internet
Standard.  We do have a process -- documented in RFC 3967 -- that
allows downrefs if they are called out explicitly in last call, but
that is mostly used for referencing informational documents for
terminology and such.  3967 is pretty clear that it should *not* be
used in lieu of moving the less-mature references up in maturity
first.

We should move the HTTP 1.1 set up to IS before we start trying to
make other HTTP-related standards IS.

Barry


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Mon Jan 16 19:19:23 2017
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 B0796129992 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 16 Jan 2017 19:19:23 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.72
X-Spam-Level:
X-Spam-Status: No, score=-9.72 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, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, 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 b6M0hzO9FVvr for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 16 Jan 2017 19:19:22 -0800 (PST)
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 9F70E12998E for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 16 Jan 2017 19:19:22 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cTKGT-0003jO-Ou for ietf-http-wg-dist@listhub.w3.org; Tue, 17 Jan 2017 03:16:53 +0000
Resent-Date: Tue, 17 Jan 2017 03:16:53 +0000
Resent-Message-Id: <E1cTKGT-0003jO-Ou@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <martin.thomson@gmail.com>) id 1cTKGQ-0003hi-IB for ietf-http-wg@listhub.w3.org; Tue, 17 Jan 2017 03:16:50 +0000
Received: from mail-qt0-f171.google.com ([209.85.216.171]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <martin.thomson@gmail.com>) id 1cTKGB-0004Yl-4w for ietf-http-wg@w3.org; Tue, 17 Jan 2017 03:16:45 +0000
Received: by mail-qt0-f171.google.com with SMTP id k15so134830142qtg.3 for <ietf-http-wg@w3.org>; Mon, 16 Jan 2017 19:16:14 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=JUiETncinCv5rsTsw9WnhEq7ncMsl5DL7Ys9ErC10TA=; b=eJx9SXpYCQOijM7Eyz9/aob4P8gWYbpw9LEfVYlnUlQ3k9FAGev1YmjoeTtsRWehy+ QLFDjCYkVEZ7vLgx9wzz6UviMt4QNLS6jnVGFmjzZ/5ATV5I+ufUDkkgpvrkdhEZP4e+ LpDrH89br/wDi8k/+caQLd6ZQ8LICgDSy1gIhi9YQiRb/8c1nVxhrt7bD10qvZ1HKYEY Q7yP/TMQtYynuub2C2Q+Aj2KTwms1pkOfl1umq+sKbIOiBLSOOqZpvy9BbvNEBOsrwgD ASmncIukvnJr2QUisro/qHr2qWA85o2/lDsCfsI00zd4zKFRA8Zb5Nk2U0fBO6JGW0zS GqEA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=JUiETncinCv5rsTsw9WnhEq7ncMsl5DL7Ys9ErC10TA=; b=Uk9Et5EFh28sNRidbsN+s9cyBKCIwLlVDlxahORJPeGixoVM9QBslsvxgtrRppCgla yQWCt4I1xG8ORSKORHmw8H2o8aEhkVCiKVI3gQg3Z152H/i5ZzCXOMitKgUZHgmh/3vQ KJSJkopv1q3/v0pO9ejUPydhhxAGwziz94lsg+TnJPU6+O3RGrf91UmYZdBGsOunZ6ol 1t6IIYIoTyQTvlF2Eb8PtE3EAfsObUj65ktBcfla8gsa2jEgM8V4wNjHz3kNztUVZXLK L72nTawI1e584jpAddSvliL9Du2j2ri7Md4skbYXXy0n8OYZ/mZPZX0wdsZPhoKwS1JB K7Eg==
X-Gm-Message-State: AIkVDXJKULye9bLDyHIYCnZBBFgxsETYKiUWuSU1T2UGIRyBft0ELAF+mgLOC+GtpYpIHdB825uz6pnjmD+6ZQ==
X-Received: by 10.200.49.249 with SMTP id i54mr34741968qte.3.1484622969247; Mon, 16 Jan 2017 19:16:09 -0800 (PST)
MIME-Version: 1.0
Received: by 10.140.19.112 with HTTP; Mon, 16 Jan 2017 19:16:08 -0800 (PST)
In-Reply-To: <SYXPR01MB1615D5823473E6A9B5F0C80DE57C0@SYXPR01MB1615.ausprd01.prod.outlook.com>
References: <SYXPR01MB1615D5823473E6A9B5F0C80DE57C0@SYXPR01MB1615.ausprd01.prod.outlook.com>
From: Martin Thomson <martin.thomson@gmail.com>
Date: Tue, 17 Jan 2017 16:16:08 +1300
Message-ID: <CABkgnnWE38wbhKfp+5nF1hfn7qH4-6Uk4QMGBKgGL6-f_em_KA@mail.gmail.com>
To: "Manger, James" <James.H.Manger@team.telstra.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.216.171; envelope-from=martin.thomson@gmail.com; helo=mail-qt0-f171.google.com
X-W3C-Hub-Spam-Status: No, score=-5.8
X-W3C-Hub-Spam-Report: AWL=-0.230, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1cTKGB-0004Yl-4w 854d7d6025e9d3f17823b68f7eaceb56
X-Original-To: ietf-http-wg@w3.org
Subject: Re: aes128gcm: is the 1st example wrong?
Archived-At: <http://www.w3.org/mid/CABkgnnWE38wbhKfp+5nF1hfn7qH4-6Uk4QMGBKgGL6-f_em_KA@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33300
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 17 January 2017 at 15:26, Manger, James
<James.H.Manger@team.telstra.com> wrote:
> IKM = B33e_VeFrOyIHwFTIfmesA
> salt = sJvlboCWzB5jr8hI_q9cOQ
>
> Draft gives:
> PRK = MLAQxt_DHjM15cdlyU1oUnjq7TFlzToGTkdRmvvxVBw
>
> But I get:
> PRK = Mg9ErPx3DpJfkz72kj7Yvx369iqvd4Fmf7tOMTdXELo

Ahh, so do I.  Strange.  I ran those examples many times.  And I even
have unit tests against them....

...except that the unit test has the key "6Aqf1aDH8lSxLyCpoCnAqg",
which I expect will work for you.  Fixed it in 622f21d.


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Mon Jan 16 22:36:24 2017
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 EC25E129AB6 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 16 Jan 2017 22:36:24 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.219
X-Spam-Level:
X-Spam-Status: No, score=-10.219 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-3.199, 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 i__-FIAzBYQ6 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 16 Jan 2017 22:36:23 -0800 (PST)
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 53684129AB5 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 16 Jan 2017 22:36:22 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cTNKB-0003bT-6d for ietf-http-wg-dist@listhub.w3.org; Tue, 17 Jan 2017 06:32:55 +0000
Resent-Date: Tue, 17 Jan 2017 06:32:55 +0000
Resent-Message-Id: <E1cTNKB-0003bT-6d@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <scott.k.mitch1@gmail.com>) id 1cTNK7-0003aF-AD for ietf-http-wg@listhub.w3.org; Tue, 17 Jan 2017 06:32:51 +0000
Received: from mail-lf0-f44.google.com ([209.85.215.44]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <scott.k.mitch1@gmail.com>) id 1cTNK1-0001LO-1e for ietf-http-wg@w3.org; Tue, 17 Jan 2017 06:32:46 +0000
Received: by mail-lf0-f44.google.com with SMTP id n124so29863043lfd.2 for <ietf-http-wg@w3.org>; Mon, 16 Jan 2017 22:32:24 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=UPXoYbvDFfG2bsBUcDUlTlmkPZoVHP4GEaouIWxbPHU=; b=Gnaexl/K7gfVIdRxv52AUHiYqa0d9UOVRn5RpvyWSo55/3C8qk/TXvbKRGi+ficwiU /nGf5RLZ8b6skpHDXsk2ez/NqQiTGM4Jws/P9wwnMs81IGywrTD2Oeylna0rENt5oz8O Qqy+rumoOJmN8LXZ2Nry6BSbtQ3BoPeB/ALEcsrZiuVyuA1kURwkbDdKHPiYma5xWEI/ Kx6Aqg+MJLT59PptkT8Gi+KmdEicKgrAYUlrXfz8vNMSU50gSY0E9j3OoCszTNGO24T3 t3ukZ9FSq/eaM5iyxocnTeoxN0hm1rfLzL49mb4Nru3urvDVjOD8T73Y758K1KL+sxs9 Oeww==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=UPXoYbvDFfG2bsBUcDUlTlmkPZoVHP4GEaouIWxbPHU=; b=fuTcTJ7vMGnEcIlLVLfzKizRbUCCowUM3evddVcLH7hOmA2dZeeQDJxdKmXtci33jA l1Pe7pO5YOoYQ9G24+hxZotiOJTBm/aL5/56Uhs682T/cz5+PHkBc0afWchqQyLBI4go 8H+ZAJnvW6cdzO/G357Vxxa5Gbxz8rKNjz+zCHvb3i27UzAT8OhlTYcA5Nld8SHtvn1x 8/kx7lerQST0iyMk0So6gWaqmJParVrCbnmUvX3fdN5Ipnbb3NC6xuMyrPBNpOAZ2xDG vT8mmKnr8CNj04O12nezpd7DqVF5SPGcR4IcJu6F+fHsw5Mdv3FjnmvBFuKiXIKfGp69 h6Fg==
X-Gm-Message-State: AIkVDXJuAWwWT/swXJYcxRltD+eRa+ncgYNa6zlIB8xKTw/gF1Ybv9H0KhE1lDo/sW0LAyx4BJ9HcSy8T3rBEw==
X-Received: by 10.25.34.196 with SMTP id i187mr13531359lfi.176.1484634737168; Mon, 16 Jan 2017 22:32:17 -0800 (PST)
MIME-Version: 1.0
Received: by 10.25.18.200 with HTTP; Mon, 16 Jan 2017 22:32:16 -0800 (PST)
From: Scott Mitchell <scott.k.mitch1@gmail.com>
Date: Mon, 16 Jan 2017 22:32:16 -0800
Message-ID: <CAFn2buAYWHQSWhhoKZ2GKbqXR1A+tScjkAwZmOuQ9gV9jMp2bA@mail.gmail.com>
To: HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary=001a113a9ea021576a054644765f
Received-SPF: pass client-ip=209.85.215.44; envelope-from=scott.k.mitch1@gmail.com; helo=mail-lf0-f44.google.com
X-W3C-Hub-Spam-Status: No, score=-3.6
X-W3C-Hub-Spam-Report: AWL=0.122, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1cTNK1-0001LO-1e bcb71dd39318ce8784a4c78a0955a06f
X-Original-To: ietf-http-wg@w3.org
Subject: Stream State and PRIORITY Frames
Archived-At: <http://www.w3.org/mid/CAFn2buAYWHQSWhhoKZ2GKbqXR1A+tScjkAwZmOuQ9gV9jMp2bA@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33301
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>

--001a113a9ea021576a054644765f
Content-Type: text/plain; charset=UTF-8

(originally posted here: https://github.com/http2/http2-spec/issues/759)

What is the expected result in terms of stream state and any potential
errors that should be generated from the following scenario:

```
1. Client [PRIORITY, id: 5] -> Server
2. Client [HEADERS, id: 3] -> Server
```

## Option 1
The server accepts both frames. Stream `3` is OPEN and stream `5` remains
in IDLE.

This behavior is verified in the h2spec verification tool via
https://github.com/summerwind/h2spec/pull/67. Also see additional
discussion there.

## Option 2
Should the use of stream ID `5` cause stream ID `3` (and all lower stream
IDs) to be implicitly closed according to the section-5.1.1 (see [1])? This
would mean after the server receives the frame from step (1) it thinks that
stream ID `3` has been closed, and when the server receives the frame from
step (2) it will respond with a connection error of type PROTOCOL_ERROR
(see [2])?

[1] https://tools.ietf.org/html/rfc7540#section-5.1.1
> The first use of a new stream identifier implicitly closes all
   streams in the "idle" state that might have been initiated by that
   peer with a lower-valued stream identifier.

[2] https://tools.ietf.org/html/rfc7540#section-5.1.1
> An endpoint that
   receives an unexpected stream identifier MUST respond with a
   connection error (Section 5.4.1) of type PROTOCOL_ERROR.

--001a113a9ea021576a054644765f
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">(originally posted here: <a href=3D"https://github.com/htt=
p2/http2-spec/issues/759">https://github.com/http2/http2-spec/issues/759</a=
>)<div><br></div><div><div>What is the expected result in terms of stream s=
tate and any potential errors that should be generated from the following s=
cenario:</div><div><br></div><div>```</div><div>1. Client [PRIORITY, id: 5]=
 -&gt; Server</div><div>2. Client [HEADERS, id: 3] -&gt; Server</div><div>`=
``</div><div><br></div><div>## Option 1</div><div>The server accepts both f=
rames. Stream `3` is OPEN and stream `5` remains in IDLE.</div><div><br></d=
iv><div>This behavior is verified in the h2spec verification tool via <a hr=
ef=3D"https://github.com/summerwind/h2spec/pull/67">https://github.com/summ=
erwind/h2spec/pull/67</a>. Also see additional discussion there.</div><div>=
<br></div><div>## Option 2</div><div>Should the use of stream ID `5` cause =
stream ID `3` (and all lower stream IDs) to be implicitly closed according =
to the section-5.1.1 (see [1])? This would mean after the server receives t=
he frame from step (1) it thinks that stream ID `3` has been closed, and wh=
en the server receives the frame from step (2) it will respond with a conne=
ction error of type PROTOCOL_ERROR (see [2])?</div><div><br></div><div>[1] =
<a href=3D"https://tools.ietf.org/html/rfc7540#section-5.1.1">https://tools=
.ietf.org/html/rfc7540#section-5.1.1</a></div><div>&gt; The first use of a =
new stream identifier implicitly closes all</div><div>=C2=A0 =C2=A0streams =
in the &quot;idle&quot; state that might have been initiated by that</div><=
div>=C2=A0 =C2=A0peer with a lower-valued stream identifier.</div><div><br>=
</div><div>[2] <a href=3D"https://tools.ietf.org/html/rfc7540#section-5.1.1=
">https://tools.ietf.org/html/rfc7540#section-5.1.1</a></div><div>&gt; An e=
ndpoint that</div><div>=C2=A0 =C2=A0receives an unexpected stream identifie=
r MUST respond with a</div><div>=C2=A0 =C2=A0connection error (Section 5.4.=
1) of type PROTOCOL_ERROR.</div><div><br></div></div></div>

--001a113a9ea021576a054644765f--


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Tue Jan 17 00:43:20 2017
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 3275A129412 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 17 Jan 2017 00:43:20 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.62
X-Spam-Level:
X-Spam-Status: No, score=-9.62 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 5rwDvqzNdgUc for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 17 Jan 2017 00:43:14 -0800 (PST)
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 84EC3129407 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 17 Jan 2017 00:43:14 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cTPIy-00079B-PJ for ietf-http-wg-dist@listhub.w3.org; Tue, 17 Jan 2017 08:39:48 +0000
Resent-Date: Tue, 17 Jan 2017 08:39:48 +0000
Resent-Message-Id: <E1cTPIy-00079B-PJ@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <benedikt.wolters@rwth-aachen.de>) id 1cTPIu-00078C-RR for ietf-http-wg@listhub.w3.org; Tue, 17 Jan 2017 08:39:44 +0000
Received: from mx-out-1.rwth-aachen.de ([134.130.5.186]) by mimas.w3.org with esmtps (TLS1.0:DHE_RSA_CAMELLIA_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from <benedikt.wolters@rwth-aachen.de>) id 1cTPIo-0000el-He for ietf-http-wg@w3.org; Tue, 17 Jan 2017 08:39:39 +0000
X-IronPort-AV: E=Sophos;i="5.33,243,1477954800";  d="scan'208";a="569881825"
Received: from rwthex-s1-a.rwth-ad.de ([134.130.26.152]) by mx-1.rz.rwth-aachen.de with ESMTP; 17 Jan 2017 09:39:16 +0100
Received: from mail-qt0-f170.google.com (209.85.216.170) by rwthex-s1-a.rwth-ad.de (2002:8682:1a98::8682:1a98) with Microsoft SMTP Server (TLS) id 15.0.1236.3; Tue, 17 Jan 2017 09:39:15 +0100
Received: by mail-qt0-f170.google.com with SMTP id v23so144402772qtb.0 for <ietf-http-wg@w3.org>; Tue, 17 Jan 2017 00:39:15 -0800 (PST)
X-Gm-Message-State: AIkVDXIuyXXVTKVXLmtatfhTx4GXoa+YdSb9gxooQKI/TH8VkBjDDzrlGQkOgLh10ySsXsGL5xblVqmzQrWTRQ==
X-Received: by 10.55.177.65 with SMTP id a62mr37919437qkf.215.1484642354588; Tue, 17 Jan 2017 00:39:14 -0800 (PST)
MIME-Version: 1.0
Received: by 10.12.182.130 with HTTP; Tue, 17 Jan 2017 00:38:44 -0800 (PST)
In-Reply-To: <CAFn2buAYWHQSWhhoKZ2GKbqXR1A+tScjkAwZmOuQ9gV9jMp2bA@mail.gmail.com>
References: <CAFn2buAYWHQSWhhoKZ2GKbqXR1A+tScjkAwZmOuQ9gV9jMp2bA@mail.gmail.com>
From: Benedikt Christoph Wolters <benedikt.wolters@rwth-aachen.de>
Date: Tue, 17 Jan 2017 09:38:44 +0100
X-Gmail-Original-Message-ID: <CAGZNdJWe0Y=M_SWmgYabKbWZwPEuJdw67Km8+UtR4oUtZuXA5A@mail.gmail.com>
Message-ID: <CAGZNdJWe0Y=M_SWmgYabKbWZwPEuJdw67Km8+UtR4oUtZuXA5A@mail.gmail.com>
To: Scott Mitchell <scott.k.mitch1@gmail.com>
CC: HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: text/plain; charset="UTF-8"
X-Originating-IP: [209.85.216.170]
X-ClientProxiedBy: rwthex-s1-a.rwth-ad.de (2002:8682:1a98::8682:1a98) To rwthex-s1-a.rwth-ad.de (2002:8682:1a98::8682:1a98)
Received-SPF: none client-ip=134.130.5.186; envelope-from=benedikt.wolters@rwth-aachen.de; helo=mx-out-1.rwth-aachen.de
X-W3C-Hub-Spam-Status: No, score=-8.9
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cTPIo-0000el-He 663d1eb3c10d2ee044a4de0c565bf8c9
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Stream State and PRIORITY Frames
Archived-At: <http://www.w3.org/mid/CAGZNdJWe0Y=M_SWmgYabKbWZwPEuJdw67Km8+UtR4oUtZuXA5A@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33302
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>

This question reminds me of a similiar issue we had a while ago at
mitmproxy: https://github.com/mitmproxy/mitmproxy/issues/1498

As far as I understand this, sending PRIORITY does not initiate a
stream or change the stream state.
HEADERS and PUSH_PROMISE initiate a stream. PRIORITY can be sent and
received in any stream state.

2017-01-17 7:32 GMT+01:00 Scott Mitchell <scott.k.mitch1@gmail.com>:
> (originally posted here: https://github.com/http2/http2-spec/issues/759)
>
> What is the expected result in terms of stream state and any potential
> errors that should be generated from the following scenario:
>
> ```
> 1. Client [PRIORITY, id: 5] -> Server
> 2. Client [HEADERS, id: 3] -> Server
> ```
>
> ## Option 1
> The server accepts both frames. Stream `3` is OPEN and stream `5` remains in
> IDLE.
>
> This behavior is verified in the h2spec verification tool via
> https://github.com/summerwind/h2spec/pull/67. Also see additional discussion
> there.
>
> ## Option 2
> Should the use of stream ID `5` cause stream ID `3` (and all lower stream
> IDs) to be implicitly closed according to the section-5.1.1 (see [1])? This
> would mean after the server receives the frame from step (1) it thinks that
> stream ID `3` has been closed, and when the server receives the frame from
> step (2) it will respond with a connection error of type PROTOCOL_ERROR (see
> [2])?
>
> [1] https://tools.ietf.org/html/rfc7540#section-5.1.1
>> The first use of a new stream identifier implicitly closes all
>    streams in the "idle" state that might have been initiated by that
>    peer with a lower-valued stream identifier.
>
> [2] https://tools.ietf.org/html/rfc7540#section-5.1.1
>> An endpoint that
>    receives an unexpected stream identifier MUST respond with a
>    connection error (Section 5.4.1) of type PROTOCOL_ERROR.
>


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Tue Jan 17 04:41:44 2017
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 8AABD12943F for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 17 Jan 2017 04:41:44 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.719
X-Spam-Level:
X-Spam-Status: No, score=-9.719 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, 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 Xkl6L8SDyZ3j for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 17 Jan 2017 04:41:42 -0800 (PST)
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 BA7E31270B4 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 17 Jan 2017 04:41:42 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cTT25-0002KQ-RW for ietf-http-wg-dist@listhub.w3.org; Tue, 17 Jan 2017 12:38:37 +0000
Resent-Date: Tue, 17 Jan 2017 12:38:37 +0000
Resent-Message-Id: <E1cTT25-0002KQ-RW@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <tatsuhiro.t@gmail.com>) id 1cTT21-0002BK-35 for ietf-http-wg@listhub.w3.org; Tue, 17 Jan 2017 12:38:33 +0000
Received: from mail-qt0-f181.google.com ([209.85.216.181]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <tatsuhiro.t@gmail.com>) id 1cTT1u-0004Eq-OT for ietf-http-wg@w3.org; Tue, 17 Jan 2017 12:38:27 +0000
Received: by mail-qt0-f181.google.com with SMTP id l7so154863594qtd.1 for <ietf-http-wg@w3.org>; Tue, 17 Jan 2017 04:38:05 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=xUQ8BVC+hGNFZmjgkXXaiBpa05L8a3tdLHoSti+4dFY=; b=f7o1tYfkMfnNeeuwUhj4cDOtpSN4kFGsSqulsDRdbJMzbHyaHdYa1cspHf0YoMcnbw WbX7By0Mr96GOaXsju3Q5eHK+89o0oAX4cnQzWe6bk1GTw0uH0iPR3621sv2wJhBCA2I y2cZa0jRuSE6LLQAqJA57uzBUlEyO7gMlOa9Rz+k2cyYjrct5EWLMuOVvuwEC+G5xjPj LVW088Ns75fT+qXTkaJQhf+WRauRK0qpudqHkorx4mfS7vGXj48NkTP/RNE0+k0bcmNT g4A7zfrbfFHB7MXI/aqv+pansO4i+HgT1yWDFHSWQmZRlYfcsIhaPvkoZAgPfemVT0GZ SJWA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=xUQ8BVC+hGNFZmjgkXXaiBpa05L8a3tdLHoSti+4dFY=; b=LG1JMnCtIdMEmvspHMMMt9gBxdJossCnHK6O+9lJYUCm/uYJB4XKdnRJni7JUzGrDH 1k0HhkP7gep1TiKZ2BZMqAGd0wvRB09L3fEKZKWal9L/AgahmlZxlCnRRGpyDBoZMMxN vRQnVLCwHrLmMikt0rV/dbo4n+OBFLmDwesBhK3Q5SmMxkgE9/ss8dB1rDEai2MD99aB GNIfFHqEH27R3gATFBjUzlwXv1nnPir9kUAdRuC3l63zCYnVhMZ6Yo9unn20ogc30AG/ zLkpzLCX4BiGdIrjnAVF1Txh3W6RBl5u7QpYjN++fT698cYbd52dixtUB4cSHG77fZjK NTLQ==
X-Gm-Message-State: AIkVDXJR9YQinNPkFbZIM2wA381wwlONI9GXVbp5uRbYwwMiLFIYqKvoKBwmjCEoasqxK529BxRZ5RViqam2oQ==
X-Received: by 10.200.42.200 with SMTP id c8mr12421976qta.156.1484656680563; Tue, 17 Jan 2017 04:38:00 -0800 (PST)
MIME-Version: 1.0
Received: by 10.12.138.186 with HTTP; Tue, 17 Jan 2017 04:37:40 -0800 (PST)
In-Reply-To: <CAFn2buAYWHQSWhhoKZ2GKbqXR1A+tScjkAwZmOuQ9gV9jMp2bA@mail.gmail.com>
References: <CAFn2buAYWHQSWhhoKZ2GKbqXR1A+tScjkAwZmOuQ9gV9jMp2bA@mail.gmail.com>
From: Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>
Date: Tue, 17 Jan 2017 21:37:40 +0900
Message-ID: <CAPyZ6=Kh3n+RJi=RqgFBojgRDpfJ=nbr0i4kvO20ET0Kt7UA8Q@mail.gmail.com>
To: Scott Mitchell <scott.k.mitch1@gmail.com>
Cc: HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary=001a1140058e0f2dcf0546499297
Received-SPF: pass client-ip=209.85.216.181; envelope-from=tatsuhiro.t@gmail.com; helo=mail-qt0-f181.google.com
X-W3C-Hub-Spam-Status: No, score=-5.2
X-W3C-Hub-Spam-Report: AWL=-1.015, 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, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cTT1u-0004Eq-OT 9385ed409ebd194b69b26f16f8d6d8ee
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Stream State and PRIORITY Frames
Archived-At: <http://www.w3.org/mid/CAPyZ6=Kh3n+RJi=RqgFBojgRDpfJ=nbr0i4kvO20ET0Kt7UA8Q@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33303
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>

--001a1140058e0f2dcf0546499297
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Hi,

On Tue, Jan 17, 2017 at 3:32 PM, Scott Mitchell <scott.k.mitch1@gmail.com>
wrote:

> (originally posted here: https://github.com/http2/http2-spec/issues/759)
>
> What is the expected result in terms of stream state and any potential
> errors that should be generated from the following scenario:
>
> ```
> 1. Client [PRIORITY, id: 5] -> Server
> 2. Client [HEADERS, id: 3] -> Server
> ```
>
> ## Option 1
> The server accepts both frames. Stream `3` is OPEN and stream `5` remains
> in IDLE.
>
> This behavior is verified in the h2spec verification tool via
> https://github.com/summerwind/h2spec/pull/67. Also see additional
> discussion there.
>
> ## Option 2
> Should the use of stream ID `5` cause stream ID `3` (and all lower stream
> IDs) to be implicitly closed according to the section-5.1.1 (see [1])? Th=
is
> would mean after the server receives the frame from step (1) it thinks th=
at
> stream ID `3` has been closed, and when the server receives the frame fro=
m
> step (2) it will respond with a connection error of type PROTOCOL_ERROR
> (see [2])?
>
>
=E2=80=8B
=E2=80=8BI think Option 1 is the expected result.


> [1] https://tools.ietf.org/html/rfc7540#section-5.1.1
> > The first use of a new stream identifier implicitly closes all
>    streams in the "idle" state that might have been initiated by that
>    peer with a lower-valued stream identifier.
>
>
=E2=80=8BIf my understanding is correct, this only refers to the new stream=
 ID used
by HEADERS, and PUSH_PROMISE frames which open or reserve streams.  The
example text following that statement uses HEADERS which opens new stream.
PRIORITY frame does not change stream state, and there is no reason to
close all unused streams lower than bearing stream ID.  That said, I agree
that this is not crystal clear in the document.  In practice, this is
probably rather rare case.

Best regards,
Tatsuhiro Tsujikawa



> [2] https://tools.ietf.org/html/rfc7540#section-5.1.1
> > An endpoint that
>    receives an unexpected stream identifier MUST respond with a
>    connection error (Section 5.4.1) of type PROTOCOL_ERROR.
>
>

--001a1140058e0f2dcf0546499297
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-family:arial,he=
lvetica,sans-serif;font-size:small">Hi,<br></div><div class=3D"gmail_extra"=
><br><div class=3D"gmail_quote">On Tue, Jan 17, 2017 at 3:32 PM, Scott Mitc=
hell <span dir=3D"ltr">&lt;<a href=3D"mailto:scott.k.mitch1@gmail.com" targ=
et=3D"_blank">scott.k.mitch1@gmail.com</a>&gt;</span> wrote:<br><blockquote=
 class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px so=
lid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr">(originally posted =
here: <a href=3D"https://github.com/http2/http2-spec/issues/759" target=3D"=
_blank">https://github.com/http2/<wbr>http2-spec/issues/759</a>)<div><br></=
div><div><div>What is the expected result in terms of stream state and any =
potential errors that should be generated from the following scenario:</div=
><div><br></div><div>```</div><div>1. Client [PRIORITY, id: 5] -&gt; Server=
</div><div>2. Client [HEADERS, id: 3] -&gt; Server</div><div>```</div><div>=
<br></div><div>## Option 1</div><div>The server accepts both frames. Stream=
 `3` is OPEN and stream `5` remains in IDLE.</div><div><br></div><div>This =
behavior is verified in the h2spec verification tool via <a href=3D"https:/=
/github.com/summerwind/h2spec/pull/67" target=3D"_blank">https://github.com=
/summerwind/<wbr>h2spec/pull/67</a>. Also see additional discussion there.<=
/div><div><br></div><div>## Option 2</div><div>Should the use of stream ID =
`5` cause stream ID `3` (and all lower stream IDs) to be implicitly closed =
according to the section-5.1.1 (see [1])? This would mean after the server =
receives the frame from step (1) it thinks that stream ID `3` has been clos=
ed, and when the server receives the frame from step (2) it will respond wi=
th a connection error of type PROTOCOL_ERROR (see [2])?</div><div><br></div=
></div></div></blockquote><div><br><div style=3D"font-family:arial,helvetic=
a,sans-serif;font-size:small" class=3D"gmail_default">=E2=80=8B<div style=
=3D"font-family:arial,helvetica,sans-serif;font-size:small" class=3D"gmail_=
default">=E2=80=8BI think Option 1 is the expected result.<br></div></div>=
=C2=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0=
.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"l=
tr"><div><div></div><div>[1] <a href=3D"https://tools.ietf.org/html/rfc7540=
#section-5.1.1" target=3D"_blank">https://tools.ietf.org/html/<wbr>rfc7540#=
section-5.1.1</a></div><div>&gt; The first use of a new stream identifier i=
mplicitly closes all</div><div>=C2=A0 =C2=A0streams in the &quot;idle&quot;=
 state that might have been initiated by that</div><div>=C2=A0 =C2=A0peer w=
ith a lower-valued stream identifier.</div><div><br></div></div></div></blo=
ckquote><div><br><div style=3D"font-family:arial,helvetica,sans-serif;font-=
size:small" class=3D"gmail_default">=E2=80=8BIf my understanding is correct=
, this only refers to the new stream ID used by HEADERS, and PUSH_PROMISE f=
rames which open or reserve streams.=C2=A0 The example text following that =
statement uses HEADERS which opens new stream.=C2=A0 PRIORITY frame does no=
t change stream state, and there is no reason to close all unused streams l=
ower than bearing stream ID.=C2=A0 That said, I agree that this is not crys=
tal clear in the document.=C2=A0 In practice, this is probably rather rare =
case.<br></div><div style=3D"font-family:arial,helvetica,sans-serif;font-si=
ze:small" class=3D"gmail_default"><br></div><div style=3D"font-family:arial=
,helvetica,sans-serif;font-size:small" class=3D"gmail_default">Best regards=
,<br></div><div style=3D"font-family:arial,helvetica,sans-serif;font-size:s=
mall" class=3D"gmail_default">Tatsuhiro Tsujikawa<br></div><div style=3D"fo=
nt-family:arial,helvetica,sans-serif;font-size:small" class=3D"gmail_defaul=
t">=C2=A0<br></div>=C2=A0</div><blockquote class=3D"gmail_quote" style=3D"m=
argin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left=
:1ex"><div dir=3D"ltr"><div><div></div><div>[2] <a href=3D"https://tools.ie=
tf.org/html/rfc7540#section-5.1.1" target=3D"_blank">https://tools.ietf.org=
/html/<wbr>rfc7540#section-5.1.1</a></div><div>&gt; An endpoint that</div><=
div>=C2=A0 =C2=A0receives an unexpected stream identifier MUST respond with=
 a</div><div>=C2=A0 =C2=A0connection error (Section 5.4.1) of type PROTOCOL=
_ERROR.</div><div><br></div></div></div></blockquote><div><br>=C2=A0</div><=
/div><br></div></div>

--001a1140058e0f2dcf0546499297--


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Tue Jan 17 04:46:02 2017
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 0B1001270B4 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 17 Jan 2017 04:46:02 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.619
X-Spam-Level:
X-Spam-Status: No, score=-9.619 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, 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=lukasa-co-uk.20150623.gappssmtp.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 s9HydfDaQLsv for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 17 Jan 2017 04:45:59 -0800 (PST)
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 34BBE129AA1 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 17 Jan 2017 04:45:59 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cTT6w-0004xX-Ux for ietf-http-wg-dist@listhub.w3.org; Tue, 17 Jan 2017 12:43:38 +0000
Resent-Date: Tue, 17 Jan 2017 12:43:38 +0000
Resent-Message-Id: <E1cTT6w-0004xX-Ux@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <cory@lukasa.co.uk>) id 1cTT6t-0004wU-PE for ietf-http-wg@listhub.w3.org; Tue, 17 Jan 2017 12:43:35 +0000
Received: from mail-wm0-f45.google.com ([74.125.82.45]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <cory@lukasa.co.uk>) id 1cTT6n-0004aR-4l for ietf-http-wg@w3.org; Tue, 17 Jan 2017 12:43:30 +0000
Received: by mail-wm0-f45.google.com with SMTP id c85so198318684wmi.1 for <ietf-http-wg@w3.org>; Tue, 17 Jan 2017 04:43:08 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lukasa-co-uk.20150623.gappssmtp.com; s=20150623; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=Kz7dHvZUCLmsLQrRLkGmjSvA0u/2WxN7j7o/OC8j0Gg=; b=hT/Kq5seEtAmdN1ps1Q26sFeHqXN7DAnvJhTxZzQ4r9V+xJapu14Av85xnlrmXddCq M6IIRW42jhk4z5emO8b9bCj3H/NsMHvKA1+7ix12zO9k2WdiC3IB4tiHVXXjdz6km37k H3EqhBM6PWB2913M168SpnOUfkGqGgsHqkRpxdJGYfoohEBKyxnYfgS2NsfwsVcEsDxy BB24PtuwCRfLWkZ6KylRTOIl1IJwcBXdSJt+teAkRFgJrgKPnRseemY9qnh6FfQAI5dK cviBdACKY6vGE7+TVzQ0gZoH5W5ozgzFLJDqdh+nG1r6rEqGZ32X9FlB4ZTLwwHLmUfA eCFQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=Kz7dHvZUCLmsLQrRLkGmjSvA0u/2WxN7j7o/OC8j0Gg=; b=csblznh1kp2NKX7qoIMc9oFm9UeLc4JGs4UQChhL0QnyvIsaRywR0/SIHlXwl0IwIP 2t3g7cRZsBKiIc2l8jnqkbR8VX1g6OlIhagICiRIVa8aE+a5HhzMx5acc+gZJeL0pJsB Bu2xOyhskCS3wxmZeOPV4da+T/CzR7257ZhvbYo39ZSxO/G9I6HptcfDH5yTNU3JxfFd hl/IXuwsSZsFDSqwA1mv9HKuRKBaDtWrd1kJ5v9miS79ncAWd02zDaV0GUYk62227nwx D2Tz3Ary9Da3u2SHrVhrSxZiE08U6bRAPTq/nQPpJU/Qj9OAe1ocByx9VWFh/Yi/mloB Xnjg==
X-Gm-Message-State: AIkVDXKEvZUXkgr9K/Peb2ZW5/4qKynu+HL/divL4G8Jmk+XQYe08ABAKg0QptwhML4AOw==
X-Received: by 10.223.133.4 with SMTP id 4mr19115033wrh.176.1484656982043; Tue, 17 Jan 2017 04:43:02 -0800 (PST)
Received: from [192.168.1.5] (178.64.6.51.dyn.plus.net. [51.6.64.178]) by smtp.gmail.com with ESMTPSA id r6sm36678521wmd.4.2017.01.17.04.42.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Jan 2017 04:43:00 -0800 (PST)
From: Cory Benfield <cory@lukasa.co.uk>
Message-Id: <2BC01E49-91A1-43A7-AFD0-5A34F2689428@lukasa.co.uk>
Content-Type: multipart/alternative; boundary="Apple-Mail=_73B57978-A80C-4AB0-9CB9-EC830D81AF17"
Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\))
Date: Tue, 17 Jan 2017 12:42:58 +0000
In-Reply-To: <CAGZNdJWe0Y=M_SWmgYabKbWZwPEuJdw67Km8+UtR4oUtZuXA5A@mail.gmail.com>
Cc: Scott Mitchell <scott.k.mitch1@gmail.com>, HTTP Working Group <ietf-http-wg@w3.org>
To: Benedikt Christoph Wolters <benedikt.wolters@rwth-aachen.de>
References: <CAFn2buAYWHQSWhhoKZ2GKbqXR1A+tScjkAwZmOuQ9gV9jMp2bA@mail.gmail.com> <CAGZNdJWe0Y=M_SWmgYabKbWZwPEuJdw67Km8+UtR4oUtZuXA5A@mail.gmail.com>
X-Mailer: Apple Mail (2.3259)
Received-SPF: pass client-ip=74.125.82.45; envelope-from=cory@lukasa.co.uk; helo=mail-wm0-f45.google.com
X-W3C-Hub-Spam-Status: No, score=-4.8
X-W3C-Hub-Spam-Report: AWL=-1.408, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cTT6n-0004aR-4l 0dabdae9b6217d875ceb712ea941dbd6
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Stream State and PRIORITY Frames
Archived-At: <http://www.w3.org/mid/2BC01E49-91A1-43A7-AFD0-5A34F2689428@lukasa.co.uk>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33304
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>

--Apple-Mail=_73B57978-A80C-4AB0-9CB9-EC830D81AF17
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8


> On 17 Jan 2017, at 08:38, Benedikt Christoph Wolters =
<benedikt.wolters@rwth-aachen.de> wrote:
>=20
> This question reminds me of a similiar issue we had a while ago at
> mitmproxy: https://github.com/mitmproxy/mitmproxy/issues/1498
>=20
> As far as I understand this, sending PRIORITY does not initiate a
> stream or change the stream state.
> HEADERS and PUSH_PROMISE initiate a stream. PRIORITY can be sent and
> received in any stream state.

In fact, I think it=E2=80=99s the same issue. Scott linked to =
https://github.com/summerwind/h2spec/pull/67 =
<https://github.com/summerwind/h2spec/pull/67>, which is referenced from =
and opened by the same person who opened =
https://github.com/h2o/h2o/pull/1136 =
<https://github.com/h2o/h2o/pull/1136>, which links to =
https://github.com/mitmproxy/mitmproxy/issues/1824 =
<https://github.com/mitmproxy/mitmproxy/issues/1824>, which is related =
to https://github.com/mitmproxy/mitmproxy/issues/1498 =
<https://github.com/mitmproxy/mitmproxy/issues/1498> because both cases =
were sites deployed behind Fastly.

For those who want background and don=E2=80=99t want to follow all those =
links, mitmproxy bumped into problems with sites deployed behind Fastly. =
mitmproxy encountered these because it was forwarding on traffic from =
Firefox, which would on connection-setup send a whole bunch of PRIORITY =
frames. hyper-h2 (which powers mitmproxy=E2=80=99s HTTP/2 support) would =
allow this. h2o would not.

The crux of the discussion boils down to a few apparently contradictory =
sections in the specification. Scott linked to the first two:

Section 5.1.1:

- The first use of a new stream identifier implicitly closes all streams =
in the =E2=80=9Cidle=E2=80=9D state that may have been initiated by that =
peer with a lower-valued stream identifier.
- An endpoint that receives an unexpected stream identifier must respond =
with a connection error of type PROTOCOL_ERROR.

*However*, there are a few other notes. The first thing to note is that =
the PRIORITY frame does not transition a stream out of the idle state. A =
stream that has only had PRIORITY frames sent on it is still in the IDLE =
state. That means that the Firefox-style priority setup (sending =
priority for stream IDs 1, 3, 5, and 7 immediate after the preamble) =
would have the effect of immediately closing streams 1, 3, and 5, if =
section 5.1.1 applied. This is not what most people expect.

More importantly, though, section 5.1.1 says this:

- The identifier of a newly established stream MUST be numerically =
greater than all streams that the initiating endpoint has opened or =
reserved. This governs streams that are opened using a HEADERS frame and =
streams that are reserved using PUSH_PROMISE.

This is not absolutely clear, but it seems to suggest that =
implementations may establish a stream with an ID lower than streams =
that have had PRIORITY frames sent on them. Put another way, it seems to =
suggest that only HEADERS and PUSH_PROMISE frames affect the =
lowest-acceptable stream ID. That seems to me to suggest that PRIORITY =
frames are not expected to force-close all streams with lower IDs that =
are in the idle state.

As an implementers note, I have found it much more helpful to think of =
PRIORITY frames not as frames that are sent on a stream, but as frames =
that are implicitly sent on stream zero and are just tagged with a =
stream ID. PRIORITY frames ignore basically all restrictions on stream =
behaviour: they can be sent on idle streams, on closed streams. In =
practice, they can basically be sent whenever, and except for the case =
where they establish a loop in the priority tree must basically always =
be accepted.

Cory=

--Apple-Mail=_73B57978-A80C-4AB0-9CB9-EC830D81AF17
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D""><br class=3D""><div><blockquote type=3D"cite" class=3D""><div =
class=3D"">On 17 Jan 2017, at 08:38, Benedikt Christoph Wolters &lt;<a =
href=3D"mailto:benedikt.wolters@rwth-aachen.de" =
class=3D"">benedikt.wolters@rwth-aachen.de</a>&gt; wrote:</div><br =
class=3D"Apple-interchange-newline"><div class=3D""><div class=3D"">This =
question reminds me of a similiar issue we had a while ago at<br =
class=3D"">mitmproxy: <a =
href=3D"https://github.com/mitmproxy/mitmproxy/issues/1498" =
class=3D"">https://github.com/mitmproxy/mitmproxy/issues/1498</a><br =
class=3D""><br class=3D"">As far as I understand this, sending PRIORITY =
does not initiate a<br class=3D"">stream or change the stream state.<br =
class=3D"">HEADERS and PUSH_PROMISE initiate a stream. PRIORITY can be =
sent and<br class=3D"">received in any stream state.<br =
class=3D""></div></div></blockquote><br class=3D""></div><div>In fact, I =
think it=E2=80=99s the same issue. Scott linked to&nbsp;<a =
href=3D"https://github.com/summerwind/h2spec/pull/67" =
class=3D"">https://github.com/summerwind/h2spec/pull/67</a>, which is =
referenced from and opened by the same person who opened&nbsp;<a =
href=3D"https://github.com/h2o/h2o/pull/1136" =
class=3D"">https://github.com/h2o/h2o/pull/1136</a>, which links =
to&nbsp;<a href=3D"https://github.com/mitmproxy/mitmproxy/issues/1824" =
class=3D"">https://github.com/mitmproxy/mitmproxy/issues/1824</a>, which =
is related to <a =
href=3D"https://github.com/mitmproxy/mitmproxy/issues/1498" =
class=3D"">https://github.com/mitmproxy/mitmproxy/issues/1498</a>&nbsp;bec=
ause both cases were sites deployed behind Fastly.</div><div><br =
class=3D""></div><div>For those who want background and don=E2=80=99t =
want to follow all those links, mitmproxy bumped into problems with =
sites deployed behind Fastly. mitmproxy encountered these because it was =
forwarding on traffic from Firefox, which would on connection-setup send =
a whole bunch of PRIORITY frames. hyper-h2 (which powers mitmproxy=E2=80=99=
s HTTP/2 support) would allow this. h2o would not.</div><div><br =
class=3D""></div><div>The crux of the discussion boils down to a few =
apparently contradictory sections in the specification. Scott linked to =
the first two:</div><div><br class=3D""></div><div>Section =
5.1.1:</div><div><br class=3D""></div><div>- The first use of a new =
stream identifier implicitly closes all streams in the =E2=80=9Cidle=E2=80=
=9D state that may have been initiated by that peer with a lower-valued =
stream identifier.</div><div>- An endpoint that receives an unexpected =
stream identifier must respond with a connection error of type =
PROTOCOL_ERROR.</div><div><br class=3D""></div><div>*However*, there are =
a few other notes. The first thing to note is that the PRIORITY frame =
does not transition a stream out of the idle state. A stream that has =
only had PRIORITY frames sent on it is still in the IDLE state. That =
means that the Firefox-style priority setup (sending priority for stream =
IDs 1, 3, 5, and 7 immediate after the preamble) would have the effect =
of immediately closing streams 1, 3, and 5, if section 5.1.1 applied. =
This is not what most people expect.</div><div><br =
class=3D""></div><div>More importantly, though, section 5.1.1 says =
this:</div><div><br class=3D""></div><div>- The identifier of a newly =
established stream MUST be numerically greater than all streams that the =
initiating endpoint has opened or reserved. This&nbsp;governs streams =
that are opened using a&nbsp;HEADERS&nbsp;frame and streams that are =
reserved using&nbsp;PUSH_PROMISE.</div><div><br class=3D""></div><div>This=
 is not absolutely clear, but it seems to suggest that implementations =
may establish a stream with an ID lower than streams that have had =
PRIORITY frames sent on them. Put another way, it seems to suggest that =
only HEADERS and PUSH_PROMISE frames affect the lowest-acceptable stream =
ID. That seems to me to suggest that PRIORITY frames are not expected to =
force-close all streams with lower IDs that are in the idle =
state.</div><div><br class=3D""></div><div>As an implementers note, I =
have found it much more helpful to think of PRIORITY frames not as =
frames that are sent on a stream, but as frames that are implicitly sent =
on stream zero and are just tagged with a stream ID. PRIORITY frames =
ignore basically all restrictions on stream behaviour: they can be sent =
on idle streams, on closed streams. In practice, they can basically be =
sent whenever, and except for the case where they establish a loop in =
the priority tree must basically always be accepted.</div><div><br =
class=3D""></div><div>Cory</div></body></html>=

--Apple-Mail=_73B57978-A80C-4AB0-9CB9-EC830D81AF17--


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Tue Jan 17 10:20:00 2017
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 CC32C129424 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 17 Jan 2017 10:20:00 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.219
X-Spam-Level:
X-Spam-Status: No, score=-10.219 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-3.199, 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 WpBe9tAn81k8 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 17 Jan 2017 10:19:58 -0800 (PST)
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 5AC371293D8 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 17 Jan 2017 10:19:57 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cTYJY-0001bQ-48 for ietf-http-wg-dist@listhub.w3.org; Tue, 17 Jan 2017 18:17:00 +0000
Resent-Date: Tue, 17 Jan 2017 18:17:00 +0000
Resent-Message-Id: <E1cTYJY-0001bQ-48@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <scott.k.mitch1@gmail.com>) id 1cTYJP-0001aa-0K for ietf-http-wg@listhub.w3.org; Tue, 17 Jan 2017 18:16:51 +0000
Received: from mail-lf0-f46.google.com ([209.85.215.46]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <scott.k.mitch1@gmail.com>) id 1cTYJI-0006ZI-31 for ietf-http-wg@w3.org; Tue, 17 Jan 2017 18:16:45 +0000
Received: by mail-lf0-f46.google.com with SMTP id n124so46318631lfd.2 for <ietf-http-wg@w3.org>; Tue, 17 Jan 2017 10:16:23 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=6hICEZkv5zxet4+TD19x/w9mPG1q6RcOgs8wmXO3ICU=; b=vSdfqiA6jxdcvqPsC78/MZCwqPi8+fBLI8QvpFqtRsMrsigHWPImaZZSj3L5ru4PiA cFH2Ah+dDnDexDg37inzS7TiKZRUOvYG08/BPo/czizNJSIKlsEjZQy08E2j6TjmOn/5 cdefulp7WDObw8MTuEXMETNJWBweVjVzOehFq+0IVdf+W3MMJDjnY4C29VCzsc8vvfil i43vO1pumyn+e9PBQPfkbRns2uDlMkpI1XHpMucKVnvHwu+lMG5zOkz645ZmRNGYqnsa xrx3aXeT/VCeLuT+Wzw10BHjOP+JdHV1rHT9Tj9gQ/paQxVlfT1SluxK8fBHHNKZo8Uz gZcw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=6hICEZkv5zxet4+TD19x/w9mPG1q6RcOgs8wmXO3ICU=; b=eR2bwrVs1KjBtvwBGAzL11Y8InuFoPyGM4Pex1JSvol427WqiwpWODycpVYbXLxX42 iFmWENJvtOhG0uwWWLliX28yywZTzv6Hp4XvDpuysVUFDrTFrf3VjmlGacekSTSs9C9O hAjAn8IpbxHCaUIP6Rp+rC91yMEKmTaU0qED9ACo4A3C4IoaBkN4WFnAEVLhssWeMH63 9LfsyPgGdW0zNcb2yrsNBkJJiwifBKN8Acpkdf+IDU/o89FGQMSt6OQnoorv+mrEvBnY bcQgHCpYzIyyPyLYDLr7VB+OBoWGuABp06UAchSAFkqExKGoAnSRvyGOtkzr1K7AsKH1 NMqA==
X-Gm-Message-State: AIkVDXLukKmyRi8QA+BsYzh3F1pJFa5EhK6AguxO42HfoOrCYny2yitROBb5N/RgqNlO6oorPuRdTW5ggVKQZg==
X-Received: by 10.46.76.10 with SMTP id z10mr12275777lja.9.1484676976728; Tue, 17 Jan 2017 10:16:16 -0800 (PST)
MIME-Version: 1.0
Received: by 10.25.18.200 with HTTP; Tue, 17 Jan 2017 10:16:16 -0800 (PST)
In-Reply-To: <2BC01E49-91A1-43A7-AFD0-5A34F2689428@lukasa.co.uk>
References: <CAFn2buAYWHQSWhhoKZ2GKbqXR1A+tScjkAwZmOuQ9gV9jMp2bA@mail.gmail.com> <CAGZNdJWe0Y=M_SWmgYabKbWZwPEuJdw67Km8+UtR4oUtZuXA5A@mail.gmail.com> <2BC01E49-91A1-43A7-AFD0-5A34F2689428@lukasa.co.uk>
From: Scott Mitchell <scott.k.mitch1@gmail.com>
Date: Tue, 17 Jan 2017 10:16:16 -0800
Message-ID: <CAFn2buC7vM1Ff13A305-2bLBLRzLVaURufGCDrpm_rs82jwkwQ@mail.gmail.com>
To: Cory Benfield <cory@lukasa.co.uk>
Cc: Benedikt Christoph Wolters <benedikt.wolters@rwth-aachen.de>,  HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary=f403045ea29ecddf6505464e4b64
Received-SPF: pass client-ip=209.85.215.46; envelope-from=scott.k.mitch1@gmail.com; helo=mail-lf0-f46.google.com
X-W3C-Hub-Spam-Status: No, score=-4.1
X-W3C-Hub-Spam-Report: AWL=0.411, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1cTYJI-0006ZI-31 634bd3f81577f97c7062a6dcc2d4bcf9
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Stream State and PRIORITY Frames
Archived-At: <http://www.w3.org/mid/CAFn2buC7vM1Ff13A305-2bLBLRzLVaURufGCDrpm_rs82jwkwQ@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33305
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>

--f403045ea29ecddf6505464e4b64
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Thanks for responses everyone. There seems to be recognition that the
specification lacks clarity but there also seems to be momentum behind
"Option 1".

This leads to the practical concern of bounding the amount of memory
committed to streams in this state. SETTINGS_MAX_CONCURRENT_STREAMS limits
number of streams in "open" or "half-closed", but the specification doesn't
(to my knowledge) define a way to limit the number of "reserved" streams or
"idle"/"closed" streams which have had only PRIORITY frames exchanged. The
specification allows for implementations to discard PRIORITY more or less
at their discretion [3], but limiting "reserved" streams is another issue. =
"
SETTINGS_ENABLE_PUSH" is limited to 0 or 1 [4] so there is no way for a
client to advertise how many "reserved" streams it is willing to accept.
What are the practical approaches folks have taken to address these issues?

[3] https://tools.ietf.org/html/rfc7540#section-5.3.4
> The retention of priority information for streams that are not counted
toward the limit set by SETTINGS_MAX_CONCURRENT_STREAMS could create a
large state burden for an endpoint. Therefore, the amount of prioritization
state that is retained MAY be limited.
[4] https://tools.ietf.org/html/rfc7540#section-6.5.2

> The initial value is 1, which indicates that server push is permitted.  A=
ny value other than 0 or 1 MUST be treated as a connection error (Section 5=
.4.1 <https://tools.ietf.org/html/rfc7540#section-5.4.1>) of type PROTOCOL_=
ERROR.



On Tue, Jan 17, 2017 at 4:42 AM, Cory Benfield <cory@lukasa.co.uk> wrote:

>
> On 17 Jan 2017, at 08:38, Benedikt Christoph Wolters <
> benedikt.wolters@rwth-aachen.de> wrote:
>
> This question reminds me of a similiar issue we had a while ago at
> mitmproxy: https://github.com/mitmproxy/mitmproxy/issues/1498
>
> As far as I understand this, sending PRIORITY does not initiate a
> stream or change the stream state.
> HEADERS and PUSH_PROMISE initiate a stream. PRIORITY can be sent and
> received in any stream state.
>
>
> In fact, I think it=E2=80=99s the same issue. Scott linked to https://git=
hub.com/
> summerwind/h2spec/pull/67, which is referenced from and opened by the
> same person who opened https://github.com/h2o/h2o/pull/1136, which links
> to https://github.com/mitmproxy/mitmproxy/issues/1824, which is related
> to https://github.com/mitmproxy/mitmproxy/issues/1498 because both cases
> were sites deployed behind Fastly.
>
> For those who want background and don=E2=80=99t want to follow all those =
links,
> mitmproxy bumped into problems with sites deployed behind Fastly. mitmpro=
xy
> encountered these because it was forwarding on traffic from Firefox, whic=
h
> would on connection-setup send a whole bunch of PRIORITY frames. hyper-h2
> (which powers mitmproxy=E2=80=99s HTTP/2 support) would allow this. h2o w=
ould not.
>
> The crux of the discussion boils down to a few apparently contradictory
> sections in the specification. Scott linked to the first two:
>
> Section 5.1.1:
>
> - The first use of a new stream identifier implicitly closes all streams
> in the =E2=80=9Cidle=E2=80=9D state that may have been initiated by that =
peer with a
> lower-valued stream identifier.
> - An endpoint that receives an unexpected stream identifier must respond
> with a connection error of type PROTOCOL_ERROR.
>
> *However*, there are a few other notes. The first thing to note is that
> the PRIORITY frame does not transition a stream out of the idle state. A
> stream that has only had PRIORITY frames sent on it is still in the IDLE
> state. That means that the Firefox-style priority setup (sending priority
> for stream IDs 1, 3, 5, and 7 immediate after the preamble) would have th=
e
> effect of immediately closing streams 1, 3, and 5, if section 5.1.1
> applied. This is not what most people expect.
>
> More importantly, though, section 5.1.1 says this:
>
> - The identifier of a newly established stream MUST be numerically greate=
r
> than all streams that the initiating endpoint has opened or reserved.
> This governs streams that are opened using a HEADERS frame and streams th=
at
> are reserved using PUSH_PROMISE.
>
> This is not absolutely clear, but it seems to suggest that implementation=
s
> may establish a stream with an ID lower than streams that have had PRIORI=
TY
> frames sent on them. Put another way, it seems to suggest that only HEADE=
RS
> and PUSH_PROMISE frames affect the lowest-acceptable stream ID. That seem=
s
> to me to suggest that PRIORITY frames are not expected to force-close all
> streams with lower IDs that are in the idle state.
>
> As an implementers note, I have found it much more helpful to think of
> PRIORITY frames not as frames that are sent on a stream, but as frames th=
at
> are implicitly sent on stream zero and are just tagged with a stream ID.
> PRIORITY frames ignore basically all restrictions on stream behaviour: th=
ey
> can be sent on idle streams, on closed streams. In practice, they can
> basically be sent whenever, and except for the case where they establish =
a
> loop in the priority tree must basically always be accepted.
>
> Cory
>

--f403045ea29ecddf6505464e4b64
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Thanks for responses everyone. There seems to be recogniti=
on that the specification lacks clarity but there also seems to be momentum=
 behind &quot;Option 1&quot;.<div><br></div><div>This leads to the practica=
l concern of bounding the amount of memory committed to streams in this sta=
te.=C2=A0<span style=3D"color:rgb(0,0,0);font-size:13.333333015441895px">SE=
TTINGS_MAX_CONCURRENT_STREAMS</span>=C2=A0limits number of streams in &quot=
;open&quot; or &quot;half-closed&quot;, but the specification doesn&#39;t (=
to my knowledge) define a way to limit the number of &quot;reserved&quot; s=
treams or &quot;idle&quot;/&quot;closed&quot; streams which have had only P=
RIORITY frames exchanged. The specification allows for implementations to d=
iscard PRIORITY more or less at their discretion [3], but limiting &quot;re=
served&quot; streams is another issue. &quot;<span style=3D"color:rgb(0,0,0=
);font-size:13.333333015441895px">SETTINGS_ENABLE_PUSH</span>&quot; is limi=
ted to 0 or 1 [4] so there is no way for a client to advertise how many &qu=
ot;reserved&quot; streams it is willing to accept. What are the practical a=
pproaches folks have taken to address these issues?</div><div><br></div><di=
v>[3]=C2=A0<a href=3D"https://tools.ietf.org/html/rfc7540#section-5.3.4">ht=
tps://tools.ietf.org/html/rfc7540#section-5.3.4</a></div><div>&gt;=C2=A0<sp=
an style=3D"color:rgb(0,0,0);font-size:13.333333015441895px">The retention =
of priority information for streams that are not=C2=A0</span><span style=3D=
"color:rgb(0,0,0);font-size:13.333333015441895px">counted toward the limit =
set by SETTINGS_MAX_CONCURRENT_STREAMS could=C2=A0</span><span style=3D"col=
or:rgb(0,0,0);font-size:13.333333015441895px">create a large state burden f=
or an endpoint.  Therefore, the amount=C2=A0</span><span style=3D"color:rgb=
(0,0,0);font-size:13.333333015441895px">of prioritization state that is ret=
ained MAY be limited.</span></div><div><span style=3D"color:rgb(0,0,0);font=
-size:13.333333015441895px">[4] <a href=3D"https://tools.ietf.org/html/rfc7=
540#section-6.5.2">https://tools.ietf.org/html/rfc7540#section-6.5.2</a></s=
pan></div><pre class=3D"gmail-newpage" style=3D"font-size:13.33333301544189=
5px;margin-top:0px;margin-bottom:0px;page-break-before:always;color:rgb(0,0=
,0)"><span style=3D"font-family:arial,sans-serif">&gt; The initial value is=
 1, which indicates that server push is </span><span style=3D"font-family:a=
rial,sans-serif">permitted.  Any value other than 0 or 1 MUST be treated as=
 a </span><span style=3D"font-family:arial,sans-serif">connection error (</=
span><a href=3D"https://tools.ietf.org/html/rfc7540#section-5.4.1" style=3D=
"font-family:arial,sans-serif">Section 5.4.1</a><span style=3D"font-family:=
arial,sans-serif">) of type PROTOCOL_ERROR.</span></pre><div><br></div></di=
v><div class=3D"gmail_extra"><br><div class=3D"gmail_quote">On Tue, Jan 17,=
 2017 at 4:42 AM, Cory Benfield <span dir=3D"ltr">&lt;<a href=3D"mailto:cor=
y@lukasa.co.uk" target=3D"_blank">cory@lukasa.co.uk</a>&gt;</span> wrote:<b=
r><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:=
1px #ccc solid;padding-left:1ex"><div style=3D"word-wrap:break-word"><span =
class=3D""><br><div><blockquote type=3D"cite"><div>On 17 Jan 2017, at 08:38=
, Benedikt Christoph Wolters &lt;<a href=3D"mailto:benedikt.wolters@rwth-aa=
chen.de" target=3D"_blank">benedikt.wolters@rwth-aachen.<wbr>de</a>&gt; wro=
te:</div><br class=3D"m_-5762981901538786354Apple-interchange-newline"><div=
><div>This question reminds me of a similiar issue we had a while ago at<br=
>mitmproxy: <a href=3D"https://github.com/mitmproxy/mitmproxy/issues/1498" =
target=3D"_blank">https://github.com/mitmproxy/<wbr>mitmproxy/issues/1498</=
a><br><br>As far as I understand this, sending PRIORITY does not initiate a=
<br>stream or change the stream state.<br>HEADERS and PUSH_PROMISE initiate=
 a stream. PRIORITY can be sent and<br>received in any stream state.<br></d=
iv></div></blockquote><br></div></span><div>In fact, I think it=E2=80=99s t=
he same issue. Scott linked to=C2=A0<a href=3D"https://github.com/summerwin=
d/h2spec/pull/67" target=3D"_blank">https://github.com/<wbr>summerwind/h2sp=
ec/pull/67</a>, which is referenced from and opened by the same person who =
opened=C2=A0<a href=3D"https://github.com/h2o/h2o/pull/1136" target=3D"_bla=
nk">https://github.com/h2o/<wbr>h2o/pull/1136</a>, which links to=C2=A0<a h=
ref=3D"https://github.com/mitmproxy/mitmproxy/issues/1824" target=3D"_blank=
">https://github.com/<wbr>mitmproxy/mitmproxy/issues/<wbr>1824</a>, which i=
s related to <a href=3D"https://github.com/mitmproxy/mitmproxy/issues/1498"=
 target=3D"_blank">https://github.com/mitmproxy/<wbr>mitmproxy/issues/1498<=
/a>=C2=A0because both cases were sites deployed behind Fastly.</div><div><b=
r></div><div>For those who want background and don=E2=80=99t want to follow=
 all those links, mitmproxy bumped into problems with sites deployed behind=
 Fastly. mitmproxy encountered these because it was forwarding on traffic f=
rom Firefox, which would on connection-setup send a whole bunch of PRIORITY=
 frames. hyper-h2 (which powers mitmproxy=E2=80=99s HTTP/2 support) would a=
llow this. h2o would not.</div><div><br></div><div>The crux of the discussi=
on boils down to a few apparently contradictory sections in the specificati=
on. Scott linked to the first two:</div><div><br></div><div>Section 5.1.1:<=
/div><div><br></div><div>- The first use of a new stream identifier implici=
tly closes all streams in the =E2=80=9Cidle=E2=80=9D state that may have be=
en initiated by that peer with a lower-valued stream identifier.</div><div>=
- An endpoint that receives an unexpected stream identifier must respond wi=
th a connection error of type PROTOCOL_ERROR.</div><div><br></div><div>*How=
ever*, there are a few other notes. The first thing to note is that the PRI=
ORITY frame does not transition a stream out of the idle state. A stream th=
at has only had PRIORITY frames sent on it is still in the IDLE state. That=
 means that the Firefox-style priority setup (sending priority for stream I=
Ds 1, 3, 5, and 7 immediate after the preamble) would have the effect of im=
mediately closing streams 1, 3, and 5, if section 5.1.1 applied. This is no=
t what most people expect.</div><div><br></div><div>More importantly, thoug=
h, section 5.1.1 says this:</div><div><br></div><div>- The identifier of a =
newly established stream MUST be numerically greater than all streams that =
the initiating endpoint has opened or reserved. This=C2=A0governs streams t=
hat are opened using a=C2=A0HEADERS=C2=A0frame and streams that are reserve=
d using=C2=A0PUSH_PROMISE.</div><div><br></div><div>This is not absolutely =
clear, but it seems to suggest that implementations may establish a stream =
with an ID lower than streams that have had PRIORITY frames sent on them. P=
ut another way, it seems to suggest that only HEADERS and PUSH_PROMISE fram=
es affect the lowest-acceptable stream ID. That seems to me to suggest that=
 PRIORITY frames are not expected to force-close all streams with lower IDs=
 that are in the idle state.</div><div><br></div><div>As an implementers no=
te, I have found it much more helpful to think of PRIORITY frames not as fr=
ames that are sent on a stream, but as frames that are implicitly sent on s=
tream zero and are just tagged with a stream ID. PRIORITY frames ignore bas=
ically all restrictions on stream behaviour: they can be sent on idle strea=
ms, on closed streams. In practice, they can basically be sent whenever, an=
d except for the case where they establish a loop in the priority tree must=
 basically always be accepted.</div><span class=3D"HOEnZb"><font color=3D"#=
888888"><div><br></div><div>Cory</div></font></span></div></blockquote></di=
v><br></div>

--f403045ea29ecddf6505464e4b64--


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Tue Jan 17 10:28:44 2017
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 E7DF1129462 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 17 Jan 2017 10:28:44 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.619
X-Spam-Level:
X-Spam-Status: No, score=-9.619 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, 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=lukasa-co-uk.20150623.gappssmtp.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 mjPJqmcc49Ze for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 17 Jan 2017 10:28:43 -0800 (PST)
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 1517A127ABE for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 17 Jan 2017 10:28:43 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cTYSj-0005mC-6A for ietf-http-wg-dist@listhub.w3.org; Tue, 17 Jan 2017 18:26:29 +0000
Resent-Date: Tue, 17 Jan 2017 18:26:29 +0000
Resent-Message-Id: <E1cTYSj-0005mC-6A@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <cory@lukasa.co.uk>) id 1cTYSf-0005lS-Ns for ietf-http-wg@listhub.w3.org; Tue, 17 Jan 2017 18:26:25 +0000
Received: from mail-wm0-f47.google.com ([74.125.82.47]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <cory@lukasa.co.uk>) id 1cTYSZ-0004BZ-80 for ietf-http-wg@w3.org; Tue, 17 Jan 2017 18:26:20 +0000
Received: by mail-wm0-f47.google.com with SMTP id c85so212121771wmi.1 for <ietf-http-wg@w3.org>; Tue, 17 Jan 2017 10:25:58 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lukasa-co-uk.20150623.gappssmtp.com; s=20150623; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=yu9spxaZ6GgNAXpbv6VgZZpiM39aYo9hd0AEV7wIts8=; b=Fdhk2zK5x0vdaynNz0h0Ml8YbLFQeZd2DbKqO+52n1ER8QaejyVsFOe0rDoCYCLygW dGzKV8cdV/Hy8/R+cKPL7A8GOKS47hU8z847f8XBWCf7LPtu/lgfuRoKRNGuPcXFILc8 gFtgCgtEZPVult5Wqn+Pn3Wsz0iwpJCAhwjrmF/PETukTcMyCGTqVJNGWj1Ma6/R515A Rv7myMnVX68gxhWKsf/+PtlGdc1AusSLAaH2ZYmOaPXuAkSWWgH7z+3aM4cVvybKD1jr VldXIsCKhynbwvCeLlPAxRiBMb/ryXG+8hWIZNQ3Qop62HEhYe7rP7+PZ4VREAZxVvOO fajw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=yu9spxaZ6GgNAXpbv6VgZZpiM39aYo9hd0AEV7wIts8=; b=YUMffKHYnwuL032e07rSgTS0HeZ3Z7IkMy668oC6bHA/xfvonNYOGXDyhREy/I1tUa 2ah5VZQgCHHwv7WXgCzB+av2e+fZ8GNzTysySf9s+Aii3SPYpUnYmX4r1GoW6gPX/x2t M0tiY4VwES/1Q2GKgxgnyvpJIhjFvt1KxZVnF1lHPICobi/GCCdVK5IcyLb3eEIkBgp1 JfZAqu/Nz4/f4Y9Ub34/2OLHNIeHxOGbiZjHSc5Fog8PC7bySYrOdDGw7kDvt0V1aPNm /NYksnADNKGUu0YJ8PfLOqNSNPblA+rUWjLOahbd2Mx28zy02PvpQJKcZW5qtePjdm5M 4fIQ==
X-Gm-Message-State: AIkVDXJO9QCKKnFwJcEI+dK25Nx84o8+wrr733uJg3Z3D97rKbs0NJDdw5P8G9vKddf+MQ==
X-Received: by 10.223.160.43 with SMTP id k40mr13796217wrk.24.1484677552080; Tue, 17 Jan 2017 10:25:52 -0800 (PST)
Received: from [192.168.1.3] (197.71.125.91.dyn.plus.net. [91.125.71.197]) by smtp.gmail.com with ESMTPSA id f76sm38790677wmd.15.2017.01.17.10.25.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Jan 2017 10:25:51 -0800 (PST)
From: Cory Benfield <cory@lukasa.co.uk>
Message-Id: <08A9D76A-CD55-4390-8DED-61210D1A67DB@lukasa.co.uk>
Content-Type: multipart/alternative; boundary="Apple-Mail=_FB8B1A17-6B05-45B0-B396-442DA97B650D"
Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\))
Date: Tue, 17 Jan 2017 18:25:49 +0000
In-Reply-To: <CAFn2buC7vM1Ff13A305-2bLBLRzLVaURufGCDrpm_rs82jwkwQ@mail.gmail.com>
Cc: Benedikt Christoph Wolters <benedikt.wolters@rwth-aachen.de>, HTTP Working Group <ietf-http-wg@w3.org>
To: Scott Mitchell <scott.k.mitch1@gmail.com>
References: <CAFn2buAYWHQSWhhoKZ2GKbqXR1A+tScjkAwZmOuQ9gV9jMp2bA@mail.gmail.com> <CAGZNdJWe0Y=M_SWmgYabKbWZwPEuJdw67Km8+UtR4oUtZuXA5A@mail.gmail.com> <2BC01E49-91A1-43A7-AFD0-5A34F2689428@lukasa.co.uk> <CAFn2buC7vM1Ff13A305-2bLBLRzLVaURufGCDrpm_rs82jwkwQ@mail.gmail.com>
X-Mailer: Apple Mail (2.3259)
Received-SPF: pass client-ip=74.125.82.47; envelope-from=cory@lukasa.co.uk; helo=mail-wm0-f47.google.com
X-W3C-Hub-Spam-Status: No, score=-4.8
X-W3C-Hub-Spam-Report: AWL=-1.408, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cTYSZ-0004BZ-80 bb473cf6b8fbf08db1bc7681eb63e428
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Stream State and PRIORITY Frames
Archived-At: <http://www.w3.org/mid/08A9D76A-CD55-4390-8DED-61210D1A67DB@lukasa.co.uk>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33306
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>

--Apple-Mail=_FB8B1A17-6B05-45B0-B396-442DA97B650D
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii


> On 17 Jan 2017, at 18:16, Scott Mitchell <scott.k.mitch1@gmail.com> =
wrote:
>=20
> Thanks for responses everyone. There seems to be recognition that the =
specification lacks clarity but there also seems to be momentum behind =
"Option 1".
>=20
> This leads to the practical concern of bounding the amount of memory =
committed to streams in this state. SETTINGS_MAX_CONCURRENT_STREAMS =
limits number of streams in "open" or "half-closed", but the =
specification doesn't (to my knowledge) define a way to limit the number =
of "reserved" streams or "idle"/"closed" streams which have had only =
PRIORITY frames exchanged. The specification allows for implementations =
to discard PRIORITY more or less at their discretion [3], but limiting =
"reserved" streams is another issue. "SETTINGS_ENABLE_PUSH" is limited =
to 0 or 1 [4] so there is no way for a client to advertise how many =
"reserved" streams it is willing to accept. What are the practical =
approaches folks have taken to address these issues?
>=20
> [3] https://tools.ietf.org/html/rfc7540#section-5.3.4 =
<https://tools.ietf.org/html/rfc7540#section-5.3.4>
> > The retention of priority information for streams that are not =
counted toward the limit set by SETTINGS_MAX_CONCURRENT_STREAMS could =
create a large state burden for an endpoint. Therefore, the amount of =
prioritization state that is retained MAY be limited.
> [4] https://tools.ietf.org/html/rfc7540#section-6.5.2 =
<https://tools.ietf.org/html/rfc7540#section-6.5.2>
> > The initial value is 1, which indicates that server push is =
permitted.  Any value other than 0 or 1 MUST be treated as a connection =
error (Section 5.4.1 =
<https://tools.ietf.org/html/rfc7540#section-5.4.1>) of type =
PROTOCOL_ERROR.

SETTINGS_MAX_CONCURRENT_STREAMS is used to limit the number of pushed =
streams.

The key thing to understand is that there are *two* values of =
SETTINGS_MAX_CONCURRENT_STREAMS on each connection: one set by the =
client and one set by the server. The one set by the server limits the =
number of client-initiated streams there may be (that is, streams =
initiated by HEADERS frames). The one set by the client limits the =
number of server-initiated streams there may be (that is, streams =
initiated by PUSH_PROMISE frames).

This is laid out explicitly in RFC 7540 Section 8.2.2:

> A client can use the SETTINGS_MAX_CONCURRENT_STREAMS setting to limit
> the number of responses that can be concurrently pushed by a server.
> Advertising a SETTINGS_MAX_CONCURRENT_STREAMS value of zero disables
> server push by preventing the server from creating the necessary
> streams.  This does not prohibit a server from sending PUSH_PROMISE
> frames; clients need to reset any promised streams that are not
> wanted.

Cory


--Apple-Mail=_FB8B1A17-6B05-45B0-B396-442DA97B650D
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=us-ascii

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dus-ascii"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D""><br class=3D""><div><blockquote type=3D"cite" class=3D""><div =
class=3D"">On 17 Jan 2017, at 18:16, Scott Mitchell &lt;<a =
href=3D"mailto:scott.k.mitch1@gmail.com" =
class=3D"">scott.k.mitch1@gmail.com</a>&gt; wrote:</div><br =
class=3D"Apple-interchange-newline"><div class=3D""><div dir=3D"ltr" =
class=3D"">Thanks for responses everyone. There seems to be recognition =
that the specification lacks clarity but there also seems to be momentum =
behind "Option 1".<div class=3D""><br class=3D""></div><div =
class=3D"">This leads to the practical concern of bounding the amount of =
memory committed to streams in this state.&nbsp;<span style=3D"font-size: =
13.333333015441895px;" =
class=3D"">SETTINGS_MAX_CONCURRENT_STREAMS</span>&nbsp;limits number of =
streams in "open" or "half-closed", but the specification doesn't (to my =
knowledge) define a way to limit the number of "reserved" streams or =
"idle"/"closed" streams which have had only PRIORITY frames exchanged. =
The specification allows for implementations to discard PRIORITY more or =
less at their discretion [3], but limiting "reserved" streams is another =
issue. "<span style=3D"font-size: 13.333333015441895px;" =
class=3D"">SETTINGS_ENABLE_PUSH</span>" is limited to 0 or 1 [4] so =
there is no way for a client to advertise how many "reserved" streams it =
is willing to accept. What are the practical approaches folks have taken =
to address these issues?</div><div class=3D""><br class=3D""></div><div =
class=3D"">[3]&nbsp;<a =
href=3D"https://tools.ietf.org/html/rfc7540#section-5.3.4" =
class=3D"">https://tools.ietf.org/html/rfc7540#section-5.3.4</a></div><div=
 class=3D"">&gt;&nbsp;<span style=3D"font-size: 13.333333015441895px;" =
class=3D"">The retention of priority information for streams that are =
not&nbsp;</span><span style=3D"font-size: 13.333333015441895px;" =
class=3D"">counted toward the limit set by =
SETTINGS_MAX_CONCURRENT_STREAMS could&nbsp;</span><span =
style=3D"font-size: 13.333333015441895px;" class=3D"">create a large =
state burden for an endpoint.  Therefore, the amount&nbsp;</span><span =
style=3D"font-size: 13.333333015441895px;" class=3D"">of prioritization =
state that is retained MAY be limited.</span></div><div class=3D""><span =
style=3D"font-size: 13.333333015441895px;" class=3D"">[4] <a =
href=3D"https://tools.ietf.org/html/rfc7540#section-6.5.2" =
class=3D"">https://tools.ietf.org/html/rfc7540#section-6.5.2</a></span></d=
iv><pre class=3D"gmail-newpage" style=3D"font-size: =
13.333333015441895px; margin-top: 0px; margin-bottom: 0px; =
page-break-before: always;"><span style=3D"font-family:arial,sans-serif" =
class=3D"">&gt; The initial value is 1, which indicates that server push =
is </span><span style=3D"font-family:arial,sans-serif" =
class=3D"">permitted.  Any value other than 0 or 1 MUST be treated as a =
</span><span style=3D"font-family:arial,sans-serif" class=3D"">connection =
error (</span><a =
href=3D"https://tools.ietf.org/html/rfc7540#section-5.4.1" =
style=3D"font-family:arial,sans-serif" class=3D"">Section 5.4.1</a><span =
style=3D"font-family:arial,sans-serif" class=3D"">) of type =
PROTOCOL_ERROR.</span></pre></div>
</div></blockquote><br =
class=3D""></div><div>SETTINGS_MAX_CONCURRENT_STREAMS is used to limit =
the number of pushed streams.</div><div><br class=3D""></div><div>The =
key thing to understand is that there are *two* values of =
SETTINGS_MAX_CONCURRENT_STREAMS on each connection: one set by the =
client and one set by the server. The one set by the server limits the =
number of client-initiated streams there may be (that is, streams =
initiated by HEADERS frames). The one set by the client limits the =
number of server-initiated streams there may be (that is, streams =
initiated by PUSH_PROMISE frames).</div><div><br =
class=3D""></div><div>This is laid out explicitly in RFC 7540 Section =
8.2.2:</div><div><br class=3D""></div><div>&gt; A client can use the =
SETTINGS_MAX_CONCURRENT_STREAMS setting to limit</div><div class=3D"">&gt;=
 the number of responses that can be concurrently pushed by a =
server.</div><div class=3D"">&gt; Advertising a =
SETTINGS_MAX_CONCURRENT_STREAMS value of zero disables</div><div =
class=3D"">&gt; server push by preventing the server from creating the =
necessary</div><div class=3D"">&gt; streams. &nbsp;This does not =
prohibit a server from sending PUSH_PROMISE</div><div class=3D"">&gt; =
frames; clients need to reset any promised streams that are =
not</div><div class=3D"">&gt; wanted.</div><div class=3D""><br =
class=3D""></div><div class=3D"">Cory</div><br class=3D""></body></html>=

--Apple-Mail=_FB8B1A17-6B05-45B0-B396-442DA97B650D--


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Tue Jan 17 10:38:58 2017
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 E10D31294E5 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 17 Jan 2017 10:38:58 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.719
X-Spam-Level:
X-Spam-Status: No, score=-9.719 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, 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 2zI0K92CpWuU for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 17 Jan 2017 10:38:57 -0800 (PST)
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 08F9D1294FF for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 17 Jan 2017 10:38:56 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cTYcI-000498-FU for ietf-http-wg-dist@listhub.w3.org; Tue, 17 Jan 2017 18:36:22 +0000
Resent-Date: Tue, 17 Jan 2017 18:36:22 +0000
Resent-Message-Id: <E1cTYcI-000498-FU@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <scott.k.mitch1@gmail.com>) id 1cTYcD-00047o-Pu for ietf-http-wg@listhub.w3.org; Tue, 17 Jan 2017 18:36:17 +0000
Received: from mail-lf0-f45.google.com ([209.85.215.45]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <scott.k.mitch1@gmail.com>) id 1cTYc5-0007FV-T3 for ietf-http-wg@w3.org; Tue, 17 Jan 2017 18:36:12 +0000
Received: by mail-lf0-f45.google.com with SMTP id k86so115320861lfi.0 for <ietf-http-wg@w3.org>; Tue, 17 Jan 2017 10:35:49 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=ENwKQv/OEkOggiVHJo4znqVx0q4+VdthPXi8wCW6VG0=; b=EL/ZAmMj8Ac1f4ImfeIkAbqtXFJFM1nLD1jKH/KLFoeDrS9IqBA9vgl10THvtVa5dw 5BYHyP/6c6CKO+k08N9Xbnaq2WYYkq9GIDAhnET+PPGNbLKGSF/emz4f1nC6Mk366qXg kMekr4vCeU+1ybvtnOc1TzTfwBzDq6AI0xxE6nCzIwu4BD/8ht66bVvfgFaNakVTuc3B X5iynrHkuCwlznT/xXBapmsXnFVOGRwNAmtfWO3PAdxC9XRFkhsLLbcu0Y6asXrlfKBn YZ26F2OdB+n1ltrJedYgfzkqTuKmizmxost3mDesrtP5KLCLxsuqq4/gC0g24Gz/3aY1 ZkJQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=ENwKQv/OEkOggiVHJo4znqVx0q4+VdthPXi8wCW6VG0=; b=lwQRj9NPXa9/iZk9VAETtoahlwJ/nz6+ETx1bBgVkF8Oj4NEHGGILYr654UpziXpxt nWo6CigeBl9wJ4BTfDmg9K4Er7ErR7+jVMLt3lBga7wtogTlXVPe3NseOM5ityRWk1Bj MfMua+zgBHz0wZTplUUtKyif8tMF3OKqu2pSeV+iLL/aGEsJ0ghRUnByl3wsRS/AUf3j SqpK/bVq39gnWVJzKnXLbcz6uV2fn8hOjrkyb9J7otXylX51483+9vVpbd7fChs7A1BN rTeiRND9SxF0tEjrFY1NoeGf50U7mNCJFDq1oK40m3ZsJPdlkknBLibF790EquScJ9WR CiVQ==
X-Gm-Message-State: AIkVDXL2WPx/gNYmozD8JZAjlzFncgktIzutb54i/kTMjZqjHa/7LnNiZMNFhmTu3LUDapJcUy8hahqQFgYR+Q==
X-Received: by 10.25.202.83 with SMTP id h19mr14637536lfj.33.1484678143184; Tue, 17 Jan 2017 10:35:43 -0800 (PST)
MIME-Version: 1.0
Received: by 10.25.18.200 with HTTP; Tue, 17 Jan 2017 10:35:42 -0800 (PST)
In-Reply-To: <08A9D76A-CD55-4390-8DED-61210D1A67DB@lukasa.co.uk>
References: <CAFn2buAYWHQSWhhoKZ2GKbqXR1A+tScjkAwZmOuQ9gV9jMp2bA@mail.gmail.com> <CAGZNdJWe0Y=M_SWmgYabKbWZwPEuJdw67Km8+UtR4oUtZuXA5A@mail.gmail.com> <2BC01E49-91A1-43A7-AFD0-5A34F2689428@lukasa.co.uk> <CAFn2buC7vM1Ff13A305-2bLBLRzLVaURufGCDrpm_rs82jwkwQ@mail.gmail.com> <08A9D76A-CD55-4390-8DED-61210D1A67DB@lukasa.co.uk>
From: Scott Mitchell <scott.k.mitch1@gmail.com>
Date: Tue, 17 Jan 2017 10:35:42 -0800
Message-ID: <CAFn2buD8GORgdpACbuc60RmkeL+yBcb-RZSwwGjTKugWeeNUSQ@mail.gmail.com>
To: Cory Benfield <cory@lukasa.co.uk>
Cc: Benedikt Christoph Wolters <benedikt.wolters@rwth-aachen.de>,  HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary=f403045e9f5054926405464e9128
Received-SPF: pass client-ip=209.85.215.45; envelope-from=scott.k.mitch1@gmail.com; helo=mail-lf0-f45.google.com
X-W3C-Hub-Spam-Status: No, score=-3.6
X-W3C-Hub-Spam-Report: AWL=-0.326, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1cTYc5-0007FV-T3 499518c1b5c51172b7ac02e96999ba81
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Stream State and PRIORITY Frames
Archived-At: <http://www.w3.org/mid/CAFn2buD8GORgdpACbuc60RmkeL+yBcb-RZSwwGjTKugWeeNUSQ@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33307
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>

--f403045e9f5054926405464e9128
Content-Type: text/plain; charset=UTF-8

On Tue, Jan 17, 2017 at 10:25 AM, Cory Benfield <cory@lukasa.co.uk> wrote:

>
> On 17 Jan 2017, at 18:16, Scott Mitchell <scott.k.mitch1@gmail.com> wrote:
>
> Thanks for responses everyone. There seems to be recognition that the
> specification lacks clarity but there also seems to be momentum behind
> "Option 1".
>
> This leads to the practical concern of bounding the amount of memory
> committed to streams in this state. SETTINGS_MAX_CONCURRENT_STREAMS limits
> number of streams in "open" or "half-closed", but the specification doesn't
> (to my knowledge) define a way to limit the number of "reserved" streams or
> "idle"/"closed" streams which have had only PRIORITY frames exchanged. The
> specification allows for implementations to discard PRIORITY more or less
> at their discretion [3], but limiting "reserved" streams is another issue. "
> SETTINGS_ENABLE_PUSH" is limited to 0 or 1 [4] so there is no way for a
> client to advertise how many "reserved" streams it is willing to accept.
> What are the practical approaches folks have taken to address these issues?
>
> [3] https://tools.ietf.org/html/rfc7540#section-5.3.4
> > The retention of priority information for streams that are not counted
> toward the limit set by SETTINGS_MAX_CONCURRENT_STREAMS could create a
> large state burden for an endpoint. Therefore, the amount of
> prioritization state that is retained MAY be limited.
> [4] https://tools.ietf.org/html/rfc7540#section-6.5.2
>
> > The initial value is 1, which indicates that server push is permitted.  Any value other than 0 or 1 MUST be treated as a connection error (Section 5.4.1 <https://tools.ietf.org/html/rfc7540#section-5.4.1>) of type PROTOCOL_ERROR.
>
>
> SETTINGS_MAX_CONCURRENT_STREAMS is used to limit the number of pushed
> streams.
>
> The key thing to understand is that there are *two* values of
> SETTINGS_MAX_CONCURRENT_STREAMS on each connection: one set by the client
> and one set by the server. The one set by the server limits the number of
> client-initiated streams there may be (that is, streams initiated by
> HEADERS frames). The one set by the client limits the number of
> server-initiated streams there may be (that is, streams initiated by
> PUSH_PROMISE frames).
>
> This is laid out explicitly in RFC 7540 Section 8.2.2:
>

Ahh yes I forgot about this. Thanks for reminding me.

Any thoughts on limiting the stream priority?


>
> > A client can use the SETTINGS_MAX_CONCURRENT_STREAMS setting to limit
> > the number of responses that can be concurrently pushed by a server.
> > Advertising a SETTINGS_MAX_CONCURRENT_STREAMS value of zero disables
> > server push by preventing the server from creating the necessary
> > streams.  This does not prohibit a server from sending PUSH_PROMISE
> > frames; clients need to reset any promised streams that are not
> > wanted.
>
> Cory
>
>

--f403045e9f5054926405464e9128
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div class=3D"gmail_quo=
te">On Tue, Jan 17, 2017 at 10:25 AM, Cory Benfield <span dir=3D"ltr">&lt;<=
a href=3D"mailto:cory@lukasa.co.uk" target=3D"_blank">cory@lukasa.co.uk</a>=
&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0=
 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style=3D"word-wra=
p:break-word"><span class=3D""><br><div><blockquote type=3D"cite"><div>On 1=
7 Jan 2017, at 18:16, Scott Mitchell &lt;<a href=3D"mailto:scott.k.mitch1@g=
mail.com" target=3D"_blank">scott.k.mitch1@gmail.com</a>&gt; wrote:</div><b=
r class=3D"m_-5819727667222607565Apple-interchange-newline"><div><div dir=
=3D"ltr">Thanks for responses everyone. There seems to be recognition that =
the specification lacks clarity but there also seems to be momentum behind =
&quot;Option 1&quot;.<div><br></div><div>This leads to the practical concer=
n of bounding the amount of memory committed to streams in this state.=C2=
=A0<span style=3D"font-size:13.333333015441895px">SETTINGS_MAX_<wbr>CONCURR=
ENT_STREAMS</span>=C2=A0limits number of streams in &quot;open&quot; or &qu=
ot;half-closed&quot;, but the specification doesn&#39;t (to my knowledge) d=
efine a way to limit the number of &quot;reserved&quot; streams or &quot;id=
le&quot;/&quot;closed&quot; streams which have had only PRIORITY frames exc=
hanged. The specification allows for implementations to discard PRIORITY mo=
re or less at their discretion [3], but limiting &quot;reserved&quot; strea=
ms is another issue. &quot;<span style=3D"font-size:13.333333015441895px">S=
ETTINGS_ENABLE_PUSH</span>&quot; is limited to 0 or 1 [4] so there is no wa=
y for a client to advertise how many &quot;reserved&quot; streams it is wil=
ling to accept. What are the practical approaches folks have taken to addre=
ss these issues?</div><div><br></div><div>[3]=C2=A0<a href=3D"https://tools=
.ietf.org/html/rfc7540#section-5.3.4" target=3D"_blank">https://tools.ietf.=
org/<wbr>html/rfc7540#section-5.3.4</a></div><div>&gt;=C2=A0<span style=3D"=
font-size:13.333333015441895px">The retention of priority information for s=
treams that are not=C2=A0</span><span style=3D"font-size:13.333333015441895=
px">counted toward the limit set by SETTINGS_MAX_CONCURRENT_<wbr>STREAMS co=
uld=C2=A0</span><span style=3D"font-size:13.333333015441895px">create a lar=
ge state burden for an endpoint.  Therefore, the amount=C2=A0</span><span s=
tyle=3D"font-size:13.333333015441895px">of prioritization state that is ret=
ained MAY be limited.</span></div><div><span style=3D"font-size:13.33333301=
5441895px">[4] <a href=3D"https://tools.ietf.org/html/rfc7540#section-6.5.2=
" target=3D"_blank">https://tools.ietf.org/html/<wbr>rfc7540#section-6.5.2<=
/a></span></div><pre class=3D"m_-5819727667222607565gmail-newpage" style=3D=
"font-size:13.333333015441895px;margin-top:0px;margin-bottom:0px;page-break=
-before:always"><span style=3D"font-family:arial,sans-serif">&gt; The initi=
al value is 1, which indicates that server push is </span><span style=3D"fo=
nt-family:arial,sans-serif">permitted.  Any value other than 0 or 1 MUST be=
 treated as a </span><span style=3D"font-family:arial,sans-serif">connectio=
n error (</span><a href=3D"https://tools.ietf.org/html/rfc7540#section-5.4.=
1" style=3D"font-family:arial,sans-serif" target=3D"_blank">Section 5.4.1</=
a><span style=3D"font-family:arial,sans-serif">) of type PROTOCOL_ERROR.</s=
pan></pre></div>
</div></blockquote><br></div></span><div>SETTINGS_MAX_CONCURRENT_<wbr>STREA=
MS is used to limit the number of pushed streams.</div><div><br></div><div>=
The key thing to understand is that there are *two* values of SETTINGS_MAX_=
CONCURRENT_<wbr>STREAMS on each connection: one set by the client and one s=
et by the server. The one set by the server limits the number of client-ini=
tiated streams there may be (that is, streams initiated by HEADERS frames).=
 The one set by the client limits the number of server-initiated streams th=
ere may be (that is, streams initiated by PUSH_PROMISE frames).</div><div><=
br></div><div>This is laid out explicitly in RFC 7540 Section 8.2.2:</div><=
/div></blockquote><div><br></div><div>Ahh yes I forgot about this. Thanks f=
or reminding me.</div><div><br></div><div>Any thoughts on limiting the stre=
am priority?</div><div>=C2=A0</div><blockquote class=3D"gmail_quote" style=
=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div sty=
le=3D"word-wrap:break-word"><div><br></div><div>&gt; A client can use the S=
ETTINGS_MAX_CONCURRENT_<wbr>STREAMS setting to limit</div><div>&gt; the num=
ber of responses that can be concurrently pushed by a server.</div><div>&gt=
; Advertising a SETTINGS_MAX_CONCURRENT_<wbr>STREAMS value of zero disables=
</div><div>&gt; server push by preventing the server from creating the nece=
ssary</div><div>&gt; streams.=C2=A0 This does not prohibit a server from se=
nding PUSH_PROMISE</div><div>&gt; frames; clients need to reset any promise=
d streams that are not</div><div>&gt; wanted.</div><span class=3D"HOEnZb"><=
font color=3D"#888888"><div><br></div><div>Cory</div><br></font></span></di=
v></blockquote></div><br></div></div>

--f403045e9f5054926405464e9128--


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Tue Jan 17 11:31:17 2017
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 E41BB1294D7 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 17 Jan 2017 11:31:17 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.619
X-Spam-Level:
X-Spam-Status: No, score=-9.619 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, 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 c0P0ubE510p5 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 17 Jan 2017 11:31:15 -0800 (PST)
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 BC6DF12007C for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 17 Jan 2017 11:31:15 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cTZPm-0007TY-SN for ietf-http-wg-dist@listhub.w3.org; Tue, 17 Jan 2017 19:27:30 +0000
Resent-Date: Tue, 17 Jan 2017 19:27:30 +0000
Resent-Message-Id: <E1cTZPm-0007TY-SN@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <phluid61@gmail.com>) id 1cTZPk-0007SO-47 for ietf-http-wg@listhub.w3.org; Tue, 17 Jan 2017 19:27:28 +0000
Received: from mail-io0-f173.google.com ([209.85.223.173]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <phluid61@gmail.com>) id 1cTZPc-0006fz-MC for ietf-http-wg@w3.org; Tue, 17 Jan 2017 19:27:22 +0000
Received: by mail-io0-f173.google.com with SMTP id j13so122748769iod.3 for <ietf-http-wg@w3.org>; Tue, 17 Jan 2017 11:26:59 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=MDEvBWwrVHmRM78TZXvVmG1vKIcm/jLYPATFqULnyw8=; b=vNKEzqEFuxB+JA0rq+qW/0fV7Vm3p7jRoSIKhad1eD/mhmgDCAaeXPkphE6HgjvqLF Q1FvlVWqyHp/eWAW+yEkPAOZHeg5DgqRRolcDfIw8DP3Vmdefg0h7UqmsDZGBFKx8w3n OxxgNPTknpEj+c35sMf+FtLG3VWVVUDNkZ1zZpi/GwdBqo4vX+iy3qe1Wdk9XQX+HGLV 6QyNNlO1Xo8Oqs2XxVavcq4ROWAI8gkA+S8xfOHH9oQyxkbMQtEYdAoptqkSZUmdJrIy 8NxIr7YFqRaPsUbPhhTT4tAU6LEZ/IDrddKUdG781K9GHDW76alZ2/LJ5313FS0teYxI oLQw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=MDEvBWwrVHmRM78TZXvVmG1vKIcm/jLYPATFqULnyw8=; b=b7Hht631ESPKtq582MnMrn6P8AxB7hkAZaZnWXSlwo1zzRMTTMul5UCMwlNGJgl6nk +AB6cnmqIakEECwWL3ELwQv+6P4vnaRyEdn9RjnhoAcYc5eSMZDJbR7FI8iToyYt8oME 2CFci8fk2t3w91gD9c5/+A59wX461aD/511Nlv46ERCh0jcRjcbEuY0oQOpzrDFexa2n OFKaCoC3ADeb4GD1Zbuwvifl3PgkDVn3aifB3R7YeKl5k8EDIe+RTKB1e+hTmjXcNzLn Lucn2TkKPjai3tZWp5zGhRCfeQeZ7I/aNxckFMv6fHWXZlPzQx8meXV9LCbQbhqRwt59 /GKQ==
X-Gm-Message-State: AIkVDXJrmPBezlVxrnEng7KSWbMBkv/3NnzaehasUGl5xfl1UBwGuvxN7W5OWEcDWnS6g9FCiq4WvCM/2+ERkw==
X-Received: by 10.107.59.193 with SMTP id i184mr35656578ioa.86.1484681214362; Tue, 17 Jan 2017 11:26:54 -0800 (PST)
MIME-Version: 1.0
Sender: phluid61@gmail.com
Received: by 10.107.154.145 with HTTP; Tue, 17 Jan 2017 11:26:53 -0800 (PST)
In-Reply-To: <CAFn2buD8GORgdpACbuc60RmkeL+yBcb-RZSwwGjTKugWeeNUSQ@mail.gmail.com>
References: <CAFn2buAYWHQSWhhoKZ2GKbqXR1A+tScjkAwZmOuQ9gV9jMp2bA@mail.gmail.com> <CAGZNdJWe0Y=M_SWmgYabKbWZwPEuJdw67Km8+UtR4oUtZuXA5A@mail.gmail.com> <2BC01E49-91A1-43A7-AFD0-5A34F2689428@lukasa.co.uk> <CAFn2buC7vM1Ff13A305-2bLBLRzLVaURufGCDrpm_rs82jwkwQ@mail.gmail.com> <08A9D76A-CD55-4390-8DED-61210D1A67DB@lukasa.co.uk> <CAFn2buD8GORgdpACbuc60RmkeL+yBcb-RZSwwGjTKugWeeNUSQ@mail.gmail.com>
From: Matthew Kerwin <matthew@kerwin.net.au>
Date: Wed, 18 Jan 2017 05:26:53 +1000
X-Google-Sender-Auth: 2qoy2-lK7mQeLVV5OstEOcJlgj4
Message-ID: <CACweHNC6ZCoYirW10hJFnMZAa+C5HWwDqosnoO9J0ADAWEu0WA@mail.gmail.com>
To: Scott Mitchell <scott.k.mitch1@gmail.com>
Cc: Cory Benfield <cory@lukasa.co.uk>,  Benedikt Christoph Wolters <benedikt.wolters@rwth-aachen.de>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary=001a114f7f94630c6b05464f4863
Received-SPF: pass client-ip=209.85.223.173; envelope-from=phluid61@gmail.com; helo=mail-io0-f173.google.com
X-W3C-Hub-Spam-Status: No, score=-4.4
X-W3C-Hub-Spam-Report: AWL=-1.485, BAYES_05=-0.5, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-1.156, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cTZPc-0006fz-MC 26b4d195ca48f2ba78fefad76341b4c0
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Stream State and PRIORITY Frames
Archived-At: <http://www.w3.org/mid/CACweHNC6ZCoYirW10hJFnMZAa+C5HWwDqosnoO9J0ADAWEu0WA@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33308
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>

--001a114f7f94630c6b05464f4863
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On 18 January 2017 at 04:35, Scott Mitchell <scott.k.mitch1@gmail.com>
wrote:

>
>
> Ahh yes I forgot about this. Thanks for reminding me.
>
> Any thoughts on limiting the stream priority?
>
>

=E2=80=8BIt's a hint. If you run out of resources to maintain it, discard i=
t?

Cheers
--=20
  Matthew Kerwin
  http://matthew.kerwin.net.au/

--001a114f7f94630c6b05464f4863
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-family:georgia,=
serif;color:#073763"><br></div><div class=3D"gmail_extra"><br><div class=3D=
"gmail_quote">On 18 January 2017 at 04:35, Scott Mitchell <span dir=3D"ltr"=
>&lt;<a href=3D"mailto:scott.k.mitch1@gmail.com" target=3D"_blank">scott.k.=
mitch1@gmail.com</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote"=
 style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><d=
iv dir=3D"ltr"><div class=3D"gmail_extra"><div class=3D"gmail_quote"><span =
class=3D""><br><div><br></div></span><div>Ahh yes I forgot about this. Than=
ks for reminding me.</div><div><br></div><div>Any thoughts on limiting the =
stream priority?</div><span class=3D""><div>=C2=A0</div></span></div></div>=
</div></blockquote><div><br></div><div class=3D"gmail_default" style=3D"fon=
t-family:georgia,serif;color:rgb(7,55,99)">=E2=80=8BIt&#39;s a hint. If you=
 run out of resources to maintain it, discard it?</div><div class=3D"gmail_=
default" style=3D"font-family:georgia,serif;color:rgb(7,55,99)"><br></div><=
div class=3D"gmail_default" style=3D"font-family:georgia,serif;color:rgb(7,=
55,99)">Cheers</div></div>-- <br><div class=3D"gmail_signature" data-smartm=
ail=3D"gmail_signature"><div dir=3D"ltr">=C2=A0 Matthew Kerwin<br>=C2=A0 <a=
 href=3D"http://matthew.kerwin.net.au/" target=3D"_blank">http://matthew.ke=
rwin.net.au/</a></div></div>
</div></div>

--001a114f7f94630c6b05464f4863--


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Tue Jan 17 12:16:17 2017
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 ED55612945F for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 17 Jan 2017 12:16:17 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.719
X-Spam-Level:
X-Spam-Status: No, score=-9.719 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, 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 Pb2qkAZzG8O5 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 17 Jan 2017 12:16:15 -0800 (PST)
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 C925C127A91 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 17 Jan 2017 12:16:15 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cTa8V-0001gP-9m for ietf-http-wg-dist@listhub.w3.org; Tue, 17 Jan 2017 20:13:43 +0000
Resent-Date: Tue, 17 Jan 2017 20:13:43 +0000
Resent-Message-Id: <E1cTa8V-0001gP-9m@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <scott.k.mitch1@gmail.com>) id 1cTa8Q-0001fc-U1 for ietf-http-wg@listhub.w3.org; Tue, 17 Jan 2017 20:13:38 +0000
Received: from mail-lf0-f47.google.com ([209.85.215.47]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <scott.k.mitch1@gmail.com>) id 1cTa8J-0008Tr-CJ for ietf-http-wg@w3.org; Tue, 17 Jan 2017 20:13:33 +0000
Received: by mail-lf0-f47.google.com with SMTP id z134so114018446lff.3 for <ietf-http-wg@w3.org>; Tue, 17 Jan 2017 12:13:10 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=qyLBdsJ4tn7gcS8DiV+D8FRFxPWgsjyITHhFR+D4GeU=; b=AjU8wbiEYHBG0CQslAchehk6fdQ7URvCcL5HYQiTIC/f6bwCRtGktY9pPYuEogVenF Q0PbP1hef90CLoo3GkEXWVJrK8PGoadb53TKHZMFr6CP+903ftbVb+CwV4GotSyqDLTX v9bKyy55KDYodpwf2Ox/bpDYCACQ6uxHlGJwN0oad1D1yc51dla4k+vTgbKpRWPQf9hf TF7WBX83ox8OIjqtl4Jak3AuGdgTKlLWfuvtacc/Tf9p6ncSU2NBY3ansRLEz0fXknzF PlZoNwzjIdDyW5GiVLtUQepbysG3rrsYhryTrufZhDjrZHG0zMuvl3XKvnASuBRFbCd4 sa6g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=qyLBdsJ4tn7gcS8DiV+D8FRFxPWgsjyITHhFR+D4GeU=; b=lKTyKdhVvTEjQUeBUtzWvFBTnxlUFW655gGHeURUl4WhxlPU26F+31xeBAI1rrTScn 7edudzAPfl6gdcVID1GyEV4guf4DG0isJEsKMK3UlP6fMDcyf0sLMfCHjYilhQYEyR8l CzXrK4dmMUVqukE/xpLagNO5k0joLshvg7V9v1c2RulhpG30LUFkFLtGeb4qPn0lDIwj o2MNBcb4pW2/QapMtfbBljDy2dieS+OPNwJej035+lj2ShfeP/2mkXpO8GaA9wSJcfLO uurHJ/zJFxI/oJINh8HcYFQqI/AY2Tg6Wn32NlSunwl8o2X+DzipiwH48hNzKTRtZEJC 9TTA==
X-Gm-Message-State: AIkVDXLkBCK/ypygwhrDEHA5U2TW20Kkha0tCD2d1NVwWR0LHsyUFLUSFTu8S+qxXG8Zfjk97PljCrlng8jzZw==
X-Received: by 10.46.75.1 with SMTP id y1mr8759464lja.65.1484683984269; Tue, 17 Jan 2017 12:13:04 -0800 (PST)
MIME-Version: 1.0
Received: by 10.25.18.200 with HTTP; Tue, 17 Jan 2017 12:13:03 -0800 (PST)
In-Reply-To: <CAFn2buD8GORgdpACbuc60RmkeL+yBcb-RZSwwGjTKugWeeNUSQ@mail.gmail.com>
References: <CAFn2buAYWHQSWhhoKZ2GKbqXR1A+tScjkAwZmOuQ9gV9jMp2bA@mail.gmail.com> <CAGZNdJWe0Y=M_SWmgYabKbWZwPEuJdw67Km8+UtR4oUtZuXA5A@mail.gmail.com> <2BC01E49-91A1-43A7-AFD0-5A34F2689428@lukasa.co.uk> <CAFn2buC7vM1Ff13A305-2bLBLRzLVaURufGCDrpm_rs82jwkwQ@mail.gmail.com> <08A9D76A-CD55-4390-8DED-61210D1A67DB@lukasa.co.uk> <CAFn2buD8GORgdpACbuc60RmkeL+yBcb-RZSwwGjTKugWeeNUSQ@mail.gmail.com>
From: Scott Mitchell <scott.k.mitch1@gmail.com>
Date: Tue, 17 Jan 2017 12:13:03 -0800
Message-ID: <CAFn2buCx63fxPoM34MxATSSvrAznsob_tuamM1Zv9OJs1-ys1Q@mail.gmail.com>
To: Cory Benfield <cory@lukasa.co.uk>
Cc: Benedikt Christoph Wolters <benedikt.wolters@rwth-aachen.de>,  HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary=f403045ea47a7c758705464fedfe
Received-SPF: pass client-ip=209.85.215.47; envelope-from=scott.k.mitch1@gmail.com; helo=mail-lf0-f47.google.com
X-W3C-Hub-Spam-Status: No, score=-3.4
X-W3C-Hub-Spam-Report: AWL=-0.128, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cTa8J-0008Tr-CJ 81b7045dd53db56416569705978ec43e
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Stream State and PRIORITY Frames
Archived-At: <http://www.w3.org/mid/CAFn2buCx63fxPoM34MxATSSvrAznsob_tuamM1Zv9OJs1-ys1Q@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33309
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>

--f403045ea47a7c758705464fedfe
Content-Type: text/plain; charset=UTF-8

On Tue, Jan 17, 2017 at 10:35 AM, Scott Mitchell <scott.k.mitch1@gmail.com>
wrote:

>
>
> On Tue, Jan 17, 2017 at 10:25 AM, Cory Benfield <cory@lukasa.co.uk> wrote:
>
>>
>> On 17 Jan 2017, at 18:16, Scott Mitchell <scott.k.mitch1@gmail.com>
>> wrote:
>>
>> Thanks for responses everyone. There seems to be recognition that the
>> specification lacks clarity but there also seems to be momentum behind
>> "Option 1".
>>
>> This leads to the practical concern of bounding the amount of memory
>> committed to streams in this state. SETTINGS_MAX_CONCURRENT_STREAMS limits
>> number of streams in "open" or "half-closed", but the specification doesn't
>> (to my knowledge) define a way to limit the number of "reserved" streams or
>> "idle"/"closed" streams which have had only PRIORITY frames exchanged. The
>> specification allows for implementations to discard PRIORITY more or less
>> at their discretion [3], but limiting "reserved" streams is another issue. "
>> SETTINGS_ENABLE_PUSH" is limited to 0 or 1 [4] so there is no way for a
>> client to advertise how many "reserved" streams it is willing to accept.
>> What are the practical approaches folks have taken to address these issues?
>>
>> [3] https://tools.ietf.org/html/rfc7540#section-5.3.4
>> > The retention of priority information for streams that are not counted
>> toward the limit set by SETTINGS_MAX_CONCURRENT_STREAMS could create a
>> large state burden for an endpoint. Therefore, the amount of
>> prioritization state that is retained MAY be limited.
>> [4] https://tools.ietf.org/html/rfc7540#section-6.5.2
>>
>> > The initial value is 1, which indicates that server push is permitted.  Any value other than 0 or 1 MUST be treated as a connection error (Section 5.4.1 <https://tools.ietf.org/html/rfc7540#section-5.4.1>) of type PROTOCOL_ERROR.
>>
>>
>> SETTINGS_MAX_CONCURRENT_STREAMS is used to limit the number of pushed
>> streams.
>>
>> The key thing to understand is that there are *two* values of
>> SETTINGS_MAX_CONCURRENT_STREAMS on each connection: one set by the
>> client and one set by the server. The one set by the server limits the
>> number of client-initiated streams there may be (that is, streams initiated
>> by HEADERS frames). The one set by the client limits the number of
>> server-initiated streams there may be (that is, streams initiated by
>> PUSH_PROMISE frames).
>>
>> This is laid out explicitly in RFC 7540 Section 8.2.2:
>>
>
> Ahh yes I forgot about this. Thanks for reminding me.
>
>
I recall where my confusion stems from. Section 5.1.2 contradicts the
statements in Section 8.2.2 you referenced. Section 5.1.2 explicitly states
that "reserved" streams do not count toward SETTINGS_MAX_CONCURRENT_STREAM
S [5].

[5] https://tools.ietf.org/html/rfc7540#section-5.1.2
> Streams that are in the "open" state or in either of the "half-closed"
states count toward the maximum number of streams that an endpoint is
permitted to open. Streams in any of these three states count toward the
limit advertised in the SETTINGS_MAX_CONCURRENT_STREAMS setting. Streams in
either of the "reserved" states do not count toward the stream limit.



> Any thoughts on limiting the stream priority?
>
>
>>
>> > A client can use the SETTINGS_MAX_CONCURRENT_STREAMS setting to limit
>> > the number of responses that can be concurrently pushed by a server.
>> > Advertising a SETTINGS_MAX_CONCURRENT_STREAMS value of zero disables
>> > server push by preventing the server from creating the necessary
>> > streams.  This does not prohibit a server from sending PUSH_PROMISE
>> > frames; clients need to reset any promised streams that are not
>> > wanted.
>>
>> Cory
>>
>>
>

--f403045ea47a7c758705464fedfe
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div class=3D"gmail_quo=
te">On Tue, Jan 17, 2017 at 10:35 AM, Scott Mitchell <span dir=3D"ltr">&lt;=
<a href=3D"mailto:scott.k.mitch1@gmail.com" target=3D"_blank">scott.k.mitch=
1@gmail.com</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" styl=
e=3D"margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(2=
04,204,204);border-left-style:solid;padding-left:1ex"><div dir=3D"ltr"><br>=
<div class=3D"gmail_extra"><br><div class=3D"gmail_quote"><span class=3D"gm=
ail-">On Tue, Jan 17, 2017 at 10:25 AM, Cory Benfield <span dir=3D"ltr">&lt=
;<a href=3D"mailto:cory@lukasa.co.uk" target=3D"_blank">cory@lukasa.co.uk</=
a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0=
px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);b=
order-left-style:solid;padding-left:1ex"><div style=3D"word-wrap:break-word=
"><span><br><div><blockquote type=3D"cite"><div>On 17 Jan 2017, at 18:16, S=
cott Mitchell &lt;<a href=3D"mailto:scott.k.mitch1@gmail.com" target=3D"_bl=
ank">scott.k.mitch1@gmail.com</a>&gt; wrote:</div><br class=3D"gmail-m_-658=
0602349559907428m_-5819727667222607565Apple-interchange-newline"><div><div =
dir=3D"ltr">Thanks for responses everyone. There seems to be recognition th=
at the specification lacks clarity but there also seems to be momentum behi=
nd &quot;Option 1&quot;.<div><br></div><div>This leads to the practical con=
cern of bounding the amount of memory committed to streams in this state.=
=C2=A0<span style=3D"font-size:13.333333015441895px">SETTINGS_MAX_CONCURREN=
T<wbr>_STREAMS</span>=C2=A0limits number of streams in &quot;open&quot; or =
&quot;half-closed&quot;, but the specification doesn&#39;t (to my knowledge=
) define a way to limit the number of &quot;reserved&quot; streams or &quot=
;idle&quot;/&quot;closed&quot; streams which have had only PRIORITY frames =
exchanged. The specification allows for implementations to discard PRIORITY=
 more or less at their discretion [3], but limiting &quot;reserved&quot; st=
reams is another issue. &quot;<span style=3D"font-size:13.333333015441895px=
">SETTINGS_ENABLE_PUSH</span>&quot; is limited to 0 or 1 [4] so there is no=
 way for a client to advertise how many &quot;reserved&quot; streams it is =
willing to accept. What are the practical approaches folks have taken to ad=
dress these issues?</div><div><br></div><div>[3]=C2=A0<a href=3D"https://to=
ols.ietf.org/html/rfc7540#section-5.3.4" target=3D"_blank">https://tools.ie=
tf.org/htm<wbr>l/rfc7540#section-5.3.4</a></div><div>&gt;=C2=A0<span style=
=3D"font-size:13.333333015441895px">The retention of priority information f=
or streams that are not=C2=A0</span><span style=3D"font-size:13.33333301544=
1895px">counted toward the limit set by SETTINGS_MAX_CONCURRENT_STREAM<wbr>=
S could=C2=A0</span><span style=3D"font-size:13.333333015441895px">create a=
 large state burden for an endpoint.  Therefore, the amount=C2=A0</span><sp=
an style=3D"font-size:13.333333015441895px">of prioritization state that is=
 retained MAY be limited.</span></div><div><span style=3D"font-size:13.3333=
33015441895px">[4] <a href=3D"https://tools.ietf.org/html/rfc7540#section-6=
.5.2" target=3D"_blank">https://tools.ietf.org/html/rf<wbr>c7540#section-6.=
5.2</a></span></div><pre class=3D"gmail-m_-6580602349559907428m_-5819727667=
222607565gmail-newpage" style=3D"font-size:13.333333015441895px;margin-top:=
0px;margin-bottom:0px;page-break-before:always"><span style=3D"font-family:=
arial,sans-serif">&gt; The initial value is 1, which indicates that server =
push is </span><span style=3D"font-family:arial,sans-serif">permitted.  Any=
 value other than 0 or 1 MUST be treated as a </span><span style=3D"font-fa=
mily:arial,sans-serif">connection error (</span><a href=3D"https://tools.ie=
tf.org/html/rfc7540#section-5.4.1" style=3D"font-family:arial,sans-serif" t=
arget=3D"_blank">Section 5.4.1</a><span style=3D"font-family:arial,sans-ser=
if">) of type PROTOCOL_ERROR.</span></pre></div>
</div></blockquote><br></div></span><div>SETTINGS_MAX_CONCURRENT_STREAM<wbr=
>S is used to limit the number of pushed streams.</div><div><br></div><div>=
The key thing to understand is that there are *two* values of SETTINGS_MAX_=
CONCURRENT_STREAM<wbr>S on each connection: one set by the client and one s=
et by the server. The one set by the server limits the number of client-ini=
tiated streams there may be (that is, streams initiated by HEADERS frames).=
 The one set by the client limits the number of server-initiated streams th=
ere may be (that is, streams initiated by PUSH_PROMISE frames).</div><div><=
br></div><div>This is laid out explicitly in RFC 7540 Section 8.2.2:</div><=
/div></blockquote><div><br></div></span><div>Ahh yes I forgot about this. T=
hanks for reminding me.</div><div><br></div></div></div></div></blockquote>=
<div><br></div><div><div>I recall where my confusion stems from. Section 5.=
1.2 contradicts the statements in Section 8.2.2 you referenced. Section 5.1=
.2 explicitly states that &quot;reserved&quot; streams do not count toward=
=C2=A0SETTINGS_MAX_CONCURRENT_STREAM<wbr>S=C2=A0[5].</div><div><br></div><d=
iv>[5]=C2=A0<a href=3D"https://tools.ietf.org/html/rfc7540#section-5.1.2">h=
ttps://tools.ietf.org/html/rfc7540#section-5.1.2</a></div><div>&gt;=C2=A0<s=
pan style=3D"color:rgb(0,0,0);font-size:13.333333015441895px">Streams that =
are in the &quot;open&quot; state or in either of the &quot;half-</span><sp=
an style=3D"color:rgb(0,0,0);font-size:13.333333015441895px">closed&quot; s=
tates count toward the maximum number of streams that an=C2=A0</span><span =
style=3D"color:rgb(0,0,0);font-size:13.333333015441895px">endpoint is permi=
tted to open.  Streams in any of these three states c</span><span style=3D"=
color:rgb(0,0,0);font-size:13.333333015441895px">ount toward the limit adve=
rtised in the=C2=A0</span><span style=3D"color:rgb(0,0,0);font-size:13.3333=
33015441895px">SETTINGS_MAX_CONCURRENT_STREAMS setting.  Streams in either =
of the=C2=A0</span><span style=3D"color:rgb(0,0,0);font-size:13.33333301544=
1895px">&quot;reserved&quot; states do not count toward the stream limit.</=
span></div></div><div><br></div><div>=C2=A0</div><blockquote class=3D"gmail=
_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left=
-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir=
=3D"ltr"><div class=3D"gmail_extra"><div class=3D"gmail_quote"><div></div><=
div>Any thoughts on limiting the stream priority?</div><span class=3D"gmail=
-"><div>=C2=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0=
px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);borde=
r-left-style:solid;padding-left:1ex"><div style=3D"word-wrap:break-word"><d=
iv><br></div><div>&gt; A client can use the SETTINGS_MAX_CONCURRENT_STREAM<=
wbr>S setting to limit</div><div>&gt; the number of responses that can be c=
oncurrently pushed by a server.</div><div>&gt; Advertising a SETTINGS_MAX_C=
ONCURRENT_STREAM<wbr>S value of zero disables</div><div>&gt; server push by=
 preventing the server from creating the necessary</div><div>&gt; streams.=
=C2=A0 This does not prohibit a server from sending PUSH_PROMISE</div><div>=
&gt; frames; clients need to reset any promised streams that are not</div><=
div>&gt; wanted.</div><span class=3D"gmail-m_-6580602349559907428HOEnZb"><f=
ont color=3D"#888888"><div><br></div><div>Cory</div><br></font></span></div=
></blockquote></span></div><br></div></div>
</blockquote></div><br></div></div>

--f403045ea47a7c758705464fedfe--


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Tue Jan 17 12:18:49 2017
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 B2ABA129480 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 17 Jan 2017 12:18:49 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.219
X-Spam-Level:
X-Spam-Status: No, score=-10.219 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-3.199, 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 fzGmywwYdZMt for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 17 Jan 2017 12:18:48 -0800 (PST)
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 56FE712945F for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 17 Jan 2017 12:18:48 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cTaBi-0006XS-61 for ietf-http-wg-dist@listhub.w3.org; Tue, 17 Jan 2017 20:17:02 +0000
Resent-Date: Tue, 17 Jan 2017 20:17:02 +0000
Resent-Message-Id: <E1cTaBi-0006XS-61@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <scott.k.mitch1@gmail.com>) id 1cTaBe-0006Ud-Tk for ietf-http-wg@listhub.w3.org; Tue, 17 Jan 2017 20:16:58 +0000
Received: from mail-lf0-f54.google.com ([209.85.215.54]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <scott.k.mitch1@gmail.com>) id 1cTaBY-00030I-G3 for ietf-http-wg@w3.org; Tue, 17 Jan 2017 20:16:53 +0000
Received: by mail-lf0-f54.google.com with SMTP id n124so48768174lfd.2 for <ietf-http-wg@w3.org>; Tue, 17 Jan 2017 12:16:32 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=P/FeikQTfnP3+LsGR01O6EfdyJl7WNGMpoIldA9i7Z4=; b=qwhjUS5nLKDwvmOowb01qPUxLwW7ngFYq83mism8kzqjHUmX8aSwBe7W8Vj2rx2PYv NzMnOpXmPHFeuXX5BiduP6zm1hlzMatAZTC6WloiJKS1bGcJ4RuFdaJ6ovcEo0OY7z0b J/mRUQObumq/8EJjHxB1VPHzX7g65g/dBEbevlKL3RTPCYEKBmry2CDf5OZa5f/rcn4j /eGmQTkWZ29DcmjsjidJ+my6HBO7zlwAzMQaMInerjiRzBllXPP3RiKqVNLPP2iBk/i+ q4SKLHlSm7vYr3CjP6zhedW2ud29EhF0ordgbnebkJR88oORtmSHpXflOKS0QPzZev/X ezCA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=P/FeikQTfnP3+LsGR01O6EfdyJl7WNGMpoIldA9i7Z4=; b=TJik9ouQKap5lJMd5RdlZrGLrNeJb2BPi6eIoDWKtBRM+w968ltPL79lt7NTlY74PN 7V13cbybd2UHqtu5GAK8yMGyRNGMY2BJAxN/NZFF7k28mJzcZfFYuhnd9Vn6dZJIWy5L gKAy1xCQ+ArQR9glTTNNzmP+gkfjU8BR6UAIcMTT3Wg+29VvT5nrY6Q4pbAO2+Ej7jOq 3ugbRrQojbdCNoPW4XhiMM7pkEBr8tu8k50lIbjn1z1I4iyDiOMPQ0VdvLH6r7wgWWj2 9jPICv7AQie/YLsCJUCpXjPHSD2T90nlIxE1AV+EawUdys1eFIlMg81wn6SgGkbRHrZl dn2w==
X-Gm-Message-State: AIkVDXJcum+SpKvt07XnsEJdMPkWmiVt1HlgcP4Q732mkPp8nHcKtuJpALgbxefCzKKisSfvB7/wF18ahdERJA==
X-Received: by 10.25.34.196 with SMTP id i187mr15072394lfi.176.1484684185603; Tue, 17 Jan 2017 12:16:25 -0800 (PST)
MIME-Version: 1.0
Received: by 10.25.18.200 with HTTP; Tue, 17 Jan 2017 12:16:24 -0800 (PST)
In-Reply-To: <CACweHNC6ZCoYirW10hJFnMZAa+C5HWwDqosnoO9J0ADAWEu0WA@mail.gmail.com>
References: <CAFn2buAYWHQSWhhoKZ2GKbqXR1A+tScjkAwZmOuQ9gV9jMp2bA@mail.gmail.com> <CAGZNdJWe0Y=M_SWmgYabKbWZwPEuJdw67Km8+UtR4oUtZuXA5A@mail.gmail.com> <2BC01E49-91A1-43A7-AFD0-5A34F2689428@lukasa.co.uk> <CAFn2buC7vM1Ff13A305-2bLBLRzLVaURufGCDrpm_rs82jwkwQ@mail.gmail.com> <08A9D76A-CD55-4390-8DED-61210D1A67DB@lukasa.co.uk> <CAFn2buD8GORgdpACbuc60RmkeL+yBcb-RZSwwGjTKugWeeNUSQ@mail.gmail.com> <CACweHNC6ZCoYirW10hJFnMZAa+C5HWwDqosnoO9J0ADAWEu0WA@mail.gmail.com>
From: Scott Mitchell <scott.k.mitch1@gmail.com>
Date: Tue, 17 Jan 2017 12:16:24 -0800
Message-ID: <CAFn2buD_AMHQKWadMhTN0abCFHWdWHXA1V-29H=dtsJGswd51Q@mail.gmail.com>
To: Matthew Kerwin <matthew@kerwin.net.au>
Cc: Cory Benfield <cory@lukasa.co.uk>,  Benedikt Christoph Wolters <benedikt.wolters@rwth-aachen.de>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary=001a113a9ea07c936205464ff902
Received-SPF: pass client-ip=209.85.215.54; envelope-from=scott.k.mitch1@gmail.com; helo=mail-lf0-f54.google.com
X-W3C-Hub-Spam-Status: No, score=-3.4
X-W3C-Hub-Spam-Report: AWL=-0.345, BAYES_05=-0.5, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1cTaBY-00030I-G3 d87234644c726c8c06b571483c259e61
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Stream State and PRIORITY Frames
Archived-At: <http://www.w3.org/mid/CAFn2buD_AMHQKWadMhTN0abCFHWdWHXA1V-29H=dtsJGswd51Q@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33310
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>

--001a113a9ea07c936205464ff902
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On Tue, Jan 17, 2017 at 11:26 AM, Matthew Kerwin <matthew@kerwin.net.au>
wrote:

>
>
> On 18 January 2017 at 04:35, Scott Mitchell <scott.k.mitch1@gmail.com>
> wrote:
>
>>
>>
>> Ahh yes I forgot about this. Thanks for reminding me.
>>
>> Any thoughts on limiting the stream priority?
>>
>>
>
> =E2=80=8BIt's a hint. If you run out of resources to maintain it, discard=
 it?
>

Of course. I was curious if anyone can share successful policies/heuristics
they have employed to limit the number of streams in this state, but still
try to honor a client's desire to prioritize streams. For example a policy
like "discard lowest stream ID" may be limiting if the client initially
creates the most important QoS streams upfront, but then at a later time
exceeds the peer's implementation defined limit on priority streams.


>
> Cheers
> --
>   Matthew Kerwin
>   http://matthew.kerwin.net.au/
>

--001a113a9ea07c936205464ff902
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div class=3D"gmail_quo=
te">On Tue, Jan 17, 2017 at 11:26 AM, Matthew Kerwin <span dir=3D"ltr">&lt;=
<a href=3D"mailto:matthew@kerwin.net.au" target=3D"_blank">matthew@kerwin.n=
et.au</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"m=
argin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir=3D"l=
tr"><div style=3D"font-family:georgia,serif;color:#073763"><br></div><div c=
lass=3D"gmail_extra"><br><div class=3D"gmail_quote"><span class=3D"">On 18 =
January 2017 at 04:35, Scott Mitchell <span dir=3D"ltr">&lt;<a href=3D"mail=
to:scott.k.mitch1@gmail.com" target=3D"_blank">scott.k.mitch1@gmail.com</a>=
&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0=
 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr"><div =
class=3D"gmail_extra"><div class=3D"gmail_quote"><span><br><div><br></div><=
/span><div>Ahh yes I forgot about this. Thanks for reminding me.</div><div>=
<br></div><div>Any thoughts on limiting the stream priority?</div><span><di=
v>=C2=A0</div></span></div></div></div></blockquote><div><br></div></span><=
div style=3D"font-family:georgia,serif;color:rgb(7,55,99)">=E2=80=8BIt&#39;=
s a hint. If you run out of resources to maintain it, discard it?</div></di=
v></div></div></blockquote><div><br></div><div>Of course. I was curious if =
anyone can share successful policies/heuristics they have employed to limit=
 the number of streams in this state, but still try to honor a client&#39;s=
 desire to prioritize streams. For example a policy like &quot;discard lowe=
st stream ID&quot; may be limiting if the client initially creates the most=
 important QoS streams upfront, but then at a later time exceeds the peer&#=
39;s implementation defined limit on priority streams.</div><div>=C2=A0</di=
v><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:=
1px #ccc solid;padding-left:1ex"><div dir=3D"ltr"><div class=3D"gmail_extra=
"><div class=3D"gmail_quote"><div style=3D"font-family:georgia,serif;color:=
rgb(7,55,99)"><br></div><div style=3D"font-family:georgia,serif;color:rgb(7=
,55,99)">Cheers</div></div><span class=3D"HOEnZb"><font color=3D"#888888">-=
- <br><div class=3D"m_7433536480558828858gmail_signature" data-smartmail=3D=
"gmail_signature"><div dir=3D"ltr">=C2=A0 Matthew Kerwin<br>=C2=A0 <a href=
=3D"http://matthew.kerwin.net.au/" target=3D"_blank">http://matthew.kerwin.=
net.au/</a></div></div>
</font></span></div></div>
</blockquote></div><br></div></div>

--001a113a9ea07c936205464ff902--


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Tue Jan 17 14:31:15 2017
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 1EB751294D3 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 17 Jan 2017 14:31:15 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.72
X-Spam-Level:
X-Spam-Status: No, score=-9.72 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, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, 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 6rtKoz4VsYcw for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 17 Jan 2017 14:31:13 -0800 (PST)
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 DCADE1294A1 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 17 Jan 2017 14:31:13 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cTcES-0000JW-Sz for ietf-http-wg-dist@listhub.w3.org; Tue, 17 Jan 2017 22:28:00 +0000
Resent-Date: Tue, 17 Jan 2017 22:28:00 +0000
Resent-Message-Id: <E1cTcES-0000JW-Sz@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <martin.thomson@gmail.com>) id 1cTcEP-0000IY-9A for ietf-http-wg@listhub.w3.org; Tue, 17 Jan 2017 22:27:57 +0000
Received: from mail-qk0-f169.google.com ([209.85.220.169]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <martin.thomson@gmail.com>) id 1cTcEJ-0008A6-Ej for ietf-http-wg@w3.org; Tue, 17 Jan 2017 22:27:52 +0000
Received: by mail-qk0-f169.google.com with SMTP id 11so123339482qkl.3 for <ietf-http-wg@w3.org>; Tue, 17 Jan 2017 14:27:30 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=LZoR+z2Gtb0tnZfYvGqy3S8iwjEAwgdGE4w8yqUD41s=; b=lD5hjxcaxPZoVCvznP9LMwnULoX0yi7WK3N/gHG8iZisJAhq6QElrb3aD7y+SFSI87 LZ56duI8aQ+6cjk+gmUPDsNvlmjdv5AWzRRCmUhtq8tz2JfOjtV9U9785fOONK0xjr2k gp0gip+lTr2aVa8SwGoXCm5yZhoHf+DzNCcwE0rdINHyVFUnIQacC3L7TJQ7nKG/8Ksa Fkf5fw3X3yznFXh/6wp8FjW9Xj7VBCG5btFIzhfXg2CfPaTOJRIcDcb61h58AGF/m68y bmc1AcYRI3B8N8MxLTALujsN4kW56GrU6qUPWfrCkA27JPvh7Wt5v07/n7pEGxqTP0lN OSuQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=LZoR+z2Gtb0tnZfYvGqy3S8iwjEAwgdGE4w8yqUD41s=; b=nXroHg2AOe9g0kQ6TrVEEnbe7wmzKk9c0OJrzx0ehpWQnN0QAKED3LzZwmhP77BL8S oNtu39gubgjmOyLIY3PBXeaaYBAvLr9ebEeKqSWQoDaFAKtr2AfO+8kfGNXqpiU7CGAj bTI2w3uJkxgDw+2+K4ymgPsLK5LuOyvm7M3GPa5mvmVJDiYtws5yFtoHOm9ztQalpD/f KYDcnTcq1z1Dzxbd3Xk6YZZNweQhthbXJA8GXsVgOg40G/qaaqg22wV7aPyKyJBaC5qB 6A/FyuCjr3nbodNE1tn1bzZsIY350CG8F7YhAV939Mr9+Se9l8wC8oejq0Nmjqef4Gze ecJg==
X-Gm-Message-State: AIkVDXJw/K/0PpCuElMShgFkIyWhXrHtMXghRn6/OS8cphN6hdEeorzblWkHoifMq08Q44P98WQoDhuNTRRh6A==
X-Received: by 10.55.164.85 with SMTP id n82mr36773738qke.316.1484692045333; Tue, 17 Jan 2017 14:27:25 -0800 (PST)
MIME-Version: 1.0
Received: by 10.140.19.112 with HTTP; Tue, 17 Jan 2017 14:27:24 -0800 (PST)
In-Reply-To: <CAPyZ6=Kh3n+RJi=RqgFBojgRDpfJ=nbr0i4kvO20ET0Kt7UA8Q@mail.gmail.com>
References: <CAFn2buAYWHQSWhhoKZ2GKbqXR1A+tScjkAwZmOuQ9gV9jMp2bA@mail.gmail.com> <CAPyZ6=Kh3n+RJi=RqgFBojgRDpfJ=nbr0i4kvO20ET0Kt7UA8Q@mail.gmail.com>
From: Martin Thomson <martin.thomson@gmail.com>
Date: Wed, 18 Jan 2017 11:27:24 +1300
Message-ID: <CABkgnnWmPdDXVS+CvmChRjyqkJooSKgy6KdUdN+9nGzOyJazhg@mail.gmail.com>
To: Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>
Cc: Scott Mitchell <scott.k.mitch1@gmail.com>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: text/plain; charset=UTF-8
Received-SPF: pass client-ip=209.85.220.169; envelope-from=martin.thomson@gmail.com; helo=mail-qk0-f169.google.com
X-W3C-Hub-Spam-Status: No, score=-5.8
X-W3C-Hub-Spam-Report: AWL=-0.230, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1cTcEJ-0008A6-Ej 33ee9772a35f93d1f508d61e77163258
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Stream State and PRIORITY Frames
Archived-At: <http://www.w3.org/mid/CABkgnnWmPdDXVS+CvmChRjyqkJooSKgy6KdUdN+9nGzOyJazhg@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33311
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 18 January 2017 at 01:37, Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> wrote:
> If my understanding is correct, this only refers to the new stream ID used
> by HEADERS, and PUSH_PROMISE frames which open or reserve streams.  The
> example text following that statement uses HEADERS which opens new stream.
> PRIORITY frame does not change stream state, and there is no reason to close
> all unused streams lower than bearing stream ID.  That said, I agree that
> this is not crystal clear in the document.  In practice, this is probably
> rather rare case.

This is, I think, the expectation.

I think that we probably want to clarify the point by explicitly
saying that PRIORITY doesn't affect stream states.  We say that it can
be sent in any state, but we don't also mention that important point.
Do people here agree that an erratum on this point is appropriate
here?


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Tue Jan 17 14:46:49 2017
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 8F2E01294A1 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 17 Jan 2017 14:46:49 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.508
X-Spam-Level:
X-Spam-Status: No, score=-9.508 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, DKIM_SIGNED=0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_DKIM_INVALID=0.01] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=fail (2048-bit key) reason="fail (body has been altered)" 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 RrE8lCzXjRBj for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 17 Jan 2017 14:46:48 -0800 (PST)
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 D17B61293F3 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 17 Jan 2017 14:46:47 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cTcU9-0002oX-JO for ietf-http-wg-dist@listhub.w3.org; Tue, 17 Jan 2017 22:44:13 +0000
Resent-Date: Tue, 17 Jan 2017 22:44:13 +0000
Resent-Message-Id: <E1cTcU9-0002oX-JO@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <scott.k.mitch1@gmail.com>) id 1cTcU6-0002nV-AS for ietf-http-wg@listhub.w3.org; Tue, 17 Jan 2017 22:44:10 +0000
Received: from mail-lf0-f41.google.com ([209.85.215.41]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <scott.k.mitch1@gmail.com>) id 1cTcTx-00009d-Ss for ietf-http-wg@w3.org; Tue, 17 Jan 2017 22:44:05 +0000
Received: by mail-lf0-f41.google.com with SMTP id n124so51168119lfd.2 for <ietf-http-wg@w3.org>; Tue, 17 Jan 2017 14:43:41 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=oBe9Iu3IHz8bEnenOy81zkqE6g5uqQqm4p19nOiyYaY=; b=T4yr9ZstHjnFPASuOso72mdPYcFBsF/xP1BzDuiENG0LbAvH4XllUClbq137nUYOWI YoOPxkXroz2YSdjArgJUOFJDpxgQeuXMFwIIoHyzWN9a92xNzVyXLXss7eOlOBcAGflu 5a9Go8RrBMqzJX3xYppXiS+tssuvRMoWNNS8o2hrAEpQWFV+uDz3vbzirYU39yrkzhDz 8kOca3iGbkyvFr6mMzbonsTyeqYMkFt8mm+KOub25Sj3b/zTnTF4RNryWK9fnsbi85Mm oREitm6oN1Qskg/s4W6R8FwhLCs4udATXjAELamNcpCA7ymAvknTRUrNf/JIbXw2p3sS pitg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=oBe9Iu3IHz8bEnenOy81zkqE6g5uqQqm4p19nOiyYaY=; b=DtW5cUkfk9nfvRxPoPi2jqjo06C70vDdZw3FavAvhOnpwp2GjBuS5u6RC0jI6zhIJM YLCaRLyh7z/IBRwEBlqWBn3HZMVpwMIcaR1ChSgYv/rdFAkC7/kw3Aa/Cy1r4IE5+9r3 /pOvTKqBTA2vNkmS0svoXfFTQZIR23JFkX1VLo3A0qyD9a3yTh8TEw2cFv7dT9wYLgW/ OinElhN28qtNl9Vdspuah+wuEPZBXmvrvknr1I34A0BolGEgz6F/GiRvPprYQsS5XynI vZ5kX03lKZY36NzTMpJpIErLddP/Tcz59I9ItGR6GtJPK5YX4k+U9JUGgusoS5FGTQAg eeZA==
X-Gm-Message-State: AIkVDXLjV2M6QEBHWotvjNjheWBk5l1bkbxQ1gPC7OgDvjPTBY7r2920ccJFWN1H2fAEq7y2Q/VXuD7bVr2l7A==
X-Received: by 10.46.76.1 with SMTP id z1mr16144lja.48.1484693014866; Tue, 17 Jan 2017 14:43:34 -0800 (PST)
MIME-Version: 1.0
Received: by 10.25.18.200 with HTTP; Tue, 17 Jan 2017 14:43:34 -0800 (PST)
In-Reply-To: <CABkgnnWmPdDXVS+CvmChRjyqkJooSKgy6KdUdN+9nGzOyJazhg@mail.gmail.com>
References: <CAFn2buAYWHQSWhhoKZ2GKbqXR1A+tScjkAwZmOuQ9gV9jMp2bA@mail.gmail.com> <CAPyZ6=Kh3n+RJi=RqgFBojgRDpfJ=nbr0i4kvO20ET0Kt7UA8Q@mail.gmail.com> <CABkgnnWmPdDXVS+CvmChRjyqkJooSKgy6KdUdN+9nGzOyJazhg@mail.gmail.com>
From: Scott Mitchell <scott.k.mitch1@gmail.com>
Date: Tue, 17 Jan 2017 14:43:34 -0800
Message-ID: <CAFn2buDrHtB1z16iTWE945bU_qhxTypr05A=5B_nrQoyQijyOw@mail.gmail.com>
To: Martin Thomson <martin.thomson@gmail.com>
Cc: Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary=f403045ea6dac07161054652075e
Received-SPF: pass client-ip=209.85.215.41; envelope-from=scott.k.mitch1@gmail.com; helo=mail-lf0-f41.google.com
X-W3C-Hub-Spam-Status: No, score=-3.8
X-W3C-Hub-Spam-Report: AWL=0.174, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1cTcTx-00009d-Ss cdd0ef3e730ba9a5eaafcfc6d0f7a9d2
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Stream State and PRIORITY Frames
Archived-At: <http://www.w3.org/mid/CAFn2buDrHtB1z16iTWE945bU_qhxTypr05A=5B_nrQoyQijyOw@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33312
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>

--f403045ea6dac07161054652075e
Content-Type: text/plain; charset=UTF-8

>From my perspective I would like to see two clarifications:

1. It is clear to me that PRIORITY doesn't impact state. However Section
5.1.1 states "first use of a new stream identifier" which makes no
reference to stream state. If stream state is important/implied here better
to be specific about it. I don't think the one-off example below this text
is sufficient to convey the intended implications of this statement.

2. Section 5.1.2 states "Streams in either of the 'reserved' states do not
count toward the stream limit." which seems to conflict with section 8.2.2 "A
client can use the SETTINGS_MAX_CONCURRENT_STREAMS setting to limit the
number of responses that can be concurrently pushed by a server.". These
two statements appear to contradict each other. Since
SETTINGS_MAX_CONCURRENT_STREAMS
is really the only mechanism to limit resources due to server push I'm
assuming section 5.1.2 is overly restrictive.


On Tue, Jan 17, 2017 at 2:27 PM, Martin Thomson <martin.thomson@gmail.com>
wrote:

> On 18 January 2017 at 01:37, Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>
> wrote:
> > If my understanding is correct, this only refers to the new stream ID
> used
> > by HEADERS, and PUSH_PROMISE frames which open or reserve streams.  The
> > example text following that statement uses HEADERS which opens new
> stream.
> > PRIORITY frame does not change stream state, and there is no reason to
> close
> > all unused streams lower than bearing stream ID.  That said, I agree that
> > this is not crystal clear in the document.  In practice, this is probably
> > rather rare case.
>
> This is, I think, the expectation.
>
> I think that we probably want to clarify the point by explicitly
> saying that PRIORITY doesn't affect stream states.  We say that it can
> be sent in any state, but we don't also mention that important point.
> Do people here agree that an erratum on this point is appropriate
> here?
>

--f403045ea6dac07161054652075e
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">From my perspective I would like to see two clarifications=
:<div><br></div><div>1. It is clear to me that PRIORITY doesn&#39;t impact =
state. However Section 5.1.1 states &quot;<font color=3D"#000000" size=3D"2=
">first use of a new stream identifier&quot; which makes no reference to st=
ream state. If stream state is important/implied here better to be specific=
 about it. I don&#39;t think the one-off example below this text is suffici=
ent to convey the intended implications of this statement.</font><br></div>=
<div><span style=3D"color:rgb(0,0,0);font-size:13.333333015441895px"><br></=
span></div><div><span style=3D"color:rgb(0,0,0);font-size:13.33333301544189=
5px">2. Section 5.1.2 states &quot;</span><span style=3D"color:rgb(0,0,0);f=
ont-size:13.333333015441895px">Streams in either of the &#39;</span><span s=
tyle=3D"color:rgb(0,0,0);font-size:13.333333015441895px">reserved&#39; stat=
es do not count toward the stream limit.&quot; which seems to conflict with=
 section 8.2.2 &quot;</span><span style=3D"color:rgb(0,0,0);font-size:13.33=
3333015441895px">A client can use the SETTINGS_MAX_CONCURRENT_STREAMS setti=
ng to limit=C2=A0</span><span style=3D"color:rgb(0,0,0);font-size:13.333333=
015441895px">the number of responses that can be concurrently pushed by a s=
erver.</span><span style=3D"color:rgb(0,0,0);font-size:13.333333015441895px=
">&quot;. These two statements appear to contradict each other. Since=C2=A0=
</span><font color=3D"#000000" size=3D"2">SETTINGS_MAX_CONCURRENT_STREAMS i=
s really the only=C2=A0mechanism to limit resources due to server push I&#3=
9;m assuming=C2=A0section 5.1.2 is overly restrictive.</font></div><div><fo=
nt color=3D"#000000" size=3D"2"><br></font></div></div><div class=3D"gmail_=
extra"><br><div class=3D"gmail_quote">On Tue, Jan 17, 2017 at 2:27 PM, Mart=
in Thomson <span dir=3D"ltr">&lt;<a href=3D"mailto:martin.thomson@gmail.com=
" target=3D"_blank">martin.thomson@gmail.com</a>&gt;</span> wrote:<br><bloc=
kquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #cc=
c solid;padding-left:1ex"><span class=3D"">On 18 January 2017 at 01:37, Tat=
suhiro Tsujikawa &lt;<a href=3D"mailto:tatsuhiro.t@gmail.com">tatsuhiro.t@g=
mail.com</a>&gt; wrote:<br>
&gt; If my understanding is correct, this only refers to the new stream ID =
used<br>
&gt; by HEADERS, and PUSH_PROMISE frames which open or reserve streams.=C2=
=A0 The<br>
&gt; example text following that statement uses HEADERS which opens new str=
eam.<br>
&gt; PRIORITY frame does not change stream state, and there is no reason to=
 close<br>
&gt; all unused streams lower than bearing stream ID.=C2=A0 That said, I ag=
ree that<br>
&gt; this is not crystal clear in the document.=C2=A0 In practice, this is =
probably<br>
&gt; rather rare case.<br>
<br>
</span>This is, I think, the expectation.<br>
<br>
I think that we probably want to clarify the point by explicitly<br>
saying that PRIORITY doesn&#39;t affect stream states.=C2=A0 We say that it=
 can<br>
be sent in any state, but we don&#39;t also mention that important point.<b=
r>
Do people here agree that an erratum on this point is appropriate<br>
here?<br>
</blockquote></div><br></div>

--f403045ea6dac07161054652075e--


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Tue Jan 17 16:37:45 2017
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 B015E1293DC for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 17 Jan 2017 16:37:45 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.22
X-Spam-Level:
X-Spam-Status: No, score=-10.22 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=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=daurnimator.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 WfiesBzsQ_qt for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 17 Jan 2017 16:37:44 -0800 (PST)
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 4AAC8127A90 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 17 Jan 2017 16:37:44 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cTeDJ-0003It-TE for ietf-http-wg-dist@listhub.w3.org; Wed, 18 Jan 2017 00:34:57 +0000
Resent-Date: Wed, 18 Jan 2017 00:34:57 +0000
Resent-Message-Id: <E1cTeDJ-0003It-TE@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <quae@daurnimator.com>) id 1cTeDF-0003I7-5v for ietf-http-wg@listhub.w3.org; Wed, 18 Jan 2017 00:34:53 +0000
Received: from mail-lf0-f51.google.com ([209.85.215.51]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <quae@daurnimator.com>) id 1cTeD9-0000K0-5x for ietf-http-wg@w3.org; Wed, 18 Jan 2017 00:34:47 +0000
Received: by mail-lf0-f51.google.com with SMTP id k86so121088411lfi.0 for <ietf-http-wg@w3.org>; Tue, 17 Jan 2017 16:34:26 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=daurnimator.com; s=daurnimator; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=idJ6VLqCyJm4ZZLMd7IwThNmBakIKcZKdYaiCCnB2VE=; b=FsUU8gmJ3NAqsTCjrC/KCHXRiTeEfCX49cVaDPfbMKyw+YhAclUHVHy/TQpiRUw0Oj 1RcAIojtNJeKvF6JsIYej5C423spjrAdaR114YYZEPnhkGBSsCNFhH8qnEfWWde8F7bU AsgaQcNuttCSfyRyVGhJi1vWoRCfmpAUL2fz8=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=idJ6VLqCyJm4ZZLMd7IwThNmBakIKcZKdYaiCCnB2VE=; b=c3409vQ2CB8ivTqPh89aDt/MTxNREXourcZkqqyEhOQ0HYjPz73IDvw95yErjQznT+ z/a7fTeB180pi6GoFhaNOChAaRf4Ydy9QSI9iPJqaDJdA0PmzvBLKGySr2jhuYPn0y7J EqB5Wcl/n7UBc41x/xtzY6p9Yj0tIdgkZ2kvrmn7ugV0DNmP/eRZor+W30gKbpmCZrsO rc5SVoEPFKLydeRbCMXqXfXOQJFCV4FKVrQOXEZcg+Z5LyHqVyJJU/XEF/eHxXUYkIQJ /CHYk238XfBlnRNFG4jew2X3sybx0B8+X/TU+1SG3gJmRSe6r05FJAIx6Q+Ytrx50lQi kI9A==
X-Gm-Message-State: AIkVDXKRA7OHNK3lhf5soOdhDGWVDgjMGXgjVcQa4/180jbXBHrzgPd09QMBP6ZyjhSFnw==
X-Received: by 10.25.67.84 with SMTP id m20mr138667lfj.106.1484699660023; Tue, 17 Jan 2017 16:34:20 -0800 (PST)
Received: from mail-lf0-f44.google.com (mail-lf0-f44.google.com. [209.85.215.44]) by smtp.gmail.com with ESMTPSA id r27sm1921982ljd.14.2017.01.17.16.34.18 for <ietf-http-wg@w3.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Jan 2017 16:34:18 -0800 (PST)
Received: by mail-lf0-f44.google.com with SMTP id z134so117815089lff.3 for <ietf-http-wg@w3.org>; Tue, 17 Jan 2017 16:34:18 -0800 (PST)
X-Received: by 10.25.242.79 with SMTP id d15mr143364lfk.22.1484699658324; Tue, 17 Jan 2017 16:34:18 -0800 (PST)
MIME-Version: 1.0
Received: by 10.25.156.83 with HTTP; Tue, 17 Jan 2017 16:34:17 -0800 (PST)
In-Reply-To: <CABkgnnWmPdDXVS+CvmChRjyqkJooSKgy6KdUdN+9nGzOyJazhg@mail.gmail.com>
References: <CAFn2buAYWHQSWhhoKZ2GKbqXR1A+tScjkAwZmOuQ9gV9jMp2bA@mail.gmail.com> <CAPyZ6=Kh3n+RJi=RqgFBojgRDpfJ=nbr0i4kvO20ET0Kt7UA8Q@mail.gmail.com> <CABkgnnWmPdDXVS+CvmChRjyqkJooSKgy6KdUdN+9nGzOyJazhg@mail.gmail.com>
From: Daurnimator <quae@daurnimator.com>
Date: Wed, 18 Jan 2017 11:34:17 +1100
X-Gmail-Original-Message-ID: <CAEnbY+chsRPsR1HKABmr9n8XgvAMEqUiTrdBqeK26ptwDc3B4w@mail.gmail.com>
Message-ID: <CAEnbY+chsRPsR1HKABmr9n8XgvAMEqUiTrdBqeK26ptwDc3B4w@mail.gmail.com>
To: Martin Thomson <martin.thomson@gmail.com>
Cc: Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>, Scott Mitchell <scott.k.mitch1@gmail.com>,  HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: text/plain; charset=UTF-8
Received-SPF: none client-ip=209.85.215.51; envelope-from=quae@daurnimator.com; helo=mail-lf0-f51.google.com
X-W3C-Hub-Spam-Status: No, score=-5.3
X-W3C-Hub-Spam-Report: AWL=-1.302, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cTeD9-0000K0-5x e5b8f38d4883e79f6f84e2e932deb90d
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Stream State and PRIORITY Frames
Archived-At: <http://www.w3.org/mid/CAEnbY+chsRPsR1HKABmr9n8XgvAMEqUiTrdBqeK26ptwDc3B4w@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33313
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 18 January 2017 at 09:27, Martin Thomson <martin.thomson@gmail.com> wrote:
> On 18 January 2017 at 01:37, Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> wrote:
>> If my understanding is correct, this only refers to the new stream ID used
>> by HEADERS, and PUSH_PROMISE frames which open or reserve streams.  The
>> example text following that statement uses HEADERS which opens new stream.
>> PRIORITY frame does not change stream state, and there is no reason to close
>> all unused streams lower than bearing stream ID.  That said, I agree that
>> this is not crystal clear in the document.  In practice, this is probably
>> rather rare case.
>
> This is, I think, the expectation.
>
> I think that we probably want to clarify the point by explicitly
> saying that PRIORITY doesn't affect stream states.  We say that it can
> be sent in any state, but we don't also mention that important point.
> Do people here agree that an erratum on this point is appropriate
> here?

Yes. I recently ran into this issue myself
https://github.com/daurnimator/lua-http/issues/63


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Tue Jan 17 22:14:45 2017
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 91E8C128B44 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 17 Jan 2017 22:14:45 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.719
X-Spam-Level:
X-Spam-Status: No, score=-9.719 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=chromium.org
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 UZAGqYHkT68u for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 17 Jan 2017 22:14:43 -0800 (PST)
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 CABCA129458 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 17 Jan 2017 22:14:43 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cTjSm-0002Tz-W8 for ietf-http-wg-dist@listhub.w3.org; Wed, 18 Jan 2017 06:11:17 +0000
Resent-Date: Wed, 18 Jan 2017 06:11:16 +0000
Resent-Message-Id: <E1cTjSm-0002Tz-W8@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <tombergan@chromium.org>) id 1cTjSi-0002T9-GE for ietf-http-wg@listhub.w3.org; Wed, 18 Jan 2017 06:11:12 +0000
Received: from mail-wm0-f44.google.com ([74.125.82.44]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <tombergan@chromium.org>) id 1cTjSc-0005Da-95 for ietf-http-wg@w3.org; Wed, 18 Jan 2017 06:11:07 +0000
Received: by mail-wm0-f44.google.com with SMTP id c206so9012559wme.0 for <ietf-http-wg@w3.org>; Tue, 17 Jan 2017 22:10:45 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=E1JKP2FRKSvcwK5byVYwog/PaMVEcsjpMZKgV/9VBpg=; b=Z43FvIeK3roQTz/WY1VPGD4x83UgCPu3iQk6WRp47j43WMujRdSA+UnycWkipJK4Fy WGx4GHBDE9vRjB5b41cFewGqYKtmV7VRl453C1XeBY2Y78Ay9e8SiE51MIXXjfAtoiSU 04NpgejfDH8tEBj23B1mxzKK5+bGglhJGTFvM=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=E1JKP2FRKSvcwK5byVYwog/PaMVEcsjpMZKgV/9VBpg=; b=B6ArA+hyBx28qlLk79x2pnkv/k2/DJ6e0hNnZ/jAYyMlzCUpPY6TTqzUnHr+HIB95r nRMzlDMx7dVfYH5z/RuxW+MtmVRhs8aduHvGliPJCsbQuuSOpp//VrSx5JqfzB1fesDq GOEV8iKvY2cX07kt6MfJY067vAXLPelsvoM0Xo04wBewy4VmUIZULMJR6YNYqRWGr0YL T2CaSm2Szp4I47yrPlTr4/OhJOtEdGVRe9iu1z1Ds7hBHIlsLW8Ayh/lTjMjMLFka5BQ aYDxP9aaYr0aauKXQurUXGJYW1K6ACSRikA+UkloDpvcL8ywPoGfVMXdhHK6FZgnRtDZ KAwA==
X-Gm-Message-State: AIkVDXJtAg01eAOlWKd0kYE40ObzaL6zWOXBfCkKPPQT3ry2Etp6Zyc+m5QHh176VnvGsxo9
X-Received: by 10.223.138.188 with SMTP id y57mr1135023wry.191.1484719838818; Tue, 17 Jan 2017 22:10:38 -0800 (PST)
Received: from mail-wm0-f45.google.com (mail-wm0-f45.google.com. [74.125.82.45]) by smtp.gmail.com with ESMTPSA id c132sm37169156wme.21.2017.01.17.22.10.37 for <ietf-http-wg@w3.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Jan 2017 22:10:38 -0800 (PST)
Received: by mail-wm0-f45.google.com with SMTP id r144so8957216wme.1 for <ietf-http-wg@w3.org>; Tue, 17 Jan 2017 22:10:37 -0800 (PST)
X-Received: by 10.223.136.85 with SMTP id e21mr1159669wre.28.1484719837329; Tue, 17 Jan 2017 22:10:37 -0800 (PST)
MIME-Version: 1.0
Received: by 10.28.135.201 with HTTP; Tue, 17 Jan 2017 22:10:36 -0800 (PST)
In-Reply-To: <CAFn2buDrHtB1z16iTWE945bU_qhxTypr05A=5B_nrQoyQijyOw@mail.gmail.com>
References: <CAFn2buAYWHQSWhhoKZ2GKbqXR1A+tScjkAwZmOuQ9gV9jMp2bA@mail.gmail.com> <CAPyZ6=Kh3n+RJi=RqgFBojgRDpfJ=nbr0i4kvO20ET0Kt7UA8Q@mail.gmail.com> <CABkgnnWmPdDXVS+CvmChRjyqkJooSKgy6KdUdN+9nGzOyJazhg@mail.gmail.com> <CAFn2buDrHtB1z16iTWE945bU_qhxTypr05A=5B_nrQoyQijyOw@mail.gmail.com>
From: Tom Bergan <tombergan@chromium.org>
Date: Tue, 17 Jan 2017 22:10:36 -0800
X-Gmail-Original-Message-ID: <CA+3+x5HBQswdhFKKNFFHN+t5yaqNufSk_artC1iUwwOvCipZGQ@mail.gmail.com>
Message-ID: <CA+3+x5HBQswdhFKKNFFHN+t5yaqNufSk_artC1iUwwOvCipZGQ@mail.gmail.com>
To: Scott Mitchell <scott.k.mitch1@gmail.com>
Cc: Martin Thomson <martin.thomson@gmail.com>, Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>,  HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary=001a114925387f061a0546584698
Received-SPF: pass client-ip=74.125.82.44; envelope-from=tombergan@chromium.org; helo=mail-wm0-f44.google.com
X-W3C-Hub-Spam-Status: No, score=-3.5
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1cTjSc-0005Da-95 795d1af573cdb7ca528b30ddb61cdb9b
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Stream State and PRIORITY Frames
Archived-At: <http://www.w3.org/mid/CA+3+x5HBQswdhFKKNFFHN+t5yaqNufSk_artC1iUwwOvCipZGQ@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33314
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>

--001a114925387f061a0546584698
Content-Type: text/plain; charset=UTF-8

On Tue, Jan 17, 2017 at 2:43 PM, Scott Mitchell <scott.k.mitch1@gmail.com>
wrote:

> From my perspective I would like to see two clarifications:
>
> 1. It is clear to me that PRIORITY doesn't impact state. However Section
> 5.1.1 states "first use of a new stream identifier" which makes no
> reference to stream state. If stream state is important/implied here better
> to be specific about it. I don't think the one-off example below this text
> is sufficient to convey the intended implications of this statement.
>
> 2. Section 5.1.2 states "Streams in either of the 'reserved' states do
> not count toward the stream limit." which seems to conflict with section
> 8.2.2 "A client can use the SETTINGS_MAX_CONCURRENT_STREAMS setting to
> limit the number of responses that can be concurrently pushed by a server.".
> These two statements appear to contradict each other. Since
> SETTINGS_MAX_CONCURRENT_STREAMS is really the only mechanism to limit
> resources due to server push I'm assuming section 5.1.2 is overly
> restrictive.
>

This is surprising (to me, at least) but I don't believe there is a
contradiction. You can send an infinite number of PUSH_PROMISEs without
hitting SETTINGS_MAX_CONCURRENT_STREAMS. A pushed stream doesn't count
against the concurrent stream limit until you've sent the response HEADERS
on that pushed stream. See the related question I asked previously:
https://lists.w3.org/Archives/Public/ietf-http-wg/2016JulSep/0599.html


> On Tue, Jan 17, 2017 at 2:27 PM, Martin Thomson <martin.thomson@gmail.com>
> wrote:
>
>> On 18 January 2017 at 01:37, Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>
>> wrote:
>> > If my understanding is correct, this only refers to the new stream ID
>> used
>> > by HEADERS, and PUSH_PROMISE frames which open or reserve streams.  The
>> > example text following that statement uses HEADERS which opens new
>> stream.
>> > PRIORITY frame does not change stream state, and there is no reason to
>> close
>> > all unused streams lower than bearing stream ID.  That said, I agree
>> that
>> > this is not crystal clear in the document.  In practice, this is
>> probably
>> > rather rare case.
>>
>> This is, I think, the expectation.
>>
>> I think that we probably want to clarify the point by explicitly
>> saying that PRIORITY doesn't affect stream states.  We say that it can
>> be sent in any state, but we don't also mention that important point.
>> Do people here agree that an erratum on this point is appropriate
>> here?
>>
>
>

--001a114925387f061a0546584698
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_extra"><div class=3D"gmail_quote">On T=
ue, Jan 17, 2017 at 2:43 PM, Scott Mitchell <span dir=3D"ltr">&lt;<a href=
=3D"mailto:scott.k.mitch1@gmail.com" target=3D"_blank">scott.k.mitch1@gmail=
.com</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"ma=
rgin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:=
1ex"><div dir=3D"ltr">From my perspective I would like to see two clarifica=
tions:<div><br></div><div>1. It is clear to me that PRIORITY doesn&#39;t im=
pact state. However Section 5.1.1 states &quot;<font color=3D"#000000" size=
=3D"2">first use of a new stream identifier&quot; which makes no reference =
to stream state. If stream state is important/implied here better to be spe=
cific about it. I don&#39;t think the one-off example below this text is su=
fficient to convey the intended implications of this statement.</font><br><=
/div><div><span style=3D"color:rgb(0,0,0);font-size:13.3333px"><br></span><=
/div><div><span style=3D"color:rgb(0,0,0);font-size:13.3333px">2. Section 5=
.1.2 states &quot;</span><span style=3D"color:rgb(0,0,0);font-size:13.3333p=
x">Streams in either of the &#39;</span><span style=3D"color:rgb(0,0,0);fon=
t-size:13.3333px">reserved&#39; states do not count toward the stream limit=
.&quot; which seems to conflict with section 8.2.2 &quot;</span><span style=
=3D"color:rgb(0,0,0);font-size:13.3333px">A client can use the SETTINGS_MAX=
_CONCURRENT_<wbr>STREAMS setting to limit=C2=A0</span><span style=3D"color:=
rgb(0,0,0);font-size:13.3333px">the number of responses that can be concurr=
ently pushed by a server.</span><span style=3D"color:rgb(0,0,0);font-size:1=
3.3333px">&quot;. These two statements appear to contradict each other. Sin=
ce=C2=A0</span><font color=3D"#000000" size=3D"2">SETTINGS_MAX_CONCURRENT_<=
wbr>STREAMS is really the only=C2=A0mechanism to limit resources due to ser=
ver push I&#39;m assuming=C2=A0section 5.1.2 is overly restrictive.</font><=
/div></div></blockquote><div><br></div><div>This is surprising (to me, at l=
east) but I don&#39;t believe there is a contradiction. You can send an inf=
inite number of PUSH_PROMISEs without hitting=C2=A0<span style=3D"color:rgb=
(0,0,0)">SETTINGS_MAX_CONCURRENT_</span><wbr style=3D"color:rgb(0,0,0)"><sp=
an style=3D"color:rgb(0,0,0)">STREAMS. A pushed stream doesn&#39;t count ag=
ainst the concurrent stream limit until you&#39;ve sent the response HEADER=
S on that pushed stream. </span>See the related question I asked previously=
:</div><div><font color=3D"#000000"><a href=3D"https://lists.w3.org/Archive=
s/Public/ietf-http-wg/2016JulSep/0599.html">https://lists.w3.org/Archives/P=
ublic/ietf-http-wg/2016JulSep/0599.html</a></font><br></div><div>=C2=A0</di=
v><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;borde=
r-left:1px solid rgb(204,204,204);padding-left:1ex"><div class=3D"gmail-HOE=
nZb"><div class=3D"gmail-h5"><div class=3D"gmail_extra"><div class=3D"gmail=
_quote">On Tue, Jan 17, 2017 at 2:27 PM, Martin Thomson <span dir=3D"ltr">&=
lt;<a href=3D"mailto:martin.thomson@gmail.com" target=3D"_blank">martin.tho=
mson@gmail.com</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" s=
tyle=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);pad=
ding-left:1ex"><span>On 18 January 2017 at 01:37, Tatsuhiro Tsujikawa &lt;<=
a href=3D"mailto:tatsuhiro.t@gmail.com" target=3D"_blank">tatsuhiro.t@gmail=
.com</a>&gt; wrote:<br>
&gt; If my understanding is correct, this only refers to the new stream ID =
used<br>
&gt; by HEADERS, and PUSH_PROMISE frames which open or reserve streams.=C2=
=A0 The<br>
&gt; example text following that statement uses HEADERS which opens new str=
eam.<br>
&gt; PRIORITY frame does not change stream state, and there is no reason to=
 close<br>
&gt; all unused streams lower than bearing stream ID.=C2=A0 That said, I ag=
ree that<br>
&gt; this is not crystal clear in the document.=C2=A0 In practice, this is =
probably<br>
&gt; rather rare case.<br>
<br>
</span>This is, I think, the expectation.<br>
<br>
I think that we probably want to clarify the point by explicitly<br>
saying that PRIORITY doesn&#39;t affect stream states.=C2=A0 We say that it=
 can<br>
be sent in any state, but we don&#39;t also mention that important point.<b=
r>
Do people here agree that an erratum on this point is appropriate<br>
here?<br>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div></div>

--001a114925387f061a0546584698--


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Wed Jan 18 01:10:23 2017
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 C0FE61293E8 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 18 Jan 2017 01:10:23 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.62
X-Spam-Level:
X-Spam-Status: No, score=-9.62 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-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, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, 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=lukasa-co-uk.20150623.gappssmtp.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 SH8J0mmVU7Xs for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 18 Jan 2017 01:10:22 -0800 (PST)
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 9528A120727 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 18 Jan 2017 01:10:21 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cTmCq-0005Zz-W9 for ietf-http-wg-dist@listhub.w3.org; Wed, 18 Jan 2017 09:07:01 +0000
Resent-Date: Wed, 18 Jan 2017 09:07:00 +0000
Resent-Message-Id: <E1cTmCq-0005Zz-W9@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <cory@lukasa.co.uk>) id 1cTmCn-0005ZD-5h for ietf-http-wg@listhub.w3.org; Wed, 18 Jan 2017 09:06:57 +0000
Received: from mail-wm0-f50.google.com ([74.125.82.50]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <cory@lukasa.co.uk>) id 1cTmCg-0002TI-W8 for ietf-http-wg@w3.org; Wed, 18 Jan 2017 09:06:51 +0000
Received: by mail-wm0-f50.google.com with SMTP id c206so14961783wme.0 for <ietf-http-wg@w3.org>; Wed, 18 Jan 2017 01:06:29 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lukasa-co-uk.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=1eHyRik0EHRYuggFs5yaYx7tF77SKJ2X9xBx7hveBeY=; b=EEC3C3LSh3XTkQskpNtJYtO9aFpnO/wRxdp9eUIDiZEOX6V9hF9gjaLvGYf+YfoBIY YuSzDcQ5e40V4A1XYTYC4dO5NnfJckILeadTY0BpXj4ByOKr/+jyu7bsv+TasuRjyIfq PV7Z6jB/nLOj3Kgjhw+m3WIerMJdPrRxVnPizhTodJaJ4XpaHeg4HFoaba1c/1uunbGM hidg6Y9r3j3qot8uklVAJdJ63Up0NHs9Z6oa/in0sZoMeqA5/WLJMDAn4vcZLWCR6RXP Zn8ybNSA3O+lY4djMuz+8KNO117iU4akTCOD4aUeXc2bVSAf+2sh62M1ydB1AURFWx3N BcsQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=1eHyRik0EHRYuggFs5yaYx7tF77SKJ2X9xBx7hveBeY=; b=Q+AR6mIZX9CDNPPRLr8sC6pgdHueNny5dRY43bxilLTjwiy+W2ALH5YwltkP5QK5+W l2vHNAV9zZqxKv2Qmmjz+4HILOmFUYhBi0dRS/g+XH5aPOopWHCqC0m97Szl8Jfhy88o PoDnZYBzMWkzprjoMNUQmlrnkhLzq/bV/XC4zNRTK7UtdSU3uFDFJd03ZW1GWfZJdYs6 oIRBTs195HCRO7mUeWQimkDNYyENvcx4F2cW3yuxluJv5QAxxfFXkDGUMo94nFXiPXh3 dIPdMkuf7Hw+SUzXkd/fsWQjvjajBQUOeJl83xUipSnGQifZF4aBnOQVdcpI9X9PUo2i CUog==
X-Gm-Message-State: AIkVDXI0hD7jsp8wgyBZjfQwKchKZMR6MagM7Mo5cdc7heal0H1WVF57QVecj7aWJ9mKdw==
X-Received: by 10.28.126.11 with SMTP id z11mr18666943wmc.13.1484730383436; Wed, 18 Jan 2017 01:06:23 -0800 (PST)
Received: from [192.168.1.3] (197.71.125.91.dyn.plus.net. [91.125.71.197]) by smtp.gmail.com with ESMTPSA id l67sm3407254wmf.1.2017.01.18.01.06.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Jan 2017 01:06:22 -0800 (PST)
Content-Type: text/plain; charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\))
From: Cory Benfield <cory@lukasa.co.uk>
In-Reply-To: <CABkgnnWmPdDXVS+CvmChRjyqkJooSKgy6KdUdN+9nGzOyJazhg@mail.gmail.com>
Date: Wed, 18 Jan 2017 09:06:20 +0000
Cc: Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>, Scott Mitchell <scott.k.mitch1@gmail.com>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <818C0433-C12B-4E56-B428-BC5633082D1C@lukasa.co.uk>
References: <CAFn2buAYWHQSWhhoKZ2GKbqXR1A+tScjkAwZmOuQ9gV9jMp2bA@mail.gmail.com> <CAPyZ6=Kh3n+RJi=RqgFBojgRDpfJ=nbr0i4kvO20ET0Kt7UA8Q@mail.gmail.com> <CABkgnnWmPdDXVS+CvmChRjyqkJooSKgy6KdUdN+9nGzOyJazhg@mail.gmail.com>
To: Martin Thomson <martin.thomson@gmail.com>
X-Mailer: Apple Mail (2.3259)
Received-SPF: pass client-ip=74.125.82.50; envelope-from=cory@lukasa.co.uk; helo=mail-wm0-f50.google.com
X-W3C-Hub-Spam-Status: No, score=-4.0
X-W3C-Hub-Spam-Report: AWL=-0.574, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1cTmCg-0002TI-W8 9397f9f88e0e3d9a650682e4318063fe
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Stream State and PRIORITY Frames
Archived-At: <http://www.w3.org/mid/818C0433-C12B-4E56-B428-BC5633082D1C@lukasa.co.uk>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33315
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 17 Jan 2017, at 22:27, Martin Thomson <martin.thomson@gmail.com> =
wrote:
>=20
> I think that we probably want to clarify the point by explicitly
> saying that PRIORITY doesn't affect stream states.  We say that it can
> be sent in any state, but we don't also mention that important point.
> Do people here agree that an erratum on this point is appropriate
> here?

Yeah. The community has managed to coalesce around the =E2=80=9Cright=E2=80=
=9D answer, I think, but it would help to have it stated more explicitly =
in the specification.

Cory



From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Wed Jan 18 08:44:09 2017
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 5443512947A for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 18 Jan 2017 08:44:09 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.719
X-Spam-Level:
X-Spam-Status: No, score=-9.719 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, 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 fY1wPVFFaGvA for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 18 Jan 2017 08:44:07 -0800 (PST)
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 D29DB1294A9 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 18 Jan 2017 08:44:06 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cTtI1-00035s-Op for ietf-http-wg-dist@listhub.w3.org; Wed, 18 Jan 2017 16:40:49 +0000
Resent-Date: Wed, 18 Jan 2017 16:40:49 +0000
Resent-Message-Id: <E1cTtI1-00035s-Op@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <scott.k.mitch1@gmail.com>) id 1cTtHx-00032U-5U for ietf-http-wg@listhub.w3.org; Wed, 18 Jan 2017 16:40:45 +0000
Received: from mail-lf0-f52.google.com ([209.85.215.52]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <scott.k.mitch1@gmail.com>) id 1cTtGc-0001SW-L2 for ietf-http-wg@w3.org; Wed, 18 Jan 2017 16:40:39 +0000
Received: by mail-lf0-f52.google.com with SMTP id v186so16596731lfa.1 for <ietf-http-wg@w3.org>; Wed, 18 Jan 2017 08:39:02 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=5FEiA8w02NFCHcJDbnVNhayG8uR6/gua9U8Hf7iPAn4=; b=rxlMW4rWThBDHsJiIQ7sT59/V7hPLtq3TSe3XmBXV4Bh7DGffgfz1KI/wev8Fqy7jP tUcU4Z5Tc8mzwzyZQIpgMJctsLrr6tloxZjtmFGICOYx7u6Ak+SHPTh9pYv6Tt3uHtMF bvAUgByl0fqG0jdZaHi9HUKnAwHT2YCCqUtkm1CIqtqYpRUNmsxVtKTIuLsmV8vnGbkH O9jhaoLyUiHaVrDWprL1UlJ4ni4Ncbe9jkQz40ewMtrfiHFmR4uirMqVHgnwdRjaK62B IoDKnpUHpk295wE4cnt5fwZ6P98r97eVmQcNOnBUX0xBLliyuEaZSxeEZWfjYfiHKUpm xsOg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=5FEiA8w02NFCHcJDbnVNhayG8uR6/gua9U8Hf7iPAn4=; b=YuTd9j5qm7BTrS8RUfFnV8ccfAhQpa/rZpPsF9DDGL2QAmAorcR26ipjzkcIxkYgxX /+4SZtZN9RUMoxCUMP/SBzcnYBK56cwKs2mjc4TQ57dxjATQ/BluqGOSUEqGXcrO9Rxx /9ganQGzQjstQ7V+fgMgzkmFN46bdEL2tFylsaPWj/YnymAmg2jJ4bi2chnZ3qmazNzu DMIzeVU+jBCcjUCij20A3QHHjiupCzQsuTQzQHBTjvlwwT56T9s7fs8MpwC/ka12Ut7E hpgn6h1nfZYn56W1BeWLlA33xZVOXXolBxqLOeKosueOa92mRCSWd5A5ZTwa88vlF5Re uMxQ==
X-Gm-Message-State: AIkVDXIWF8AVBsktDh9lXUIwfd6qN7z6gvXfkY9cjCU7R3c110PB3HnZcF1PSmv42kxox4h3gXvUCaRetANIjQ==
X-Received: by 10.25.152.84 with SMTP id a81mr1383043lfe.155.1484757535597; Wed, 18 Jan 2017 08:38:55 -0800 (PST)
MIME-Version: 1.0
Received: by 10.25.18.200 with HTTP; Wed, 18 Jan 2017 08:38:54 -0800 (PST)
In-Reply-To: <2BC01E49-91A1-43A7-AFD0-5A34F2689428@lukasa.co.uk>
References: <CAFn2buAYWHQSWhhoKZ2GKbqXR1A+tScjkAwZmOuQ9gV9jMp2bA@mail.gmail.com> <CAGZNdJWe0Y=M_SWmgYabKbWZwPEuJdw67Km8+UtR4oUtZuXA5A@mail.gmail.com> <2BC01E49-91A1-43A7-AFD0-5A34F2689428@lukasa.co.uk>
From: Scott Mitchell <scott.k.mitch1@gmail.com>
Date: Wed, 18 Jan 2017 08:38:54 -0800
Message-ID: <CAFn2buDCMwMp=rR0C_yt4-gUwyFhY6ruonz9wT-jVMu+Kir=nA@mail.gmail.com>
To: Cory Benfield <cory@lukasa.co.uk>
Cc: Benedikt Christoph Wolters <benedikt.wolters@rwth-aachen.de>,  HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary=001a114013867ca7f90546610d2b
Received-SPF: pass client-ip=209.85.215.52; envelope-from=scott.k.mitch1@gmail.com; helo=mail-lf0-f52.google.com
X-W3C-Hub-Spam-Status: No, score=-2.6
X-W3C-Hub-Spam-Report: AWL=0.636, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cTtGc-0001SW-L2 a316fc4de55e277bf7f35862649332ac
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Stream State and PRIORITY Frames
Archived-At: <http://www.w3.org/mid/CAFn2buDCMwMp=rR0C_yt4-gUwyFhY6ruonz9wT-jVMu+Kir=nA@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33316
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>

--001a114013867ca7f90546610d2b
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On Tue, Jan 17, 2017 at 4:42 AM, Cory Benfield <cory@lukasa.co.uk> wrote:

>
> On 17 Jan 2017, at 08:38, Benedikt Christoph Wolters <
> benedikt.wolters@rwth-aachen.de> wrote:
>
> This question reminds me of a similiar issue we had a while ago at
> mitmproxy: https://github.com/mitmproxy/mitmproxy/issues/1498
>
> As far as I understand this, sending PRIORITY does not initiate a
> stream or change the stream state.
> HEADERS and PUSH_PROMISE initiate a stream. PRIORITY can be sent and
> received in any stream state.
>
>
> In fact, I think it=E2=80=99s the same issue. Scott linked to https://git=
hub.com/
> summerwind/h2spec/pull/67, which is referenced from and opened by the
> same person who opened https://github.com/h2o/h2o/pull/1136, which links
> to https://github.com/mitmproxy/mitmproxy/issues/1824, which is related
> to https://github.com/mitmproxy/mitmproxy/issues/1498 because both cases
> were sites deployed behind Fastly.
>
> For those who want background and don=E2=80=99t want to follow all those =
links,
> mitmproxy bumped into problems with sites deployed behind Fastly. mitmpro=
xy
> encountered these because it was forwarding on traffic from Firefox, whic=
h
> would on connection-setup send a whole bunch of PRIORITY frames. hyper-h2
> (which powers mitmproxy=E2=80=99s HTTP/2 support) would allow this. h2o w=
ould not.
>
> The crux of the discussion boils down to a few apparently contradictory
> sections in the specification. Scott linked to the first two:
>
> Section 5.1.1:
>
> - The first use of a new stream identifier implicitly closes all streams
> in the =E2=80=9Cidle=E2=80=9D state that may have been initiated by that =
peer with a
> lower-valued stream identifier.
> - An endpoint that receives an unexpected stream identifier must respond
> with a connection error of type PROTOCOL_ERROR.
>
> *However*, there are a few other notes. The first thing to note is that
> the PRIORITY frame does not transition a stream out of the idle state. A
> stream that has only had PRIORITY frames sent on it is still in the IDLE
> state. That means that the Firefox-style priority setup (sending priority
> for stream IDs 1, 3, 5, and 7 immediate after the preamble) would have th=
e
> effect of immediately closing streams 1, 3, and 5, if section 5.1.1
> applied. This is not what most people expect.
>
>
This is interesting. If FF is using streams 1-7 then as soon as stream 9 is
used for a HEADERS request that will close streams 1-7 according to section
5.1.1:

> first use of a new stream identifier implicitly closes all streams in the
"idle" state that might have been initiated by that peer with a
lower-valued stream identifier

If these streams are not CLOSED, then what is the purpose for this special
exception? They are not allowed to transition state at a later point in
time because of 5.1.1:

> newly established stream MUST be numerically greater

"Option 1" requires special exception for stream ID allocation to
accommodate "PRIORITY streams remaining in IDLE" and I don't see the
benefit. The specification already allows (and even suggests) retaining
priority state for CLOSED streams in section 5.3.4:

> If it has retained enough state to do so, an endpoint receiving a PRIORIT=
Y
frame that changes the priority of a closed stream SHOULD alter the
dependencies of the streams that depend on it.

So in terms of priority just because a stream is CLOSED doesn't necessarily
mean any priority information is lost. Even if the streams remain in IDLE
implementations will have to impose some limit on how much memory is can be
consumed by these "PRIORITY streams in IDLE" so it just seems like
additional complexity to make this exception.


> More importantly, though, section 5.1.1 says this:
>
> - The identifier of a newly established stream MUST be numerically greate=
r
> than all streams that the initiating endpoint has opened or reserved.
> This governs streams that are opened using a HEADERS frame and streams th=
at
> are reserved using PUSH_PROMISE.
>
> This is not absolutely clear, but it seems to suggest that implementation=
s
> may establish a stream with an ID lower than streams that have had PRIORI=
TY
> frames sent on them. Put another way, it seems to suggest that only HEADE=
RS
> and PUSH_PROMISE frames affect the lowest-acceptable stream ID. That seem=
s
> to me to suggest that PRIORITY frames are not expected to force-close all
> streams with lower IDs that are in the idle state.
>
> As an implementers note, I have found it much more helpful to think of
> PRIORITY frames not as frames that are sent on a stream, but as frames th=
at
> are implicitly sent on stream zero and are just tagged with a stream ID.
> PRIORITY frames ignore basically all restrictions on stream behaviour: th=
ey
> can be sent on idle streams, on closed streams. In practice, they can
> basically be sent whenever, and except for the case where they establish =
a
> loop in the priority tree must basically always be accepted.
>
> Cory
>

--001a114013867ca7f90546610d2b
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div class=3D"gmail_quo=
te">On Tue, Jan 17, 2017 at 4:42 AM, Cory Benfield <span dir=3D"ltr">&lt;<a=
 href=3D"mailto:cory@lukasa.co.uk" target=3D"_blank">cory@lukasa.co.uk</a>&=
gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0px =
0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);bord=
er-left-style:solid;padding-left:1ex"><div style=3D"word-wrap:break-word"><=
span class=3D"gmail-"><br><div><blockquote type=3D"cite"><div>On 17 Jan 201=
7, at 08:38, Benedikt Christoph Wolters &lt;<a href=3D"mailto:benedikt.wolt=
ers@rwth-aachen.de" target=3D"_blank">benedikt.wolters@rwth-aachen.<wbr>de<=
/a>&gt; wrote:</div><br class=3D"gmail-m_1789565802307035587Apple-interchan=
ge-newline"><div><div>This question reminds me of a similiar issue we had a=
 while ago at<br>mitmproxy: <a href=3D"https://github.com/mitmproxy/mitmpro=
xy/issues/1498" target=3D"_blank">https://github.com/mitmproxy/<wbr>mitmpro=
xy/issues/1498</a><br><br>As far as I understand this, sending PRIORITY doe=
s not initiate a<br>stream or change the stream state.<br>HEADERS and PUSH_=
PROMISE initiate a stream. PRIORITY can be sent and<br>received in any stre=
am state.<br></div></div></blockquote><br></div></span><div>In fact, I thin=
k it=E2=80=99s the same issue. Scott linked to=C2=A0<a href=3D"https://gith=
ub.com/summerwind/h2spec/pull/67" target=3D"_blank">https://github.com/<wbr=
>summerwind/h2spec/pull/67</a>, which is referenced from and opened by the =
same person who opened=C2=A0<a href=3D"https://github.com/h2o/h2o/pull/1136=
" target=3D"_blank">https://github.com/h2o/<wbr>h2o/pull/1136</a>, which li=
nks to=C2=A0<a href=3D"https://github.com/mitmproxy/mitmproxy/issues/1824" =
target=3D"_blank">https://github.com/<wbr>mitmproxy/mitmproxy/issues/<wbr>1=
824</a>, which is related to <a href=3D"https://github.com/mitmproxy/mitmpr=
oxy/issues/1498" target=3D"_blank">https://github.com/mitmproxy/<wbr>mitmpr=
oxy/issues/1498</a>=C2=A0because both cases were sites deployed behind Fast=
ly.</div><div><br></div><div>For those who want background and don=E2=80=99=
t want to follow all those links, mitmproxy bumped into problems with sites=
 deployed behind Fastly. mitmproxy encountered these because it was forward=
ing on traffic from Firefox, which would on connection-setup send a whole b=
unch of PRIORITY frames. hyper-h2 (which powers mitmproxy=E2=80=99s HTTP/2 =
support) would allow this. h2o would not.</div><div><br></div><div>The crux=
 of the discussion boils down to a few apparently contradictory sections in=
 the specification. Scott linked to the first two:</div><div><br></div><div=
>Section 5.1.1:</div><div><br></div><div>- The first use of a new stream id=
entifier implicitly closes all streams in the =E2=80=9Cidle=E2=80=9D state =
that may have been initiated by that peer with a lower-valued stream identi=
fier.</div><div>- An endpoint that receives an unexpected stream identifier=
 must respond with a connection error of type PROTOCOL_ERROR.</div><div><br=
></div><div>*However*, there are a few other notes. The first thing to note=
 is that the PRIORITY frame does not transition a stream out of the idle st=
ate. A stream that has only had PRIORITY frames sent on it is still in the =
IDLE state. That means that the Firefox-style priority setup (sending prior=
ity for stream IDs 1, 3, 5, and 7 immediate after the preamble) would have =
the effect of immediately closing streams 1, 3, and 5, if section 5.1.1 app=
lied. This is not what most people expect.</div><div><br></div></div></bloc=
kquote><div><br></div><div>This is interesting. If FF is using streams 1-7 =
then as soon as stream 9 is used for a HEADERS request that will close stre=
ams 1-7 according to section 5.1.1:</div><div><br></div><div>&gt;=C2=A0<spa=
n style=3D"color:rgb(0,0,0);font-size:13.333333015441895px">first use of a =
new stream identifier implicitly closes all=C2=A0</span><span style=3D"colo=
r:rgb(0,0,0);font-size:13.333333015441895px">streams in the &quot;idle&quot=
; state that might have been initiated by that=C2=A0</span><span style=3D"c=
olor:rgb(0,0,0);font-size:13.333333015441895px">peer with a lower-valued st=
ream identifier</span></div><div><br></div><div>If these streams are not CL=
OSED, then what is the purpose for this special exception? They are not all=
owed to transition state at a later point in time because of 5.1.1:</div><d=
iv><br></div><div>&gt; newly established stream MUST be numerically greater=
</div><div><br></div><div>&quot;Option 1&quot; requires special exception f=
or stream ID allocation to accommodate &quot;PRIORITY streams remaining in =
IDLE&quot; and I don&#39;t see the benefit. The specification already allow=
s (and even suggests) retaining priority state for CLOSED streams in sectio=
n 5.3.4:</div><div><br></div><div>&gt;=C2=A0<span style=3D"color:rgb(0,0,0)=
;font-size:13.333333015441895px">If it has retained enough state to do so, =
an endpoint receiving a=C2=A0</span><span style=3D"color:rgb(0,0,0);font-si=
ze:13.333333015441895px">PRIORITY frame that changes the priority of a clos=
ed stream SHOULD=C2=A0</span><span style=3D"color:rgb(0,0,0);font-size:13.3=
33333015441895px">alter the dependencies of the streams that depend on it.<=
/span><br></div><div><span style=3D"color:rgb(0,0,0);font-size:13.333333015=
441895px"><br></span></div><div><font color=3D"#000000" size=3D"2">So in te=
rms of priority just because a stream is CLOSED doesn&#39;t necessarily mea=
n any priority information is lost. Even if the streams remain in IDLE impl=
ementations will have to impose some limit on how much memory is can be con=
sumed by these &quot;PRIORITY streams in IDLE&quot; so it just seems like a=
dditional=C2=A0complexity=C2=A0to make this exception.</font></div><div>=C2=
=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8e=
x;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-styl=
e:solid;padding-left:1ex"><div style=3D"word-wrap:break-word"><div></div><d=
iv>More importantly, though, section 5.1.1 says this:</div><div><br></div><=
div>- The identifier of a newly established stream MUST be numerically grea=
ter than all streams that the initiating endpoint has opened or reserved. T=
his=C2=A0governs streams that are opened using a=C2=A0HEADERS=C2=A0frame an=
d streams that are reserved using=C2=A0PUSH_PROMISE.</div><div><br></div><d=
iv>This is not absolutely clear, but it seems to suggest that implementatio=
ns may establish a stream with an ID lower than streams that have had PRIOR=
ITY frames sent on them. Put another way, it seems to suggest that only HEA=
DERS and PUSH_PROMISE frames affect the lowest-acceptable stream ID. That s=
eems to me to suggest that PRIORITY frames are not expected to force-close =
all streams with lower IDs that are in the idle state.</div><div><br></div>=
<div>As an implementers note, I have found it much more helpful to think of=
 PRIORITY frames not as frames that are sent on a stream, but as frames tha=
t are implicitly sent on stream zero and are just tagged with a stream ID. =
PRIORITY frames ignore basically all restrictions on stream behaviour: they=
 can be sent on idle streams, on closed streams. In practice, they can basi=
cally be sent whenever, and except for the case where they establish a loop=
 in the priority tree must basically always be accepted.</div><span class=
=3D"gmail-HOEnZb"><font color=3D"#888888"><div><br></div><div>Cory</div></f=
ont></span></div></blockquote></div><br></div></div>

--001a114013867ca7f90546610d2b--


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Wed Jan 18 09:18:36 2017
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 3A01F1294CD for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 18 Jan 2017 09:18:36 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.219
X-Spam-Level:
X-Spam-Status: No, score=-10.219 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-3.199, 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 rW_PgSoEUVRc for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 18 Jan 2017 09:18:34 -0800 (PST)
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 3972C12943E for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 18 Jan 2017 09:18:33 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cTtq6-0003E5-Eo for ietf-http-wg-dist@listhub.w3.org; Wed, 18 Jan 2017 17:16:02 +0000
Resent-Date: Wed, 18 Jan 2017 17:16:02 +0000
Resent-Message-Id: <E1cTtq6-0003E5-Eo@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <scott.k.mitch1@gmail.com>) id 1cTtq3-0003DJ-5z for ietf-http-wg@listhub.w3.org; Wed, 18 Jan 2017 17:15:59 +0000
Received: from mail-lf0-f46.google.com ([209.85.215.46]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <scott.k.mitch1@gmail.com>) id 1cTtpw-0002vo-Jc for ietf-http-wg@w3.org; Wed, 18 Jan 2017 17:15:53 +0000
Received: by mail-lf0-f46.google.com with SMTP id k86so17452969lfi.0 for <ietf-http-wg@w3.org>; Wed, 18 Jan 2017 09:15:32 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=ErWjWFCG0ciDZbFMx01bNDiEuqSlltkFf/2M0r6yXME=; b=E8qWokG23iJrhWmfq8IZwHVtmzPD+futIwB6FuA/4z8Iu2x/4FsWbuHxWn5xxsBi9j trbswYSywE/y19KT0i9y836QwVh3Ov3KUVgmFr2o6GJB+XYXWayTdYZpe4CEIu1sN+vW vTWpxJX3yMrxgbs1uGepHA3df8/PagRjBAp381+pkVMTt++NZqxNnc6ptD4sHFFSHMuF 1UcgqKhysuC5U+vmec/5NnEBRd7ZF9wk+lLuxLHUZfHf/mQ0hI9HT4bswkoSJv0tMhsI Imvg+tfT5gwSpkDV1r0IQgZiNQj4LbGX4CYAyz98PCoF+ciqlBJQTUl9a+T4vhZCpg+j eNzA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=ErWjWFCG0ciDZbFMx01bNDiEuqSlltkFf/2M0r6yXME=; b=JvKBGNgAHl2w0dw710KSvFYmcNXpPUTSXmzfnHzLX20U0TnvsXNXSjbgplGL4/IVJ+ hM4HouPOLEF+jXkoUhXjaK/+zrtvd2SMa/72G1EgE6sSmvGVnLxbohUBftuRiNeXH+LB rMlTXvuflH0K6v76Yp0OLhxEp1HM8dFkWLfac/jkAEDKYckciwRVM8aME8aG7bQqrSyP oPlnzWJ9Nx5dlkGgCOUV24+jeEBYU6yGDs9X9JW5WGErI9G41VWP88x172YphOInspOM V7WdwdLdihPuRctvD25vA+ayUQ6wQL+krun1HpokPYa1cd1WuJdQ/J7B42xHgq4mLHW/ wQuA==
X-Gm-Message-State: AIkVDXKub99ZQkOhSk03EwTIQEJ9ugTnxZbbudagzO+DEGu/MSqhJijTjahb+ZgC4c4MfQ79xqm0CATWeYGV1g==
X-Received: by 10.46.20.78 with SMTP id 14mr1984605lju.23.1484759725579; Wed, 18 Jan 2017 09:15:25 -0800 (PST)
MIME-Version: 1.0
Received: by 10.25.18.200 with HTTP; Wed, 18 Jan 2017 09:15:24 -0800 (PST)
In-Reply-To: <CA+3+x5HBQswdhFKKNFFHN+t5yaqNufSk_artC1iUwwOvCipZGQ@mail.gmail.com>
References: <CAFn2buAYWHQSWhhoKZ2GKbqXR1A+tScjkAwZmOuQ9gV9jMp2bA@mail.gmail.com> <CAPyZ6=Kh3n+RJi=RqgFBojgRDpfJ=nbr0i4kvO20ET0Kt7UA8Q@mail.gmail.com> <CABkgnnWmPdDXVS+CvmChRjyqkJooSKgy6KdUdN+9nGzOyJazhg@mail.gmail.com> <CAFn2buDrHtB1z16iTWE945bU_qhxTypr05A=5B_nrQoyQijyOw@mail.gmail.com> <CA+3+x5HBQswdhFKKNFFHN+t5yaqNufSk_artC1iUwwOvCipZGQ@mail.gmail.com>
From: Scott Mitchell <scott.k.mitch1@gmail.com>
Date: Wed, 18 Jan 2017 09:15:24 -0800
Message-ID: <CAFn2buBtQY+0xRsUxGZJUCCP1JWdiHvOaFOXyReaVCDKm6UgQw@mail.gmail.com>
To: Tom Bergan <tombergan@chromium.org>
Cc: Martin Thomson <martin.thomson@gmail.com>, Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>,  HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary=f403045fbf100520290546619055
Received-SPF: pass client-ip=209.85.215.46; envelope-from=scott.k.mitch1@gmail.com; helo=mail-lf0-f46.google.com
X-W3C-Hub-Spam-Status: No, score=-3.4
X-W3C-Hub-Spam-Report: AWL=1.077, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cTtpw-0002vo-Jc 3b18b5aacbe5004e88cc808ad7023446
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Stream State and PRIORITY Frames
Archived-At: <http://www.w3.org/mid/CAFn2buBtQY+0xRsUxGZJUCCP1JWdiHvOaFOXyReaVCDKm6UgQw@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33317
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>

--f403045fbf100520290546619055
Content-Type: text/plain; charset=UTF-8

On Tue, Jan 17, 2017 at 10:10 PM, Tom Bergan <tombergan@chromium.org> wrote:

> On Tue, Jan 17, 2017 at 2:43 PM, Scott Mitchell <scott.k.mitch1@gmail.com>
> wrote:
>
>> From my perspective I would like to see two clarifications:
>>
>> 1. It is clear to me that PRIORITY doesn't impact state. However Section
>> 5.1.1 states "first use of a new stream identifier" which makes no
>> reference to stream state. If stream state is important/implied here better
>> to be specific about it. I don't think the one-off example below this text
>> is sufficient to convey the intended implications of this statement.
>>
>> 2. Section 5.1.2 states "Streams in either of the 'reserved' states do
>> not count toward the stream limit." which seems to conflict with section
>> 8.2.2 "A client can use the SETTINGS_MAX_CONCURRENT_STREAMS setting to
>> limit the number of responses that can be concurrently pushed by a
>> server.". These two statements appear to contradict each other. Since
>> SETTINGS_MAX_CONCURRENT_STREAMS is really the only mechanism to limit
>> resources due to server push I'm assuming section 5.1.2 is overly
>> restrictive.
>>
>
> This is surprising (to me, at least) but I don't believe there is a
> contradiction. You can send an infinite number of PUSH_PROMISEs without
> hitting SETTINGS_MAX_CONCURRENT_STREAMS. A pushed stream doesn't count
> against the concurrent stream limit until you've sent the response HEADERS
> on that pushed stream.
>


If you don't include RESERVED streams in the count for
SETTINGS_MAX_CONCURRENT_STREAMS
then how do you limit the amount of RESERVED streams, and how does your
peer know about this limit? I have imposed an implementation specific
metric in the past, but this seems less preferable than relying on
something in the RFC that the peer is aware of. Either way having infinite
of something doesn't work in practice.

Because of the asymmetry of stream creation in h2 it makes more sense to me
to clarify how streams should be counted toward
SETTINGS_MAX_CONCURRENT_STREAMS.
For example:
Creating a stream in the "reserved" state will consume resources on the
client and therefore SHOULD be counted against SETTINGS_MAX_CONCURRENT_STREAMS
advertised by the client. The server MUST be prepared to accept a
RST_STREAM frame from the client in response to PUSH_PROMISE frame (if this
limit is exceeded or at any time).



> See the related question I asked previously:
> https://lists.w3.org/Archives/Public/ietf-http-wg/2016JulSep/0599.html
>
>

Interesting.

https://lists.w3.org/Archives/Public/ietf-http-wg/2016JulSep/0601.html
> If you limit server push by applying a stream limit, then you prevent it
from being used in time for the client to use it.

I understand the rational/motivation but practically speaking there will
have to be some limit imposed on PUSHed streams. The client can send a
RST_STREAM in response to a PUSH_PROMISE at any time. So I'm not sure why
having the server pretend like a limit doesn't exist improves the
situation. Pretending a limit doesn't exist may result in additional
network traffic that is avoidable.



> On Tue, Jan 17, 2017 at 2:27 PM, Martin Thomson <martin.thomson@gmail.com>
>> wrote:
>>
>>> On 18 January 2017 at 01:37, Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>
>>> wrote:
>>> > If my understanding is correct, this only refers to the new stream ID
>>> used
>>> > by HEADERS, and PUSH_PROMISE frames which open or reserve streams.  The
>>> > example text following that statement uses HEADERS which opens new
>>> stream.
>>> > PRIORITY frame does not change stream state, and there is no reason to
>>> close
>>> > all unused streams lower than bearing stream ID.  That said, I agree
>>> that
>>> > this is not crystal clear in the document.  In practice, this is
>>> probably
>>> > rather rare case.
>>>
>>> This is, I think, the expectation.
>>>
>>> I think that we probably want to clarify the point by explicitly
>>> saying that PRIORITY doesn't affect stream states.  We say that it can
>>> be sent in any state, but we don't also mention that important point.
>>> Do people here agree that an erratum on this point is appropriate
>>> here?
>>>
>>
>>
>

--f403045fbf100520290546619055
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div class=3D"gmail_quo=
te">On Tue, Jan 17, 2017 at 10:10 PM, Tom Bergan <span dir=3D"ltr">&lt;<a h=
ref=3D"mailto:tombergan@chromium.org" target=3D"_blank">tombergan@chromium.=
org</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"mar=
gin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,2=
04);border-left-style:solid;padding-left:1ex"><div dir=3D"ltr"><div class=
=3D"gmail_extra"><div class=3D"gmail_quote"><span class=3D"gmail-">On Tue, =
Jan 17, 2017 at 2:43 PM, Scott Mitchell <span dir=3D"ltr">&lt;<a href=3D"ma=
ilto:scott.k.mitch1@gmail.com" target=3D"_blank">scott.k.mitch1@gmail.com</=
a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0=
px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-=
color:rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr">From my perspecti=
ve I would like to see two clarifications:<div><br></div><div>1. It is clea=
r to me that PRIORITY doesn&#39;t impact state. However Section 5.1.1 state=
s &quot;<font color=3D"#000000" size=3D"2">first use of a new stream identi=
fier&quot; which makes no reference to stream state. If stream state is imp=
ortant/implied here better to be specific about it. I don&#39;t think the o=
ne-off example below this text is sufficient to convey the intended implica=
tions of this statement.</font><br></div><div><span style=3D"color:rgb(0,0,=
0);font-size:13.3333px"><br></span></div><div><span style=3D"color:rgb(0,0,=
0);font-size:13.3333px">2. Section 5.1.2 states &quot;</span><span style=3D=
"color:rgb(0,0,0);font-size:13.3333px">Streams in either of the &#39;</span=
><span style=3D"color:rgb(0,0,0);font-size:13.3333px">reserved&#39; states =
do not count toward the stream limit.&quot; which seems to conflict with se=
ction 8.2.2 &quot;</span><span style=3D"color:rgb(0,0,0);font-size:13.3333p=
x">A client can use the SETTINGS_MAX_CONCURRENT_STREAM<wbr>S setting to lim=
it=C2=A0</span><span style=3D"color:rgb(0,0,0);font-size:13.3333px">the num=
ber of responses that can be concurrently pushed by a server.</span><span s=
tyle=3D"color:rgb(0,0,0);font-size:13.3333px">&quot;. These two statements =
appear to contradict each other. Since=C2=A0</span><font color=3D"#000000" =
size=3D"2">SETTINGS_MAX_CONCURRENT_<wbr>STREAMS is really the only=C2=A0mec=
hanism to limit resources due to server push I&#39;m assuming=C2=A0section =
5.1.2 is overly restrictive.</font></div></div></blockquote><div><br></div>=
</span><div>This is surprising (to me, at least) but I don&#39;t believe th=
ere is a contradiction. You can send an infinite number of PUSH_PROMISEs wi=
thout hitting=C2=A0<span style=3D"color:rgb(0,0,0)">SETTINGS_MAX_<wbr>CONCU=
RRENT_</span><span style=3D"color:rgb(0,0,0)">STREAMS. A pushed stream does=
n&#39;t count against the concurrent stream limit until you&#39;ve sent the=
 response HEADERS on that pushed stream.</span></div></div></div></div></bl=
ockquote><div><br></div><div><br></div><div><span style=3D"color:rgb(0,0,0)=
;font-size:13.333333015441895px">If you don&#39;t include RESERVED streams =
in the count for=C2=A0</span><span style=3D"color:rgb(0,0,0);font-size:13.3=
33333015441895px">SETTINGS_MAX_CONCURRENT_STREAMS then how do you limit the=
 amount of RESERVED streams, and how does your peer know about this limit? =
I have imposed an implementation specific metric in the past, but this seem=
s less preferable than relying on something in the RFC that the peer is awa=
re of. Either way having infinite of something doesn&#39;t work in practice=
.</span></div><div><span style=3D"color:rgb(0,0,0);font-size:13.33333301544=
1895px"><br></span></div><div><font color=3D"#000000" size=3D"2">Because of=
 the=C2=A0asymmetry of stream creation in h2 it makes more sense to me to c=
larify how streams should be counted toward=C2=A0</font><span style=3D"colo=
r:rgb(0,0,0);font-size:13.333333015441895px">SETTINGS_MAX_CONCURRENT_STREAM=
S. For example:=C2=A0</span></div><div><span style=3D"color:rgb(0,0,0);font=
-size:13.333333015441895px">Creating a stream in the &quot;reserved&quot; s=
tate will consume resources on the client and therefore SHOULD be counted a=
gainst </span><span style=3D"color:rgb(0,0,0);font-size:13.333333015441895p=
x">SETTINGS_MAX_CONCURRENT_STREAMS advertised by the client.=C2=A0</span><s=
pan style=3D"color:rgb(0,0,0);font-size:13.333333015441895px">The server=C2=
=A0</span><span style=3D"color:rgb(0,0,0);font-size:13.333333015441895px">M=
UST be prepared to accept a RST_STREAM frame from the client in response to=
 PUSH_PROMISE frame (if this limit is exceeded or at any time).</span></div=
><div><span style=3D"color:rgb(0,0,0);font-size:13.333333015441895px"><br><=
/span></div><div>=C2=A0</div><blockquote class=3D"gmail_quote" style=3D"mar=
gin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,2=
04);border-left-style:solid;padding-left:1ex"><div dir=3D"ltr"><div class=
=3D"gmail_extra"><div class=3D"gmail_quote"><div>See the related question I=
 asked previously:</div><div><font color=3D"#000000"><a href=3D"https://lis=
ts.w3.org/Archives/Public/ietf-http-wg/2016JulSep/0599.html" target=3D"_bla=
nk">https://lists.w3.org/Archives/<wbr>Public/ietf-http-wg/<wbr>2016JulSep/=
0599.html</a></font><br></div><span class=3D"gmail-"><div>=C2=A0</div></spa=
n></div></div></div></blockquote><div><br></div><div>Interesting.</div><div=
><br></div><div><a href=3D"https://lists.w3.org/Archives/Public/ietf-http-w=
g/2016JulSep/0601.html">https://lists.w3.org/Archives/Public/ietf-http-wg/2=
016JulSep/0601.html</a></div><div>&gt;=C2=A0<span style=3D"color:rgb(0,0,0)=
;white-space:pre-wrap">If you limit server push by applying a stream limit,=
 then </span><span style=3D"color:rgb(0,0,0);white-space:pre-wrap">you prev=
ent it from being used in time for the client to use it.</span></div><div><=
span style=3D"color:rgb(0,0,0);white-space:pre-wrap"><br></span></div><div>=
<font color=3D"#000000"><span style=3D"white-space:pre-wrap">I understand t=
he rational/motivation but practically speaking there will have to be some =
limit imposed on PUSHed streams. The client can send a RST_STREAM in respon=
se to a PUSH_PROMISE at any time. So I&#39;m not sure why having the server=
 pretend like a limit doesn&#39;t exist improves the situation. Pretending =
a limit doesn&#39;t exist may result in additional network traffic that is =
avoidable.</span></font></div><div><span style=3D"color:rgb(0,0,0);white-sp=
ace:pre-wrap"><br></span></div><div>=C2=A0</div><blockquote class=3D"gmail_=
quote" style=3D"margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-=
color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir=
=3D"ltr"><div class=3D"gmail_extra"><div class=3D"gmail_quote"><span class=
=3D"gmail-"><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0=
.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(20=
4,204,204);padding-left:1ex"><div class=3D"gmail-m_3969381862971440559gmail=
-HOEnZb"><div class=3D"gmail-m_3969381862971440559gmail-h5"><div class=3D"g=
mail_extra"><div class=3D"gmail_quote">On Tue, Jan 17, 2017 at 2:27 PM, Mar=
tin Thomson <span dir=3D"ltr">&lt;<a href=3D"mailto:martin.thomson@gmail.co=
m" target=3D"_blank">martin.thomson@gmail.com</a>&gt;</span> wrote:<br><blo=
ckquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left=
-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);paddi=
ng-left:1ex"><span>On 18 January 2017 at 01:37, Tatsuhiro Tsujikawa &lt;<a =
href=3D"mailto:tatsuhiro.t@gmail.com" target=3D"_blank">tatsuhiro.t@gmail.c=
om</a>&gt; wrote:<br>
&gt; If my understanding is correct, this only refers to the new stream ID =
used<br>
&gt; by HEADERS, and PUSH_PROMISE frames which open or reserve streams.=C2=
=A0 The<br>
&gt; example text following that statement uses HEADERS which opens new str=
eam.<br>
&gt; PRIORITY frame does not change stream state, and there is no reason to=
 close<br>
&gt; all unused streams lower than bearing stream ID.=C2=A0 That said, I ag=
ree that<br>
&gt; this is not crystal clear in the document.=C2=A0 In practice, this is =
probably<br>
&gt; rather rare case.<br>
<br>
</span>This is, I think, the expectation.<br>
<br>
I think that we probably want to clarify the point by explicitly<br>
saying that PRIORITY doesn&#39;t affect stream states.=C2=A0 We say that it=
 can<br>
be sent in any state, but we don&#39;t also mention that important point.<b=
r>
Do people here agree that an erratum on this point is appropriate<br>
here?<br>
</blockquote></div><br></div>
</div></div></blockquote></span></div><br></div></div>
</blockquote></div><br></div></div>

--f403045fbf100520290546619055--


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Wed Jan 18 11:54:51 2017
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 D44701298BB for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 18 Jan 2017 11:54:51 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.619
X-Spam-Level:
X-Spam-Status: No, score=-9.619 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, 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=lukasa-co-uk.20150623.gappssmtp.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 kJzDDDKrlGDB for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 18 Jan 2017 11:54:50 -0800 (PST)
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 452C51298B7 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 18 Jan 2017 11:54:49 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cTwGT-0007M2-2c for ietf-http-wg-dist@listhub.w3.org; Wed, 18 Jan 2017 19:51:25 +0000
Resent-Date: Wed, 18 Jan 2017 19:51:25 +0000
Resent-Message-Id: <E1cTwGT-0007M2-2c@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <cory@lukasa.co.uk>) id 1cTwGP-0007Ke-H0 for ietf-http-wg@listhub.w3.org; Wed, 18 Jan 2017 19:51:21 +0000
Received: from mail-wm0-f50.google.com ([74.125.82.50]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <cory@lukasa.co.uk>) id 1cTwGJ-0003AJ-D7 for ietf-http-wg@w3.org; Wed, 18 Jan 2017 19:51:16 +0000
Received: by mail-wm0-f50.google.com with SMTP id r126so260156508wmr.0 for <ietf-http-wg@w3.org>; Wed, 18 Jan 2017 11:50:54 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lukasa-co-uk.20150623.gappssmtp.com; s=20150623; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=JA5kfhLKaioi9yKU+7h+R6Qy5Rw+czH+GVnxld70I74=; b=USPeqUC1M+Xw6s4VmKYRgo4Z1yTn4lnokf5Vg+FU40KhVYSBTGgJuntEKQIAJAsRyR o+D52pF4N6rFihKiQd1Qi/I3/7lbKZ6ccMbosfOX3zG5BuUxZMjKSE1F0uvmt94nrFW2 8T8+ifO/Cj3EPODxRISmU5EFBGCkZnNJ3O2EVlcBPq7qZBDNb9SKybZQkHA+pviomCHg hwdPcB7K5nJP+OdV8y0QksGzL/NE0pPfWvtHCmero85/jEpqzXJQIsRaUrjybprghwWo jov7u4/ZONIEZh7OCZ8SpLKoIoCKFTa1DQgqUPT6DJy4z8zf7BiGGZ11CaiGAVj3YBVL X9gg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=JA5kfhLKaioi9yKU+7h+R6Qy5Rw+czH+GVnxld70I74=; b=RkHe+A0aHzZRKW6J+2daocxrYL9pSLQ6lhxlkzBoiYNa+R2HbhFfm/3yQ3itm6cE/D OcO/WtDqPAD1yjDgCaNjdyh+KvdeE4WrkPL8WZYIf+cp5pERs4qgTcBGSn/ureI4hc/O cghSGYKI9riP3yRm6YJbjw8BXqxi2OI3PPdAqz0SHUNf0LkPfiW+u4AI5LZ31VWRg6NC a6Qc48i0QEY1TjydH0Z1PNCMEmodqE6LGfH8XscbfQl5dtOgBqXV7ntLdiZKxGBbqkD3 2Zn+nsMv2HubiRCHUqWf3QIU79z3S5sqKkhqj/WhFHScNV/b3E+j9yQiOblA5SanjYIo Z0jQ==
X-Gm-Message-State: AIkVDXL7YuXcxoJdBTDYzSbrMgxqrQ4NrtxeRHP9IbmpoKkj+Oyh05qCtdDkUg5b+0CSqA==
X-Received: by 10.28.166.216 with SMTP id p207mr20867439wme.27.1484769048332; Wed, 18 Jan 2017 11:50:48 -0800 (PST)
Received: from [192.168.1.3] (197.71.125.91.dyn.plus.net. [91.125.71.197]) by smtp.gmail.com with ESMTPSA id r6sm7050215wmd.4.2017.01.18.11.50.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Jan 2017 11:50:46 -0800 (PST)
From: Cory Benfield <cory@lukasa.co.uk>
Message-Id: <C51C3F51-37BE-489F-BA1D-76B101517307@lukasa.co.uk>
Content-Type: multipart/alternative; boundary="Apple-Mail=_ABCAD5A4-C9FF-4704-9057-EABBD3FE4490"
Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\))
Date: Wed, 18 Jan 2017 19:50:43 +0000
In-Reply-To: <CAFn2buDCMwMp=rR0C_yt4-gUwyFhY6ruonz9wT-jVMu+Kir=nA@mail.gmail.com>
Cc: Benedikt Christoph Wolters <benedikt.wolters@rwth-aachen.de>, HTTP Working Group <ietf-http-wg@w3.org>
To: Scott Mitchell <scott.k.mitch1@gmail.com>
References: <CAFn2buAYWHQSWhhoKZ2GKbqXR1A+tScjkAwZmOuQ9gV9jMp2bA@mail.gmail.com> <CAGZNdJWe0Y=M_SWmgYabKbWZwPEuJdw67Km8+UtR4oUtZuXA5A@mail.gmail.com> <2BC01E49-91A1-43A7-AFD0-5A34F2689428@lukasa.co.uk> <CAFn2buDCMwMp=rR0C_yt4-gUwyFhY6ruonz9wT-jVMu+Kir=nA@mail.gmail.com>
X-Mailer: Apple Mail (2.3259)
Received-SPF: pass client-ip=74.125.82.50; envelope-from=cory@lukasa.co.uk; helo=mail-wm0-f50.google.com
X-W3C-Hub-Spam-Status: No, score=-3.9
X-W3C-Hub-Spam-Report: AWL=-0.431, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1cTwGJ-0003AJ-D7 5b9df633be923bd73c855e6264366d6d
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Stream State and PRIORITY Frames
Archived-At: <http://www.w3.org/mid/C51C3F51-37BE-489F-BA1D-76B101517307@lukasa.co.uk>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33318
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>

--Apple-Mail=_ABCAD5A4-C9FF-4704-9057-EABBD3FE4490
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8


> On 18 Jan 2017, at 16:38, Scott Mitchell <scott.k.mitch1@gmail.com> =
wrote:
>=20
> This is interesting. If FF is using streams 1-7 then as soon as stream =
9 is used for a HEADERS request that will close streams 1-7 according to =
section 5.1.1:
>=20
> > first use of a new stream identifier implicitly closes all streams =
in the "idle" state that might have been initiated by that peer with a =
lower-valued stream identifier

Only if they are not opened via HEADERS frames, which they are. FF sent =
(I haven=E2=80=99t checked recently) PRIORITY frames for the first few =
stream IDs, and then started sending HEADERS from 1 onwards.


Cory


--Apple-Mail=_ABCAD5A4-C9FF-4704-9057-EABBD3FE4490
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D""><br class=3D""><div><blockquote type=3D"cite" class=3D""><div =
class=3D"">On 18 Jan 2017, at 16:38, Scott Mitchell &lt;<a =
href=3D"mailto:scott.k.mitch1@gmail.com" =
class=3D"">scott.k.mitch1@gmail.com</a>&gt; wrote:</div><div =
class=3D""><div class=3D"gmail_quote" style=3D"font-family: Helvetica; =
font-size: 12px; font-style: normal; font-variant-caps: normal; =
font-weight: normal; letter-spacing: normal; orphans: auto; text-align: =
start; text-indent: 0px; text-transform: none; white-space: normal; =
widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div =
class=3D""><br class=3D""></div><div class=3D"">This is interesting. If =
FF is using streams 1-7 then as soon as stream 9 is used for a HEADERS =
request that will close streams 1-7 according to section =
5.1.1:</div><div class=3D""><br class=3D""></div><div =
class=3D"">&gt;&nbsp;<span style=3D"font-size: 13.333333015441895px;" =
class=3D"">first use of a new stream identifier implicitly closes =
all&nbsp;</span><span style=3D"font-size: 13.333333015441895px;" =
class=3D"">streams in the "idle" state that might have been initiated by =
that&nbsp;</span><span style=3D"font-size: 13.333333015441895px;" =
class=3D"">peer with a lower-valued stream =
identifier</span></div></div></div></blockquote><div><br =
class=3D""></div><div>Only if they are not opened via HEADERS frames, =
which they are. FF sent (I haven=E2=80=99t checked recently) PRIORITY =
frames for the first few stream IDs, and then started sending HEADERS =
from 1 onwards.</div><br class=3D""></div><div><br =
class=3D""></div><div>Cory</div><br class=3D""></body></html>=

--Apple-Mail=_ABCAD5A4-C9FF-4704-9057-EABBD3FE4490--


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Wed Jan 18 16:57:37 2017
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 90C7212943C for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 18 Jan 2017 16:57:37 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.719
X-Spam-Level:
X-Spam-Status: No, score=-9.719 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, 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 AtvqTXQSU6vc for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 18 Jan 2017 16:57:36 -0800 (PST)
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 2E8AC1293EB for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 18 Jan 2017 16:57:36 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cU0zf-00013O-FW for ietf-http-wg-dist@listhub.w3.org; Thu, 19 Jan 2017 00:54:23 +0000
Resent-Date: Thu, 19 Jan 2017 00:54:23 +0000
Resent-Message-Id: <E1cU0zf-00013O-FW@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <scott.k.mitch1@gmail.com>) id 1cU0zb-000128-Lu for ietf-http-wg@listhub.w3.org; Thu, 19 Jan 2017 00:54:19 +0000
Received: from mail-lf0-f47.google.com ([209.85.215.47]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <scott.k.mitch1@gmail.com>) id 1cU0zT-000226-1i for ietf-http-wg@w3.org; Thu, 19 Jan 2017 00:54:14 +0000
Received: by mail-lf0-f47.google.com with SMTP id z134so24978289lff.3 for <ietf-http-wg@w3.org>; Wed, 18 Jan 2017 16:53:50 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=8cIznw+dyX1vcG56w+gPzwZpYqDQrvK8oXm3EA+YAok=; b=DI3lb8btwMPOQ9kRhLbbFaT+DIA1XP6U9NfN6tfdv9dHzAG38pDQ6T5u8JXzC+u32R N7WFZ451yjn82Xg7sj3YX4fYiJlXY1L/pAOt0zn8/jbrK9W3q7tZKz+j2k+IhRUYTRAh CCLCVDtHW6iIc86rnjF1iL0gjKEa+dfmXbQFnnTw/Gufz2a6kbMpbtASV0cxD0VKSBqN 0EuMkBxXAarTvy99zlgRFzAt3ShBAZWPy10QHrESh+AOoAZhRnB7dgFUZbxB8xpay7mS O+/MOxS3F3s35FPLc9NZt9Avht1KWNZ3rnejx4z5Un5Cr81mMe+I0tfbiCvgJ/9GEqot GX+g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=8cIznw+dyX1vcG56w+gPzwZpYqDQrvK8oXm3EA+YAok=; b=FnqvnA6TjMB9LmwV2rXYsXs17vuv4NUFbHdULLHrIbuJkjH1vOaHfPfNxkRk01e9nv YDhMySmXFGLeOHJRdlqtTzvQXJDAGo8Vfc+mGYXOWuZwgCbqUp6lLnkafpeZf1+MsqNk WZoZTDRYbjZPG8NafbWvz4Snf19Meek/Y+V1y5FQNL4UzXtMWlY5FjwJZNs7YZ0DfmEI 7IP8qqLg9BwAblvf8k6E8sFM6UtoIbXEe1TF42cRdiUVhisRDeYRZpjYYcfzKlLL3meh fc8G64dPkNmIId/53/jx+3YezKdj3k19TqAFdADunBr3vj70qUU7ehTCllUk25OK/IjN xk4Q==
X-Gm-Message-State: AIkVDXL9FPLjum5GTuWwlLf4XBwOOP++vD1xZKE6nxAf5zloHZybS3wBMb5cszR7sN04bPGe+nWo9Dmw05cz/A==
X-Received: by 10.46.15.26 with SMTP id 26mr3132619ljp.52.1484787224103; Wed, 18 Jan 2017 16:53:44 -0800 (PST)
MIME-Version: 1.0
Received: by 10.25.18.200 with HTTP; Wed, 18 Jan 2017 16:53:43 -0800 (PST)
In-Reply-To: <C51C3F51-37BE-489F-BA1D-76B101517307@lukasa.co.uk>
References: <CAFn2buAYWHQSWhhoKZ2GKbqXR1A+tScjkAwZmOuQ9gV9jMp2bA@mail.gmail.com> <CAGZNdJWe0Y=M_SWmgYabKbWZwPEuJdw67Km8+UtR4oUtZuXA5A@mail.gmail.com> <2BC01E49-91A1-43A7-AFD0-5A34F2689428@lukasa.co.uk> <CAFn2buDCMwMp=rR0C_yt4-gUwyFhY6ruonz9wT-jVMu+Kir=nA@mail.gmail.com> <C51C3F51-37BE-489F-BA1D-76B101517307@lukasa.co.uk>
From: Scott Mitchell <scott.k.mitch1@gmail.com>
Date: Wed, 18 Jan 2017 16:53:43 -0800
Message-ID: <CAFn2buAE-EdTEG9x-wLQSy5Osmcq1Hdps9YLW_7j9CTV4_Fuyw@mail.gmail.com>
To: Cory Benfield <cory@lukasa.co.uk>
Cc: Benedikt Christoph Wolters <benedikt.wolters@rwth-aachen.de>,  HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary=f403043604f20f50c7054667f7a4
Received-SPF: pass client-ip=209.85.215.47; envelope-from=scott.k.mitch1@gmail.com; helo=mail-lf0-f47.google.com
X-W3C-Hub-Spam-Status: No, score=-3.0
X-W3C-Hub-Spam-Report: AWL=0.262, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cU0zT-000226-1i e940b21b6ac205536998089f02e6102d
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Stream State and PRIORITY Frames
Archived-At: <http://www.w3.org/mid/CAFn2buAE-EdTEG9x-wLQSy5Osmcq1Hdps9YLW_7j9CTV4_Fuyw@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33319
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>

--f403043604f20f50c7054667f7a4
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On Wed, Jan 18, 2017 at 11:50 AM, Cory Benfield <cory@lukasa.co.uk> wrote:

>
> On 18 Jan 2017, at 16:38, Scott Mitchell <scott.k.mitch1@gmail.com> wrote=
:
>
> This is interesting. If FF is using streams 1-7 then as soon as stream 9
> is used for a HEADERS request that will close streams 1-7 according to
> section 5.1.1:
>
> > first use of a new stream identifier implicitly closes all streams in
> the "idle" state that might have been initiated by that peer with a
> lower-valued stream identifier
>
>
> Only if they are not opened via HEADERS frames, which they are. FF sent (=
I
> haven=E2=80=99t checked recently) PRIORITY frames for the first few strea=
m IDs, and
> then started sending HEADERS from 1 onwards.
>
>
>

I just ran FF 50.1.0 against a simple local server (TLS+ALPN) and here is
the behavior I observe:

1. Client PRIORITY [StreamId=3D3,StreamDependency=3D0,
Weight=3D201,Exclusive=3DFalse] -> Server
2. Client PRIORITY [StreamId=3D5,StreamDependency=3D0,
Weight=3D101,Exclusive=3DFalse] -> Server
3. Client PRIORITY [StreamId=3D7,StreamDependency=3D0,
Weight=3D1,Exclusive=3DFalse] -> Server
4. Client PRIORITY [StreamId=3D9,StreamDependency=3D7,
Weight=3D1,Exclusive=3DFalse] -> Server
5. Client PRIORITY [StreamId=3D11,StreamDependency=3D3,
Weight=3D1,Exclusive=3DFalse] -> Server
6. Client HEADERS [StreamId=3D13,StreamDependency=3D11,
Weight=3D2,Exclusive=3DFalse] -> Server (a GET "/" request)
7. Client HEADERS [StreamId=3D15,StreamDependency=3D0,
Weight=3D16,Exclusive=3DFalse] -> Server (a GET "/favicon.ico" request)

There were other frames (SETTINGS, DATA, PING, WINDOW_UPDATE, GO_AWAY)
which were omitted for the purposes of this discussion.

Based on the RFC it seems like stream ids {3, 5, 7, 11} should be closed at
step (6). Note that FF is not doing anything wrong here. It shouldn't have
to care that the streams are CLOSED in this scenario (assuming these
streams only ever have PRIORITY frames exchanged). It would be interesting
to get a FF dev to comment on the expected stream state here just to be
sure these streams will only be used for PRIORITY. Either way
maintaining/interpreting the priority is at the discretion of the server
and these streams being closed does not impact the server's ability to do
this (as discussed previously the RFC suggests retaining priority for
closed streams).


Cory
>
>

--f403043604f20f50c7054667f7a4
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div class=3D"gmail_quo=
te">On Wed, Jan 18, 2017 at 11:50 AM, Cory Benfield <span dir=3D"ltr">&lt;<=
a href=3D"mailto:cory@lukasa.co.uk" target=3D"_blank">cory@lukasa.co.uk</a>=
&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0px=
 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);bor=
der-left-style:solid;padding-left:1ex"><div style=3D"word-wrap:break-word">=
<br><div><span class=3D"gmail-"><blockquote type=3D"cite"><div>On 18 Jan 20=
17, at 16:38, Scott Mitchell &lt;<a href=3D"mailto:scott.k.mitch1@gmail.com=
" target=3D"_blank">scott.k.mitch1@gmail.com</a>&gt; wrote:</div><div><div =
class=3D"gmail_quote" style=3D"font-family:helvetica;font-size:12px;font-st=
yle:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:norma=
l;text-align:start;text-indent:0px;text-transform:none;white-space:normal;w=
ord-spacing:0px"><div><br></div><div>This is interesting. If FF is using st=
reams 1-7 then as soon as stream 9 is used for a HEADERS request that will =
close streams 1-7 according to section 5.1.1:</div><div><br></div><div>&gt;=
=C2=A0<span style=3D"font-size:13.333333015441895px">first use of a new str=
eam identifier implicitly closes all=C2=A0</span><span style=3D"font-size:1=
3.333333015441895px">streams in the &quot;idle&quot; state that might have =
been initiated by that=C2=A0</span><span style=3D"font-size:13.333333015441=
895px">peer with a lower-valued stream identifier</span></div></div></div><=
/blockquote><div><br></div></span><div>Only if they are not opened via HEAD=
ERS frames, which they are. FF sent (I haven=E2=80=99t checked recently) PR=
IORITY frames for the first few stream IDs, and then started sending HEADER=
S from 1 onwards.</div><span class=3D"gmail-HOEnZb"><font color=3D"#888888"=
><br></font></span></div><span class=3D"gmail-HOEnZb"><font color=3D"#88888=
8"><div><br></div></font></span></div></blockquote><div><br></div><div><br>=
</div><div>I just ran FF 50.1.0 against a simple local server (TLS+ALPN) an=
d here is the behavior I observe:</div><div><br></div><div>1. Client PRIORI=
TY [StreamId=3D3,StreamDependency=3D0, Weight=3D201,Exclusive=3DFalse] -&gt=
; Server</div><div>2. Client PRIORITY [StreamId=3D5,StreamDependency=3D0, W=
eight=3D101,Exclusive=3DFalse] -&gt; Server<br></div><div>3. Client PRIORIT=
Y [StreamId=3D7,StreamDependency=3D0, Weight=3D1,Exclusive=3DFalse] -&gt; S=
erver<br></div><div>4. Client PRIORITY [StreamId=3D9,StreamDependency=3D7, =
Weight=3D1,Exclusive=3DFalse] -&gt; Server<br></div><div>5. Client PRIORITY=
 [StreamId=3D11,StreamDependency=3D3, Weight=3D1,Exclusive=3DFalse] -&gt; S=
erver<br></div><div>6. Client HEADERS [StreamId=3D13,StreamDependency=3D11,=
 Weight=3D2,Exclusive=3DFalse] -&gt; Server (a GET &quot;/&quot; request)<b=
r></div><div>7. Client HEADERS [StreamId=3D15,StreamDependency=3D0, Weight=
=3D16,Exclusive=3DFalse] -&gt; Server (a GET &quot;/favicon.ico&quot; reque=
st)</div><div><br></div><div>There were other frames (SETTINGS, DATA, PING,=
 WINDOW_UPDATE, GO_AWAY) which were omitted for the purposes of this discus=
sion.</div><div><br></div><div>Based on the RFC it seems like stream ids {3=
, 5, 7, 11} should be closed at step (6). Note that FF is not doing anythin=
g wrong here. It shouldn&#39;t have to care that the streams are CLOSED in =
this scenario (assuming these streams only ever have PRIORITY frames exchan=
ged). It would be interesting to get a FF dev to comment on the expected st=
ream state here just to be sure these streams will only be used for PRIORIT=
Y. Either way maintaining/interpreting the priority is at the discretion of=
 the server and these streams being closed does not impact the server&#39;s=
 ability to do this (as discussed previously the RFC suggests retaining pri=
ority for closed streams).</div><div>=C2=A0</div><div><br></div><blockquote=
 class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left-width:=
1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left=
:1ex"><div style=3D"word-wrap:break-word"><span class=3D"gmail-HOEnZb"><fon=
t color=3D"#888888"><div></div><div>Cory</div><br></font></span></div></blo=
ckquote></div><br></div></div>

--f403043604f20f50c7054667f7a4--


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Wed Jan 18 17:24:26 2017
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 E9BBB1295DF for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 18 Jan 2017 17:24:26 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.719
X-Spam-Level:
X-Spam-Status: No, score=-9.719 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, 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 hqRHo5-vqKCp for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 18 Jan 2017 17:24:26 -0800 (PST)
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 F17A51295A6 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 18 Jan 2017 17:24:25 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cU1QF-00026q-19 for ietf-http-wg-dist@listhub.w3.org; Thu, 19 Jan 2017 01:21:51 +0000
Resent-Date: Thu, 19 Jan 2017 01:21:51 +0000
Resent-Message-Id: <E1cU1QF-00026q-19@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <scott.k.mitch1@gmail.com>) id 1cU1QB-000261-Mq for ietf-http-wg@listhub.w3.org; Thu, 19 Jan 2017 01:21:47 +0000
Received: from mail-lf0-f41.google.com ([209.85.215.41]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <scott.k.mitch1@gmail.com>) id 1cU1Q5-0003F3-Jn for ietf-http-wg@w3.org; Thu, 19 Jan 2017 01:21:42 +0000
Received: by mail-lf0-f41.google.com with SMTP id z134so25270489lff.3 for <ietf-http-wg@w3.org>; Wed, 18 Jan 2017 17:21:21 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=pxIu4J47X/0QlTV3UEKTMbjA6t9Ag4to7OwLyMo2Bd4=; b=H9wt+Yf5k1Q4kZfhQt7pP7JMF0jBkWSliWU+ZMH6iDqFM/ZU8iGgnsIZyyj8bVCmTo lyVS+tJWWzVrg+WMiwV/KFfviV+tqygYa4H9KTNhLKYPKzAly2Ah1uVSyaYTZtqPbzh9 VXCUbd0sKccfE6YQFzcEDPly7FnKRu6sfEAVaSVId+spGTSiEYId2VEWH9ARBH1pLFxq 6nRMJ+raNDLZ/Uiooy31lS041ZAAXgTW2P6Dmn5viMhUt02cab+8vpxO06rgrzPY7wkZ AkmX5Xd1K25tY0tdyiMAqofEmMkNnkFdI6V1G/yWY0pyG5TN/7cl/rKc+zUitHDR17Kt EJzA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=pxIu4J47X/0QlTV3UEKTMbjA6t9Ag4to7OwLyMo2Bd4=; b=goKFakI6iZ0M7ykq0504F6zqBYUwBYBUlaJMy0ZR+fbs8sVycq8UjOE9EETgXpIJTS S1B1Kk74V9ukb70UszjM3lwunAcAFRHbMz3SPEgN4LhYTsHQ4fKHeepw70fFypccUIJR Vs0H12h7CSUNEq676ZSkInGSYqfEqoiGJdDrtYQB65/Xfw9C6ZNTn4r8fLg7Pn/6Ccmd WE7erIbL0vf6CakCFV6SJ5qQ1tQH8Vf9jYMiJilXYWVymRgOq1yTcen5Lia8e+ovOspa vsepx572AckNB2XxlSWNc0k0SuTiD/RdH3fitZZkuHYS69wbxRbBtP0Gx32fZ2HpqMel Cr0A==
X-Gm-Message-State: AIkVDXIHgFOQEmMEyr/AlwRkJg+TkJWC4F2cFGS1cCCYzQqvJQPIl2YHfHVIHCq9n2KiRC5YcLUoeJXPMrs3ZA==
X-Received: by 10.46.76.1 with SMTP id z1mr2981971lja.48.1484788874629; Wed, 18 Jan 2017 17:21:14 -0800 (PST)
MIME-Version: 1.0
Received: by 10.25.18.200 with HTTP; Wed, 18 Jan 2017 17:21:13 -0800 (PST)
In-Reply-To: <CAFn2buDrHtB1z16iTWE945bU_qhxTypr05A=5B_nrQoyQijyOw@mail.gmail.com>
References: <CAFn2buAYWHQSWhhoKZ2GKbqXR1A+tScjkAwZmOuQ9gV9jMp2bA@mail.gmail.com> <CAPyZ6=Kh3n+RJi=RqgFBojgRDpfJ=nbr0i4kvO20ET0Kt7UA8Q@mail.gmail.com> <CABkgnnWmPdDXVS+CvmChRjyqkJooSKgy6KdUdN+9nGzOyJazhg@mail.gmail.com> <CAFn2buDrHtB1z16iTWE945bU_qhxTypr05A=5B_nrQoyQijyOw@mail.gmail.com>
From: Scott Mitchell <scott.k.mitch1@gmail.com>
Date: Wed, 18 Jan 2017 17:21:13 -0800
Message-ID: <CAFn2buB_RpbwaTzDgYUNt0e9=vFyu--SYgSLBrfAd1Tf0b1_nQ@mail.gmail.com>
To: Martin Thomson <martin.thomson@gmail.com>
Cc: Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary=f403045ea6da7059180546685989
Received-SPF: pass client-ip=209.85.215.41; envelope-from=scott.k.mitch1@gmail.com; helo=mail-lf0-f41.google.com
X-W3C-Hub-Spam-Status: No, score=-3.4
X-W3C-Hub-Spam-Report: AWL=0.568, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cU1Q5-0003F3-Jn 1b4c7133cc4a7d2979f623b447d8a71e
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Stream State and PRIORITY Frames
Archived-At: <http://www.w3.org/mid/CAFn2buB_RpbwaTzDgYUNt0e9=vFyu--SYgSLBrfAd1Tf0b1_nQ@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33320
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>

--f403045ea6da7059180546685989
Content-Type: text/plain; charset=UTF-8

On Tue, Jan 17, 2017 at 2:43 PM, Scott Mitchell <scott.k.mitch1@gmail.com>
wrote:

> From my perspective I would like to see two clarifications:
>
> 1. It is clear to me that PRIORITY doesn't impact state.
>

Just to clarify ... it is clear that a PRIORITY frame doesn't impact the
state of the stream  it is carrying priority information for. The impacts
PRIORITY frames have on other streams is not clear due to the wording in
section 5.1.1.


> However Section 5.1.1 states "first use of a new stream identifier" which
> makes no reference to stream state. If stream state is important/implied
> here better to be specific about it. I don't think the one-off example
> below this text is sufficient to convey the intended implications of this
> statement.
>
> 2. Section 5.1.2 states "Streams in either of the 'reserved' states do
> not count toward the stream limit." which seems to conflict with section
> 8.2.2 "A client can use the SETTINGS_MAX_CONCURRENT_STREAMS setting to
> limit the number of responses that can be concurrently pushed by a server.".
> These two statements appear to contradict each other. Since
> SETTINGS_MAX_CONCURRENT_STREAMS is really the only mechanism to limit
> resources due to server push I'm assuming section 5.1.2 is overly
> restrictive.
>
>
> On Tue, Jan 17, 2017 at 2:27 PM, Martin Thomson <martin.thomson@gmail.com>
> wrote:
>
>> On 18 January 2017 at 01:37, Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>
>> wrote:
>> > If my understanding is correct, this only refers to the new stream ID
>> used
>> > by HEADERS, and PUSH_PROMISE frames which open or reserve streams.  The
>> > example text following that statement uses HEADERS which opens new
>> stream.
>> > PRIORITY frame does not change stream state, and there is no reason to
>> close
>> > all unused streams lower than bearing stream ID.  That said, I agree
>> that
>> > this is not crystal clear in the document.  In practice, this is
>> probably
>> > rather rare case.
>>
>> This is, I think, the expectation.
>>
>> I think that we probably want to clarify the point by explicitly
>> saying that PRIORITY doesn't affect stream states.  We say that it can
>> be sent in any state, but we don't also mention that important point.
>> Do people here agree that an erratum on this point is appropriate
>> here?
>>
>
>

--f403045ea6da7059180546685989
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div class=3D"gmail_quo=
te">On Tue, Jan 17, 2017 at 2:43 PM, Scott Mitchell <span dir=3D"ltr">&lt;<=
a href=3D"mailto:scott.k.mitch1@gmail.com" target=3D"_blank">scott.k.mitch1=
@gmail.com</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=
=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir=
=3D"ltr">From my perspective I would like to see two clarifications:<div><b=
r></div><div>1. It is clear to me that PRIORITY doesn&#39;t impact state.</=
div></div></blockquote><div><br></div><div>Just to clarify ... it is clear =
that a PRIORITY frame doesn&#39;t impact the state of the stream =C2=A0it i=
s carrying priority information for. The impacts PRIORITY frames have on ot=
her streams is not clear due to the wording in section 5.1.1.</div><div>=C2=
=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;borde=
r-left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr"><div> However Sect=
ion 5.1.1 states &quot;<font color=3D"#000000" size=3D"2">first use of a ne=
w stream identifier&quot; which makes no reference to stream state. If stre=
am state is important/implied here better to be specific about it. I don&#3=
9;t think the one-off example below this text is sufficient to convey the i=
ntended implications of this statement.</font><br></div><div><span style=3D=
"color:rgb(0,0,0);font-size:13.333333015441895px"><br></span></div><div><sp=
an style=3D"color:rgb(0,0,0);font-size:13.333333015441895px">2. Section 5.1=
.2 states &quot;</span><span style=3D"color:rgb(0,0,0);font-size:13.3333330=
15441895px">Streams in either of the &#39;</span><span style=3D"color:rgb(0=
,0,0);font-size:13.333333015441895px">reserved&#39; states do not count tow=
ard the stream limit.&quot; which seems to conflict with section 8.2.2 &quo=
t;</span><span style=3D"color:rgb(0,0,0);font-size:13.333333015441895px">A =
client can use the SETTINGS_MAX_CONCURRENT_<wbr>STREAMS setting to limit=C2=
=A0</span><span style=3D"color:rgb(0,0,0);font-size:13.333333015441895px">t=
he number of responses that can be concurrently pushed by a server.</span><=
span style=3D"color:rgb(0,0,0);font-size:13.333333015441895px">&quot;. Thes=
e two statements appear to contradict each other. Since=C2=A0</span><font c=
olor=3D"#000000" size=3D"2">SETTINGS_MAX_CONCURRENT_<wbr>STREAMS is really =
the only=C2=A0mechanism to limit resources due to server push I&#39;m assum=
ing=C2=A0section 5.1.2 is overly restrictive.</font></div><div><font color=
=3D"#000000" size=3D"2"><br></font></div></div><div class=3D"HOEnZb"><div c=
lass=3D"h5"><div class=3D"gmail_extra"><br><div class=3D"gmail_quote">On Tu=
e, Jan 17, 2017 at 2:27 PM, Martin Thomson <span dir=3D"ltr">&lt;<a href=3D=
"mailto:martin.thomson@gmail.com" target=3D"_blank">martin.thomson@gmail.co=
m</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margi=
n:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On 18 Janua=
ry 2017 at 01:37, Tatsuhiro Tsujikawa &lt;<a href=3D"mailto:tatsuhiro.t@gma=
il.com" target=3D"_blank">tatsuhiro.t@gmail.com</a>&gt; wrote:<br>
&gt; If my understanding is correct, this only refers to the new stream ID =
used<br>
&gt; by HEADERS, and PUSH_PROMISE frames which open or reserve streams.=C2=
=A0 The<br>
&gt; example text following that statement uses HEADERS which opens new str=
eam.<br>
&gt; PRIORITY frame does not change stream state, and there is no reason to=
 close<br>
&gt; all unused streams lower than bearing stream ID.=C2=A0 That said, I ag=
ree that<br>
&gt; this is not crystal clear in the document.=C2=A0 In practice, this is =
probably<br>
&gt; rather rare case.<br>
<br>
</span>This is, I think, the expectation.<br>
<br>
I think that we probably want to clarify the point by explicitly<br>
saying that PRIORITY doesn&#39;t affect stream states.=C2=A0 We say that it=
 can<br>
be sent in any state, but we don&#39;t also mention that important point.<b=
r>
Do people here agree that an erratum on this point is appropriate<br>
here?<br>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div></div>

--f403045ea6da7059180546685989--


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Wed Jan 18 19:00:42 2017
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 6E55E12949F for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 18 Jan 2017 19:00:42 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.72
X-Spam-Level:
X-Spam-Status: No, score=-9.72 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, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, 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 AHkcrPyTnaPJ for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 18 Jan 2017 19:00:40 -0800 (PST)
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 26D2B1294C1 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 18 Jan 2017 19:00:39 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cU2v8-0006bO-EY for ietf-http-wg-dist@listhub.w3.org; Thu, 19 Jan 2017 02:57:50 +0000
Resent-Date: Thu, 19 Jan 2017 02:57:50 +0000
Resent-Message-Id: <E1cU2v8-0006bO-EY@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <kazuhooku@gmail.com>) id 1cU2v5-0006ad-4F for ietf-http-wg@listhub.w3.org; Thu, 19 Jan 2017 02:57:47 +0000
Received: from mail-ot0-f174.google.com ([74.125.82.174]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <kazuhooku@gmail.com>) id 1cU2uy-00061c-TW for ietf-http-wg@w3.org; Thu, 19 Jan 2017 02:57:41 +0000
Received: by mail-ot0-f174.google.com with SMTP id 104so22876279otd.3 for <ietf-http-wg@w3.org>; Wed, 18 Jan 2017 18:57:20 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=iBVnuf5FbItR3VHSaS6UbHc22Zu1PaQJOviJ9XbQBSc=; b=GYuUwlntKb91KQOEpzacEUH8OSBEDzhnQ3ITeltECiq7Xxibc0jttmohkYsNVDtNVr 6FVGL/Bmzf2PXGFx5BXfi5ofoj3qBjM5CWznAzyrmG6Wx/498YO4c9ZnDvDd2p0+NbEQ vxwn+0Ex/N2Khcrs79ziOM6ws2eNfVU0UfbCqCR4+GmqaD7+QCi6YXXOsR9HipsB7IdM YYLajOZNZ5+sDEY4xgtoMYJaS2evwFP3IWTh25yjMAq1uefJzwWprKe9M0+LyccO5TzP nnVlSzPNulZAuqK2IJ0309sVmm41B6FQEcNh1Xc6qsUZr2qu0Uz/jfWFCQOmjdFcwiQo Yx4g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=iBVnuf5FbItR3VHSaS6UbHc22Zu1PaQJOviJ9XbQBSc=; b=n6d/Tj5iRs8lgECLFulb+81r+KgSOZOmd92H6OtrM2YDUpiN+jNlDaMkChGnDnkzgA CVjk4tMfmFCUaNnYM6+ElT3QIFkED/KFm9f/IGr69bgQiACIxwwX5y+22MHREly/RKgj +genuoN7aSZSF1It8eBYXfPNKBjSExL77K8lfspTpepDrDkAfuGXj2jNZdda1BKyZyVm IQ8+kpHapcAp5R4kWVNr3BNY1AVqP8vODM1WRCiaa2B71TQtSiiHg4JZ3xkbZSmd/1Ip 8yQrZ7ejTetK5zJ4EY+YqAaei3pFCUqfORmLQN6rpLntuIU3WJ2Mh10XnymAj04I5OBq jM/g==
X-Gm-Message-State: AIkVDXL/6nHptTnbp6EPUBNzixiaqgTZX0BfkDcioR+C0JM/llHITuqX1m0IKzulJNYqkE4evG6BQql909V0gg==
X-Received: by 10.157.45.84 with SMTP id v78mr3036861ota.102.1484794634380; Wed, 18 Jan 2017 18:57:14 -0800 (PST)
MIME-Version: 1.0
Received: by 10.157.16.113 with HTTP; Wed, 18 Jan 2017 18:57:13 -0800 (PST)
In-Reply-To: <CAFn2buAE-EdTEG9x-wLQSy5Osmcq1Hdps9YLW_7j9CTV4_Fuyw@mail.gmail.com>
References: <CAFn2buAYWHQSWhhoKZ2GKbqXR1A+tScjkAwZmOuQ9gV9jMp2bA@mail.gmail.com> <CAGZNdJWe0Y=M_SWmgYabKbWZwPEuJdw67Km8+UtR4oUtZuXA5A@mail.gmail.com> <2BC01E49-91A1-43A7-AFD0-5A34F2689428@lukasa.co.uk> <CAFn2buDCMwMp=rR0C_yt4-gUwyFhY6ruonz9wT-jVMu+Kir=nA@mail.gmail.com> <C51C3F51-37BE-489F-BA1D-76B101517307@lukasa.co.uk> <CAFn2buAE-EdTEG9x-wLQSy5Osmcq1Hdps9YLW_7j9CTV4_Fuyw@mail.gmail.com>
From: Kazuho Oku <kazuhooku@gmail.com>
Date: Thu, 19 Jan 2017 11:57:13 +0900
Message-ID: <CANatvzzEV6Qd1huVxO=T2m7UwwX207RCetrXyZ1FMMGrBtzeEg@mail.gmail.com>
To: Scott Mitchell <scott.k.mitch1@gmail.com>
Cc: Cory Benfield <cory@lukasa.co.uk>,  Benedikt Christoph Wolters <benedikt.wolters@rwth-aachen.de>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=74.125.82.174; envelope-from=kazuhooku@gmail.com; helo=mail-ot0-f174.google.com
X-W3C-Hub-Spam-Status: No, score=-4.3
X-W3C-Hub-Spam-Report: AWL=-0.786, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cU2uy-00061c-TW 0f11de0885941138d2f407a9cdf4cd5e
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Stream State and PRIORITY Frames
Archived-At: <http://www.w3.org/mid/CANatvzzEV6Qd1huVxO=T2m7UwwX207RCetrXyZ1FMMGrBtzeEg@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33321
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>

2017-01-19 9:53 GMT+09:00 Scott Mitchell <scott.k.mitch1@gmail.com>:
>
>
> On Wed, Jan 18, 2017 at 11:50 AM, Cory Benfield <cory@lukasa.co.uk> wrote=
:
>>
>>
>> On 18 Jan 2017, at 16:38, Scott Mitchell <scott.k.mitch1@gmail.com> wrot=
e:
>>
>> This is interesting. If FF is using streams 1-7 then as soon as stream 9
>> is used for a HEADERS request that will close streams 1-7 according to
>> section 5.1.1:
>>
>> > first use of a new stream identifier implicitly closes all streams in
>> > the "idle" state that might have been initiated by that peer with a
>> > lower-valued stream identifier
>>
>>
>> Only if they are not opened via HEADERS frames, which they are. FF sent =
(I
>> haven=E2=80=99t checked recently) PRIORITY frames for the first few stre=
am IDs, and
>> then started sending HEADERS from 1 onwards.
>>
>>
>
>
> I just ran FF 50.1.0 against a simple local server (TLS+ALPN) and here is
> the behavior I observe:
>
> 1. Client PRIORITY [StreamId=3D3,StreamDependency=3D0,
> Weight=3D201,Exclusive=3DFalse] -> Server
> 2. Client PRIORITY [StreamId=3D5,StreamDependency=3D0,
> Weight=3D101,Exclusive=3DFalse] -> Server
> 3. Client PRIORITY [StreamId=3D7,StreamDependency=3D0, Weight=3D1,Exclusi=
ve=3DFalse]
> -> Server
> 4. Client PRIORITY [StreamId=3D9,StreamDependency=3D7, Weight=3D1,Exclusi=
ve=3DFalse]
> -> Server
> 5. Client PRIORITY [StreamId=3D11,StreamDependency=3D3,
> Weight=3D1,Exclusive=3DFalse] -> Server
> 6. Client HEADERS [StreamId=3D13,StreamDependency=3D11,
> Weight=3D2,Exclusive=3DFalse] -> Server (a GET "/" request)
> 7. Client HEADERS [StreamId=3D15,StreamDependency=3D0,
> Weight=3D16,Exclusive=3DFalse] -> Server (a GET "/favicon.ico" request)
>
> There were other frames (SETTINGS, DATA, PING, WINDOW_UPDATE, GO_AWAY) wh=
ich
> were omitted for the purposes of this discussion.
>
> Based on the RFC it seems like stream ids {3, 5, 7, 11} should be closed =
at
> step (6).

I had the same discussion with Cory, and now I agree with him that we
should _not_ interpret the specification that way.

As Cory points out on
https://github.com/h2o/h2o/pull/1136#issuecomment-266213322, the
normative definition is

   The identifier of a newly established stream MUST be numerically
   greater than all streams that the initiating endpoint has opened or
   reserved. This governs streams that are opened using a HEADERS frame
   and streams that are reserved using PUSH_PROMISE.

Therefore, a PRIORITY frame does not implicitly close the streams with
smaller IDs.

The following text that discusses when a stream gets implicitly closed
is written immediately after the formal description show above, so it
is fair to assume that the word _use_ in the sentence means when the
stream is opened or reserved (and not when a PRIORITY frame is
received).

   The first use of a new stream identifier implicitly closes all
   streams in the "idle" state that might have been initiated by that
   peer with a lower-valued stream identifier.


> Note that FF is not doing anything wrong here. It shouldn't have
> to care that the streams are CLOSED in this scenario (assuming these stre=
ams
> only ever have PRIORITY frames exchanged). It would be interesting to get=
 a
> FF dev to comment on the expected stream state here just to be sure these
> streams will only be used for PRIORITY. Either way maintaining/interpreti=
ng
> the priority is at the discretion of the server and these streams being
> closed does not impact the server's ability to do this (as discussed
> previously the RFC suggests retaining priority for closed streams).
>
>
>> Cory
>>
>



--=20
Kazuho Oku


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Thu Jan 19 01:05:18 2017
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 CD4D7128B38 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 19 Jan 2017 01:05:18 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.12
X-Spam-Level:
X-Spam-Status: No, score=-10.12 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, 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=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 8iddu3WG7tc1 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 19 Jan 2017 01:05:15 -0800 (PST)
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 80BD1127ABE for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 19 Jan 2017 01:05:15 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cU8b6-0000xK-0u for ietf-http-wg-dist@listhub.w3.org; Thu, 19 Jan 2017 09:01:32 +0000
Resent-Date: Thu, 19 Jan 2017 09:01:32 +0000
Resent-Message-Id: <E1cU8b6-0000xK-0u@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <squid3@treenet.co.nz>) id 1cU8b1-0000wU-Jf for ietf-http-wg@listhub.w3.org; Thu, 19 Jan 2017 09:01:27 +0000
Received: from [121.99.228.82] (helo=treenet.co.nz) by titan.w3.org with esmtp (Exim 4.84_2) (envelope-from <squid3@treenet.co.nz>) id 1cU8ap-00085r-Ts for ietf-http-wg@w3.org; Thu, 19 Jan 2017 09:01:22 +0000
Received: from [192.168.20.251] (unknown [121.98.40.15]) by treenet.co.nz (Postfix) with ESMTP id 67289E6EE5 for <ietf-http-wg@w3.org>; Thu, 19 Jan 2017 22:00:42 +1300 (NZDT)
To: ietf-http-wg@w3.org
References: <CAFn2buAYWHQSWhhoKZ2GKbqXR1A+tScjkAwZmOuQ9gV9jMp2bA@mail.gmail.com> <CAGZNdJWe0Y=M_SWmgYabKbWZwPEuJdw67Km8+UtR4oUtZuXA5A@mail.gmail.com> <2BC01E49-91A1-43A7-AFD0-5A34F2689428@lukasa.co.uk> <CAFn2buDCMwMp=rR0C_yt4-gUwyFhY6ruonz9wT-jVMu+Kir=nA@mail.gmail.com> <C51C3F51-37BE-489F-BA1D-76B101517307@lukasa.co.uk> <CAFn2buAE-EdTEG9x-wLQSy5Osmcq1Hdps9YLW_7j9CTV4_Fuyw@mail.gmail.com> <CANatvzzEV6Qd1huVxO=T2m7UwwX207RCetrXyZ1FMMGrBtzeEg@mail.gmail.com>
From: Amos Jeffries <squid3@treenet.co.nz>
Message-ID: <e420eda0-57fc-43e8-a82a-0988db75ab32@treenet.co.nz>
Date: Thu, 19 Jan 2017 22:00:25 +1300
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0
MIME-Version: 1.0
In-Reply-To: <CANatvzzEV6Qd1huVxO=T2m7UwwX207RCetrXyZ1FMMGrBtzeEg@mail.gmail.com>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Received-SPF: pass client-ip=121.99.228.82; envelope-from=squid3@treenet.co.nz; helo=treenet.co.nz
X-W3C-Hub-Spam-Status: No, score=-4.3
X-W3C-Hub-Spam-Report: AWL=-1.172, BAYES_00=-1.9, RDNS_NONE=0.793, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1cU8ap-00085r-Ts 1a48d64644b91274322307388a44699a
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Stream State and PRIORITY Frames
Archived-At: <http://www.w3.org/mid/e420eda0-57fc-43e8-a82a-0988db75ab32@treenet.co.nz>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33322
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 19/01/2017 3:57 p.m., Kazuho Oku wrote:
> 2017-01-19 9:53 GMT+09:00 Scott Mitchell <scott.k.mitch1@gmail.com>:
>>
>>
>> On Wed, Jan 18, 2017 at 11:50 AM, Cory Benfield <cory@lukasa.co.uk> wrote:
>>>
>>>
>>> On 18 Jan 2017, at 16:38, Scott Mitchell <scott.k.mitch1@gmail.com> wrote:
>>>
>>> This is interesting. If FF is using streams 1-7 then as soon as stream 9
>>> is used for a HEADERS request that will close streams 1-7 according to
>>> section 5.1.1:
>>>
>>>> first use of a new stream identifier implicitly closes all streams in
>>>> the "idle" state that might have been initiated by that peer with a
>>>> lower-valued stream identifier
>>>
>>>
>>> Only if they are not opened via HEADERS frames, which they are. FF sent (I
>>> haven’t checked recently) PRIORITY frames for the first few stream IDs, and
>>> then started sending HEADERS from 1 onwards.
>>>
>>>
>>
>>
>> I just ran FF 50.1.0 against a simple local server (TLS+ALPN) and here is
>> the behavior I observe:
>>
>> 1. Client PRIORITY [StreamId=3,StreamDependency=0,
>> Weight=201,Exclusive=False] -> Server
>> 2. Client PRIORITY [StreamId=5,StreamDependency=0,
>> Weight=101,Exclusive=False] -> Server
>> 3. Client PRIORITY [StreamId=7,StreamDependency=0, Weight=1,Exclusive=False]
>> -> Server
>> 4. Client PRIORITY [StreamId=9,StreamDependency=7, Weight=1,Exclusive=False]
>> -> Server
>> 5. Client PRIORITY [StreamId=11,StreamDependency=3,
>> Weight=1,Exclusive=False] -> Server
>> 6. Client HEADERS [StreamId=13,StreamDependency=11,
>> Weight=2,Exclusive=False] -> Server (a GET "/" request)
>> 7. Client HEADERS [StreamId=15,StreamDependency=0,
>> Weight=16,Exclusive=False] -> Server (a GET "/favicon.ico" request)
>>
>> There were other frames (SETTINGS, DATA, PING, WINDOW_UPDATE, GO_AWAY) which
>> were omitted for the purposes of this discussion.
>>
>> Based on the RFC it seems like stream ids {3, 5, 7, 11} should be closed at
>> step (6).
> 
> I had the same discussion with Cory, and now I agree with him that we
> should _not_ interpret the specification that way.
> 

IIRC the intention behind the closing behaviour for idle streams was to
ensure that we could optimize away the need to maintain a list or array
of 2^31 state entries.

Omitting PRIORITY from the MAX_STREAMS voids that benefit.


> As Cory points out on
> https://github.com/h2o/h2o/pull/1136#issuecomment-266213322, the
> normative definition is
> 
>    The identifier of a newly established stream MUST be numerically
>    greater than all streams that the initiating endpoint has opened or
>    reserved. This governs streams that are opened using a HEADERS frame
>    and streams that are reserved using PUSH_PROMISE.
> 
> Therefore, a PRIORITY frame does not implicitly close the streams with
> smaller IDs.
> 
> The following text that discusses when a stream gets implicitly closed
> is written immediately after the formal description show above, so it
> is fair to assume that the word _use_ in the sentence means when the
> stream is opened or reserved (and not when a PRIORITY frame is
> received).
> 
>    The first use of a new stream identifier implicitly closes all
>    streams in the "idle" state that might have been initiated by that
>    peer with a lower-valued stream identifier.
> 
> 
>> Note that FF is not doing anything wrong here. It shouldn't have
>> to care that the streams are CLOSED in this scenario (assuming these streams
>> only ever have PRIORITY frames exchanged).

It is causing state to be allocated on the server and on every
intermediary along the way which accepts it.

Consider the effects of 2^31 PRIORITY frames being sent with different
IDs before the first HEADERS is used.
 Notice how even this one case is markedly worse than sending just one
HEADERS with stream ID == 2^31 to waste server sockets.

Add some other factors:
 * repeated frames are extremely cheap for sender.
 * random order on the frames.
 * encoding data in the sequence of stream-ids.
 * variance in the frequency of delay between frames.

One suddenly finds there is a whole category (or three) of attacks
available unless PRIORITY on an idle stream is drop/ignored (at worst)
or GOAWAY (at best).


> It would be interesting to get a
>> FF dev to comment on the expected stream state here just to be sure these
>> streams will only be used for PRIORITY. Either way maintaining/interpreting
>> the priority is at the discretion of the server and these streams being
>> closed does not impact the server's ability to do this (as discussed
>> previously the RFC suggests retaining priority for closed streams).

see above. Any server which does accept is opening itself to a world of
problems with complex workarounds. Allocating state for them makes it
even worse.

What I'd like from Firefox is an explanation of why exactly PRIORITY is
the first thing(s) happening here at all?

What exactly does it mean for them to set PRIORITY on a non-existent stream?


Amos



From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Thu Jan 19 02:03:32 2017
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 980D8129428 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 19 Jan 2017 02:03:32 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.12
X-Spam-Level:
X-Spam-Status: No, score=-10.12 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, 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=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 2br0SSX7tcZM for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 19 Jan 2017 02:03:31 -0800 (PST)
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 17C38129435 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 19 Jan 2017 02:03:31 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cU9WY-0004gs-R7 for ietf-http-wg-dist@listhub.w3.org; Thu, 19 Jan 2017 10:00:54 +0000
Resent-Date: Thu, 19 Jan 2017 10:00:54 +0000
Resent-Message-Id: <E1cU9WY-0004gs-R7@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <Lucas.Pardue@bbc.co.uk>) id 1cU9WV-0004Ka-6L for ietf-http-wg@listhub.w3.org; Thu, 19 Jan 2017 10:00:51 +0000
Received: from mailout1.telhc.bbc.co.uk ([132.185.161.180]) by titan.w3.org with esmtps (TLS1.2:DHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <Lucas.Pardue@bbc.co.uk>) id 1cU9WO-0001o6-Uu for ietf-http-wg@w3.org; Thu, 19 Jan 2017 10:00:45 +0000
Received: from BGB01XI1002.national.core.bbc.co.uk ([10.184.50.52]) by mailout1.telhc.bbc.co.uk (8.15.2/8.14.3) with ESMTP id v0JA0Kcd021453; Thu, 19 Jan 2017 10:00:20 GMT
Received: from BGB01XUD1012.national.core.bbc.co.uk ([10.161.14.10]) by BGB01XI1002.national.core.bbc.co.uk ([10.184.50.52]) with mapi id 14.03.0319.002; Thu, 19 Jan 2017 10:00:20 +0000
From: Lucas Pardue <Lucas.Pardue@bbc.co.uk>
To: Martin Thomson <martin.thomson@gmail.com>, Kari Hurtta <hurtta-ietf@elmme-mailer.org>
CC: HTTP working group mailing list <ietf-http-wg@w3.org>
Thread-Topic: Multiple Alt-Svc parameters of the same type
Thread-Index: AdJwD1nipE7N1BWkQ6a91Y0rjdnjyQAFZJCAAAn9fAAAex4u0A==
Date: Thu, 19 Jan 2017 10:00:20 +0000
Message-ID: <7CF7F94CB496BF4FAB1676F375F9666A376B9FD8@bgb01xud1012>
References: <7CF7F94CB496BF4FAB1676F375F9666A376B9A92@bgb01xud1012> <20170116181825.4A39514617@welho-filter1.welho.com> <CABkgnnWqo1KzPofnR8nS9S0DyZhGjg+yYkMH-qb+H7WcKG1uHw@mail.gmail.com>
In-Reply-To: <CABkgnnWqo1KzPofnR8nS9S0DyZhGjg+yYkMH-qb+H7WcKG1uHw@mail.gmail.com>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [172.19.161.211]
x-exclaimer-md-config: 1cd3ac1c-62e5-43f2-8404-6b688271c769
x-tm-as-product-ver: SMEX-11.0.0.4179-8.000.1202-22832.005
x-tm-as-result: No--14.209200-0.000000-31
x-tm-as-user-approved-sender: Yes
x-tm-as-user-blocked-sender: No
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
Received-SPF: pass client-ip=132.185.161.180; envelope-from=Lucas.Pardue@bbc.co.uk; helo=mailout1.telhc.bbc.co.uk
X-W3C-Hub-Spam-Status: No, score=-6.5
X-W3C-Hub-Spam-Report: AWL=0.389, BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-3.199, SPF_PASS=-0.001, W3C_NW=0.5
X-W3C-Scan-Sig: titan.w3.org 1cU9WO-0001o6-Uu 6f85cb81a01d1ff45e026deb71417559
X-Original-To: ietf-http-wg@w3.org
Subject: RE: Multiple Alt-Svc parameters of the same type
Archived-At: <http://www.w3.org/mid/7CF7F94CB496BF4FAB1676F375F9666A376B9FD8@bgb01xud1012>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33323
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>

T24gMTYgSmFudWFyeSAyMDE3IE1hcnRpbiBUaG9tcHNvbiB3cm90ZToNCg0KPkFzIGZhciBhcyBt
dWx0aXBsZSBwYXJhbWV0ZXJzIGdvLCBpdCBkb2Vzbid0IG1hdHRlciB3aGF0IHRoZSBnZW5lcmlj
IHJ1bGVzIGFyZSBhcyBsb25nIGFzIHRoZSBzcGVjaWZpYyBvbmVzIGFyZSBjb3JyZWN0Lg0KDQpJ
cyBpdCBjb3JyZWN0IHRvIGludGVycHJldCB0aGlzIHN0YXRlbWVudCB0byBzYXkgdGhhdCBNaWtl
J3MgZGVmaW5pdGlvbiBvZiB0aGUgdiBwYXJhbWV0ZXIgKG9yIHdoYXRldmVyIGl0IHR1cm5zIHRv
IGJlIGNhbGxlZCkgaXMgYSBzcGVjaWFsaXNhdGlvbiBvZiB0aGUgZ2VuZXJhbCBjYXNlIGFuZCBp
dCdzICJvcmRlcmVkIGxpc3QiIHByb2Nlc3NpbmcgaXMgaW1wbGVtZW50ZWQgYXQgdGhlIHJlcXVp
cmVkIGxldmVsLg0KDQpJbiBhIHN1YnNlcXVlbnQgZW1haWwsDQoNCj4gVGhhdCB3b3VsZCBzZWVt
IHRvIGJlIGEgcHJvYmxlbSB3aXRoIGFsbCBoZWFkZXIgZGVmaW5pdGlvbnMuICBJIG9wZW5lZCBh
bg0KPiBpc3N1ZSBvbiB0aGlzIHBvaW50IGEgd2hpbGUgYmFjayBoZXJlOg0KPiBodHRwczovL2dp
dGh1Yi5jb20vaHR0cHdnL2h0dHAtZXh0ZW5zaW9ucy9pc3N1ZXMvMjgxDQo+DQo+IEluIHRoaXMg
c3BlY2lmaWMgY2FzZSwgSSBkb24ndCBrbm93IHdoYXQgdGhlIGFuc3dlciBpcy4gIFlheS4NCg0K
SXQgbG9va3MgbGlrZSBteSBjb25jZXJuIGlzIG5vdCAibmV3IiwgaXQgaXMgZ29vZCB0byBzZWUg
dGhhdCB0aGVyZSBpcyBhbHJlYWR5IGFuIGlzc3VlIGNhcHR1cmluZyB0aGlzLg0KDQpJbiBzZXBh
cmF0ZSBHaXRIdWIgZGlzY3Vzc2lvbiwgSSBzYXcgeW91IHJlY29tbWVuZCB0aGF0IHdlIG1vdmUg
YXdheSBmcm9tIHRoZSBzdHlsZSB2PSIzNSwzNCIgYXMgdGhhdCByZXF1aXJlcyBhIG1pY3JvLXN5
bnRheCBkZWZpbml0aW9uIGZvciBlYWNoIHBhcmFtZXRlci4gSSBhZ3JlZSBhbmQgaXQgd291bGQg
c2VlbSB0byBiZSBiZXR0ZXIgdG8gYWRkcmVzcyB0aGUgaXNzdWUgaW4gYSBtb3JlIHJldXNhYmxl
IHdheS4NCg0KDQpMdWNhcw0KDQoNCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tDQpodHRw
Oi8vd3d3LmJiYy5jby51aw0KVGhpcyBlLW1haWwgKGFuZCBhbnkgYXR0YWNobWVudHMpIGlzIGNv
bmZpZGVudGlhbCBhbmQNCm1heSBjb250YWluIHBlcnNvbmFsIHZpZXdzIHdoaWNoIGFyZSBub3Qg
dGhlIHZpZXdzIG9mIHRoZSBCQkMgdW5sZXNzIHNwZWNpZmljYWxseSBzdGF0ZWQuDQpJZiB5b3Ug
aGF2ZSByZWNlaXZlZCBpdCBpbg0KZXJyb3IsIHBsZWFzZSBkZWxldGUgaXQgZnJvbSB5b3VyIHN5
c3RlbS4NCkRvIG5vdCB1c2UsIGNvcHkgb3IgZGlzY2xvc2UgdGhlDQppbmZvcm1hdGlvbiBpbiBh
bnkgd2F5IG5vciBhY3QgaW4gcmVsaWFuY2Ugb24gaXQgYW5kIG5vdGlmeSB0aGUgc2VuZGVyDQpp
bW1lZGlhdGVseS4NClBsZWFzZSBub3RlIHRoYXQgdGhlIEJCQyBtb25pdG9ycyBlLW1haWxzDQpz
ZW50IG9yIHJlY2VpdmVkLg0KRnVydGhlciBjb21tdW5pY2F0aW9uIHdpbGwgc2lnbmlmeSB5b3Vy
IGNvbnNlbnQgdG8NCnRoaXMuDQotLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLQ0K


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Thu Jan 19 06:15:58 2017
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 73E951270B4 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 19 Jan 2017 06:15:58 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.62
X-Spam-Level:
X-Spam-Status: No, score=-9.62 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-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, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, 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=lukasa-co-uk.20150623.gappssmtp.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 PsL38cIja-Lt for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 19 Jan 2017 06:15:55 -0800 (PST)
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 9BAFF1295ED for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 19 Jan 2017 06:15:55 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cUDRl-0007Pk-Mq for ietf-http-wg-dist@listhub.w3.org; Thu, 19 Jan 2017 14:12:13 +0000
Resent-Date: Thu, 19 Jan 2017 14:12:13 +0000
Resent-Message-Id: <E1cUDRl-0007Pk-Mq@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <cory@lukasa.co.uk>) id 1cUDRi-0007Me-GB for ietf-http-wg@listhub.w3.org; Thu, 19 Jan 2017 14:12:10 +0000
Received: from mail-wm0-f50.google.com ([74.125.82.50]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <cory@lukasa.co.uk>) id 1cUDRZ-0002Qs-7U for ietf-http-wg@w3.org; Thu, 19 Jan 2017 14:12:05 +0000
Received: by mail-wm0-f50.google.com with SMTP id c206so79162201wme.0 for <ietf-http-wg@w3.org>; Thu, 19 Jan 2017 06:11:40 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lukasa-co-uk.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=0qsGzY7iDtffKsuaq5CzAUa8zidXUiKLf1QK/bHvHiQ=; b=hdPghJihFb5eCUY5LEOfdyKQdrnQ/T2W8uvrZyxkxNj8xBmOVZmgOYqbmEJFZH9RvI K+3/2auqfxsymEnGZghVU5oF4is6wrTCtsibKiQ5++tZmr3UFEAEWDi37R7r0nO3wh5O SzBjehHZrHFvFSBaqutx6QDbQGCtwAgXHDf6e1KlqxcYv15V2iiSxpG3w0gPB1IHZqMc OXGJdIFXwLT/1CBi3IrnOci8MPTnwjSxPl603ZoIWbnBAiXb7Tql5AN3J76BCxsXqKhR ZTUsb73XublRLL1BdBhWALmHDdnSLuN3SfMnFA+hTM/HqPwAwys5vUaARcUZyIPc4PCr 1Qxg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=0qsGzY7iDtffKsuaq5CzAUa8zidXUiKLf1QK/bHvHiQ=; b=e1DqeZUPh9i6ci88lSvRKpcwTUMZDHrscbV7a+0xlMi8EXGlKR54UYoMRrBWS6frYI O1Enr5DF21Ai5qMXOk9CMXRDeEBmJteE3RlySphXarGeRtCU7pCrKvFSYI+kWt5kGfdo iI5I2qlenn9ENdMOq3Eews3bk2IUZVqIl7G8xG19ez3U1yoQTOAkgcALATcq0V1ESrmc Sd/Wy13z1iz3bCMG5RSwmUxY3LqoMQc2wpsOSwqD0IZhfDgfHzyKrwM4yApHx1KpduyV 96MAv/TC4PfzWaoBkXjLI2XtfMnZEoiPr9J+8fBFYIAAtBuxLyzQrXmoTop8f9jEzAtV 4URA==
X-Gm-Message-State: AIkVDXKpSBckTCe3sYP2HN836HLPS2FuGf2WX9ndaYeqTblwC+zybCz4DyTkji1zsE77zw==
X-Received: by 10.223.174.183 with SMTP id y52mr8563973wrc.112.1484835094365; Thu, 19 Jan 2017 06:11:34 -0800 (PST)
Received: from [192.168.1.3] (197.71.125.91.dyn.plus.net. [91.125.71.197]) by smtp.gmail.com with ESMTPSA id t194sm5916728wmd.1.2017.01.19.06.11.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Jan 2017 06:11:33 -0800 (PST)
Content-Type: text/plain; charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\))
From: Cory Benfield <cory@lukasa.co.uk>
In-Reply-To: <e420eda0-57fc-43e8-a82a-0988db75ab32@treenet.co.nz>
Date: Thu, 19 Jan 2017 14:11:31 +0000
Cc: ietf-http-wg@w3.org
Content-Transfer-Encoding: quoted-printable
Message-Id: <0FCBA000-E026-431A-802A-C2D39A98EF57@lukasa.co.uk>
References: <CAFn2buAYWHQSWhhoKZ2GKbqXR1A+tScjkAwZmOuQ9gV9jMp2bA@mail.gmail.com> <CAGZNdJWe0Y=M_SWmgYabKbWZwPEuJdw67Km8+UtR4oUtZuXA5A@mail.gmail.com> <2BC01E49-91A1-43A7-AFD0-5A34F2689428@lukasa.co.uk> <CAFn2buDCMwMp=rR0C_yt4-gUwyFhY6ruonz9wT-jVMu+Kir=nA@mail.gmail.com> <C51C3F51-37BE-489F-BA1D-76B101517307@lukasa.co.uk> <CAFn2buAE-EdTEG9x-wLQSy5Osmcq1Hdps9YLW_7j9CTV4_Fuyw@mail.gmail.com> <CANatvzzEV6Qd1huVxO=T2m7UwwX207RCetrXyZ1FMMGrBtzeEg@mail.gmail.com> <e420eda0-57fc-43e8-a82a-0988db75ab32@treenet.co.nz>
To: Amos Jeffries <squid3@treenet.co.nz>
X-Mailer: Apple Mail (2.3259)
Received-SPF: pass client-ip=74.125.82.50; envelope-from=cory@lukasa.co.uk; helo=mail-wm0-f50.google.com
X-W3C-Hub-Spam-Status: No, score=-3.6
X-W3C-Hub-Spam-Report: AWL=-0.157, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cUDRZ-0002Qs-7U 5ae51afd7ba42e834b86f2608219f30f
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Stream State and PRIORITY Frames
Archived-At: <http://www.w3.org/mid/0FCBA000-E026-431A-802A-C2D39A98EF57@lukasa.co.uk>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33324
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 19 Jan 2017, at 09:00, Amos Jeffries <squid3@treenet.co.nz> wrote:
>=20
> IIRC the intention behind the closing behaviour for idle streams was =
to
> ensure that we could optimize away the need to maintain a list or =
array
> of 2^31 state entries.
>=20
> Omitting PRIORITY from the MAX_STREAMS voids that benefit.

No it doesn=E2=80=99t.

Firstly, let=E2=80=99s note that the PRIORITY frame is defined not to =
change stream state. Receiving a PRIORITY frame on stream N leaves it in =
the idle state. A server implementation can thus treat the receipt of a =
PRIORITY frame on any stream that has a higher ID than the last stream =
on which it received a HEADERS frame as having the *exact* same effect =
on state retention as receiving a PING frame. It doesn=E2=80=99t =
*require* the insertion of any stream state data.

Specific implementations may require the insertion of stream state data =
if priority information is stored on the same structure as stream state =
information, but that is certainly not required. For example, receiving =
a bunch of PRIORITY frames does not cause the Python HTTP/2 =
implementation to allocate any more state information than receiving a =
bunch of PING frames.

> It is causing state to be allocated on the server and on every
> intermediary along the way which accepts it.
>=20
> Consider the effects of 2^31 PRIORITY frames being sent with different
> IDs before the first HEADERS is used.
> Notice how even this one case is markedly worse than sending just one
> HEADERS with stream ID =3D=3D 2^31 to waste server sockets.

This problem is orthogonal to the one we=E2=80=99re discussing.

So far I haven=E2=80=99t seen a proposal to say that PRIORITY frames =
should transition a stream out of the idle state. If we continue to =
leave RFC 7540 saying that PRIORITY frames leave streams in the idle =
state, then definitionally they are excluded from the restrictions on =
MAX_CONCURRENT_STREAMS. So if you are allocating stream state for idle =
streams, then you are open to this DoS vector, but none of the proposals =
here are trying to address it.

Additionally, I should note that the unbounded insertion of priority =
information into priority trees was discussed as an attack vector in =
this paper: https://www.imperva.com/docs/Imperva_HII_HTTP2.pdf. The =
paper was published in August of last year, and several implementations =
took steps to reduce their vulnerability to it (the Python priority =
implementation even filed a CVE, CVE-2016-6580).

I absolutely support adding an erratum to indicate that implementations =
should resist unbounded insertion of PRIORITY information. But unless =
you=E2=80=99re willing to say that idle streams should be counted =
against MAX_CONCURRENT_STREAMS (which is a tricky thing to state), then =
the only way to resolve this problem at the spec level is to force =
PRIORITY frames to make state transitions, further complicating the =
state diagram for streams.

> What exactly does it mean for them to set PRIORITY on a non-existent =
stream?

It means exactly what RFC 7540 says it means. Quoting from Section 5.3.4 =
of RFC 7540:

> Similarly, streams that are in the "idle" state can be assigned =
priority or become a parent of other streams. This allows for the =
creation of a grouping node in the dependency tree, which enables more =
flexible expressions of priority. Idle streams begin with a default =
priority (Section 5.3.5).

While we=E2=80=99re here, right below that section is:

> The retention of priority information for streams that are not counted =
toward the limit set by SETTINGS_MAX_CONCURRENT_STREAMS could create a =
large state burden for an endpoint. Therefore, the amount of =
prioritization state that is retained MAY be limited.

To this end, the Python priority implementation allows a user-configured =
maximum amount of data retention for priority information. This priority =
information is held separately from stream state information because =
they are entirely orthogonal concerns: in fact, the bits of code that =
manage priority information and those that manage stream state =
information are in entirely separate installable packages with no =
dependency relationship to each other.

To my eye, there is a clear intent to allow setting of priority =
information on streams that are in the idle state, without that =
affecting the stream itself.

Cory








From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Thu Jan 19 07:55:06 2017
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 CAC131296F7 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 19 Jan 2017 07:55:06 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.619
X-Spam-Level:
X-Spam-Status: No, score=-9.619 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 2e3RmkGqxub2 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 19 Jan 2017 07:55:03 -0800 (PST)
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 12A6312942F for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 19 Jan 2017 07:54:37 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cUF06-0000RJ-Ah for ietf-http-wg-dist@listhub.w3.org; Thu, 19 Jan 2017 15:51:46 +0000
Resent-Date: Thu, 19 Jan 2017 15:51:46 +0000
Resent-Message-Id: <E1cUF06-0000RJ-Ah@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <pmcmanus@mozilla.com>) id 1cUF01-0000Q9-IR for ietf-http-wg@listhub.w3.org; Thu, 19 Jan 2017 15:51:41 +0000
Received: from www.ducksong.com ([192.155.95.102] helo=linode64.ducksong.com) by mimas.w3.org with esmtp (Exim 4.84_2) (envelope-from <pmcmanus@mozilla.com>) id 1cUEzv-0006pA-Ec for ietf-http-wg@w3.org; Thu, 19 Jan 2017 15:51:36 +0000
Received: from mail-yw0-f170.google.com (mail-yw0-f170.google.com [209.85.161.170]) by linode64.ducksong.com (Postfix) with ESMTPSA id 8BFDA3A0A9 for <ietf-http-wg@w3.org>; Thu, 19 Jan 2017 10:51:12 -0500 (EST)
Received: by mail-yw0-f170.google.com with SMTP id l75so37930161ywb.0 for <ietf-http-wg@w3.org>; Thu, 19 Jan 2017 07:51:12 -0800 (PST)
X-Gm-Message-State: AIkVDXK5tUEs8gUOs9W6GdIwiPYOh1jtbaDV2EjiVQSbs5rB29sxrWsvSHRWEtqp17SVHsqQPI09kOSfVOsz7A==
X-Received: by 10.55.43.158 with SMTP id r30mr9434408qkr.28.1484841072369; Thu, 19 Jan 2017 07:51:12 -0800 (PST)
MIME-Version: 1.0
Received: by 10.12.162.65 with HTTP; Thu, 19 Jan 2017 07:51:11 -0800 (PST)
In-Reply-To: <CAPyZ6=Kh3n+RJi=RqgFBojgRDpfJ=nbr0i4kvO20ET0Kt7UA8Q@mail.gmail.com>
References: <CAFn2buAYWHQSWhhoKZ2GKbqXR1A+tScjkAwZmOuQ9gV9jMp2bA@mail.gmail.com> <CAPyZ6=Kh3n+RJi=RqgFBojgRDpfJ=nbr0i4kvO20ET0Kt7UA8Q@mail.gmail.com>
From: Patrick McManus <pmcmanus@mozilla.com>
Date: Thu, 19 Jan 2017 10:51:11 -0500
X-Gmail-Original-Message-ID: <CAOdDvNow33s0423M_j8j6Nr-PMZV-LjTgPpQguTRtuk5uM3vUg@mail.gmail.com>
Message-ID: <CAOdDvNow33s0423M_j8j6Nr-PMZV-LjTgPpQguTRtuk5uM3vUg@mail.gmail.com>
To: Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>
Cc: Scott Mitchell <scott.k.mitch1@gmail.com>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary=001a1149430eaaadb90546748089
Received-SPF: softfail client-ip=192.155.95.102; envelope-from=pmcmanus@mozilla.com; helo=linode64.ducksong.com
X-W3C-Hub-Spam-Status: No, score=-4.4
X-W3C-Hub-Spam-Report: AWL=-1.617, BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_SORBS_SPAM=0.5, SPF_HELO_PASS=-0.001, SPF_SOFTFAIL=0.665, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cUEzv-0006pA-Ec 38fc9e7fab02a320226fc311a2d5170b
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Stream State and PRIORITY Frames
Archived-At: <http://www.w3.org/mid/CAOdDvNow33s0423M_j8j6Nr-PMZV-LjTgPpQguTRtuk5uM3vUg@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33325
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>

--001a1149430eaaadb90546748089
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On Tue, Jan 17, 2017 at 7:37 AM, Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com=
>
wrote:

>
> =E2=80=8B
> =E2=80=8BI think Option 1 is the expected result.
>
>
>> [1] https://tools.ietf.org/html/rfc7540#section-5.1.1
>> > The first use of a new stream identifier implicitly closes all
>>    streams in the "idle" state that might have been initiated by that
>>    peer with a lower-valued stream identifier.
>>
>>
> =E2=80=8BIf my understanding is correct, this only refers to the new stre=
am ID
> used by HEADERS, and PUSH_PROMISE frames which open or reserve streams.
> The example text following that statement uses HEADERS which opens new
> stream.  PRIORITY frame does not change stream state, and there is no
> reason to close all unused streams lower than bearing stream ID.  That
> said, I agree that this is not crystal clear in the document.  In practic=
e,
> this is probably rather rare case.
>
>
> I believe that is correct.


>
>
>
>

--001a1149430eaaadb90546748089
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div class=3D"gmail_quo=
te">On Tue, Jan 17, 2017 at 7:37 AM, Tatsuhiro Tsujikawa <span dir=3D"ltr">=
&lt;<a href=3D"mailto:tatsuhiro.t@gmail.com" target=3D"_blank">tatsuhiro.t@=
gmail.com</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=
=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir=
=3D"ltr"><span class=3D""></span><div><br><div>=E2=80=8B<div>=E2=80=8BI thi=
nk Option 1 is the expected result.<br></div></div>=C2=A0</div><span class=
=3D""><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;b=
order-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr"><d=
iv><div>[1] <a href=3D"https://tools.ietf.org/html/rfc7540#section-5.1.1" t=
arget=3D"_blank">https://tools.ietf.org/html/rf<wbr>c7540#section-5.1.1</a>=
</div><div>&gt; The first use of a new stream identifier implicitly closes =
all</div><div>=C2=A0 =C2=A0streams in the &quot;idle&quot; state that might=
 have been initiated by that</div><div>=C2=A0 =C2=A0peer with a lower-value=
d stream identifier.</div><div><br></div></div></div></blockquote></span><d=
iv><br><div>=E2=80=8BIf my understanding is correct, this only refers to th=
e new stream ID used by HEADERS, and PUSH_PROMISE frames which open or rese=
rve streams.=C2=A0 The example text following that statement uses HEADERS w=
hich opens new stream.=C2=A0 PRIORITY frame does not change stream state, a=
nd there is no reason to close all unused streams lower than bearing stream=
 ID.=C2=A0 That said, I agree that this is not crystal clear in the documen=
t.=C2=A0 In practice, this is probably rather rare case.<br></div><div><br>=
</div><br></div></div></blockquote><div>I believe that is correct.<br>=C2=
=A0<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;b=
order-left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr"><div></div><sp=
an class=3D""><div><br>=C2=A0</div></span><div class=3D"gmail_extra"><br></=
div></div>
</blockquote></div><br></div></div>

--001a1149430eaaadb90546748089--


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Thu Jan 19 07:55:16 2017
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 3EFA812963E for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 19 Jan 2017 07:55:16 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.359
X-Spam-Level:
X-Spam-Status: No, score=-9.359 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=0.001, HTML_OBFUSCATE_05_10=0.26, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 wZHe1gXiBNEU for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 19 Jan 2017 07:55:05 -0800 (PST)
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 12AAE1296C4 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 19 Jan 2017 07:54:37 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cUF0h-0000XE-Is for ietf-http-wg-dist@listhub.w3.org; Thu, 19 Jan 2017 15:52:23 +0000
Resent-Date: Thu, 19 Jan 2017 15:52:23 +0000
Resent-Message-Id: <E1cUF0h-0000XE-Is@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <pmcmanus@mozilla.com>) id 1cUF0e-0000W3-IE for ietf-http-wg@listhub.w3.org; Thu, 19 Jan 2017 15:52:20 +0000
Received: from www.ducksong.com ([192.155.95.102] helo=linode64.ducksong.com) by mimas.w3.org with esmtp (Exim 4.84_2) (envelope-from <pmcmanus@mozilla.com>) id 1cUF0Y-0006qT-5F for ietf-http-wg@w3.org; Thu, 19 Jan 2017 15:52:15 +0000
Received: from mail-yb0-f174.google.com (mail-yb0-f174.google.com [209.85.213.174]) by linode64.ducksong.com (Postfix) with ESMTPSA id 7F6603A0A9 for <ietf-http-wg@w3.org>; Thu, 19 Jan 2017 10:51:52 -0500 (EST)
Received: by mail-yb0-f174.google.com with SMTP id 123so23688219ybe.3 for <ietf-http-wg@w3.org>; Thu, 19 Jan 2017 07:51:52 -0800 (PST)
X-Gm-Message-State: AIkVDXL1Q0yiItgoBSXIIAY6pk4oqNxqAxy7xDfxnzjghbXFQTCXXpdvr4VRFLoPKCmnU4BIE8eL3DPqlyQ2ZQ==
X-Received: by 10.55.17.27 with SMTP id b27mr9212849qkh.200.1484841112400; Thu, 19 Jan 2017 07:51:52 -0800 (PST)
MIME-Version: 1.0
Received: by 10.12.162.65 with HTTP; Thu, 19 Jan 2017 07:51:51 -0800 (PST)
In-Reply-To: <2BC01E49-91A1-43A7-AFD0-5A34F2689428@lukasa.co.uk>
References: <CAFn2buAYWHQSWhhoKZ2GKbqXR1A+tScjkAwZmOuQ9gV9jMp2bA@mail.gmail.com> <CAGZNdJWe0Y=M_SWmgYabKbWZwPEuJdw67Km8+UtR4oUtZuXA5A@mail.gmail.com> <2BC01E49-91A1-43A7-AFD0-5A34F2689428@lukasa.co.uk>
From: Patrick McManus <pmcmanus@mozilla.com>
Date: Thu, 19 Jan 2017 10:51:51 -0500
X-Gmail-Original-Message-ID: <CAOdDvNq9RScN6-mP5o9hLgDTzMGhDL6pQ-vAMo8ZD6WK2Rf50w@mail.gmail.com>
Message-ID: <CAOdDvNq9RScN6-mP5o9hLgDTzMGhDL6pQ-vAMo8ZD6WK2Rf50w@mail.gmail.com>
To: Cory Benfield <cory@lukasa.co.uk>
Cc: Benedikt Christoph Wolters <benedikt.wolters@rwth-aachen.de>,  Scott Mitchell <scott.k.mitch1@gmail.com>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary=001a114740b60d7c2f054674834f
Received-SPF: softfail client-ip=192.155.95.102; envelope-from=pmcmanus@mozilla.com; helo=linode64.ducksong.com
X-W3C-Hub-Spam-Status: No, score=-4.2
X-W3C-Hub-Spam-Report: AWL=-1.735, BAYES_00=-1.9, HTML_MESSAGE=0.001, HTML_OBFUSCATE_05_10=0.26, RCVD_IN_SORBS_SPAM=0.5, SPF_HELO_PASS=-0.001, SPF_SOFTFAIL=0.665, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cUF0Y-0006qT-5F 6b08bc9500e3134c5ec18b73ca9d2a8c
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Stream State and PRIORITY Frames
Archived-At: <http://www.w3.org/mid/CAOdDvNq9RScN6-mP5o9hLgDTzMGhDL6pQ-vAMo8ZD6WK2Rf50w@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33326
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>

--001a114740b60d7c2f054674834f
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On Tue, Jan 17, 2017 at 7:42 AM, Cory Benfield <cory@lukasa.co.uk> wrote:

>
> On 17 Jan 2017, at 08:38, Benedikt Christoph Wolters <
> benedikt.wolters@rwth-aachen.de> wrote:
>
> This question reminds me of a similiar issue we had a while ago at
> mitmproxy: https://github.com/mitmproxy/mitmproxy/issues/1498
>
> As far as I understand this, sending PRIORITY does not initiate a
> stream or change the stream state.
> HEADERS and PUSH_PROMISE initiate a stream. PRIORITY can be sent and
> received in any stream state.
>
>
> In fact, I think it=E2=80=99s the same issue. Scott linked to
> https://github.com/summerwind/h2spec/pull/67, which is referenced from
> and opened by the same person who opened https://github.com/h2o/
> h2o/pull/1136, which links to https://github.com/mitmprox
> y/mitmproxy/issues/1824, which is related to
> https://github.com/mitmproxy/mitmproxy/issues/1498 because both cases
> were sites deployed behind Fastly.
>
> For those who want background and don=E2=80=99t want to follow all those =
links,
> mitmproxy bumped into problems with sites deployed behind Fastly. mitmpro=
xy
> encountered these because it was forwarding on traffic from Firefox, whic=
h
> would on connection-setup send a whole bunch of PRIORITY frames. hyper-h2
> (which powers mitmproxy=E2=80=99s HTTP/2 support) would allow this. h2o w=
ould not.
>
>
Hey Cory, this is a bit of a back alley - but can you help me understand
the scenario here. Priority is not an end to end concept - the dependencies
are clearly connection based and only make sense relevant to each other. So
is hyper-h2 just forwarding client Priority frames directly? How would that
work? (I know its not your project.. you just seem to grok what's going
on..)

--001a114740b60d7c2f054674834f
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div class=3D"gmail_quo=
te">On Tue, Jan 17, 2017 at 7:42 AM, Cory Benfield <span dir=3D"ltr">&lt;<a=
 href=3D"mailto:cory@lukasa.co.uk" target=3D"_blank">cory@lukasa.co.uk</a>&=
gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 =
0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style=3D"word-wrap=
:break-word"><span><br><div><blockquote type=3D"cite"><div>On 17 Jan 2017, =
at 08:38, Benedikt Christoph Wolters &lt;<a href=3D"mailto:benedikt.wolters=
@rwth-aachen.de" target=3D"_blank">benedikt.wolters@rwth-aachen.<wbr>de</a>=
&gt; wrote:</div><br class=3D"m_-829313649245049967m_-8283002217724596113Ap=
ple-interchange-newline"><div><div>This question reminds me of a similiar i=
ssue we had a while ago at<br>mitmproxy: <a href=3D"https://github.com/mitm=
proxy/mitmproxy/issues/1498" target=3D"_blank">https://github.com/mitmproxy=
/m<wbr>itmproxy/issues/1498</a><br><br>As far as I understand this, sending=
 PRIORITY does not initiate a<br>stream or change the stream state.<br>HEAD=
ERS and PUSH_PROMISE initiate a stream. PRIORITY can be sent and<br>receive=
d in any stream state.<br></div></div></blockquote><br></div></span><div>In=
 fact, I think it=E2=80=99s the same issue. Scott linked to=C2=A0<a href=3D=
"https://github.com/summerwind/h2spec/pull/67" target=3D"_blank">https://gi=
thub.com/summerwi<wbr>nd/h2spec/pull/67</a>, which is referenced from and o=
pened by the same person who opened=C2=A0<a href=3D"https://github.com/h2o/=
h2o/pull/1136" target=3D"_blank">https://github.com/h2o/<wbr>h2o/pull/1136<=
/a>, which links to=C2=A0<a href=3D"https://github.com/mitmproxy/mitmproxy/=
issues/1824" target=3D"_blank">https://github.com/mitmprox<wbr>y/mitmproxy/=
issues/1824</a>, which is related to <a href=3D"https://github.com/mitmprox=
y/mitmproxy/issues/1498" target=3D"_blank">https://github.com/mitmproxy/m<w=
br>itmproxy/issues/1498</a>=C2=A0because both cases were sites deployed beh=
ind Fastly.</div><div><br></div><div>For those who want background and don=
=E2=80=99t want to follow all those links, mitmproxy bumped into problems w=
ith sites deployed behind Fastly. mitmproxy encountered these because it wa=
s forwarding on traffic from Firefox, which would on connection-setup send =
a whole bunch of PRIORITY frames. hyper-h2 (which powers mitmproxy=E2=80=99=
s HTTP/2 support) would allow this. h2o would not.</div><div><br></div></di=
v></blockquote><div><br></div><div>Hey Cory, this is a bit of a back alley =
- but can you help me understand the scenario here. Priority is not an end =
to end concept - the dependencies are clearly connection based and only mak=
e sense relevant to each other. So is hyper-h2 just forwarding client Prior=
ity frames directly? How would that work? (I know its not your project.. yo=
u just seem to grok what&#39;s going on..)<br></div><br></div></div></div>

--001a114740b60d7c2f054674834f--


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Thu Jan 19 07:56:44 2017
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 6CD80129612 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 19 Jan 2017 07:56:44 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.619
X-Spam-Level:
X-Spam-Status: No, score=-9.619 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 jw773R6YzoFS for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 19 Jan 2017 07:56:43 -0800 (PST)
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 375EA12896F for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 19 Jan 2017 07:56:43 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cUF31-0000gj-5E for ietf-http-wg-dist@listhub.w3.org; Thu, 19 Jan 2017 15:54:47 +0000
Resent-Date: Thu, 19 Jan 2017 15:54:47 +0000
Resent-Message-Id: <E1cUF31-0000gj-5E@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <pmcmanus@mozilla.com>) id 1cUF2y-0000dN-1f for ietf-http-wg@listhub.w3.org; Thu, 19 Jan 2017 15:54:44 +0000
Received: from www.ducksong.com ([192.155.95.102] helo=linode64.ducksong.com) by mimas.w3.org with esmtp (Exim 4.84_2) (envelope-from <pmcmanus@mozilla.com>) id 1cUF2s-0006vF-2X for ietf-http-wg@w3.org; Thu, 19 Jan 2017 15:54:38 +0000
Received: from mail-yb0-f169.google.com (mail-yb0-f169.google.com [209.85.213.169]) by linode64.ducksong.com (Postfix) with ESMTPSA id A93E93A0A9 for <ietf-http-wg@w3.org>; Thu, 19 Jan 2017 10:54:15 -0500 (EST)
Received: by mail-yb0-f169.google.com with SMTP id l23so23914643ybj.2 for <ietf-http-wg@w3.org>; Thu, 19 Jan 2017 07:54:15 -0800 (PST)
X-Gm-Message-State: AIkVDXJkmqPj9w/ogvk+rYxAanEZJo9KDAAl51dtaIfPoJPNegGsg2eFh8glqNo61FSlkNHV8aVv9HtPKo5BNw==
X-Received: by 10.55.144.6 with SMTP id s6mr9193885qkd.140.1484841255503; Thu, 19 Jan 2017 07:54:15 -0800 (PST)
MIME-Version: 1.0
Received: by 10.12.162.65 with HTTP; Thu, 19 Jan 2017 07:54:14 -0800 (PST)
In-Reply-To: <CABkgnnWmPdDXVS+CvmChRjyqkJooSKgy6KdUdN+9nGzOyJazhg@mail.gmail.com>
References: <CAFn2buAYWHQSWhhoKZ2GKbqXR1A+tScjkAwZmOuQ9gV9jMp2bA@mail.gmail.com> <CAPyZ6=Kh3n+RJi=RqgFBojgRDpfJ=nbr0i4kvO20ET0Kt7UA8Q@mail.gmail.com> <CABkgnnWmPdDXVS+CvmChRjyqkJooSKgy6KdUdN+9nGzOyJazhg@mail.gmail.com>
From: Patrick McManus <pmcmanus@mozilla.com>
Date: Thu, 19 Jan 2017 10:54:14 -0500
X-Gmail-Original-Message-ID: <CAOdDvNpHyDqYRLhLwD0siOkBPZB_5iMYdnV9LjrhW-EwywyJTg@mail.gmail.com>
Message-ID: <CAOdDvNpHyDqYRLhLwD0siOkBPZB_5iMYdnV9LjrhW-EwywyJTg@mail.gmail.com>
To: Martin Thomson <martin.thomson@gmail.com>
Cc: Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>, Scott Mitchell <scott.k.mitch1@gmail.com>,  HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary=94eb2c085968951ad50546748bcd
Received-SPF: softfail client-ip=192.155.95.102; envelope-from=pmcmanus@mozilla.com; helo=linode64.ducksong.com
X-W3C-Hub-Spam-Status: No, score=-4.3
X-W3C-Hub-Spam-Report: AWL=-1.593, BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_SORBS_SPAM=0.5, SPF_HELO_PASS=-0.001, SPF_SOFTFAIL=0.665, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cUF2s-0006vF-2X ce0eff123dbcffff79fb3a64356f6220
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Stream State and PRIORITY Frames
Archived-At: <http://www.w3.org/mid/CAOdDvNpHyDqYRLhLwD0siOkBPZB_5iMYdnV9LjrhW-EwywyJTg@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33327
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>

--94eb2c085968951ad50546748bcd
Content-Type: text/plain; charset=UTF-8

ack

On Tue, Jan 17, 2017 at 5:27 PM, Martin Thomson <martin.thomson@gmail.com>
wrote:

>
>
> I think that we probably want to clarify the point by explicitly
> saying that PRIORITY doesn't affect stream states.  We say that it can
> be sent in any state, but we don't also mention that important point.
> Do people here agree that an erratum on this point is appropriate
> here?
>
>

--94eb2c085968951ad50546748bcd
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">ack<br><div class=3D"gmail_extra"><br><div class=3D"gmail_=
quote">On Tue, Jan 17, 2017 at 5:27 PM, Martin Thomson <span dir=3D"ltr">&l=
t;<a href=3D"mailto:martin.thomson@gmail.com" target=3D"_blank">martin.thom=
son@gmail.com</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" st=
yle=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
I think that we probably want to clarify the point by explicitly<br>
saying that PRIORITY doesn&#39;t affect stream states.=C2=A0 We say that it=
 can<br>
be sent in any state, but we don&#39;t also mention that important point.<b=
r>
Do people here agree that an erratum on this point is appropriate<br>
here?<br>
<br>
</blockquote></div><br></div></div>

--94eb2c085968951ad50546748bcd--


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Thu Jan 19 07:57:19 2017
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 030D312896F for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 19 Jan 2017 07:57:19 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.619
X-Spam-Level:
X-Spam-Status: No, score=-9.619 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 G61SoslBotG7 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 19 Jan 2017 07:57:18 -0800 (PST)
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 DD8F6129612 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 19 Jan 2017 07:57:17 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cUF3p-0002jQ-B3 for ietf-http-wg-dist@listhub.w3.org; Thu, 19 Jan 2017 15:55:37 +0000
Resent-Date: Thu, 19 Jan 2017 15:55:37 +0000
Resent-Message-Id: <E1cUF3p-0002jQ-B3@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <pmcmanus@mozilla.com>) id 1cUF3l-0002d6-Lh for ietf-http-wg@listhub.w3.org; Thu, 19 Jan 2017 15:55:33 +0000
Received: from www.ducksong.com ([192.155.95.102] helo=linode64.ducksong.com) by mimas.w3.org with esmtp (Exim 4.84_2) (envelope-from <pmcmanus@mozilla.com>) id 1cUF3f-0006x0-GW for ietf-http-wg@w3.org; Thu, 19 Jan 2017 15:55:28 +0000
Received: from mail-ua0-f175.google.com (mail-ua0-f175.google.com [209.85.217.175]) by linode64.ducksong.com (Postfix) with ESMTPSA id 2AEF33A0AD for <ietf-http-wg@w3.org>; Thu, 19 Jan 2017 10:55:06 -0500 (EST)
Received: by mail-ua0-f175.google.com with SMTP id i68so37242593uad.0 for <ietf-http-wg@w3.org>; Thu, 19 Jan 2017 07:55:06 -0800 (PST)
X-Gm-Message-State: AIkVDXIb1WTd4eJvEhFws+I5iXGTSodKdHXvWwyvIo/1f6L51DmvGU6vcBPV6kYfGe/HB2xDisRIFtUpfZNSGg==
X-Received: by 10.237.32.70 with SMTP id 64mr7784371qta.163.1484841305869; Thu, 19 Jan 2017 07:55:05 -0800 (PST)
MIME-Version: 1.0
Received: by 10.12.162.65 with HTTP; Thu, 19 Jan 2017 07:55:05 -0800 (PST)
In-Reply-To: <C51C3F51-37BE-489F-BA1D-76B101517307@lukasa.co.uk>
References: <CAFn2buAYWHQSWhhoKZ2GKbqXR1A+tScjkAwZmOuQ9gV9jMp2bA@mail.gmail.com> <CAGZNdJWe0Y=M_SWmgYabKbWZwPEuJdw67Km8+UtR4oUtZuXA5A@mail.gmail.com> <2BC01E49-91A1-43A7-AFD0-5A34F2689428@lukasa.co.uk> <CAFn2buDCMwMp=rR0C_yt4-gUwyFhY6ruonz9wT-jVMu+Kir=nA@mail.gmail.com> <C51C3F51-37BE-489F-BA1D-76B101517307@lukasa.co.uk>
From: Patrick McManus <pmcmanus@mozilla.com>
Date: Thu, 19 Jan 2017 10:55:05 -0500
X-Gmail-Original-Message-ID: <CAOdDvNrLDaLHdrX9MW-dt1havazaqvB9NVebWX=4JELYi27_+w@mail.gmail.com>
Message-ID: <CAOdDvNrLDaLHdrX9MW-dt1havazaqvB9NVebWX=4JELYi27_+w@mail.gmail.com>
To: Cory Benfield <cory@lukasa.co.uk>
Cc: Scott Mitchell <scott.k.mitch1@gmail.com>,  Benedikt Christoph Wolters <benedikt.wolters@rwth-aachen.de>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary=94eb2c0c98c895994f0546748ef7
Received-SPF: softfail client-ip=192.155.95.102; envelope-from=pmcmanus@mozilla.com; helo=linode64.ducksong.com
X-W3C-Hub-Spam-Status: No, score=-4.3
X-W3C-Hub-Spam-Report: AWL=-1.581, BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_SORBS_SPAM=0.5, SPF_HELO_PASS=-0.001, SPF_SOFTFAIL=0.665, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cUF3f-0006x0-GW 900a96b94c84cf2be999b7531e81486e
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Stream State and PRIORITY Frames
Archived-At: <http://www.w3.org/mid/CAOdDvNrLDaLHdrX9MW-dt1havazaqvB9NVebWX=4JELYi27_+w@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33328
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>

--94eb2c0c98c895994f0546748ef7
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On Wed, Jan 18, 2017 at 2:50 PM, Cory Benfield <cory@lukasa.co.uk> wrote:

> Only if they are not opened via HEADERS frames, which they are. FF sent (=
I
> haven=E2=80=99t checked recently) PRIORITY frames for the first few strea=
m IDs, and
> then started sending HEADERS from 1 onwards.



That was never true (unless there is a bug I'm unaware of). Grouping nodes
are formed for streams 3, 5, 7, 9, B and the first 'normal' stream is
formed via HEADERS on D with a dependency on one of those grouping nodes.
Stream 1 is never used.

--94eb2c0c98c895994f0546748ef7
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_extra"><br><div class=3D"gmail_quote">=
On Wed, Jan 18, 2017 at 2:50 PM, Cory Benfield <span dir=3D"ltr">&lt;<a hre=
f=3D"mailto:cory@lukasa.co.uk" target=3D"_blank">cory@lukasa.co.uk</a>&gt;<=
/span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8=
ex;border-left:1px #ccc solid;padding-left:1ex">Only if they are not opened=
 via HEADERS frames, which they are. FF sent (I haven=E2=80=99t checked rec=
ently) PRIORITY frames for the first few stream IDs, and then started sendi=
ng HEADERS from 1 onwards.</blockquote></div><br><br></div><div class=3D"gm=
ail_extra">That was never true (unless there is a bug I&#39;m unaware of). =
Grouping nodes are formed for streams 3, 5, 7, 9, B and the first &#39;norm=
al&#39; stream is formed via HEADERS on D with a dependency on one of those=
 grouping nodes. Stream 1 is never used.<br><br><br></div></div>

--94eb2c0c98c895994f0546748ef7--


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Thu Jan 19 07:58:44 2017
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 73A69129623 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 19 Jan 2017 07:58:44 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.619
X-Spam-Level:
X-Spam-Status: No, score=-9.619 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=sendgrid.me
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 wenf2Y2SzkZM for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 19 Jan 2017 07:58:43 -0800 (PST)
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 DE5431296F8 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 19 Jan 2017 07:58:34 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cUF4p-0002vD-O2 for ietf-http-wg-dist@listhub.w3.org; Thu, 19 Jan 2017 15:56:39 +0000
Resent-Date: Thu, 19 Jan 2017 15:56:39 +0000
Resent-Message-Id: <E1cUF4p-0002vD-O2@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <bounces+1568871-208f-ietf-http-wg=w3.org@sendgrid.net>) id 1cUF4l-0002uF-Qs for ietf-http-wg@listhub.w3.org; Thu, 19 Jan 2017 15:56:35 +0000
Received: from o1.7nn.fshared.sendgrid.net ([167.89.55.65]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <bounces+1568871-208f-ietf-http-wg=w3.org@sendgrid.net>) id 1cUF4f-00007a-Mf for ietf-http-wg@w3.org; Thu, 19 Jan 2017 15:56:30 +0000
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=sendgrid.me;  h=mime-version:in-reply-to:references:from:subject:to:cc:content-type;  s=smtpapi; bh=YRJqTPVcWXY2VDAYKaZKjwBGjIQ=; b=UNGVj7qb0+dqC6jcAu G0r2WbafF8plmKiu7wfQvOLxAIEcLYzsiI7fGzqqy6T0uNcArX89sGqSnTeohUf5 i3Uf+qZ3fjs4BNEJYcWOfcEiAyVeZL0FEk2Ls+WqMCkWA256TdlIvhDJ65/gVOSL kL/QXlrPF5gmPVrK1x7aO0/Ps=
Received: by filter1087p1mdw1.sendgrid.net with SMTP id filter1087p1mdw1-15314-5880E18E-68 2017-01-19 15:55:58.976418898 +0000 UTC
Received: from mail-yw0-f175.google.com (mail-yw0-f175.google.com [209.85.161.175]) by ismtpd0005p1iad1.sendgrid.net (SG) with ESMTP id uQvpVhG4RMu-FI5uYE_rPQ for <ietf-http-wg@w3.org>; Thu, 19 Jan 2017 15:55:58.974 +0000 (UTC)
Received: by mail-yw0-f175.google.com with SMTP id v200so38136220ywc.3 for <ietf-http-wg@w3.org>; Thu, 19 Jan 2017 07:55:58 -0800 (PST)
X-Gm-Message-State: AIkVDXIj/+KAxnkqbI1W4P5/3lQeMO+lJ7wg6o2rwg6Ka1A6yGxZC+dTXeagnsVtSd5Un0Ex96q13CwNuoT5Nw==
X-Received: by 10.55.192.137 with SMTP id v9mr8252106qkv.305.1484841358467; Thu, 19 Jan 2017 07:55:58 -0800 (PST)
MIME-Version: 1.0
Received: by 10.12.162.65 with HTTP; Thu, 19 Jan 2017 07:55:57 -0800 (PST)
In-Reply-To: <CAFn2buAE-EdTEG9x-wLQSy5Osmcq1Hdps9YLW_7j9CTV4_Fuyw@mail.gmail.com>
References: <CAFn2buAYWHQSWhhoKZ2GKbqXR1A+tScjkAwZmOuQ9gV9jMp2bA@mail.gmail.com> <CAGZNdJWe0Y=M_SWmgYabKbWZwPEuJdw67Km8+UtR4oUtZuXA5A@mail.gmail.com> <2BC01E49-91A1-43A7-AFD0-5A34F2689428@lukasa.co.uk> <CAFn2buDCMwMp=rR0C_yt4-gUwyFhY6ruonz9wT-jVMu+Kir=nA@mail.gmail.com> <C51C3F51-37BE-489F-BA1D-76B101517307@lukasa.co.uk> <CAFn2buAE-EdTEG9x-wLQSy5Osmcq1Hdps9YLW_7j9CTV4_Fuyw@mail.gmail.com>
From: Patrick McManus <mcmanus@ducksong.com>
Date: Thu, 19 Jan 2017 10:55:57 -0500
X-Gmail-Original-Message-ID: <CAOdDvNo1mvmvXjeYtUiNahzYJa1gr3N88BGJpyduYGwUB7oP-A@mail.gmail.com>
Message-ID: <CAOdDvNo1mvmvXjeYtUiNahzYJa1gr3N88BGJpyduYGwUB7oP-A@mail.gmail.com>
To: Scott Mitchell <scott.k.mitch1@gmail.com>
Cc: Cory Benfield <cory@lukasa.co.uk>,  Benedikt Christoph Wolters <benedikt.wolters@rwth-aachen.de>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary=001a1149a8c2b82b9d054674911b
X-SG-EID: YLWet4rakcOTMHWvPPwWbcsiUJbN1FCn0PHYd/Uujh6R5oWt0OnW0Zisr1X+42dPqY+kM4y6TOFSzS lbpI4tgx+RUpxedfj+NcoegYN9irLnL0TL+ADhpcdP4f0wx/TAKleykefNWBVQ/dWB+VkraMQ9JHrk 8Xzg70MqR1h/t5KVht90c6WBNtWI88AplCf7TnxzO5GW95GJ0HWiHY1iMM7mRrQWweUmBieG3s9Dv+ w=
Received-SPF: pass client-ip=167.89.55.65; envelope-from=bounces+1568871-208f-ietf-http-wg=w3.org@sendgrid.net; helo=o1.7nn.fshared.sendgrid.net
X-W3C-Hub-Spam-Status: No, score=-7.5
X-W3C-Hub-Spam-Report: AWL=1.273, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-1.156, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, SPF_PASS=-0.001, W3C_AA=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1cUF4f-00007a-Mf 2b0939092e2cb7193f372326e0cd42ba
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Stream State and PRIORITY Frames
Archived-At: <http://www.w3.org/mid/CAOdDvNo1mvmvXjeYtUiNahzYJa1gr3N88BGJpyduYGwUB7oP-A@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33329
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>

--001a1149a8c2b82b9d054674911b
Content-Type: text/plain; charset=UTF-8

On Wed, Jan 18, 2017 at 7:53 PM, Scott Mitchell <scott.k.mitch1@gmail.com>
wrote:

>
>
> Based on the RFC it seems like stream ids {3, 5, 7, 11} should be closed
> at step (6). Note that FF is not doing anything wrong here. It shouldn't
> have to care that the streams are CLOSED in this scenario (assuming these
> streams only ever have PRIORITY frames exchanged). It would be interesting
> to get a FF dev to comment on the expected stream state here just to be
> sure these streams will only be used for PRIORITY.
>

Yes, they are grouping nodes and serve no other purpose. I personally
believe they are in the idle state, but I know some people believe they are
closed with a priority attached. That doesn't seem to matter in practice.


> Either way maintaining/interpreting the priority is at the discretion of
> the server and these streams being closed does not impact the server's
> ability to do this (as discussed previously the RFC suggests retaining
> priority for closed streams).
>
>

So yes, and no. Certainly the server is in compliance in just ignoring
everything it knows about priority indications from the client. OTOH,
things can get very very screwed performance wise if dependencies are
disregarded and the state of priority is just determined by the local
weights on each stream. I've seen servers do this and create terrible
results.

--001a1149a8c2b82b9d054674911b
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div class=3D"gmail_quo=
te">On Wed, Jan 18, 2017 at 7:53 PM, Scott Mitchell <span dir=3D"ltr">&lt;<=
a href=3D"mailto:scott.k.mitch1@gmail.com" target=3D"_blank">scott.k.mitch1=
@gmail.com</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=
=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir=
=3D"ltr"><br><div class=3D"gmail_extra"><br><div>Based on the RFC it seems =
like stream ids {3, 5, 7, 11} should be closed at step (6). Note that FF is=
 not doing anything wrong here. It shouldn&#39;t have to care that the stre=
ams are CLOSED in this scenario (assuming these streams only ever have PRIO=
RITY frames exchanged). It would be interesting to get a FF dev to comment =
on the expected stream state here just to be sure these streams will only b=
e used for PRIORITY. </div></div></div></blockquote><div><br></div><div>Yes=
, they are grouping nodes and serve no other purpose. I personally believe =
they are in the idle state, but I know some people believe they are closed =
with a priority attached. That doesn&#39;t seem to matter in practice.<br><=
/div><div>=C2=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0 0=
 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr"><div =
class=3D"gmail_extra"><div>Either way maintaining/interpreting the priority=
 is at the discretion of the server and these streams being closed does not=
 impact the server&#39;s ability to do this (as discussed previously the RF=
C suggests retaining priority for closed streams).</div><div>=C2=A0<br></di=
v></div></div></blockquote><div><br></div><div>So yes, and no. Certainly th=
e server is in compliance in just ignoring everything it knows about priori=
ty indications from the client. OTOH, things can get very very screwed perf=
ormance wise if dependencies are disregarded and the state of priority is j=
ust determined by the local weights on each stream. I&#39;ve seen servers d=
o this and create terrible results.<br><br></div></div></div></div>

--001a1149a8c2b82b9d054674911b--


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Thu Jan 19 08:26:17 2017
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 EEEB712964D for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 19 Jan 2017 08:26:16 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.619
X-Spam-Level:
X-Spam-Status: No, score=-9.619 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 UHa6P5_p7iZT for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 19 Jan 2017 08:26:14 -0800 (PST)
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 4F3F5129641 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 19 Jan 2017 08:26:14 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cUFV5-0006Am-2n for ietf-http-wg-dist@listhub.w3.org; Thu, 19 Jan 2017 16:23:47 +0000
Resent-Date: Thu, 19 Jan 2017 16:23:47 +0000
Resent-Message-Id: <E1cUFV5-0006Am-2n@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <pmcmanus@mozilla.com>) id 1cUFV1-00069z-8L for ietf-http-wg@listhub.w3.org; Thu, 19 Jan 2017 16:23:43 +0000
Received: from www.ducksong.com ([192.155.95.102] helo=linode64.ducksong.com) by titan.w3.org with esmtp (Exim 4.84_2) (envelope-from <pmcmanus@mozilla.com>) id 1cUFUs-0001ZK-Cu for ietf-http-wg@w3.org; Thu, 19 Jan 2017 16:23:38 +0000
Received: from mail-yb0-f169.google.com (mail-yb0-f169.google.com [209.85.213.169]) by linode64.ducksong.com (Postfix) with ESMTPSA id CFC9D3A01B for <ietf-http-wg@w3.org>; Thu, 19 Jan 2017 11:23:12 -0500 (EST)
Received: by mail-yb0-f169.google.com with SMTP id w194so25086277ybe.0 for <ietf-http-wg@w3.org>; Thu, 19 Jan 2017 08:23:12 -0800 (PST)
X-Gm-Message-State: AIkVDXK4sKCJDpjyM9EtDT66/Jhfe9mjxY0vx4cHv2QbU9TTLc79tCbcUni/69E8NWR/2e0+J90F4zb8QJSLfw==
X-Received: by 10.237.32.70 with SMTP id 64mr7919666qta.163.1484842992581; Thu, 19 Jan 2017 08:23:12 -0800 (PST)
MIME-Version: 1.0
Received: by 10.12.162.65 with HTTP; Thu, 19 Jan 2017 08:23:12 -0800 (PST)
In-Reply-To: <e420eda0-57fc-43e8-a82a-0988db75ab32@treenet.co.nz>
References: <CAFn2buAYWHQSWhhoKZ2GKbqXR1A+tScjkAwZmOuQ9gV9jMp2bA@mail.gmail.com> <CAGZNdJWe0Y=M_SWmgYabKbWZwPEuJdw67Km8+UtR4oUtZuXA5A@mail.gmail.com> <2BC01E49-91A1-43A7-AFD0-5A34F2689428@lukasa.co.uk> <CAFn2buDCMwMp=rR0C_yt4-gUwyFhY6ruonz9wT-jVMu+Kir=nA@mail.gmail.com> <C51C3F51-37BE-489F-BA1D-76B101517307@lukasa.co.uk> <CAFn2buAE-EdTEG9x-wLQSy5Osmcq1Hdps9YLW_7j9CTV4_Fuyw@mail.gmail.com> <CANatvzzEV6Qd1huVxO=T2m7UwwX207RCetrXyZ1FMMGrBtzeEg@mail.gmail.com> <e420eda0-57fc-43e8-a82a-0988db75ab32@treenet.co.nz>
From: Patrick McManus <pmcmanus@mozilla.com>
Date: Thu, 19 Jan 2017 11:23:12 -0500
X-Gmail-Original-Message-ID: <CAOdDvNrNqpvme=0HTrQQx44pE8bm-zjHdf3S6HY6hNYGeF6ErQ@mail.gmail.com>
Message-ID: <CAOdDvNrNqpvme=0HTrQQx44pE8bm-zjHdf3S6HY6hNYGeF6ErQ@mail.gmail.com>
To: Amos Jeffries <squid3@treenet.co.nz>
Cc: HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary=94eb2c0c98c81ee2ff054674f388
Received-SPF: softfail client-ip=192.155.95.102; envelope-from=pmcmanus@mozilla.com; helo=linode64.ducksong.com
X-W3C-Hub-Spam-Status: No, score=-4.4
X-W3C-Hub-Spam-Report: AWL=-1.617, BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_SORBS_SPAM=0.5, SPF_HELO_PASS=-0.001, SPF_SOFTFAIL=0.665, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1cUFUs-0001ZK-Cu 6ebb5d2ab890c4bde31a288a787d3018
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Stream State and PRIORITY Frames
Archived-At: <http://www.w3.org/mid/CAOdDvNrNqpvme=0HTrQQx44pE8bm-zjHdf3S6HY6hNYGeF6ErQ@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33330
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>

--94eb2c0c98c81ee2ff054674f388
Content-Type: text/plain; charset=UTF-8

On Thu, Jan 19, 2017 at 4:00 AM, Amos Jeffries <squid3@treenet.co.nz> wrote:

> What I'd like from Firefox is an explanation of why exactly PRIORITY is
> the first thing(s) happening here at all?
>
>
sure - see below. First, I think we need to revisit the primary motivation
for dependencies at all in h2:

When any client needs to forward requests from two or more contexts it
needs to balance them according to some policy. maybe that's fairness (each
user gets 1/2) or maybe that's some kind of class of service (foreground
tab gets 90%, other ones get 10%).. you can try and weight the streams to
make that happen, but there are N streams for each 'user' and that number
varies quickly over time, which would mean constantly reprioritizing the
weights.

The problem is solved with dependencies and grouping nodes (i.e. idle
streams). Each use can get equal weight (or whatever your policy) in
aggregate no matter how many streams come and go as long as they are rooted
in the same group.

The client in this scenario might be a proxy, looking for fairness among
users, or it might be a user-agent looking for a fair policy for balancing
different tabs. It doesn't matter.


> What exactly does it mean for them to set PRIORITY on a non-existent
> stream?
>

tl;dr; streams 3,5,7,9,b only ever have PRIORITY sent on them (and I
believe this leaves them idle). Subsequent 'normal' streams (of the HEADERS
ilk) are dependent on one of these 5 streams (generally directly, but
sometimes via a layer of indirection through another HEADERS based stream.)

These low numbered streams are 'grouping nodes' in the priority graph -
they have different weights and represent different classes of service
(things like background loads in the download manager are separated from
more low-latency things like css, etc..). As your session goes on over time
the HEADERS based streams close normally, but new navigations and uses root
themselves in the graph to those same low numbered grouping nodes - which
are meant to be persistent. They need not have full stream state (they are
after all still idle) - they are just a part of the dependency graph.. any
kind of LRU based eviction algorithm should easily keep them around in
practice.

I'm sure it will evolve over time.

It might be helpful if we had a mechanism where we could signal if one peer
made a PRIORITY assertion with a dependency that couldn't be resolved on
the other end because it evicted the relevant information.. that would let
the original peer reprioritize the stream.

--94eb2c0c98c81ee2ff054674f388
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_extra"><br><div class=3D"gmail_quote">=
On Thu, Jan 19, 2017 at 4:00 AM, Amos Jeffries <span dir=3D"ltr">&lt;<a hre=
f=3D"mailto:squid3@treenet.co.nz" target=3D"_blank">squid3@treenet.co.nz</a=
>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 =
0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=3D":3du" clas=
s=3D"a3s aXjCH m159b5f988927b9a8">What I&#39;d like from Firefox is an expl=
anation of why exactly PRIORITY is<br>
the first thing(s) happening here at all?<br>
<br></div></blockquote><div><br></div><div>sure - see below. First, I think=
 we need to revisit the primary motivation for dependencies at all in h2:<b=
r><br></div><div>When any client needs to forward requests from two or more=
 contexts it needs to balance them according to some policy. maybe that&#39=
;s fairness (each user gets 1/2) or maybe that&#39;s some kind of class of =
service (foreground tab gets 90%, other ones get 10%).. you can try and wei=
ght the streams to make that happen, but there are N streams for each &#39;=
user&#39; and that number varies quickly over time, which would mean consta=
ntly reprioritizing the weights.<br><br></div><div>The problem is solved wi=
th dependencies and grouping nodes (i.e. idle streams). Each use can get eq=
ual weight (or whatever your policy) in aggregate no matter how many stream=
s come and go as long as they are rooted in the same group.<br><br></div><d=
iv>The client in this scenario might be a proxy, looking for fairness among=
 users, or it might be a user-agent looking for a fair policy for balancing=
 different tabs. It doesn&#39;t matter.<br></div><div>=C2=A0</div><blockquo=
te class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc so=
lid;padding-left:1ex"><div id=3D":3du" class=3D"a3s aXjCH m159b5f988927b9a8=
">
What exactly does it mean for them to set PRIORITY on a non-existent stream=
?<div class=3D"yj6qo ajU"><div id=3D":3e6" class=3D"ajR" tabindex=3D"0"></d=
iv></div></div></blockquote></div><br></div><div class=3D"gmail_extra">tl;d=
r; streams 3,5,7,9,b only ever have PRIORITY sent on them (and I believe th=
is leaves them idle). Subsequent &#39;normal&#39; streams (of the HEADERS i=
lk) are dependent on one of these 5 streams (generally directly, but someti=
mes via a layer of indirection through another HEADERS based stream.)<br><b=
r></div><div class=3D"gmail_extra">These low numbered streams are &#39;grou=
ping nodes&#39; in the priority graph - they have different weights and rep=
resent different classes of service (things like background loads in the do=
wnload manager are separated from more low-latency things like css, etc..).=
 As your session goes on over time the HEADERS based streams close normally=
, but new navigations and uses root themselves in the graph to those same l=
ow numbered grouping nodes - which are meant to be persistent. They need no=
t have full stream state (they are after all still idle) - they are just a =
part of the dependency graph.. any kind of LRU based eviction algorithm sho=
uld easily keep them around in practice.<br><br></div><div class=3D"gmail_e=
xtra">I&#39;m sure it will evolve over time.<br></div><div class=3D"gmail_e=
xtra"><br></div><div class=3D"gmail_extra">It might be helpful if we had a =
mechanism where we could signal if one peer made a PRIORITY assertion with =
a dependency that couldn&#39;t be resolved on the other end because it evic=
ted the relevant information.. that would let the original peer reprioritiz=
e the stream.<br></div><div class=3D"gmail_extra"><br></div></div>

--94eb2c0c98c81ee2ff054674f388--


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Thu Jan 19 09:40:33 2017
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 C326B129458 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 19 Jan 2017 09:40:33 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.619
X-Spam-Level:
X-Spam-Status: No, score=-9.619 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, 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=lukasa-co-uk.20150623.gappssmtp.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 8aq2GR7N_gR5 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 19 Jan 2017 09:40:32 -0800 (PST)
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 317EF1293F9 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 19 Jan 2017 09:40:32 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cUGeD-0006Go-R9 for ietf-http-wg-dist@listhub.w3.org; Thu, 19 Jan 2017 17:37:17 +0000
Resent-Date: Thu, 19 Jan 2017 17:37:17 +0000
Resent-Message-Id: <E1cUGeD-0006Go-R9@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <cory@lukasa.co.uk>) id 1cUGeA-0005zc-1T for ietf-http-wg@listhub.w3.org; Thu, 19 Jan 2017 17:37:14 +0000
Received: from mail-wm0-f50.google.com ([74.125.82.50]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <cory@lukasa.co.uk>) id 1cUGe3-00024f-SC for ietf-http-wg@w3.org; Thu, 19 Jan 2017 17:37:08 +0000
Received: by mail-wm0-f50.google.com with SMTP id r126so3655276wmr.0 for <ietf-http-wg@w3.org>; Thu, 19 Jan 2017 09:36:47 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lukasa-co-uk.20150623.gappssmtp.com; s=20150623; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=x99K6BEmCBZw3qVQ0q5krRBx/Zg5aYA1ibYovnHF4Ik=; b=mD8pXvzWpRnuMWdW4ST85QFpgWg06unkzy/VoPUGNBxUcFQPP96SD64ky3L8BW1ARk yUWYGQsXIKwXYADAYRQCaq6u0+D0AuaZZQ0oOx6LORSdlgr8s0zOjR+kJQgMgiIVFB4U ykzucp8sKbxqZK6oIjoI27hi8uG1FRmXk9QNZAWYyI6L3pLEIglMZB0YIuwjtcSeEFuY GS2KCqGGS4PoNdE+SPa/aatzoEhWFulucPRNVIdshCYSNWTl7jRR8v7qV+zO3xO+1AJQ KLu6MEir3oI1ai/nunsXcqWh8XLXxE3TgtfgMhsjbt7e/ju8KmG7vXC1Kzsus/4B98EJ R8Ng==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=x99K6BEmCBZw3qVQ0q5krRBx/Zg5aYA1ibYovnHF4Ik=; b=im+ZH9XkvZRDQYCnnEAv4FKvAKDDA+FTBtJTG0duQrxH5h7QleQulV8cKVXIkO/xZh n8wjWk0UbHq8lBiQgfk1x9m9F/t5D5NKj330He82wUkhXnY9Cj/hJdcCZxLzyfubCCo2 WjaxEKTB+wqCkghGNGTSxKK5CHwvrndwbdS9QC+H6sm+94xOG/RjHFHGTTAMxxkYJso6 a26en0ultbJZtDCWX8+VqF9/JYKPcrV+Nid2asg6hlmtVI1yxnuVa7Wl31mTvhJRZgND ZxoWOQJDL4aReGa+FMWsLxdVerP1SbwhpudZEBbOdqjHhTp2Y0+VTDFfrlSEnEvz3Pkh 6v9A==
X-Gm-Message-State: AIkVDXJ6l4BTr1EtPMpeZwWI3bLlaGWXKiENHG3s2DZVE4ByvDhwJEzpBFZ4gs9DPqGX7g==
X-Received: by 10.28.153.10 with SMTP id b10mr24533365wme.103.1484847400944; Thu, 19 Jan 2017 09:36:40 -0800 (PST)
Received: from [192.168.1.3] (197.71.125.91.dyn.plus.net. [91.125.71.197]) by smtp.gmail.com with ESMTPSA id 63sm54670134wmg.2.2017.01.19.09.36.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Jan 2017 09:36:40 -0800 (PST)
From: Cory Benfield <cory@lukasa.co.uk>
Message-Id: <7A0ABB7C-5004-422B-B01C-222FFF2C3A94@lukasa.co.uk>
Content-Type: multipart/alternative; boundary="Apple-Mail=_C9482204-4B46-4AB5-BFB9-754A6F681C79"
Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\))
Date: Thu, 19 Jan 2017 17:36:38 +0000
In-Reply-To: <CAOdDvNq9RScN6-mP5o9hLgDTzMGhDL6pQ-vAMo8ZD6WK2Rf50w@mail.gmail.com>
Cc: Benedikt Christoph Wolters <benedikt.wolters@rwth-aachen.de>, Scott Mitchell <scott.k.mitch1@gmail.com>, HTTP Working Group <ietf-http-wg@w3.org>
To: Patrick McManus <pmcmanus@mozilla.com>
References: <CAFn2buAYWHQSWhhoKZ2GKbqXR1A+tScjkAwZmOuQ9gV9jMp2bA@mail.gmail.com> <CAGZNdJWe0Y=M_SWmgYabKbWZwPEuJdw67Km8+UtR4oUtZuXA5A@mail.gmail.com> <2BC01E49-91A1-43A7-AFD0-5A34F2689428@lukasa.co.uk> <CAOdDvNq9RScN6-mP5o9hLgDTzMGhDL6pQ-vAMo8ZD6WK2Rf50w@mail.gmail.com>
X-Mailer: Apple Mail (2.3259)
Received-SPF: pass client-ip=74.125.82.50; envelope-from=cory@lukasa.co.uk; helo=mail-wm0-f50.google.com
X-W3C-Hub-Spam-Status: No, score=-3.5
X-W3C-Hub-Spam-Report: AWL=-0.126, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cUGe3-00024f-SC df134dd8e47e91c2f949d79bc0433bc7
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Stream State and PRIORITY Frames
Archived-At: <http://www.w3.org/mid/7A0ABB7C-5004-422B-B01C-222FFF2C3A94@lukasa.co.uk>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33331
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>

--Apple-Mail=_C9482204-4B46-4AB5-BFB9-754A6F681C79
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8


> On 19 Jan 2017, at 15:51, Patrick McManus <pmcmanus@mozilla.com> =
wrote:
>=20
> Hey Cory, this is a bit of a back alley - but can you help me =
understand the scenario here. Priority is not an end to end concept - =
the dependencies are clearly connection based and only make sense =
relevant to each other. So is hyper-h2 just forwarding client Priority =
frames directly? How would that work? (I know its not your project.. you =
just seem to grok what's going on..)

Definitely a side-alley: I suspect we may want to take this off-list.

The short version is that mitmproxy is an intercepting web proxy. This =
means it has slightly different goals than most intermediaries do: in =
particular, it wants to be able to understand the content of a HTTP =
connection without manipulating it. It doesn=E2=80=99t do connection =
coalescing, or caching, or any of the things that would require that it =
actually do anything with priorities: it just logs the data and presents =
it in a handy-dandy debuggable form. Incidentally, it also does =
connection-replay and a whole host of other fun stuff.

As a result, it handles the bytestream of a HTTP/2 connection a bit =
weirdly. Specifically, as far as I understand it, when it receives a =
HTTP/2 connection it sets up a data pipe between the client and server, =
essentially forwarding their data onto each other. But, in addition to =
that, it runs a pair of HTTP/2 stacks as basically a B2BUA: it treats =
itself as the server for the client and it treats itself as the client =
for the server. This is mostly a correctness concern, helping it make =
semantic sense of the HTTP/2 connection. However, the HTTP/2 stack it =
uses (mine) tries to be fastidious about correctness, so I tend to get =
tagged in on bug reports when connections go awry. That included this =
one.

Does that clarify, or did I just make it all murkier?

Cory=

--Apple-Mail=_C9482204-4B46-4AB5-BFB9-754A6F681C79
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D""><br class=3D""><div><blockquote type=3D"cite" class=3D""><div =
class=3D"">On 19 Jan 2017, at 15:51, Patrick McManus &lt;<a =
href=3D"mailto:pmcmanus@mozilla.com" =
class=3D"">pmcmanus@mozilla.com</a>&gt; wrote:</div><div class=3D""><div =
class=3D"gmail_quote" style=3D"font-family: Helvetica; font-size: 12px; =
font-style: normal; font-variant-caps: normal; font-weight: normal; =
letter-spacing: normal; orphans: auto; text-align: start; text-indent: =
0px; text-transform: none; white-space: normal; widows: auto; =
word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div class=3D""><br =
class=3D""></div><div class=3D"">Hey Cory, this is a bit of a back alley =
- but can you help me understand the scenario here. Priority is not an =
end to end concept - the dependencies are clearly connection based and =
only make sense relevant to each other. So is hyper-h2 just forwarding =
client Priority frames directly? How would that work? (I know its not =
your project.. you just seem to grok what's going =
on..)</div></div></div></blockquote></div><br class=3D""><div =
class=3D"">Definitely a side-alley: I suspect we may want to take this =
off-list.</div><div class=3D""><br class=3D""></div><div class=3D"">The =
short version is that mitmproxy is an intercepting web proxy. This means =
it has slightly different goals than most intermediaries do: in =
particular, it wants to be able to understand the content of a HTTP =
connection without manipulating it. It doesn=E2=80=99t do connection =
coalescing, or caching, or any of the things that would require that it =
actually do anything with priorities: it just logs the data and presents =
it in a handy-dandy debuggable form. Incidentally, it also does =
connection-replay and a whole host of other fun stuff.</div><div =
class=3D""><br class=3D""></div><div class=3D"">As a result, it handles =
the bytestream of a HTTP/2 connection a bit weirdly. Specifically, as =
far as I understand it, when it receives a HTTP/2 connection it sets up =
a data pipe between the client and server, essentially forwarding their =
data onto each other. But, in addition to that, it runs a pair of HTTP/2 =
stacks as basically a B2BUA: it treats itself as the server for the =
client and it treats itself as the client for the server. This is mostly =
a correctness concern, helping it make semantic sense of the HTTP/2 =
connection. However, the HTTP/2 stack it uses (mine) tries to be =
fastidious about correctness, so I tend to get tagged in on bug reports =
when connections go awry. That included this one.</div><div class=3D""><br=
 class=3D""></div><div class=3D"">Does that clarify, or did I just make =
it all murkier?</div><div class=3D""><br class=3D""></div><div =
class=3D"">Cory</div></body></html>=

--Apple-Mail=_C9482204-4B46-4AB5-BFB9-754A6F681C79--


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Thu Jan 19 14:03:56 2017
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 4F0FA12966E for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 19 Jan 2017 14:03:56 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.72
X-Spam-Level:
X-Spam-Status: No, score=-9.72 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, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, 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 LsO5gWT8ahgi for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 19 Jan 2017 14:03:54 -0800 (PST)
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 8FE4C12966D for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 19 Jan 2017 14:03:54 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cUKl0-00056W-Ng for ietf-http-wg-dist@listhub.w3.org; Thu, 19 Jan 2017 22:00:34 +0000
Resent-Date: Thu, 19 Jan 2017 22:00:34 +0000
Resent-Message-Id: <E1cUKl0-00056W-Ng@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <martin.thomson@gmail.com>) id 1cUKkw-00054C-2u for ietf-http-wg@listhub.w3.org; Thu, 19 Jan 2017 22:00:30 +0000
Received: from mail-yw0-f177.google.com ([209.85.161.177]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <martin.thomson@gmail.com>) id 1cUKkq-0001om-85 for ietf-http-wg@w3.org; Thu, 19 Jan 2017 22:00:24 +0000
Received: by mail-yw0-f177.google.com with SMTP id u68so12552470ywg.0 for <ietf-http-wg@w3.org>; Thu, 19 Jan 2017 14:00:03 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=wxvPEJedozC1batveOwZ0O8IkoId9M4hY3JvxAFKPNk=; b=bo+Z8JY+oJoSY/d6o2Lv1LUP09227hmRmjIWWorqFny9qkB+sMrkiRsRWVTRzYMn3+ YdH3cl4F20r7IDRADZbHUwdBOVvMdl4KGBEBw1kFiL+ZUGbG8rmLfrbuQ42BdjKabntv JMF38pe8TmBtn2Jtls+5fYs4p7EFHPceeIPz0F2RrHAtmQL/iNXirT3YNg30LcpToG6T PtESwKgGB/EvmkOPN9Zh7NdCXuObNDjNsdbLC5xZF2bt8s4v8rjnA2m9OAGRs1KPdcAW /O/0nWbhH36Eldm4NELAP/sCCdtgBhvdxG7ndNuw2oxg1LljxQYaJJwFSpgMuiPyScb1 EOpw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=wxvPEJedozC1batveOwZ0O8IkoId9M4hY3JvxAFKPNk=; b=rbNri7iCBsug/xlgCUGLClJZDsRjOZu6p/7hfRyocJi+25sLU3RQc4+wVAygZdq1gn cxpNBZcfJSE9lOrWlpJI2FNz792Vu6h4U4n/FTiLyrvVk/5+9EWLeVb7GHN57zbUxahg jHMhC1wJjghX5edOaS0vss+qklWqgQC3W+WgC8yaSKOdDyDuDYOB5y9DxqIxbo/z2BuV vdMVltn66pHr1irRJG7sZVK9cS01ArdH5aQ1p94dqJiZhKAU1AJIbMWwqPD0M2SQNugD VJMx6L+OxQ3h+SBWfqAWqUJW1TPz/Q/+xdPk3KLuFOkULPkf2QIkiWsHlBiBzbtbvRsr rG8Q==
X-Gm-Message-State: AIkVDXLB2wCzaAvdPpcktLRbhbYaFK5utkWqV4tMVo+iRA2x863P9xDn28lLFOXs2SD5Ppv8mgfEeziskGu+kQ==
X-Received: by 10.55.164.85 with SMTP id n82mr10082929qke.316.1484863198159; Thu, 19 Jan 2017 13:59:58 -0800 (PST)
MIME-Version: 1.0
Received: by 10.140.19.112 with HTTP; Thu, 19 Jan 2017 13:59:57 -0800 (PST)
In-Reply-To: <7CF7F94CB496BF4FAB1676F375F9666A376B9FD8@bgb01xud1012>
References: <7CF7F94CB496BF4FAB1676F375F9666A376B9A92@bgb01xud1012> <20170116181825.4A39514617@welho-filter1.welho.com> <CABkgnnWqo1KzPofnR8nS9S0DyZhGjg+yYkMH-qb+H7WcKG1uHw@mail.gmail.com> <7CF7F94CB496BF4FAB1676F375F9666A376B9FD8@bgb01xud1012>
From: Martin Thomson <martin.thomson@gmail.com>
Date: Fri, 20 Jan 2017 10:59:57 +1300
Message-ID: <CABkgnnVVM3dDzxOf3nz-DcpY=BW7K1XpkMA1yijJU6Gz0VqLrQ@mail.gmail.com>
To: Lucas Pardue <Lucas.Pardue@bbc.co.uk>
Cc: Kari Hurtta <hurtta-ietf@elmme-mailer.org>,  HTTP working group mailing list <ietf-http-wg@w3.org>
Content-Type: text/plain; charset=UTF-8
Received-SPF: pass client-ip=209.85.161.177; envelope-from=martin.thomson@gmail.com; helo=mail-yw0-f177.google.com
X-W3C-Hub-Spam-Status: No, score=-5.8
X-W3C-Hub-Spam-Report: AWL=-0.230, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cUKkq-0001om-85 27d825efb4f383fb55abfb7e469d0ea2
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Multiple Alt-Svc parameters of the same type
Archived-At: <http://www.w3.org/mid/CABkgnnVVM3dDzxOf3nz-DcpY=BW7K1XpkMA1yijJU6Gz0VqLrQ@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33332
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 19 January 2017 at 23:00, Lucas Pardue <Lucas.Pardue@bbc.co.uk> wrote:
> Is it correct to interpret this statement to say that Mike's definition of the v parameter (or whatever it turns to be called) is a specialisation of the general case and it's "ordered list" processing is implemented at the required level.


Mike's definition of v= in the quic documents defines the semantics
for a field in a specific context.  That definition, in addition to
specifying semantics, can also require that the list form be
understood by implementations.

Another definition for a different tuple of header field and parameter
could also insist in a different definition: maybe that multiple
instances of the same name result in an error of some sort.

It would be good if the common syntax established what is possible.
I'm thinking:
1. multiple values are possible

2. a definition for a specific parameter may forbid the use of
multiple values, (noting further that a sender might not be able to
guarantee that the receiver knows of these rules without some sort of
prior indication that the semantics are known)

3. order {is significant|is not significant|has significance as
defined by the field semantics}

4. where multiple values are accepted specific rules should be
described for handling errors caused by a single parameter, this could
render many different things invalid: just that parameter, all
parameters with the same name, the affected header field value (there
could be multiple comma-separated values), or the entire header field.
By default, only the parameter value is affected.

Or something like that.  I might have missed something.


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Thu Jan 19 14:50:37 2017
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 D16DB129533 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 19 Jan 2017 14:50:37 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.719
X-Spam-Level:
X-Spam-Status: No, score=-9.719 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, 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 gUt6YC41IfxC for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 19 Jan 2017 14:50:35 -0800 (PST)
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 F3FF0129530 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 19 Jan 2017 14:50:34 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cULUp-0007Qd-Nc for ietf-http-wg-dist@listhub.w3.org; Thu, 19 Jan 2017 22:47:55 +0000
Resent-Date: Thu, 19 Jan 2017 22:47:55 +0000
Resent-Message-Id: <E1cULUp-0007Qd-Nc@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <scott.k.mitch1@gmail.com>) id 1cULUk-0007Pr-QB for ietf-http-wg@listhub.w3.org; Thu, 19 Jan 2017 22:47:50 +0000
Received: from mail-lf0-f52.google.com ([209.85.215.52]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <scott.k.mitch1@gmail.com>) id 1cULUc-0003N7-Kb for ietf-http-wg@w3.org; Thu, 19 Jan 2017 22:47:45 +0000
Received: by mail-lf0-f52.google.com with SMTP id k86so46553760lfi.0 for <ietf-http-wg@w3.org>; Thu, 19 Jan 2017 14:47:22 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=/1oNJHClpbmdTvJkiG5eL+9tPzFsfFAdic0XwtTRQWM=; b=a0iMpEfZhY3Jf5jDoRWdGllRujvTANoG5EKkEC8Xoph3kakSvWTccg0JJzzMmZyd19 2HKinjdGGZuL006PsdzyXbnfdtl7D7NIvPnMsPGPuEG8wgzARLHjcPAMrORFZuzsuQTZ q0qjjmaYgTFRqHiX+GVaaFeV8R20w6d+I2s1Q7L1ybUFzzX/M+RG6oWIGEIzxK3WLKsh CE2mO4Cu+PCjAe2M7SI46uECx/8exUEpJj2Mq398xB0DTrsKewdU1aRPInU0NkM8G0m8 3Find8dMgOGkhD/Mj8snx0vkbVrWbsjhDDUG4yeJW7aBF71Bn31t0Ko24ddWuQGse0zq b29w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=/1oNJHClpbmdTvJkiG5eL+9tPzFsfFAdic0XwtTRQWM=; b=OPcTDY3soxqtVL4w2qfAJJnLEHhbiP/XEr867etZ45wWlwwe3giBHwhxTF2uARpD7n zz3OuAKBmKGW7eK7fKxDXuiIh0dhpqd6MK4/+5LyTxUwt4p+Dtan7nT3yWhUhElnS2+S z21oaBJ15m35q4LUH7wf9H29KkQuS/35vpcgk3NUQdNBsk3vJuLuUj7EGNO9i0E1C2d0 c4cnOhGddVI0D0BlqTHgCtRhDglEX0PIwByuMK539uVxZg8B0lFs7A1ZTx3I1YD5VgOo 20as4b8sEWWJWmHqaVH9ve109EZvyPTF5RqgH0DyydFQ3KWJu1cXt/CSCfrXtStxLbLf Ecmw==
X-Gm-Message-State: AIkVDXJcGPmo3hMQJzbaXKsJBVy07ZXZxkL6xNBkZw6ItSTraYJ8FSip80nDWCwqPqQrhdfbnkdQpg+vJQGc5Q==
X-Received: by 10.25.156.144 with SMTP id f138mr4032929lfe.80.1484866035734; Thu, 19 Jan 2017 14:47:15 -0800 (PST)
MIME-Version: 1.0
Received: by 10.25.18.200 with HTTP; Thu, 19 Jan 2017 14:47:14 -0800 (PST)
In-Reply-To: <0FCBA000-E026-431A-802A-C2D39A98EF57@lukasa.co.uk>
References: <CAFn2buAYWHQSWhhoKZ2GKbqXR1A+tScjkAwZmOuQ9gV9jMp2bA@mail.gmail.com> <CAGZNdJWe0Y=M_SWmgYabKbWZwPEuJdw67Km8+UtR4oUtZuXA5A@mail.gmail.com> <2BC01E49-91A1-43A7-AFD0-5A34F2689428@lukasa.co.uk> <CAFn2buDCMwMp=rR0C_yt4-gUwyFhY6ruonz9wT-jVMu+Kir=nA@mail.gmail.com> <C51C3F51-37BE-489F-BA1D-76B101517307@lukasa.co.uk> <CAFn2buAE-EdTEG9x-wLQSy5Osmcq1Hdps9YLW_7j9CTV4_Fuyw@mail.gmail.com> <CANatvzzEV6Qd1huVxO=T2m7UwwX207RCetrXyZ1FMMGrBtzeEg@mail.gmail.com> <e420eda0-57fc-43e8-a82a-0988db75ab32@treenet.co.nz> <0FCBA000-E026-431A-802A-C2D39A98EF57@lukasa.co.uk>
From: Scott Mitchell <scott.k.mitch1@gmail.com>
Date: Thu, 19 Jan 2017 14:47:14 -0800
Message-ID: <CAFn2buD1Y6LBMWi-rKwXt9Ht0tZcuXYMKHGsCivzp58ZoJT27A@mail.gmail.com>
To: Cory Benfield <cory@lukasa.co.uk>
Cc: Amos Jeffries <squid3@treenet.co.nz>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary=001a11410e7c995f6e05467a5094
Received-SPF: pass client-ip=209.85.215.52; envelope-from=scott.k.mitch1@gmail.com; helo=mail-lf0-f52.google.com
X-W3C-Hub-Spam-Status: No, score=-2.5
X-W3C-Hub-Spam-Report: AWL=0.732, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cULUc-0003N7-Kb 03900d0c4812c792acbfa084f3fd3228
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Stream State and PRIORITY Frames
Archived-At: <http://www.w3.org/mid/CAFn2buD1Y6LBMWi-rKwXt9Ht0tZcuXYMKHGsCivzp58ZoJT27A@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33333
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>

--001a11410e7c995f6e05467a5094
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On Thu, Jan 19, 2017 at 6:11 AM, Cory Benfield <cory@lukasa.co.uk> wrote:

>
> > On 19 Jan 2017, at 09:00, Amos Jeffries <squid3@treenet.co.nz> wrote:
> >
> > IIRC the intention behind the closing behaviour for idle streams was to
> > ensure that we could optimize away the need to maintain a list or array
> > of 2^31 state entries.
> >
> > Omitting PRIORITY from the MAX_STREAMS voids that benefit.
>
> No it doesn=E2=80=99t.
>
>

Agreed. There is no mechanism defined in the specification to communicate a
limit for the state retained due to prioritization/dependency information.
This is currently limited to implementation specific heuristics.



> Firstly, let=E2=80=99s note that the PRIORITY frame is defined not to cha=
nge
> stream state. Receiving a PRIORITY frame on stream N leaves it in the idl=
e
> state.

A server implementation can thus treat the receipt of a PRIORITY frame on
> any stream that has a higher ID than the last stream on which it received=
 a
> HEADERS frame as having the *exact* same effect on state retention as
> receiving a PING frame. It doesn=E2=80=99t *require* the insertion of any=
 stream
> state data.
>
> Specific implementations may require the insertion of stream state data i=
f
> priority information is stored on the same structure as stream state
> information, but that is certainly not required. For example, receiving a
> bunch of PRIORITY frames does not cause the Python HTTP/2 implementation =
to
> allocate any more state information than receiving a bunch of PING frames=
.
>
> > It is causing state to be allocated on the server and on every
> > intermediary along the way which accepts it.
> >
> > Consider the effects of 2^31 PRIORITY frames being sent with different
> > IDs before the first HEADERS is used.
> > Notice how even this one case is markedly worse than sending just one
> > HEADERS with stream ID =3D=3D 2^31 to waste server sockets.
>
> This problem is orthogonal to the one we=E2=80=99re discussing.
>
> So far I haven=E2=80=99t seen a proposal to say that PRIORITY frames shou=
ld
> transition a stream out of the idle state. If we continue to leave RFC 75=
40
> saying that PRIORITY frames leave streams in the idle state, then
> definitionally they are excluded from the restrictions on
> MAX_CONCURRENT_STREAMS. So if you are allocating stream state for idle
> streams, then you are open to this DoS vector, but none of the proposals
> here are trying to address it.
>
> Additionally, I should note that the unbounded insertion of priority
> information into priority trees was discussed as an attack vector in this
> paper: https://www.imperva.com/docs/Imperva_HII_HTTP2.pdf. The paper was
> published in August of last year, and several implementations took steps =
to
> reduce their vulnerability to it (the Python priority implementation even
> filed a CVE, CVE-2016-6580).
>
> I absolutely support adding an erratum to indicate that implementations
> should resist unbounded insertion of PRIORITY information. But unless
> you=E2=80=99re willing to say that idle streams should be counted against
> MAX_CONCURRENT_STREAMS (which is a tricky thing to state), then the only
> way to resolve this problem at the spec level is to force PRIORITY frames
> to make state transitions, further complicating the state diagram for
> streams.
>
> > What exactly does it mean for them to set PRIORITY on a non-existent
> stream?
>
> It means exactly what RFC 7540 says it means. Quoting from Section 5.3.4
> of RFC 7540:
>
> > Similarly, streams that are in the "idle" state can be assigned priorit=
y
> or become a parent of other streams. This allows for the creation of a
> grouping node in the dependency tree, which enables more flexible
> expressions of priority. Idle streams begin with a default priority
> (Section 5.3.5).
>
> While we=E2=80=99re here, right below that section is:
>
> > The retention of priority information for streams that are not counted
> toward the limit set by SETTINGS_MAX_CONCURRENT_STREAMS could create a
> large state burden for an endpoint. Therefore, the amount of prioritizati=
on
> state that is retained MAY be limited.
>
> To this end, the Python priority implementation allows a user-configured
> maximum amount of data retention for priority information. This priority
> information is held separately from stream state information because they
> are entirely orthogonal concerns: in fact, the bits of code that manage
> priority information and those that manage stream state information are i=
n
> entirely separate installable packages with no dependency relationship to
> each other.
>
> To my eye, there is a clear intent to allow setting of priority
> information on streams that are in the idle state, without that affecting
> the stream itself.
>
> Cory
>
>
>
>
>
>
>
>

--001a11410e7c995f6e05467a5094
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div class=3D"gmail_quo=
te">On Thu, Jan 19, 2017 at 6:11 AM, Cory Benfield <span dir=3D"ltr">&lt;<a=
 href=3D"mailto:cory@lukasa.co.uk" target=3D"_blank">cory@lukasa.co.uk</a>&=
gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 =
0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=3D""><br>
&gt; On 19 Jan 2017, at 09:00, Amos Jeffries &lt;<a href=3D"mailto:squid3@t=
reenet.co.nz">squid3@treenet.co.nz</a>&gt; wrote:<br>
&gt;<br>
&gt; IIRC the intention behind the closing behaviour for idle streams was t=
o<br>
&gt; ensure that we could optimize away the need to maintain a list or arra=
y<br>
&gt; of 2^31 state entries.<br>
&gt;<br>
&gt; Omitting PRIORITY from the MAX_STREAMS voids that benefit.<br>
<br>
</span>No it doesn=E2=80=99t.<br>
<br></blockquote><div><br></div><div><br></div><div>Agreed. There is no mec=
hanism defined in the specification to communicate a limit for the state re=
tained due to prioritization/dependency information. This is currently limi=
ted to implementation specific heuristics.</div><div><br></div><div>=C2=A0<=
/div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-le=
ft:1px #ccc solid;padding-left:1ex">
Firstly, let=E2=80=99s note that the PRIORITY frame is defined not to chang=
e stream state. Receiving a PRIORITY frame on stream N leaves it in the idl=
e state.=C2=A0</blockquote><blockquote class=3D"gmail_quote" style=3D"margi=
n:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">A server implemen=
tation can thus treat the receipt of a PRIORITY frame on any stream that ha=
s a higher ID than the last stream on which it received a HEADERS frame as =
having the *exact* same effect on state retention as receiving a PING frame=
. It doesn=E2=80=99t *require* the insertion of any stream state data.<br>
<br>
Specific implementations may require the insertion of stream state data if =
priority information is stored on the same structure as stream state inform=
ation, but that is certainly not required. For example, receiving a bunch o=
f PRIORITY frames does not cause the Python HTTP/2 implementation to alloca=
te any more state information than receiving a bunch of PING frames.<br>
<span class=3D""><br>
&gt; It is causing state to be allocated on the server and on every<br>
&gt; intermediary along the way which accepts it.<br>
&gt;<br>
&gt; Consider the effects of 2^31 PRIORITY frames being sent with different=
<br>
&gt; IDs before the first HEADERS is used.<br>
&gt; Notice how even this one case is markedly worse than sending just one<=
br>
&gt; HEADERS with stream ID =3D=3D 2^31 to waste server sockets.<br>
<br>
</span>This problem is orthogonal to the one we=E2=80=99re discussing.<br>
<br>
So far I haven=E2=80=99t seen a proposal to say that PRIORITY frames should=
 transition a stream out of the idle state. If we continue to leave RFC 754=
0 saying that PRIORITY frames leave streams in the idle state, then definit=
ionally they are excluded from the restrictions on MAX_CONCURRENT_STREAMS. =
So if you are allocating stream state for idle streams, then you are open t=
o this DoS vector, but none of the proposals here are trying to address it.=
<br>
<br>
Additionally, I should note that the unbounded insertion of priority inform=
ation into priority trees was discussed as an attack vector in this paper: =
<a href=3D"https://www.imperva.com/docs/Imperva_HII_HTTP2.pdf" rel=3D"noref=
errer" target=3D"_blank">https://www.imperva.com/docs/<wbr>Imperva_HII_HTTP=
2.pdf</a>. The paper was published in August of last year, and several impl=
ementations took steps to reduce their vulnerability to it (the Python prio=
rity implementation even filed a CVE, CVE-2016-6580).<br>
<br>
I absolutely support adding an erratum to indicate that implementations sho=
uld resist unbounded insertion of PRIORITY information. But unless you=E2=
=80=99re willing to say that idle streams should be counted against MAX_CON=
CURRENT_STREAMS (which is a tricky thing to state), then the only way to re=
solve this problem at the spec level is to force PRIORITY frames to make st=
ate transitions, further complicating the state diagram for streams.<br>
<span class=3D""><br>
&gt; What exactly does it mean for them to set PRIORITY on a non-existent s=
tream?<br>
<br>
</span>It means exactly what RFC 7540 says it means. Quoting from Section 5=
.3.4 of RFC 7540:<br>
<br>
&gt; Similarly, streams that are in the &quot;idle&quot; state can be assig=
ned priority or become a parent of other streams. This allows for the creat=
ion of a grouping node in the dependency tree, which enables more flexible =
expressions of priority. Idle streams begin with a default priority (Sectio=
n 5.3.5).<br>
<br>
While we=E2=80=99re here, right below that section is:<br>
<span class=3D""><br>
&gt; The retention of priority information for streams that are not counted=
 toward the limit set by SETTINGS_MAX_CONCURRENT_<wbr>STREAMS could create =
a large state burden for an endpoint. Therefore, the amount of prioritizati=
on state that is retained MAY be limited.<br>
<br>
</span>To this end, the Python priority implementation allows a user-config=
ured maximum amount of data retention for priority information. This priori=
ty information is held separately from stream state information because the=
y are entirely orthogonal concerns: in fact, the bits of code that manage p=
riority information and those that manage stream state information are in e=
ntirely separate installable packages with no dependency relationship to ea=
ch other.<br>
<br>
To my eye, there is a clear intent to allow setting of priority information=
 on streams that are in the idle state, without that affecting the stream i=
tself.<br>
<span class=3D"HOEnZb"><font color=3D"#888888"><br>
Cory<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
</font></span></blockquote></div><br></div></div>

--001a11410e7c995f6e05467a5094--


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Thu Jan 19 15:01:58 2017
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 B640E129462 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 19 Jan 2017 15:01:58 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.719
X-Spam-Level:
X-Spam-Status: No, score=-9.719 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, 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 8Mwgac83a6Y6 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 19 Jan 2017 15:01:56 -0800 (PST)
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 D9AEB128E19 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 19 Jan 2017 15:01:56 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cULg4-0003Rm-PL for ietf-http-wg-dist@listhub.w3.org; Thu, 19 Jan 2017 22:59:32 +0000
Resent-Date: Thu, 19 Jan 2017 22:59:32 +0000
Resent-Message-Id: <E1cULg4-0003Rm-PL@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <scott.k.mitch1@gmail.com>) id 1cULg0-0003QB-2a for ietf-http-wg@listhub.w3.org; Thu, 19 Jan 2017 22:59:28 +0000
Received: from mail-lf0-f43.google.com ([209.85.215.43]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <scott.k.mitch1@gmail.com>) id 1cULft-00074Y-OK for ietf-http-wg@w3.org; Thu, 19 Jan 2017 22:59:22 +0000
Received: by mail-lf0-f43.google.com with SMTP id k86so46688437lfi.0 for <ietf-http-wg@w3.org>; Thu, 19 Jan 2017 14:59:01 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=EjWCt1Y/CesA8X3hIM7BlF1uCR3hbfd9RAqgyOu9nsI=; b=fSN+twuRNX7qT9b85iYwL3th9iKSE0BTrlYee9KeYThMpi8OC/nUJ+PK4uVr59Adjl rhohz3QfPoVgxeApJcjzHGniDLIzMjB6fLXu7z59dMzvZ4WvmRZ7dIBYpR3DIurEzakG lmKoF7qzWPcBl6fUjODoe+85rnlxZdcGb8fW1Uwg1Rr58pvVBzhhf418nEqG0PsLRRjh CIB6FuM+OhOshRHyYHkBi0cnrujFPTAUvqn7JPMzjKf6SzEwhWwru8bOShJqHh3DbOql Gp3YWOL0etd3yl+UyO1lBxvwpdX/vbFrJK2nhQKDwDwYCjZYNuVdZcz/9MEsFQ7F6hFQ Ey1Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=EjWCt1Y/CesA8X3hIM7BlF1uCR3hbfd9RAqgyOu9nsI=; b=raRdp1ZrQUJJN3ItBYWB2L2bUnDf6YX8Mm3lqIrYEoVvITmU5KX+wJKzj1KmybocuH 1hK/wtpEsa5v9QMxnxSExGuZdyJQuya95YUdyxdhvG3QQW8LG5lPJLgqDMGENxERem3i o/HAW0sz92vISLYV0HAtj/XusbwIHX1gHU+L1jR5XSivFyp5k4rl+JhuTheQfKpHaRJ1 xFSFZOTX+1u+HE4ZvLR4XoOJnn/JlyViPx8/DksD5u6Rik1+ItlCrdACSK18US0zGmwl xcHaMjeH41hECR8QozW1UzWNh25OwUQ1Yeb6AfGsdUORKQc1Koh9cOWW3K82/IES8bnc VbdQ==
X-Gm-Message-State: AIkVDXK00/YR4bVJswIRr3hTolwsCnmk02ulWmGi6mGTuxjJJRd6ZEFWuUS2C7sGANW8iqZHYYTKhD/yKObxfg==
X-Received: by 10.46.6.1 with SMTP id 1mr5479628ljg.34.1484866734582; Thu, 19 Jan 2017 14:58:54 -0800 (PST)
MIME-Version: 1.0
Received: by 10.25.18.200 with HTTP; Thu, 19 Jan 2017 14:58:53 -0800 (PST)
In-Reply-To: <CAOdDvNo1mvmvXjeYtUiNahzYJa1gr3N88BGJpyduYGwUB7oP-A@mail.gmail.com>
References: <CAFn2buAYWHQSWhhoKZ2GKbqXR1A+tScjkAwZmOuQ9gV9jMp2bA@mail.gmail.com> <CAGZNdJWe0Y=M_SWmgYabKbWZwPEuJdw67Km8+UtR4oUtZuXA5A@mail.gmail.com> <2BC01E49-91A1-43A7-AFD0-5A34F2689428@lukasa.co.uk> <CAFn2buDCMwMp=rR0C_yt4-gUwyFhY6ruonz9wT-jVMu+Kir=nA@mail.gmail.com> <C51C3F51-37BE-489F-BA1D-76B101517307@lukasa.co.uk> <CAFn2buAE-EdTEG9x-wLQSy5Osmcq1Hdps9YLW_7j9CTV4_Fuyw@mail.gmail.com> <CAOdDvNo1mvmvXjeYtUiNahzYJa1gr3N88BGJpyduYGwUB7oP-A@mail.gmail.com>
From: Scott Mitchell <scott.k.mitch1@gmail.com>
Date: Thu, 19 Jan 2017 14:58:53 -0800
Message-ID: <CAFn2buAAd5pN4A3_zkNMC6y=i1rkQut6=p1RnJYfT9inhpFG4Q@mail.gmail.com>
To: Patrick McManus <mcmanus@ducksong.com>
Cc: Cory Benfield <cory@lukasa.co.uk>,  Benedikt Christoph Wolters <benedikt.wolters@rwth-aachen.de>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary=f403045f9f8440f15d05467a7a21
Received-SPF: pass client-ip=209.85.215.43; envelope-from=scott.k.mitch1@gmail.com; helo=mail-lf0-f43.google.com
X-W3C-Hub-Spam-Status: No, score=-2.5
X-W3C-Hub-Spam-Report: AWL=0.732, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1cULft-00074Y-OK 1d2d31e3f0ce0cc93c92123aea3ce072
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Stream State and PRIORITY Frames
Archived-At: <http://www.w3.org/mid/CAFn2buAAd5pN4A3_zkNMC6y=i1rkQut6=p1RnJYfT9inhpFG4Q@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33334
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>

--f403045f9f8440f15d05467a7a21
Content-Type: text/plain; charset=UTF-8

On Thu, Jan 19, 2017 at 7:55 AM, Patrick McManus <mcmanus@ducksong.com>
wrote:

>
>
> On Wed, Jan 18, 2017 at 7:53 PM, Scott Mitchell <scott.k.mitch1@gmail.com>
> wrote:
>
>>
>>
>> Based on the RFC it seems like stream ids {3, 5, 7, 11} should be closed
>> at step (6). Note that FF is not doing anything wrong here. It shouldn't
>> have to care that the streams are CLOSED in this scenario (assuming these
>> streams only ever have PRIORITY frames exchanged). It would be interesting
>> to get a FF dev to comment on the expected stream state here just to be
>> sure these streams will only be used for PRIORITY.
>>
>
> Yes, they are grouping nodes and serve no other purpose. I personally
> believe they are in the idle state, but I know some people believe they are
> closed with a priority attached. That doesn't seem to matter in practice.
>
>


The state transition I mentioned above is triggered by a HEADERS frame. So
far I have not heard any dispute over this. It seem to be clearly defined
in section 5.1.1 (see below). Do you have a different interpretation of
this section?

https://tools.ietf.org/html/rfc7540#section-5.1.1

The first use of a new stream identifier implicitly closes all streams
in the "idle" state that might have been initiated by that peer with a
lower-valued stream identifier.  For example, if a client sends a
HEADERS frame on stream 7 without ever sending a frame on stream 5,
then stream 5 transitions to the "closed" state when the first frame
for stream 7 is sent or received.



Either way maintaining/interpreting the priority is at the discretion of
>> the server and these streams being closed does not impact the server's
>> ability to do this (as discussed previously the RFC suggests retaining
>> priority for closed streams).
>>
>>
>
> So yes, and no. Certainly the server is in compliance in just ignoring
> everything it knows about priority indications from the client. OTOH,
> things can get very very screwed performance wise if dependencies are
> disregarded and the state of priority is just determined by the local
> weights on each stream. I've seen servers do this and create terrible
> results.
>
>

I'm not suggesting that servers should ignore priority, and I agree this
can be detrimental to page load times and general performance. My point was
meant to clarify the actual behavior of FF since it was used as an example
of "transitioning the stream state would be unexpected". The way FF
currently behaves these streams should be closed because a HEADERS frame is
used anyways.

--f403045f9f8440f15d05467a7a21
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div class=3D"gmail_quo=
te">On Thu, Jan 19, 2017 at 7:55 AM, Patrick McManus <span dir=3D"ltr">&lt;=
<a href=3D"mailto:mcmanus@ducksong.com" target=3D"_blank">mcmanus@ducksong.=
com</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"mar=
gin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,2=
04);border-left-style:solid;padding-left:1ex"><div dir=3D"ltr"><br><div cla=
ss=3D"gmail_extra"><br><div class=3D"gmail_quote"><span class=3D"gmail-">On=
 Wed, Jan 18, 2017 at 7:53 PM, Scott Mitchell <span dir=3D"ltr">&lt;<a href=
=3D"mailto:scott.k.mitch1@gmail.com" target=3D"_blank">scott.k.mitch1@gmail=
.com</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"ma=
rgin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,=
204);border-left-style:solid;padding-left:1ex"><div dir=3D"ltr"><br><div cl=
ass=3D"gmail_extra"><br><div>Based on the RFC it seems like stream ids {3, =
5, 7, 11} should be closed at step (6). Note that FF is not doing anything =
wrong here. It shouldn&#39;t have to care that the streams are CLOSED in th=
is scenario (assuming these streams only ever have PRIORITY frames exchange=
d). It would be interesting to get a FF dev to comment on the expected stre=
am state here just to be sure these streams will only be used for PRIORITY.=
 </div></div></div></blockquote><div><br></div></span><div>Yes, they are gr=
ouping nodes and serve no other purpose. I personally believe they are in t=
he idle state, but I know some people believe they are closed with a priori=
ty attached. That doesn&#39;t seem to matter in practice.<br></div><span cl=
ass=3D"gmail-"><div>=C2=A0</div></span></div></div></div></blockquote><div>=
<br></div><div><br></div><div>The state transition I mentioned above is tri=
ggered by a HEADERS frame. So far I have not heard any dispute over this. I=
t seem to be clearly defined in section 5.1.1 (see below). Do you have a di=
fferent interpretation of this section?</div><div><br></div><div><a href=3D=
"https://tools.ietf.org/html/rfc7540#section-5.1.1">https://tools.ietf.org/=
html/rfc7540#section-5.1.1</a><br></div><div><pre class=3D"gmail-newpage" s=
tyle=3D"font-size:13.333333015441895px;margin-top:0px;margin-bottom:0px;pag=
e-break-before:always;color:rgb(0,0,0)">The first use of a new stream ident=
ifier implicitly closes all streams in the &quot;idle&quot; state that migh=
t have been initiated by that peer with a lower-valued stream identifier.  =
For example, if a client sends a HEADERS frame on stream 7 without ever sen=
ding a frame on stream 5, then stream 5 transitions to the &quot;closed&quo=
t; state when the first frame for stream 7 is sent or received.</pre></div>=
<div><br></div><div><br></div><blockquote class=3D"gmail_quote" style=3D"ma=
rgin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,=
204);border-left-style:solid;padding-left:1ex"><div dir=3D"ltr"><div class=
=3D"gmail_extra"><div class=3D"gmail_quote"><span class=3D"gmail-"><blockqu=
ote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left-wid=
th:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-l=
eft:1ex"><div dir=3D"ltr"><div class=3D"gmail_extra"><div>Either way mainta=
ining/interpreting the priority is at the discretion of the server and thes=
e streams being closed does not impact the server&#39;s ability to do this =
(as discussed previously the RFC suggests retaining priority for closed str=
eams).</div><div>=C2=A0<br></div></div></div></blockquote><div><br></div></=
span><div>So yes, and no. Certainly the server is in compliance in just ign=
oring everything it knows about priority indications from the client. OTOH,=
 things can get very very screwed performance wise if dependencies are disr=
egarded and the state of priority is just determined by the local weights o=
n each stream. I&#39;ve seen servers do this and create terrible results.<b=
r><br></div></div></div></div></blockquote><div><br></div><div><br></div><d=
iv>I&#39;m not suggesting that servers should ignore priority, and I agree =
this can be detrimental to page load times and general performance. My poin=
t was meant to clarify the actual behavior of FF since it was used as an ex=
ample of &quot;transitioning the stream state would be unexpected&quot;. Th=
e way FF currently behaves these streams should be closed because a HEADERS=
 frame is used anyways.</div><div>=C2=A0</div></div><br></div></div>

--f403045f9f8440f15d05467a7a21--


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Thu Jan 19 16:55:41 2017
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 3578C1296BF for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 19 Jan 2017 16:55:41 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.12
X-Spam-Level:
X-Spam-Status: No, score=-10.12 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, 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=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 w5Oh5YtTrpMA for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 19 Jan 2017 16:55:39 -0800 (PST)
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 8E771129532 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 19 Jan 2017 16:55:39 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cUNSe-0007J5-LD for ietf-http-wg-dist@listhub.w3.org; Fri, 20 Jan 2017 00:53:48 +0000
Resent-Date: Fri, 20 Jan 2017 00:53:48 +0000
Resent-Message-Id: <E1cUNSe-0007J5-LD@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <mnot@mnot.net>) id 1cUNSU-0007HI-4T for ietf-http-wg@listhub.w3.org; Fri, 20 Jan 2017 00:53:38 +0000
Received: from mxout-07.mxes.net ([216.86.168.182]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <mnot@mnot.net>) id 1cUNSO-0002PZ-26 for ietf-http-wg@w3.org; Fri, 20 Jan 2017 00:53:32 +0000
Received: from [192.168.3.104] (unknown [124.189.98.244]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 52B8422E25C; Thu, 19 Jan 2017 19:52:51 -0500 (EST)
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\))
From: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <20161022231045.B1778B81CC6@rfc-editor.org>
Date: Fri, 20 Jan 2017 11:52:47 +1100
Cc: etan.kissling@gmail.com, HTTP working group mailing list <ietf-http-wg@w3.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <158DCC70-3D22-4B73-A99C-5613584D0953@mnot.net>
References: <20161022231045.B1778B81CC6@rfc-editor.org>
To: RFC Errata System <rfc-editor@rfc-editor.org>
X-Mailer: Apple Mail (2.3259)
Received-SPF: pass client-ip=216.86.168.182; envelope-from=mnot@mnot.net; helo=mxout-07.mxes.net
X-W3C-Hub-Spam-Status: No, score=-8.0
X-W3C-Hub-Spam-Report: AWL=1.579, BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_IRR=-3, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1cUNSO-0002PZ-26 502f73ac9b38f5489a1e1dda5560dd22
X-Original-To: ietf-http-wg@w3.org
Subject: Re: [Technical Errata Reported] RFC7230 (4838)
Archived-At: <http://www.w3.org/mid/158DCC70-3D22-4B73-A99C-5613584D0953@mnot.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33338
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>

REJECT. See subsequent discussion.


> On 23 Oct 2016, at 10:10 am, RFC Errata System =
<rfc-editor@rfc-editor.org> wrote:
>=20
> The following errata report has been submitted for RFC7230,
> "Hypertext Transfer Protocol (HTTP/1.1): Message Syntax and Routing".
>=20
> --------------------------------------
> You may review the report below and at:
> http://www.rfc-editor.org/errata_search.php?rfc=3D7230&eid=3D4838
>=20
> --------------------------------------
> Type: Technical
> Reported by: Etan Kissling <etan.kissling@gmail.com>
>=20
> Section: 4
>=20
> Original Text
> -------------
>   Parameters are in the form of a name or name=3Dvalue pair.
>=20
>     transfer-parameter =3D token BWS "=3D" BWS ( token / quoted-string =
)
>=20
> Corrected Text
> --------------
>   Parameters are in the form of a name or name=3Dvalue pair.
>=20
>     transfer-parameter =3D token=20
>                        / token BWS "=3D" BWS ( token / quoted-string )
>=20
> Notes
> -----
> The form of a name cannot be represented with the original ABNF.
>=20
> Instructions:
> -------------
> This erratum is currently posted as "Reported". If necessary, please
> use "Reply All" to discuss whether it should be verified or
> rejected. When a decision is reached, the verifying party =20
> can log in to change the status and edit the report, if necessary.=20
>=20
> --------------------------------------
> RFC7230 (draft-ietf-httpbis-p1-messaging-26)
> --------------------------------------
> Title               : Hypertext Transfer Protocol (HTTP/1.1): Message =
Syntax and Routing
> Publication Date    : June 2014
> Author(s)           : R. Fielding, Ed., J. Reschke, Ed.
> Category            : PROPOSED STANDARD
> Source              : Hypertext Transfer Protocol Bis APP
> Area                : Applications
> Stream              : IETF
> Verifying Party     : IESG
>=20

--
Mark Nottingham   https://www.mnot.net/



From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Thu Jan 19 16:55:41 2017
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 BB59D129532 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 19 Jan 2017 16:55:41 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.12
X-Spam-Level:
X-Spam-Status: No, score=-10.12 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, 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=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 ise54kq1-jpu for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 19 Jan 2017 16:55:39 -0800 (PST)
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 A091F129672 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 19 Jan 2017 16:55:39 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cUNSC-0007DA-1j for ietf-http-wg-dist@listhub.w3.org; Fri, 20 Jan 2017 00:53:20 +0000
Resent-Date: Fri, 20 Jan 2017 00:53:20 +0000
Resent-Message-Id: <E1cUNSC-0007DA-1j@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <mnot@mnot.net>) id 1cUNS8-0007Am-42 for ietf-http-wg@listhub.w3.org; Fri, 20 Jan 2017 00:53:16 +0000
Received: from mxout-07.mxes.net ([216.86.168.182]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <mnot@mnot.net>) id 1cUNS1-0002Oi-7K for ietf-http-wg@w3.org; Fri, 20 Jan 2017 00:53:10 +0000
Received: from [192.168.3.104] (unknown [124.189.98.244]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 9ECA722E1F3; Thu, 19 Jan 2017 19:52:45 -0500 (EST)
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\))
From: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <20160503224114.D59E1180011@rfc-editor.org>
Date: Fri, 20 Jan 2017 11:52:42 +1100
Cc: kannan@cakoose.com, HTTP working group mailing list <ietf-http-wg@w3.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <CFC30CE8-3EE5-4192-A4D5-1DEEFC2D1E2C@mnot.net>
References: <20160503224114.D59E1180011@rfc-editor.org>
To: RFC Errata System <rfc-editor@rfc-editor.org>
X-Mailer: Apple Mail (2.3259)
Received-SPF: pass client-ip=216.86.168.182; envelope-from=mnot@mnot.net; helo=mxout-07.mxes.net
X-W3C-Hub-Spam-Status: No, score=-7.9
X-W3C-Hub-Spam-Report: AWL=1.723, BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_IRR=-3, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1cUNS1-0002Oi-7K 5e4920af9094f9d749d3349d9bf2bb88
X-Original-To: ietf-http-wg@w3.org
Subject: Re: [Technical Errata Reported] RFC7233 (4682)
Archived-At: <http://www.w3.org/mid/CFC30CE8-3EE5-4192-A4D5-1DEEFC2D1E2C@mnot.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33335
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>

REJECT. See subsequent discussion.


> On 4 May 2016, at 8:41 am, RFC Errata System =
<rfc-editor@rfc-editor.org> wrote:
>=20
> The following errata report has been submitted for RFC7233,
> "Hypertext Transfer Protocol (HTTP/1.1): Range Requests".
>=20
> --------------------------------------
> You may review the report below and at:
> http://www.rfc-editor.org/errata_search.php?rfc=3D7233&eid=3D4682
>=20
> --------------------------------------
> Type: Technical
> Reported by: Kannan Goundan <kannan@cakoose.com>
>=20
> Section: 2.1
>=20
> Original Text
> -------------
> byte-range-set=3D 1#( byte-range-spec / suffix-byte-range-spec )
>=20
> Corrected Text
> --------------
> According to the "1#element" rule, the expansion would be:
>=20
>    byte-range-set =3D ( byte-range-spec /
>        suffix-byte-range-spec ) *( OWS "," OWS ( byte-range-spec /
>        suffix-byte-range-spec ) )
>=20
> But Appendix D has the definition:
>=20
>    byte-range-set =3D *( "," OWS ) ( byte-range-spec /
>        suffix-byte-range-spec ) *( OWS "," [ OWS ( byte-range-spec /
>        suffix-byte-range-spec ) ] )
>=20
>=20
> Notes
> -----
> This is a followup to my original report: =
<http://www.rfc-editor.org/errata_search.php?rfc=3D7233&eid=3D4681>
>=20
> My original report was incorrect because I didn't notice the =
difference between "1*element" and "1#element".  Thanks to Julian =
Reschke for pointing this out to me.
>=20
> After looking up the "1#element" rule =
<https://tools.ietf.org/html/rfc7230#section-7>, it looks like Section =
2.1 and Appendix D are more similar, but not exactly equivalent.
>=20
> The Appendix D version of the rule seems to allow extra commas and =
OWS. =20
> I'm trying to write strict parsing code for this header and am not =
sure which definition to follow.
>=20
> P.S. I hope I didn't screw up again.  I apologize for wasting your =
time (again) if I did.
>=20
> Instructions:
> -------------
> This erratum is currently posted as "Reported". If necessary, please
> use "Reply All" to discuss whether it should be verified or
> rejected. When a decision is reached, the verifying party (IESG)
> can log in to change the status and edit the report, if necessary.=20
>=20
> --------------------------------------
> RFC7233 (draft-ietf-httpbis-p5-range-26)
> --------------------------------------
> Title               : Hypertext Transfer Protocol (HTTP/1.1): Range =
Requests
> Publication Date    : June 2014
> Author(s)           : R. Fielding, Ed., Y. Lafon, Ed., J. Reschke, Ed.
> Category            : PROPOSED STANDARD
> Source              : Hypertext Transfer Protocol Bis APP
> Area                : Applications
> Stream              : IETF
> Verifying Party     : IESG
>=20
>=20

--
Mark Nottingham   https://www.mnot.net/



From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Thu Jan 19 17:22:40 2017
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 9FF4012943C for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 19 Jan 2017 17:22:40 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.12
X-Spam-Level:
X-Spam-Status: No, score=-10.12 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, 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=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 3z5LB6X_QQDj for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 19 Jan 2017 17:22:39 -0800 (PST)
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 36F7F129410 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 19 Jan 2017 17:22:39 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cUNSx-0007Jz-EG for ietf-http-wg-dist@listhub.w3.org; Fri, 20 Jan 2017 00:54:07 +0000
Resent-Date: Fri, 20 Jan 2017 00:54:07 +0000
Resent-Message-Id: <E1cUNSx-0007Jz-EG@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <mnot@mnot.net>) id 1cUNSv-0007JE-5S for ietf-http-wg@listhub.w3.org; Fri, 20 Jan 2017 00:54:05 +0000
Received: from mxout-07.mxes.net ([216.86.168.182]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <mnot@mnot.net>) id 1cUNSo-000775-TG for ietf-http-wg@w3.org; Fri, 20 Jan 2017 00:53:59 +0000
Received: from [192.168.3.104] (unknown [124.189.98.244]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 2090522E1F3; Thu, 19 Jan 2017 19:53:35 -0500 (EST)
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\))
From: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <570E13F2.1060604@gmx.de>
Date: Fri, 20 Jan 2017 11:53:35 +1100
Cc: "A. Rothman" <amichai2@amichais.net>, HTTP working group mailing list <ietf-http-wg@w3.org>
Content-Transfer-Encoding: 7bit
Message-Id: <19AEADA4-D98A-4DED-820A-4413FDFCF978@mnot.net>
References: <20160413084140.73D99180006@rfc-editor.org> <570E13F2.1060604@gmx.de>
To: RFC Errata System <rfc-editor@rfc-editor.org>
X-Mailer: Apple Mail (2.3259)
Received-SPF: pass client-ip=216.86.168.182; envelope-from=mnot@mnot.net; helo=mxout-07.mxes.net
X-W3C-Hub-Spam-Status: No, score=-7.7
X-W3C-Hub-Spam-Report: AWL=1.946, BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_IRR=-3, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cUNSo-000775-TG d078ca382af283ffd7cf47d909ffd717
X-Original-To: ietf-http-wg@w3.org
Subject: Re: [Technical Errata Reported] RFC7233 (4664)
Archived-At: <http://www.w3.org/mid/19AEADA4-D98A-4DED-820A-4413FDFCF978@mnot.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33339
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>

VERIFIED.

> On 13 Apr 2016, at 7:40 pm, Julian Reschke <julian.reschke@gmx.de> wrote:
> 
> 
> On 2016-04-13 10:41, RFC Errata System wrote:
>> The following errata report has been submitted for RFC7233,
>> "Hypertext Transfer Protocol (HTTP/1.1): Range Requests".
>> 
>> --------------------------------------
>> You may review the report below and at:
>> http://www.rfc-editor.org/errata_search.php?rfc=7233&eid=4664
>> 
>> --------------------------------------
>> Type: Technical
>> Reported by: Amichai Rothman <amichai2@amichais.net>
>> 
>> Section: 4.4
>> 
>> Original Text
>> -------------
>> The 416 (Range Not Satisfiable) status code indicates that none of
>> the ranges in the request's Range header field (Section 3.1) overlap
>> the current extent of the selected resource or that the set of ranges
>> requested has been rejected due to invalid ranges or an excessive
>> request of small or overlapping ranges.
>> 
>> Corrected Text
>> --------------
>> The 416 (Range Not Satisfiable) status code indicates that none of
>> the ranges in the request's Range header field (Section 3.1) overlap
>> the current extent of the selected representation or that the set of
>> ranges requested has been rejected due to invalid ranges or an excessive
>> request of small or overlapping ranges.
>> ...
> 
> I agree that "representation" would have been the correct term here.
> 
> Best regards, Julian

--
Mark Nottingham   https://www.mnot.net/



From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Thu Jan 19 17:30:52 2017
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 B4553129493 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 19 Jan 2017 17:30:52 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.12
X-Spam-Level:
X-Spam-Status: No, score=-10.12 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, 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=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 vosQiyGWRzRJ for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 19 Jan 2017 17:30:51 -0800 (PST)
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 7A2AC1293F3 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 19 Jan 2017 17:30:51 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cUNSW-0007IW-JR for ietf-http-wg-dist@listhub.w3.org; Fri, 20 Jan 2017 00:53:40 +0000
Resent-Date: Fri, 20 Jan 2017 00:53:40 +0000
Resent-Message-Id: <E1cUNSW-0007IW-JR@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <mnot@mnot.net>) id 1cUNSU-0007HJ-4e for ietf-http-wg@listhub.w3.org; Fri, 20 Jan 2017 00:53:38 +0000
Received: from mxout-07.mxes.net ([216.86.168.182]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <mnot@mnot.net>) id 1cUNSO-0002PY-1u for ietf-http-wg@w3.org; Fri, 20 Jan 2017 00:53:32 +0000
Received: from [192.168.3.104] (unknown [124.189.98.244]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 795DC22E259; Thu, 19 Jan 2017 19:52:49 -0500 (EST)
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\))
From: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <162094316.1891646.1460484574532.JavaMail.yahoo@mail.yahoo.com>
Date: Fri, 20 Jan 2017 11:52:45 +1100
Cc: HTTP Working Group <ietf-http-wg@w3.org>, d.stussy@yahoo.com
Content-Transfer-Encoding: quoted-printable
Message-Id: <B55B655E-A21B-4195-AE35-015A3A50DB21@mnot.net>
References: <162094316.1891646.1460484574532.JavaMail.yahoo.ref@mail.yahoo.com> <162094316.1891646.1460484574532.JavaMail.yahoo@mail.yahoo.com>
To: RFC Errata System <rfc-editor@rfc-editor.org>
X-Mailer: Apple Mail (2.3259)
Received-SPF: pass client-ip=216.86.168.182; envelope-from=mnot@mnot.net; helo=mxout-07.mxes.net
X-W3C-Hub-Spam-Status: No, score=-8.1
X-W3C-Hub-Spam-Report: AWL=1.516, BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_IRR=-3, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1cUNSO-0002PY-1u 4015f0199431b13dfd8f693af7ebbadf
X-Original-To: ietf-http-wg@w3.org
Subject: Re: [Technical Errata Reported] RFC7540 (4663)
Archived-At: <http://www.w3.org/mid/B55B655E-A21B-4195-AE35-015A3A50DB21@mnot.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33337
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>

REJECT. As discussed, this isn't an issue for the HTTP specification.


> On 13 Apr 2016, at 4:10 am, d.stussy@yahoo.com wrote:
>=20
> It breaks the CGI interface, which per RFC 3875 is expecting the =
SERVER_PROTOCOL variable to contain "HTTP/2.0", not "HTTP/2".  It may =
also break any server log analysis tools which depend on the ANBF syntax =
as the variable may also appear in the logs.
>=20
> RFC 3875, Section 4.1.16 ABNF:
>=20
>   HTTP-Version      =3D "HTTP" "/" 1*digit "." 1*digit
>=20
> The "minor" number is not optional.  If this has been changed, RFC =
7540 needs to say so.  It doesn't.
>=20
> Personally, I don't care if this is handled via an errata or another =
RFC which clarifies the conflict.
>=20
> --------------------------------------------
> On Tue, 4/12/16, Barry Leiba <barryleiba@computer.org> wrote:
> I don't understand how it breaks anything: when you use HTTP/1.1, you =
have the minor version.  When you use HTTP/2, you're using a server that =
understands HTTP/2 and knows what to expect.  Please explain where the =
problem occurs.
> ...
>=20
>=20
>=20

--
Mark Nottingham   https://www.mnot.net/



From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Thu Jan 19 17:32:12 2017
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 0E17F129479 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 19 Jan 2017 17:32:12 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.12
X-Spam-Level:
X-Spam-Status: No, score=-10.12 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, 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=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 qekaSvtnw1_S for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 19 Jan 2017 17:32:10 -0800 (PST)
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 A956F127078 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 19 Jan 2017 17:32:10 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cUNSO-0007HD-NE for ietf-http-wg-dist@listhub.w3.org; Fri, 20 Jan 2017 00:53:32 +0000
Resent-Date: Fri, 20 Jan 2017 00:53:32 +0000
Resent-Message-Id: <E1cUNSO-0007HD-NE@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <mnot@mnot.net>) id 1cUNS8-0007An-4Z for ietf-http-wg@listhub.w3.org; Fri, 20 Jan 2017 00:53:16 +0000
Received: from mxout-07.mxes.net ([216.86.168.182]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <mnot@mnot.net>) id 1cUNS1-0002Ow-M2 for ietf-http-wg@w3.org; Fri, 20 Jan 2017 00:53:10 +0000
Received: from [192.168.3.104] (unknown [124.189.98.244]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 984FB22E1FA; Thu, 19 Jan 2017 19:52:47 -0500 (EST)
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\))
From: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <20160209000555.AEDDA18046A@rfc-editor.org>
Date: Fri, 20 Jan 2017 11:52:43 +1100
Cc: me@brianchang.info, HTTP working group mailing list <ietf-http-wg@w3.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <749727B2-B6B1-4B38-80DF-BFD282817002@mnot.net>
References: <20160209000555.AEDDA18046A@rfc-editor.org>
To: RFC Errata System <rfc-editor@rfc-editor.org>
X-Mailer: Apple Mail (2.3259)
Received-SPF: pass client-ip=216.86.168.182; envelope-from=mnot@mnot.net; helo=mxout-07.mxes.net
X-W3C-Hub-Spam-Status: No, score=-8.0
X-W3C-Hub-Spam-Report: AWL=1.648, BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_IRR=-3, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1cUNS1-0002Ow-M2 0cf4cfbb954450135c4b63f30ff7d6cc
X-Original-To: ietf-http-wg@w3.org
Subject: Re: [Editorial Errata Reported] RFC7234 (4616)
Archived-At: <http://www.w3.org/mid/749727B2-B6B1-4B38-80DF-BFD282817002@mnot.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33336
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>

REJECT.

See subsequent discussion.


> On 9 Feb 2016, at 11:05 am, RFC Errata System =
<rfc-editor@rfc-editor.org> wrote:
>=20
> The following errata report has been submitted for RFC7234,
> "Hypertext Transfer Protocol (HTTP/1.1): Caching".
>=20
> --------------------------------------
> You may review the report below and at:
> http://www.rfc-editor.org/errata_search.php?rfc=3D7234&eid=3D4616
>=20
> --------------------------------------
> Type: Editorial
> Reported by: Brian Chang <me@brianchang.info>
>=20
> Section: GLOBAL
>=20
> Original Text
> -------------
> (See Section 3.2 for additional details related to the use of public =
in
> response to a request containing Authorization, and Section 3 for=20
> details of how public affects responses that would normally not be=20
> stored, due to their status codes not being defined as cacheable=20
> by default; see Section 4.2.2.)
>=20
> has a status code that is defined as cacheable by default=20
> (see Section 4.2.2), or
>=20
> Corrected Text
> --------------
> (See Section 3.2 for additional details related to the use of public =
in
> response to a request containing Authorization, and Section 3 for=20
> details of how public affects responses that would normally not be=20
> stored, due to their status codes not being defined as cacheable=20
> by default; see Section 6.1 of [RFC7231].)
>=20
> has a status code that is defined as cacheable by default=20
> (see Section 6.1 of [RFC7231]), or
>=20
> Notes
> -----
> Section 4.2.2 is titled "Calculating Heuristic Freshness" but is =
referenced in the original text when talking about status codes. This is =
confusing despite having a reference to Section 6.1 of RFC7231 buried =
within the text.
>=20
> There are other references to 4.2.2 as well, but those actually talk =
about heuristic freshness.
>=20
> Instructions:
> -------------
> This erratum is currently posted as "Reported". If necessary, please
> use "Reply All" to discuss whether it should be verified or
> rejected. When a decision is reached, the verifying party (IESG)
> can log in to change the status and edit the report, if necessary.=20
>=20
> --------------------------------------
> RFC7234 (draft-ietf-httpbis-p6-cache-26)
> --------------------------------------
> Title               : Hypertext Transfer Protocol (HTTP/1.1): Caching
> Publication Date    : June 2014
> Author(s)           : R. Fielding, Ed., M. Nottingham, Ed., J. =
Reschke, Ed.
> Category            : PROPOSED STANDARD
> Source              : Hypertext Transfer Protocol Bis APP
> Area                : Applications
> Stream              : IETF
> Verifying Party     : IESG
>=20
>=20

--
Mark Nottingham   https://www.mnot.net/



From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Thu Jan 19 19:53:08 2017
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 CF3521297C3 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 19 Jan 2017 19:53:08 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.2
X-Spam-Level:
X-Spam-Status: No, score=-10.2 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, RP_MATCHES_RCVD=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=yandex-team.ru
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 XX1XwrqGOlnp for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 19 Jan 2017 19:53:07 -0800 (PST)
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 4AE4F1297AA for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 19 Jan 2017 19:53:07 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cUQCp-0005cm-V8 for ietf-http-wg-dist@listhub.w3.org; Fri, 20 Jan 2017 03:49:39 +0000
Resent-Date: Fri, 20 Jan 2017 03:49:39 +0000
Resent-Message-Id: <E1cUQCp-0005cm-V8@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <chaals@yandex-team.ru>) id 1cUQCj-0005c1-TI for ietf-http-wg@listhub.w3.org; Fri, 20 Jan 2017 03:49:33 +0000
Received: from forwardcorp1h.cmail.yandex.net ([87.250.230.216]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <chaals@yandex-team.ru>) id 1cUQCd-0007Lt-88 for ietf-http-wg@w3.org; Fri, 20 Jan 2017 03:49:28 +0000
Received: from mxbackcorp1j.mail.yandex.net (mxbackcorp1j.mail.yandex.net [IPv6:2a02:6b8:0:1619::162]) by forwardcorp1h.cmail.yandex.net (Yandex) with ESMTP id 5889120CB2; Fri, 20 Jan 2017 06:48:58 +0300 (MSK)
Received: from webcorp02d.yandex-team.ru (webcorp02d.yandex-team.ru [5.255.216.159]) by mxbackcorp1j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id e19qTpPM8e-mvBmxfpb; Fri, 20 Jan 2017 06:48:58 +0300
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex-team.ru; s=default; t=1484884138; bh=MxeuKlIlOz1MG7Wk0gc1WCI6yXyyodczPJdmXqq3WaQ=; h=From:To:Subject:Message-Id:Date; b=QTMH6TOg7YXk6gEEg7D+KrnZmAEfhFCi+JIPhtl04+3iW3zKM2QPmNlVa2QmK3g5B wdQBwc9nOuDvnqZ0HR1F7GMY/AZHZH9GmBgcXnC6TRdS4ElfMz5ZBYltBd1RIBbdsy oRQnsq1UF4gdAd89LgxXVxCdJKsIhvkUvxVbNk9A=
Authentication-Results: mxbackcorp1j.mail.yandex.net; dkim=pass header.i=@yandex-team.ru
X-Yandex-Sender-Uid: 1120000000011116
Received: by webcorp02d.yandex-team.ru with HTTP; Fri, 20 Jan 2017 06:48:57 +0300
From: chaals@yandex-team.ru
To: ietf-http-wg@w3.org
MIME-Version: 1.0
Message-Id: <6671484884137@webcorp02d.yandex-team.ru>
X-Mailer: Yamail [ http://yandex.ru ] 5.0
Date: Fri, 20 Jan 2017 04:48:57 +0100
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset=utf-8
Received-SPF: pass client-ip=87.250.230.216; envelope-from=chaals@yandex-team.ru; helo=forwardcorp1h.cmail.yandex.net
X-W3C-Hub-Spam-Status: No, score=-7.1
X-W3C-Hub-Spam-Report: AWL=1.904, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_IRR=-3, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1cUQCd-0007Lt-88 f01c598536bc72b246aa1337c27013c4
X-Original-To: ietf-http-wg@w3.org
Subject: Shared Dictionaries (SDCH and friends)
Archived-At: <http://www.w3.org/mid/6671484884137@webcorp02d.yandex-team.ru>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33340
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>

Hi,

re-(re-)starting discussion…

Yandex sees real value from shared dictionary compression, and others have also reported this is the case.

Although there are a couple of proposals, we're not very happy with either, so we're planning to make a third one, based partially on our implementation experience and partially on work we are prototyping now.

We've heard there are security concerns. One concern seems to be that bundling "secrets" with known content such as a style sheet helps attackers decrypt the secrets. Although valuable secret content in a shared dictionary seems like a bad idea anyway, our proposal includes the ability to use multiple dictionaries, and has separating metadata from the "blob payload" as a goal. It seems to me (although I'm not the sharpest knife in the security drawer) this should provide a simple approach to mitigating this issue. Additionally, since this is a new powerful feature, there is no reason not to restrict it to secure connections. 

I'm not at all sure that I understand all the security concerns that people have raised, let alone have a solution ready, so I'd be grateful for any pointers (or kicks) in the right direction. 

We also expect to provide more solid information on what sort of improvements we see in what sort of situations based on actual deployment. We'd be grateful if others with relevant experience could do likewise, to help justify asking people to spend the time to review.

cheers

Chaals

-- 
Charles McCathie Nevile - standards - Yandex
chaals@yandex-team.ru - - - Find more at http://yandex.com


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Thu Jan 19 20:02:36 2017
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 D4C05126BF7 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 19 Jan 2017 20:02:36 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.7
X-Spam-Level:
X-Spam-Status: No, score=-9.7 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_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, 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 nwYklHPK0312 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 19 Jan 2017 20:02:36 -0800 (PST)
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 09D4D126579 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 19 Jan 2017 20:02:35 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cUQND-0005O3-0e for ietf-http-wg-dist@listhub.w3.org; Fri, 20 Jan 2017 04:00:23 +0000
Resent-Date: Fri, 20 Jan 2017 04:00:23 +0000
Resent-Message-Id: <E1cUQND-0005O3-0e@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <martin.thomson@gmail.com>) id 1cUQN9-0004bY-82 for ietf-http-wg@listhub.w3.org; Fri, 20 Jan 2017 04:00:19 +0000
Received: from mail-yw0-f181.google.com ([209.85.161.181]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <martin.thomson@gmail.com>) id 1cUQN3-0007cf-EV for ietf-http-wg@w3.org; Fri, 20 Jan 2017 04:00:14 +0000
Received: by mail-yw0-f181.google.com with SMTP id l19so66349121ywc.2 for <ietf-http-wg@w3.org>; Thu, 19 Jan 2017 19:59:53 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=29x+tHifSgH9yLNHubS6qYjpGcU59X71oTQn7YdOUhs=; b=FIoqP2rLHQu//sjRolyfeshVzxUgNXZvYtWqk16FcQxh7goRhwgQ5cOP4LA2+0OOMV FQ9RFHbLmt7PWzFkc8EXBPWKuMEjgbaX70HuYI37vozm3CIqS82w+qHvxlTYkMn2tHet R6fYdqCe6OUz8IWjJFZEHrRZB1cDNIVlY7aw7RmCAc4ADg/4G1MNv+02xsBEnDDQaYN0 o+qPw7nupfZJXn9n1ks2WOCJ0Pspahfg4FEK/Lv5+7bE20vdUIy5i+CDML2c0qfnZeTQ Q7YhAUGRVHRCsevbkuqqbTj/4VxdTTxsrUDXSs7BUXIN3/s/PlzyUf7VzwqB3PpadzZp c0Vw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=29x+tHifSgH9yLNHubS6qYjpGcU59X71oTQn7YdOUhs=; b=EZpI97JClR6ixXS+q8h97l4575noAou0GopxJuO0Crm1aboD6o1rJ0WQC7bp5Z6oZz oHTDn8LswNuv2QrzON7Sn/WK4zw5TiRTfgP5fQOP/t41/eNfdJDX3Sm0B9sIeLzTLOxO nZ+O2T8LsjEd1w2YL5MCanmMYvmSAW2u0FVRgO67Tl6Sxx9u1b4NVDOD0gCHWjD969AN cpjQ2FXZQszLQXDXjinQe6e/jHWm87bgq6pSk8ZBHUq+DIu01fP8QDerUF2LWEWIfQBP 6oqSTKeC+qY4+MA6yxg2kqg68IOZEEEQszNBX/JZOpSKBbp+vT5JAEU2M94JparfDCRI 7CsQ==
X-Gm-Message-State: AIkVDXLGp1UaU9eOXOYDXiqk+EfTVYpFzDyl+DydmbavHGIfxf1xV3e7xihF2mlK8SJPhZZQtIMyc58YYrDIag==
X-Received: by 10.55.164.85 with SMTP id n82mr10924706qke.316.1484884787561; Thu, 19 Jan 2017 19:59:47 -0800 (PST)
MIME-Version: 1.0
Received: by 10.140.19.112 with HTTP; Thu, 19 Jan 2017 19:59:47 -0800 (PST)
From: Martin Thomson <martin.thomson@gmail.com>
Date: Fri, 20 Jan 2017 16:59:47 +1300
Message-ID: <CABkgnnV4FG01J5CwdjG_gnCWvoyaT80ZBd3R41TopuWuKEAm5A@mail.gmail.com>
To: HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=209.85.161.181; envelope-from=martin.thomson@gmail.com; helo=mail-yw0-f181.google.com
X-W3C-Hub-Spam-Status: No, score=-5.8
X-W3C-Hub-Spam-Report: AWL=-0.230, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1cUQN3-0007cf-EV 9e07c56c5ca5847cccae273bf67cdb6d
X-Original-To: ietf-http-wg@w3.org
Subject: Proposed text for erratum on PRIORITY in RFC 7540
Archived-At: <http://www.w3.org/mid/CABkgnnV4FG01J5CwdjG_gnCWvoyaT80ZBd3R41TopuWuKEAm5A@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33341
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>

I figure that I might try to nut this out here before opening an
erratum.  It's not clear from the thread that we all understand this.

I think that suggesting two additions is the right thing here.  It's
an erratum, so we don't have to do a proper edit, we can leave that
for some future revision of the spec to get precisely right.

In Section 5.3 (Stream Priority) a new paragraph:

> The information that an endpoint maintains for stream priority is separat=
e from other state. Importantly, this includes stream states (Section 5.1).=
  A stream in any state can have its priority changed with a PRIORITY frame=
. The state of a stream is not changed as a result of changing its priority=
.  The number of streams for which state is remembered is at the discretion=
 of an endpoint, see Section 5.3.4 for details.

In Section 6.4 (PRIORITY) a new sentence at the end of the first paragraph:

> Sending or receiving a PRIORITY frame does not affect the state of the id=
entified stream (Section 5.1), only its priority is altered.

I think that we only really need one piece of clarification (the
second would be enough), but it doesn't hurt to make it clear in both
places that one might go to learn this.


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Thu Jan 19 20:11:51 2017
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 4B8191297EE for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 19 Jan 2017 20:11:51 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.7
X-Spam-Level:
X-Spam-Status: No, score=-9.7 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_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, 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 RwlwNCNtO4uw for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 19 Jan 2017 20:11:50 -0800 (PST)
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 C257C1297FE for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 19 Jan 2017 20:11:49 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cUQVz-0007WA-MY for ietf-http-wg-dist@listhub.w3.org; Fri, 20 Jan 2017 04:09:27 +0000
Resent-Date: Fri, 20 Jan 2017 04:09:27 +0000
Resent-Message-Id: <E1cUQVz-0007WA-MY@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <martin.thomson@gmail.com>) id 1cUQVu-0007Uk-JY for ietf-http-wg@listhub.w3.org; Fri, 20 Jan 2017 04:09:22 +0000
Received: from mail-yw0-f172.google.com ([209.85.161.172]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <martin.thomson@gmail.com>) id 1cUQVo-000491-9H for ietf-http-wg@w3.org; Fri, 20 Jan 2017 04:09:17 +0000
Received: by mail-yw0-f172.google.com with SMTP id v200so66594370ywc.3 for <ietf-http-wg@w3.org>; Thu, 19 Jan 2017 20:08:55 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Q8A9hVC5F7xPQVT9GiQ9c3Kk0ynHUnOQoA/XynwKvI4=; b=jruTn0S9nFdiJisu4KAKye1mjRdaQx4cBo4dSM7ImMbr9GZWRgqAwWjJBj0wrZ4Udm W+qCJYQCkJTNBfU4Y8WXiys19oX4RVVZtIuthEKpfTQIep04YpXMy9i3JDDmpFwJNJBB 3jWxPF2bps9KQ1zmOlor+sJFxuh/7c/evHxpJcCZITnSleylaZ7PvSRLYr0Ab9JywP5b j5rwet+JJGroDFG1mrF1RWfrGwx811+2tfq8tmfprDPAsps70yFj1ZVPKQVfLsPXH0nB mP7F2jjSn54NBI4QSYtKltBgGwITDnRJqTKAICugF+gUvgXWGc+1tBVcQpghzTyaOT1N iU0A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Q8A9hVC5F7xPQVT9GiQ9c3Kk0ynHUnOQoA/XynwKvI4=; b=nyk/VlBfl+bxvEKwELkLybnT8rU4XS2KMrthcRrRO+mqN8B+1TH+kez1uperj3zVfA bT7FREcEV1IXy5N4ly8TKdK/xiRjBUTpaTtkdrc63yOGnuZo0g8E8voCU5aJCoxja8/U madNFp610rleNIitcx4zvaGZZJucpqTAWgfI86rjbvXwoGDZglWe7cr5THKL+0xNUe+Y Ue+6Ot2ThruPSjSwmG8PB3HBcy+2qnY3Qz92lDVaRQKy3jTnSwPVs3YR0tuuyjsN5P5J nUhWRzB6mZeKSrLyDzl61br6P0AHDkh2YYCUfV1LiF4wB+p7cPjvB2iEyUM9DPVGgk2o yO9g==
X-Gm-Message-State: AIkVDXKNEMbUIYq1D+ONG/4ohlF8bXs0/CYnRs4PUCNB0Q41ngI68fF6BLUelO8oZ41zTvsD10yG4rG9Z0ZnOQ==
X-Received: by 10.55.27.65 with SMTP id b62mr11338139qkb.202.1484885330228; Thu, 19 Jan 2017 20:08:50 -0800 (PST)
MIME-Version: 1.0
Received: by 10.140.19.112 with HTTP; Thu, 19 Jan 2017 20:08:49 -0800 (PST)
In-Reply-To: <6671484884137@webcorp02d.yandex-team.ru>
References: <6671484884137@webcorp02d.yandex-team.ru>
From: Martin Thomson <martin.thomson@gmail.com>
Date: Fri, 20 Jan 2017 17:08:49 +1300
Message-ID: <CABkgnnVYWJ9OhmROnd2NCX=A8_tHyQge0kUp4bTBj5eiRy8sCA@mail.gmail.com>
To: chaals@yandex-team.ru
Cc: HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: text/plain; charset=UTF-8
Received-SPF: pass client-ip=209.85.161.172; envelope-from=martin.thomson@gmail.com; helo=mail-yw0-f172.google.com
X-W3C-Hub-Spam-Status: No, score=-5.8
X-W3C-Hub-Spam-Report: AWL=-0.230, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cUQVo-000491-9H d3a5c67862b6f1277ef7495114ce4a30
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Shared Dictionaries (SDCH and friends)
Archived-At: <http://www.w3.org/mid/CABkgnnVYWJ9OhmROnd2NCX=A8_tHyQge0kUp4bTBj5eiRy8sCA@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33342
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>

Hey Chaals,

In case you missed the suggestion at the last meeting from Vlad, he
suggested that this only be offered for use with fetches with a
credentials-mode (See
https://fetch.spec.whatwg.org/#concept-request-credentials-mode) of
"omit".  That is, don't make it possible for the server to use ambient
authority (including cookies) to customize the request.  I don't think
that completely removes the concern, but it helps.

I don't think that having tools for separating "possibly under
attacker influence" and "secret" is going to solve the issue.  That's
already possible with existing compression techniques; the concern is
over the usability of those tools and the ability to correctly
identify data as belonging to each category.

On 20 January 2017 at 16:48,  <chaals@yandex-team.ru> wrote:
> Additionally, since this is a new powerful feature, there is no reason not to restrict it to secure connections.

FWIW, the security concerns ONLY apply to secure connections, so you
needn't worry about this bit.  If you are going to spray your secrets
all over the internet, traffic analysis isn't really your most
pressing concern.


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Fri Jan 20 05:26:26 2017
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 B7FB4129B9E for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 20 Jan 2017 05:26:26 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.699
X-Spam-Level:
X-Spam-Status: No, score=-9.699 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=unavailable 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 h8wd-bWZahNg for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 20 Jan 2017 05:26:25 -0800 (PST)
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 9B88B129B9F for <httpbisa-archive-bis2Juki@lists.ietf.org>; Fri, 20 Jan 2017 05:20:52 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cUZ4U-0007b6-Hi for ietf-http-wg-dist@listhub.w3.org; Fri, 20 Jan 2017 13:17:38 +0000
Resent-Date: Fri, 20 Jan 2017 13:17:38 +0000
Resent-Message-Id: <E1cUZ4U-0007b6-Hi@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <laike9m@gmail.com>) id 1cUZ4R-0007Zd-1V for ietf-http-wg@listhub.w3.org; Fri, 20 Jan 2017 13:17:35 +0000
Received: from mail-it0-f45.google.com ([209.85.214.45]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <laike9m@gmail.com>) id 1cUZ4K-0001gi-ST for ietf-http-wg@w3.org; Fri, 20 Jan 2017 13:17:29 +0000
Received: by mail-it0-f45.google.com with SMTP id r185so20050041ita.0 for <ietf-http-wg@w3.org>; Fri, 20 Jan 2017 05:17:08 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Mj9UgXS/WygwaLwLBlN0O7tfm06nfyn70UQloUe2hmQ=; b=PttvEffYxvq7wMUAwEtrAo0fZ7i1687+iee/cmwF349JcMFy4MrV17x87qPlZ+B6U5 HNz5l6B+hGSdTVSpqtCsj8lAw8NvY3GknTMPsUdgLlpkbcYjQop7AP2fL/OeS2uQjJas 2OdLvavWMt2XmDkI9HqcaguAadn2eCkded7AbgFzIui6klSQixISW4yXBapv0PfSoLg3 Dg02xgkWbTZ0A1W3eFS8P/3NN5G7JxxcAlXKKYVPjq6LsLSJcIZVHpOOXdNppbVqrSkL ADH+KW6baP2UEmQaV5mdFR5b9fJYO0we1AqIpJMvym4QjENOcUnK0KfzBbm/FmlmoSY7 Rzvw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Mj9UgXS/WygwaLwLBlN0O7tfm06nfyn70UQloUe2hmQ=; b=pSioK3EX4zQxUFTIpDL/4j4QTDDnt3lWmDi3mtOpNmgu+EAhiad+NkFZAX4bwLBp1+ ZaWOYW7gdf5LNP4J8VYZRZNlG9SceNqnF2Y67BRGX1jdfwhnXNLPLPjx8lH+ytJJ+t2N NU32CcLKQQznu9GNmmPEEulGl59jjeqbvHPtCD7ZlhxymHP9x+8Dtz3I7CJTcb07DvX9 JmZV0zYDCS3D6vOO1L/ivD8GRXVfSG5aSxlTcHWXdIrLgrm3w0+fjkWEPESAaeqkX+ji A1Vab3sPMjujuG5/Oy4oinxlJmoRKbII05MMhXXb6T+qSlIAABU46nnPOWSb7Q1wFBmX P//Q==
X-Gm-Message-State: AIkVDXIr+ImNB8gT/KLw9kZMnNMulnfdv3lAj2PkDX+khhkOf0AVV4cenJPIYfiR9bbu8nE8pHvjR45cFIawAQ==
X-Received: by 10.36.69.30 with SMTP id y30mr3293051ita.119.1484918222837; Fri, 20 Jan 2017 05:17:02 -0800 (PST)
MIME-Version: 1.0
Received: by 10.79.132.131 with HTTP; Fri, 20 Jan 2017 05:17:02 -0800 (PST)
In-Reply-To: <CAFn2buB_RpbwaTzDgYUNt0e9=vFyu--SYgSLBrfAd1Tf0b1_nQ@mail.gmail.com>
References: <CAFn2buAYWHQSWhhoKZ2GKbqXR1A+tScjkAwZmOuQ9gV9jMp2bA@mail.gmail.com> <CAPyZ6=Kh3n+RJi=RqgFBojgRDpfJ=nbr0i4kvO20ET0Kt7UA8Q@mail.gmail.com> <CABkgnnWmPdDXVS+CvmChRjyqkJooSKgy6KdUdN+9nGzOyJazhg@mail.gmail.com> <CAFn2buDrHtB1z16iTWE945bU_qhxTypr05A=5B_nrQoyQijyOw@mail.gmail.com> <CAFn2buB_RpbwaTzDgYUNt0e9=vFyu--SYgSLBrfAd1Tf0b1_nQ@mail.gmail.com>
From: laike9m <laike9m@gmail.com>
Date: Fri, 20 Jan 2017 21:17:02 +0800
Message-ID: <CAJutW=dX1Z8z+XJ10+uX729bxgWh417kXdd27kg=RO6VbcbvgA@mail.gmail.com>
To: Scott Mitchell <scott.k.mitch1@gmail.com>
Cc: Martin Thomson <martin.thomson@gmail.com>, Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>,  HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary=001a11c149143161130546867757
Received-SPF: pass client-ip=209.85.214.45; envelope-from=laike9m@gmail.com; helo=mail-it0-f45.google.com
X-W3C-Hub-Spam-Status: No, score=-3.2
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, FREEMAIL_REPLY=1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1cUZ4K-0001gi-ST 50b9b2a0a9cf2606957a2ae1af330d68
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Stream State and PRIORITY Frames
Archived-At: <http://www.w3.org/mid/CAJutW=dX1Z8z+XJ10+uX729bxgWh417kXdd27kg=RO6VbcbvgA@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33343
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>

--001a11c149143161130546867757
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

If you don=E2=80=99t include RESERVED streams in the count for
SETTINGS_MAX_CONCURRENT_STREAMS then how do you limit the amount of
RESERVED streams, and how does your peer know about this limit? I have
imposed an implementation specific metric in the past, but this seems less
preferable than relying on something in the RFC that the peer is aware of.
Either way having infinite of something doesn=E2=80=99t work in practice.

As Martin has explained, H2 doesn=E2=80=99t limit the amount of RESERVED st=
reams,
based on the notion that HEADERS are close to free. It=E2=80=99s true that =
one
trying to send infinite number of PUSH_PROMISEs to client can cause
problems, but 1. This only happens if the server is malicious, and if it=E2=
=80=99s
malicious, having a limit in the RFC won=E2=80=99t prevent anything, and 2.=
 Not
counting PUSH_PROMISEs is a tradeoff for fast delivery of PUSH_PROMISEs,
which stops client from sending more requests. I guess this is what Martin
meant by =E2=80=9CIf you limit server push by applying a stream limit, then=
 you
prevent it from being used in time for the client to use it.=E2=80=9D

=EF=BC=88Forgot to reply to all :P=EF=BC=89

On Thu, Jan 19, 2017 at 9:21 AM, Scott Mitchell <scott.k.mitch1@gmail.com>
wrote:

>
>
> On Tue, Jan 17, 2017 at 2:43 PM, Scott Mitchell <scott.k.mitch1@gmail.com=
>
> wrote:
>
>> From my perspective I would like to see two clarifications:
>>
>> 1. It is clear to me that PRIORITY doesn't impact state.
>>
>
> Just to clarify ... it is clear that a PRIORITY frame doesn't impact the
> state of the stream  it is carrying priority information for. The impacts
> PRIORITY frames have on other streams is not clear due to the wording in
> section 5.1.1.
>
>
>> However Section 5.1.1 states "first use of a new stream identifier"
>> which makes no reference to stream state. If stream state is
>> important/implied here better to be specific about it. I don't think the
>> one-off example below this text is sufficient to convey the intended
>> implications of this statement.
>>
>> 2. Section 5.1.2 states "Streams in either of the 'reserved' states do
>> not count toward the stream limit." which seems to conflict with section
>> 8.2.2 "A client can use the SETTINGS_MAX_CONCURRENT_STREAMS setting to
>> limit the number of responses that can be concurrently pushed by a
>> server.". These two statements appear to contradict each other. Since
>> SETTINGS_MAX_CONCURRENT_STREAMS is really the only mechanism to limit
>> resources due to server push I'm assuming section 5.1.2 is overly
>> restrictive.
>>
>>
>> On Tue, Jan 17, 2017 at 2:27 PM, Martin Thomson <martin.thomson@gmail.co=
m
>> > wrote:
>>
>>> On 18 January 2017 at 01:37, Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com=
>
>>> wrote:
>>> > If my understanding is correct, this only refers to the new stream ID
>>> used
>>> > by HEADERS, and PUSH_PROMISE frames which open or reserve streams.  T=
he
>>> > example text following that statement uses HEADERS which opens new
>>> stream.
>>> > PRIORITY frame does not change stream state, and there is no reason t=
o
>>> close
>>> > all unused streams lower than bearing stream ID.  That said, I agree
>>> that
>>> > this is not crystal clear in the document.  In practice, this is
>>> probably
>>> > rather rare case.
>>>
>>> This is, I think, the expectation.
>>>
>>> I think that we probably want to clarify the point by explicitly
>>> saying that PRIORITY doesn't affect stream states.  We say that it can
>>> be sent in any state, but we don't also mention that important point.
>>> Do people here agree that an erratum on this point is appropriate
>>> here?
>>>
>>
>>
>

--001a11c149143161130546867757
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><span class=3D"gmail-im" style=3D"font-size:12.8px"><block=
quote style=3D"margin:1.2em 0px;border-left:4px solid rgb(221,221,221);padd=
ing:0px 1em;color:rgb(119,119,119);quotes:none"><p style=3D"margin:1.2em 0p=
x">If you don=E2=80=99t include RESERVED streams in the count for SETTINGS_=
MAX_CONCURRENT_<wbr>STREAMS then how do you limit the amount of RESERVED st=
reams, and how does your peer know about this limit? I have imposed an impl=
ementation specific metric in the past, but this seems less preferable than=
 relying on something in the RFC that the peer is aware of. Either way havi=
ng infinite of something doesn=E2=80=99t work in practice.</p></blockquote>=
</span><p style=3D"font-size:12.8px;margin:1.2em 0px">As Martin has explain=
ed, H2 doesn=E2=80=99t limit the amount of RESERVED streams, based on the n=
otion that HEADERS are close to free. It=E2=80=99s true that one trying to =
send infinite number of PUSH_PROMISEs to client can cause problems, but 1. =
This only happens if the server is malicious, and if it=E2=80=99s malicious=
, having a limit in the RFC won=E2=80=99t prevent anything, and 2. Not coun=
ting PUSH_PROMISEs is a tradeoff for fast delivery of PUSH_PROMISEs, which =
stops client from sending more requests. I guess this is what Martin meant =
by =E2=80=9CIf you limit server push by applying a stream limit, then you p=
revent it from being used in time for the client to use it.=E2=80=9D</p><p =
style=3D"font-size:12.8px;margin:1.2em 0px">=EF=BC=88Forgot to reply to all=
 :P=EF=BC=89</p></div><div class=3D"gmail_extra"><br><div class=3D"gmail_qu=
ote">On Thu, Jan 19, 2017 at 9:21 AM, Scott Mitchell <span dir=3D"ltr">&lt;=
<a href=3D"mailto:scott.k.mitch1@gmail.com" target=3D"_blank">scott.k.mitch=
1@gmail.com</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" styl=
e=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div di=
r=3D"ltr"><br><div class=3D"gmail_extra"><br><div class=3D"gmail_quote"><sp=
an class=3D"">On Tue, Jan 17, 2017 at 2:43 PM, Scott Mitchell <span dir=3D"=
ltr">&lt;<a href=3D"mailto:scott.k.mitch1@gmail.com" target=3D"_blank">scot=
t.k.mitch1@gmail.com</a>&gt;</span> wrote:<br></span><span class=3D""><bloc=
kquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #cc=
c solid;padding-left:1ex"><div dir=3D"ltr">From my perspective I would like=
 to see two clarifications:<div><br></div><div>1. It is clear to me that PR=
IORITY doesn&#39;t impact state.</div></div></blockquote><div><br></div></s=
pan><div>Just to clarify ... it is clear that a PRIORITY frame doesn&#39;t =
impact the state of the stream =C2=A0it is carrying priority information fo=
r. The impacts PRIORITY frames have on other streams is not clear due to th=
e wording in section 5.1.1.</div><span class=3D""><div>=C2=A0</div><blockqu=
ote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc s=
olid;padding-left:1ex"><div dir=3D"ltr"><div> However Section 5.1.1 states =
&quot;<font color=3D"#000000" size=3D"2">first use of a new stream identifi=
er&quot; which makes no reference to stream state. If stream state is impor=
tant/implied here better to be specific about it. I don&#39;t think the one=
-off example below this text is sufficient to convey the intended implicati=
ons of this statement.</font><br></div><div><span style=3D"color:rgb(0,0,0)=
;font-size:13.333333015441895px"><br></span></div><div><span style=3D"color=
:rgb(0,0,0);font-size:13.333333015441895px">2. Section 5.1.2 states &quot;<=
/span><span style=3D"color:rgb(0,0,0);font-size:13.333333015441895px">Strea=
ms in either of the &#39;</span><span style=3D"color:rgb(0,0,0);font-size:1=
3.333333015441895px">reserved&#39; states do not count toward the stream li=
mit.&quot; which seems to conflict with section 8.2.2 &quot;</span><span st=
yle=3D"color:rgb(0,0,0);font-size:13.333333015441895px">A client can use th=
e SETTINGS_MAX_CONCURRENT_STREAM<wbr>S setting to limit=C2=A0</span><span s=
tyle=3D"color:rgb(0,0,0);font-size:13.333333015441895px">the number of resp=
onses that can be concurrently pushed by a server.</span><span style=3D"col=
or:rgb(0,0,0);font-size:13.333333015441895px">&quot;. These two statements =
appear to contradict each other. Since=C2=A0</span><font color=3D"#000000" =
size=3D"2">SETTINGS_MAX_CONCURRENT_<wbr>STREAMS is really the only=C2=A0mec=
hanism to limit resources due to server push I&#39;m assuming=C2=A0section =
5.1.2 is overly restrictive.</font></div><div><font color=3D"#000000" size=
=3D"2"><br></font></div></div><div class=3D"m_7189452689709368695HOEnZb"><d=
iv class=3D"m_7189452689709368695h5"><div class=3D"gmail_extra"><br><div cl=
ass=3D"gmail_quote">On Tue, Jan 17, 2017 at 2:27 PM, Martin Thomson <span d=
ir=3D"ltr">&lt;<a href=3D"mailto:martin.thomson@gmail.com" target=3D"_blank=
">martin.thomson@gmail.com</a>&gt;</span> wrote:<br><blockquote class=3D"gm=
ail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-le=
ft:1ex"><span>On 18 January 2017 at 01:37, Tatsuhiro Tsujikawa &lt;<a href=
=3D"mailto:tatsuhiro.t@gmail.com" target=3D"_blank">tatsuhiro.t@gmail.com</=
a>&gt; wrote:<br>
&gt; If my understanding is correct, this only refers to the new stream ID =
used<br>
&gt; by HEADERS, and PUSH_PROMISE frames which open or reserve streams.=C2=
=A0 The<br>
&gt; example text following that statement uses HEADERS which opens new str=
eam.<br>
&gt; PRIORITY frame does not change stream state, and there is no reason to=
 close<br>
&gt; all unused streams lower than bearing stream ID.=C2=A0 That said, I ag=
ree that<br>
&gt; this is not crystal clear in the document.=C2=A0 In practice, this is =
probably<br>
&gt; rather rare case.<br>
<br>
</span>This is, I think, the expectation.<br>
<br>
I think that we probably want to clarify the point by explicitly<br>
saying that PRIORITY doesn&#39;t affect stream states.=C2=A0 We say that it=
 can<br>
be sent in any state, but we don&#39;t also mention that important point.<b=
r>
Do people here agree that an erratum on this point is appropriate<br>
here?<br>
</blockquote></div><br></div>
</div></div></blockquote></span></div><br></div></div>
</blockquote></div><br></div>

--001a11c149143161130546867757--


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Fri Jan 20 05:41:28 2017
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 8414C1294C3 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 20 Jan 2017 05:41:28 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.6
X-Spam-Level:
X-Spam-Status: No, score=-9.6 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, 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=lukasa-co-uk.20150623.gappssmtp.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 HJctnVw-KEup for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 20 Jan 2017 05:41:27 -0800 (PST)
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 43B4C129AF1 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Fri, 20 Jan 2017 05:41:27 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cUZPJ-0003PZ-Iz for ietf-http-wg-dist@listhub.w3.org; Fri, 20 Jan 2017 13:39:09 +0000
Resent-Date: Fri, 20 Jan 2017 13:39:09 +0000
Resent-Message-Id: <E1cUZPJ-0003PZ-Iz@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <cory@lukasa.co.uk>) id 1cUZPG-0003Nz-DS for ietf-http-wg@listhub.w3.org; Fri, 20 Jan 2017 13:39:06 +0000
Received: from mail-wm0-f50.google.com ([74.125.82.50]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <cory@lukasa.co.uk>) id 1cUZPA-0002JS-G8 for ietf-http-wg@w3.org; Fri, 20 Jan 2017 13:39:01 +0000
Received: by mail-wm0-f50.google.com with SMTP id c206so43940875wme.0 for <ietf-http-wg@w3.org>; Fri, 20 Jan 2017 05:38:39 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lukasa-co-uk.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=pX8wzC5lmk531yYVT345mSXIPrqZEsxdYqgtjz1U5ks=; b=aM99Pf/LKo7+n8vUSxfx6apJfLzdwXDyCxDYsAckfcGD1Xpid7K54sWZYY/2srAKnG onMY9Z2vS86YdiguaUs9t89GWNL3wkUhjOHKhf5MimGXQGiSIbMgliV1y79cG+fwU00S /zvtMycHuHAYmcI7w8140c8edWpztOqni8+gMgE0Y2KtrO2g4tMNeLV9sOZAnB3e63JU 4xwzuTV/pZvuKm2TUbTfSSSn/k6oqyRFCe1nUrl3oCf8v+0bOYzYyy3o8RGiiPixIsrC 7FJXtdkjryYDkNhYzPZZa6yyci7LDpS7l0PKbJD3zTs7nNDsHkoEMJS2vjG1zXHF3Adg MT8A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=pX8wzC5lmk531yYVT345mSXIPrqZEsxdYqgtjz1U5ks=; b=hAP4yhgon2dxgmEcjE1jGoxmajYXF7BYZ/uYwqnR3C5J4REE35X21EeReuBe3YYskv oDdY+yfVLbKjXIA8rgV7+a7a4dCFDSucyQzifvk3nrzJOQe03Wh+inOFd+OetUg3UaVk avmqE1hfvjU76w68reCOu+JCBSJDkoa5FtqrxiIXm+HS3TsGb0rd4PDqOHTdMSOYuOEi re5cG+yRqqR4x1aU2j4dL7oC/ZjtXVYSb54tvwtCalNsAhspr8OqQ8V66/Cl9an3xf8E XEGwyGwcUgGWPsQg0uOuYRj/rdyL9RZF4FgEwJn1NGUrLptgaMXobTisel47Ch10RRbz Aegg==
X-Gm-Message-State: AIkVDXLHFINQd6/P1MOJjw+QcKDCO1M+UYaVvYHqZCGOlS41PcfxYR+0azk+3eO57wLKZg==
X-Received: by 10.223.151.18 with SMTP id r18mr11448494wrb.129.1484919513346; Fri, 20 Jan 2017 05:38:33 -0800 (PST)
Received: from [192.168.1.3] (227.71.125.91.dyn.plus.net. [91.125.71.227]) by smtp.gmail.com with ESMTPSA id d29sm6156732wmi.19.2017.01.20.05.38.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 20 Jan 2017 05:38:32 -0800 (PST)
Content-Type: text/plain; charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\))
From: Cory Benfield <cory@lukasa.co.uk>
In-Reply-To: <CABkgnnV4FG01J5CwdjG_gnCWvoyaT80ZBd3R41TopuWuKEAm5A@mail.gmail.com>
Date: Fri, 20 Jan 2017 13:38:30 +0000
Cc: HTTP Working Group <ietf-http-wg@w3.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <B92DD569-DB7D-4952-B745-F5D91C3F6B02@lukasa.co.uk>
References: <CABkgnnV4FG01J5CwdjG_gnCWvoyaT80ZBd3R41TopuWuKEAm5A@mail.gmail.com>
To: Martin Thomson <martin.thomson@gmail.com>
X-Mailer: Apple Mail (2.3259)
Received-SPF: pass client-ip=74.125.82.50; envelope-from=cory@lukasa.co.uk; helo=mail-wm0-f50.google.com
X-W3C-Hub-Spam-Status: No, score=-3.6
X-W3C-Hub-Spam-Report: AWL=-0.157, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1cUZPA-0002JS-G8 5c7ec983775b0b965e285427bb35eb19
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Proposed text for erratum on PRIORITY in RFC 7540
Archived-At: <http://www.w3.org/mid/B92DD569-DB7D-4952-B745-F5D91C3F6B02@lukasa.co.uk>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33344
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 20 Jan 2017, at 03:59, Martin Thomson <martin.thomson@gmail.com> =
wrote:
>=20
> I think that we only really need one piece of clarification (the
> second would be enough), but it doesn't hurt to make it clear in both
> places that one might go to learn this.

Agreed. I=E2=80=99m happy with both proposed texts.



From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Fri Jan 20 06:11:55 2017
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 0E67F129451 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 20 Jan 2017 06:11:55 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.699
X-Spam-Level:
X-Spam-Status: No, score=-9.699 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, 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 8-F0wwqnH-ap for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 20 Jan 2017 06:11:54 -0800 (PST)
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 0B0701293E8 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Fri, 20 Jan 2017 06:11:53 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cUZsY-0006sT-0B for ietf-http-wg-dist@listhub.w3.org; Fri, 20 Jan 2017 14:09:22 +0000
Resent-Date: Fri, 20 Jan 2017 14:09:22 +0000
Resent-Message-Id: <E1cUZsY-0006sT-0B@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <laike9m@gmail.com>) id 1cUZsV-0006rZ-7B for ietf-http-wg@listhub.w3.org; Fri, 20 Jan 2017 14:09:19 +0000
Received: from mail-it0-f54.google.com ([209.85.214.54]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <laike9m@gmail.com>) id 1cUZsN-00046N-HS for ietf-http-wg@w3.org; Fri, 20 Jan 2017 14:09:13 +0000
Received: by mail-it0-f54.google.com with SMTP id 203so20734021ith.0 for <ietf-http-wg@w3.org>; Fri, 20 Jan 2017 06:08:51 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=VnFwItkpGNV/I+bgYMtCA3KodKlXAQmTkMY1wnKCrME=; b=eDCORt1ApLliG0q2PaR0tGii/HECmqTJQJLcTP6RCyS1WsAbJWQj3nCTQg6Mmbj6cv 9nm9ahF+XXkufDexIc3bnzqprA6vPmiYB1NNxd9mA8Gf+Ur/9dDooKgI26SMVnftpOLO bBRpYykfWOYJln5yZHhhU3VrkIOZoM4dIrbPX8X+5RcPTyXiZdMSbRPf0736mpwtAiI4 pJai1ecT8L+17Kx4799l/hQsE8z6S/mB1JG/vKCeBjaGvFvYXknl7uBl0o8u+REz+QKE ZslEqFWhzgQVh6Gl/9cj9LTm+H5FgrXdIhE7OK2F1y7bOoYIA/Q6HcQiiEmaYeuBEbcx IK2w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=VnFwItkpGNV/I+bgYMtCA3KodKlXAQmTkMY1wnKCrME=; b=oRfFrQTkoR06cFOxAzkfmGchav1jfKc/Rs/P1kaVUCa+caRkugzKq4fVvGlOh/ugIn dXLgSvDq5HheRfLvdAfsz4wBhuTSqcg9xDeu/iAB4PBh0y/ecuxtLN9kPhuD2se/aaVh M90H2gt8XarZ6UsbD2CiBaiI5xtxMUrLg7PocyDTFQFYlO3G2TSW9XCe/7Qm4RfKkUJD CUMhq+rWS0hwC82zlHOFEbOmBrJa77xFYCPGliXOScGUaY7XimPfbg+hMGmXfx4id63O noMWE7aSHlHrcRdG8Rcu2kh/Op6qbZ+EAfilxTo43PqM7SoGQ6YsqUxYV5GYouHIe36Q OBXQ==
X-Gm-Message-State: AIkVDXL/yLDh/WLNA8xYdR9tM8t4q0YIC2nvSPiJtlN24PX6VaaeH6Fy5W495U9ENoC+HEpJwzE80CSXOavffA==
X-Received: by 10.36.69.30 with SMTP id y30mr3512575ita.119.1484921325531; Fri, 20 Jan 2017 06:08:45 -0800 (PST)
MIME-Version: 1.0
Received: by 10.79.132.131 with HTTP; Fri, 20 Jan 2017 06:08:45 -0800 (PST)
In-Reply-To: <CABkgnnV4FG01J5CwdjG_gnCWvoyaT80ZBd3R41TopuWuKEAm5A@mail.gmail.com>
References: <CABkgnnV4FG01J5CwdjG_gnCWvoyaT80ZBd3R41TopuWuKEAm5A@mail.gmail.com>
From: laike9m <laike9m@gmail.com>
Date: Fri, 20 Jan 2017 22:08:45 +0800
Message-ID: <CAJutW=cgn2APYXZBXct3yOxs+sdhEyO5_dHHm7K3wnxWckCaFg@mail.gmail.com>
To: Martin Thomson <martin.thomson@gmail.com>
Cc: HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary=001a11c1491420b5d10546873072
Received-SPF: pass client-ip=209.85.214.54; envelope-from=laike9m@gmail.com; helo=mail-it0-f54.google.com
X-W3C-Hub-Spam-Status: No, score=-3.7
X-W3C-Hub-Spam-Report: AWL=0.500, 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, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1cUZsN-00046N-HS d91558f3c94211660792fbb7aa5c4671
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Proposed text for erratum on PRIORITY in RFC 7540
Archived-At: <http://www.w3.org/mid/CAJutW=cgn2APYXZBXct3yOxs+sdhEyO5_dHHm7K3wnxWckCaFg@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33345
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>

--001a11c1491420b5d10546873072
Content-Type: text/plain; charset=UTF-8

Wouldn't it be better to explicitly state that "sending PRIORITY frame
doesn't close unused streams"?

On Fri, Jan 20, 2017 at 11:59 AM, Martin Thomson <martin.thomson@gmail.com>
wrote:

> I figure that I might try to nut this out here before opening an
> erratum.  It's not clear from the thread that we all understand this.
>
> I think that suggesting two additions is the right thing here.  It's
> an erratum, so we don't have to do a proper edit, we can leave that
> for some future revision of the spec to get precisely right.
>
> In Section 5.3 (Stream Priority) a new paragraph:
>
> > The information that an endpoint maintains for stream priority is
> separate from other state. Importantly, this includes stream states
> (Section 5.1).  A stream in any state can have its priority changed with a
> PRIORITY frame. The state of a stream is not changed as a result of
> changing its priority.  The number of streams for which state is remembered
> is at the discretion of an endpoint, see Section 5.3.4 for details.
>
> In Section 6.4 (PRIORITY) a new sentence at the end of the first paragraph:
>
> > Sending or receiving a PRIORITY frame does not affect the state of the
> identified stream (Section 5.1), only its priority is altered.
>
> I think that we only really need one piece of clarification (the
> second would be enough), but it doesn't hurt to make it clear in both
> places that one might go to learn this.
>
>

--001a11c1491420b5d10546873072
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Wouldn&#39;t it be better to explicitly state that &quot;s=
ending=C2=A0<span style=3D"font-size:12.8px">PRIORITY frame doesn&#39;t clo=
se=C2=A0</span><span style=3D"font-size:12.8px">unused streams&quot;?</span=
></div><div class=3D"gmail_extra"><br><div class=3D"gmail_quote">On Fri, Ja=
n 20, 2017 at 11:59 AM, Martin Thomson <span dir=3D"ltr">&lt;<a href=3D"mai=
lto:martin.thomson@gmail.com" target=3D"_blank">martin.thomson@gmail.com</a=
>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 =
0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I figure that I might=
 try to nut this out here before opening an<br>
erratum.=C2=A0 It&#39;s not clear from the thread that we all understand th=
is.<br>
<br>
I think that suggesting two additions is the right thing here.=C2=A0 It&#39=
;s<br>
an erratum, so we don&#39;t have to do a proper edit, we can leave that<br>
for some future revision of the spec to get precisely right.<br>
<br>
In Section 5.3 (Stream Priority) a new paragraph:<br>
<br>
&gt; The information that an endpoint maintains for stream priority is sepa=
rate from other state. Importantly, this includes stream states (Section 5.=
1).=C2=A0 A stream in any state can have its priority changed with a PRIORI=
TY frame. The state of a stream is not changed as a result of changing its =
priority.=C2=A0 The number of streams for which state is remembered is at t=
he discretion of an endpoint, see Section 5.3.4 for details.<br>
<br>
In Section 6.4 (PRIORITY) a new sentence at the end of the first paragraph:=
<br>
<br>
&gt; Sending or receiving a PRIORITY frame does not affect the state of the=
 identified stream (Section 5.1), only its priority is altered.<br>
<br>
I think that we only really need one piece of clarification (the<br>
second would be enough), but it doesn&#39;t hurt to make it clear in both<b=
r>
places that one might go to learn this.<br>
<br>
</blockquote></div><br></div>

--001a11c1491420b5d10546873072--


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Fri Jan 20 09:05:23 2017
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 406EC126D73 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 20 Jan 2017 09:05:23 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.699
X-Spam-Level:
X-Spam-Status: No, score=-9.699 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, 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 vWcbAPXbuNhf for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 20 Jan 2017 09:05:21 -0800 (PST)
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 526EB12968B for <httpbisa-archive-bis2Juki@lists.ietf.org>; Fri, 20 Jan 2017 09:05:18 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cUcZY-0005RE-5T for ietf-http-wg-dist@listhub.w3.org; Fri, 20 Jan 2017 17:01:56 +0000
Resent-Date: Fri, 20 Jan 2017 17:01:56 +0000
Resent-Message-Id: <E1cUcZY-0005RE-5T@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <scott.k.mitch1@gmail.com>) id 1cUcZT-0005Px-5R for ietf-http-wg@listhub.w3.org; Fri, 20 Jan 2017 17:01:51 +0000
Received: from mail-lf0-f41.google.com ([209.85.215.41]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <scott.k.mitch1@gmail.com>) id 1cUcZH-0003KV-PY for ietf-http-wg@w3.org; Fri, 20 Jan 2017 17:01:44 +0000
Received: by mail-lf0-f41.google.com with SMTP id z134so61883399lff.3 for <ietf-http-wg@w3.org>; Fri, 20 Jan 2017 09:01:18 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=g8AqNkm8gWJG7WssMizjZhUsEvJQodKCnsCQYSwOSsw=; b=P3v8jcZllNuYGoSAIGtt429NNXSfMGp3XIMLIzUBeZThkn/qMAfm8DpbVXVXOyvemW OufOBjYv5HdxYBjP4sbTDaW7rjfs3EEZGSUKC0P+IVUPgQ+tA4PCn8cOMqnec50C+p/q XukgYrvDvu4GeS0gVCzxyQFWjOtIq3ji/5jufC3qhKsLmYRnyTTIE9oEdrVXifRq/KBd EB24g85+I69J4rEbKg09QBIHcZCiehpWEGBvXVtsGnrGw8+jqqmOfp8/gFO8SWj/aziF Ey5JiPQ2P25eLaNmjUok5smD8U7RBsnaKrFMu8s8SjV2DGvrPzz74q1iRvElVmTiy2Ls 7WnQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=g8AqNkm8gWJG7WssMizjZhUsEvJQodKCnsCQYSwOSsw=; b=EILDJCDor5uedVYxFmdlksyHLt0iF6uVswtQZPvonVf0chU0PiRzuvvOv0sR0awAYV k8IM1oImbZbwUknRNPF26X/BtIhd0s74S+gCEx8WnZh0bjD0/4l+O6hBp47rF7Ee7HIx iPZNm9SD91krrjBpFfzEeZ7heCxsW2cz9mXPiyCHD63HUmojM4OZ4Wphx9Ogz6UK01Xk +ya1k1h6jRXS5S0iebkhhEN7YG4tWxgwAcskDYFnybBOQ2KxM6fh7hz0Db0ODMSiCFYb Ng5w0mhj1tcSjNdJJ5M5C/woKVAD5+malyN0RJ4EUbF9ZkUwtqwJkJcPT1dxvgPaiLRO 4f6g==
X-Gm-Message-State: AIkVDXKe5XpXQlGl6xFYlLfUcklfJOmGY9lmYBzmKAbraSbibTkzY/cPisOoCzqPcdmwvuqIVArCqsy7vewb+Q==
X-Received: by 10.25.202.83 with SMTP id h19mr5289315lfj.33.1484931672012; Fri, 20 Jan 2017 09:01:12 -0800 (PST)
MIME-Version: 1.0
Received: by 10.25.18.200 with HTTP; Fri, 20 Jan 2017 09:01:10 -0800 (PST)
In-Reply-To: <CAJutW=dX1Z8z+XJ10+uX729bxgWh417kXdd27kg=RO6VbcbvgA@mail.gmail.com>
References: <CAFn2buAYWHQSWhhoKZ2GKbqXR1A+tScjkAwZmOuQ9gV9jMp2bA@mail.gmail.com> <CAPyZ6=Kh3n+RJi=RqgFBojgRDpfJ=nbr0i4kvO20ET0Kt7UA8Q@mail.gmail.com> <CABkgnnWmPdDXVS+CvmChRjyqkJooSKgy6KdUdN+9nGzOyJazhg@mail.gmail.com> <CAFn2buDrHtB1z16iTWE945bU_qhxTypr05A=5B_nrQoyQijyOw@mail.gmail.com> <CAFn2buB_RpbwaTzDgYUNt0e9=vFyu--SYgSLBrfAd1Tf0b1_nQ@mail.gmail.com> <CAJutW=dX1Z8z+XJ10+uX729bxgWh417kXdd27kg=RO6VbcbvgA@mail.gmail.com>
From: Scott Mitchell <scott.k.mitch1@gmail.com>
Date: Fri, 20 Jan 2017 09:01:10 -0800
Message-ID: <CAFn2buDuGVBJ8WBptM3cNS_Wy_hnF1v_TMO5VzXriE6B9m-oqQ@mail.gmail.com>
To: laike9m <laike9m@gmail.com>
Cc: Martin Thomson <martin.thomson@gmail.com>, Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>,  HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary=f403045e9f50d37ddf05468998f8
Received-SPF: pass client-ip=209.85.215.41; envelope-from=scott.k.mitch1@gmail.com; helo=mail-lf0-f41.google.com
X-W3C-Hub-Spam-Status: No, score=-2.9
X-W3C-Hub-Spam-Report: AWL=1.081, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1cUcZH-0003KV-PY eb099e40f67acc53b2dfcff74502d339
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Stream State and PRIORITY Frames
Archived-At: <http://www.w3.org/mid/CAFn2buDuGVBJ8WBptM3cNS_Wy_hnF1v_TMO5VzXriE6B9m-oqQ@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33346
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>

--f403045e9f50d37ddf05468998f8
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On Fri, Jan 20, 2017 at 5:17 AM, laike9m <laike9m@gmail.com> wrote:

> If you don=E2=80=99t include RESERVED streams in the count for
> SETTINGS_MAX_CONCURRENT_STREAMS then how do you limit the amount of
> RESERVED streams, and how does your peer know about this limit? I have
> imposed an implementation specific metric in the past, but this seems les=
s
> preferable than relying on something in the RFC that the peer is aware of=
.
> Either way having infinite of something doesn=E2=80=99t work in practice.
>
> As Martin has explained, H2 doesn=E2=80=99t limit the amount of RESERVED =
streams,
> based on the notion that HEADERS are close to free.
>

"HEADERS are free" sounds like an over simplification which becomes more
apparent as the concurrency of streams and connections grows. There are
other provisions in the RFC to limit the amount of state consumed by
HEADERS (SETTINGS_HEADER_TABLE_SIZE, SETTINGS_MAX_HEADER_LIST_SIZE).

In addition to headers this may require additional state to be allocated
for stream management. The specification also has mechanisms to limit state
consumed by streams.

It=E2=80=99s true that one trying to send infinite number of PUSH_PROMISEs =
to
> client can cause problems, but 1. This only happens if the server is
> malicious, and if it=E2=80=99s malicious,having a limit in the RFC won=E2=
=80=99t prevent
> anything, and 2. Not counting PUSH_PROMISEs is a tradeoff for fast delive=
ry
> of PUSH_PROMISEs, which stops client from sending more requests. I guess
> this is what Martin meant by =E2=80=9CIf you limit server push by applyin=
g a stream
> limit, then you prevent it from being used in time for the client to use
> it.=E2=80=9D
>
=EF=BC=88Forgot to reply to all :P=EF=BC=89
>

Malicious actors is a concern and must be dealt with. However there may be
proxy-like systems with large amounts of concurrency or other memory
constraint systems that already control their resources but the peer's only
mechanism to know about these limits is to try-then-fail. Assuming clients
impose some limit to their state (infinite state isn't practical) then the
problem of "the client won't accept this push" exists if the server knows
about it before hand or not. Knowing about it before hand gives the server
the ability to potentially prioritize which resources it wants to push or
make other more informed decisions.



> On Thu, Jan 19, 2017 at 9:21 AM, Scott Mitchell <scott.k.mitch1@gmail.com=
>
> wrote:
>
>>
>>
>> On Tue, Jan 17, 2017 at 2:43 PM, Scott Mitchell <scott.k.mitch1@gmail.co=
m
>> > wrote:
>>
>>> From my perspective I would like to see two clarifications:
>>>
>>> 1. It is clear to me that PRIORITY doesn't impact state.
>>>
>>
>> Just to clarify ... it is clear that a PRIORITY frame doesn't impact the
>> state of the stream  it is carrying priority information for. The impact=
s
>> PRIORITY frames have on other streams is not clear due to the wording in
>> section 5.1.1.
>>
>>
>>> However Section 5.1.1 states "first use of a new stream identifier"
>>> which makes no reference to stream state. If stream state is
>>> important/implied here better to be specific about it. I don't think th=
e
>>> one-off example below this text is sufficient to convey the intended
>>> implications of this statement.
>>>
>>> 2. Section 5.1.2 states "Streams in either of the 'reserved' states do
>>> not count toward the stream limit." which seems to conflict with sectio=
n
>>> 8.2.2 "A client can use the SETTINGS_MAX_CONCURRENT_STREAMS setting to
>>> limit the number of responses that can be concurrently pushed by a
>>> server.". These two statements appear to contradict each other. Since
>>> SETTINGS_MAX_CONCURRENT_STREAMS is really the only mechanism to limit
>>> resources due to server push I'm assuming section 5.1.2 is overly
>>> restrictive.
>>>
>>>
>>> On Tue, Jan 17, 2017 at 2:27 PM, Martin Thomson <
>>> martin.thomson@gmail.com> wrote:
>>>
>>>> On 18 January 2017 at 01:37, Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.co=
m>
>>>> wrote:
>>>> > If my understanding is correct, this only refers to the new stream I=
D
>>>> used
>>>> > by HEADERS, and PUSH_PROMISE frames which open or reserve streams.
>>>> The
>>>> > example text following that statement uses HEADERS which opens new
>>>> stream.
>>>> > PRIORITY frame does not change stream state, and there is no reason
>>>> to close
>>>> > all unused streams lower than bearing stream ID.  That said, I agree
>>>> that
>>>> > this is not crystal clear in the document.  In practice, this is
>>>> probably
>>>> > rather rare case.
>>>>
>>>> This is, I think, the expectation.
>>>>
>>>> I think that we probably want to clarify the point by explicitly
>>>> saying that PRIORITY doesn't affect stream states.  We say that it can
>>>> be sent in any state, but we don't also mention that important point.
>>>> Do people here agree that an erratum on this point is appropriate
>>>> here?
>>>>
>>>
>>>
>>
>

--f403045e9f50d37ddf05468998f8
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div class=3D"gmail_quo=
te">On Fri, Jan 20, 2017 at 5:17 AM, laike9m <span dir=3D"ltr">&lt;<a href=
=3D"mailto:laike9m@gmail.com" target=3D"_blank">laike9m@gmail.com</a>&gt;</=
span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0=
px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-le=
ft-style:solid;padding-left:1ex"><div dir=3D"ltr"><span class=3D"gmail-"><s=
pan class=3D"gmail-m_-758253695586967279gmail-im" style=3D"font-size:12.8px=
"><blockquote style=3D"margin:1.2em 0px;border-left-width:4px;border-left-s=
tyle:solid;border-left-color:rgb(221,221,221);padding:0px 1em;color:rgb(119=
,119,119);quotes:none"><p style=3D"margin:1.2em 0px">If you don=E2=80=99t i=
nclude RESERVED streams in the count for SETTINGS_MAX_CONCURRENT_STREAM<wbr=
>S then how do you limit the amount of RESERVED streams, and how does your =
peer know about this limit? I have imposed an implementation specific metri=
c in the past, but this seems less preferable than relying on something in =
the RFC that the peer is aware of. Either way having infinite of something =
doesn=E2=80=99t work in practice.</p></blockquote></span><p style=3D"font-s=
ize:12.8px;margin:1.2em 0px">As Martin has explained, H2 doesn=E2=80=99t li=
mit the amount of RESERVED streams, based on the notion that HEADERS are cl=
ose to free.</p></span></div></blockquote><div><br></div><div>&quot;HEADERS=
 are free&quot; sounds like an over simplification which becomes more appar=
ent as the concurrency of streams and connections grows. There are other pr=
ovisions in the RFC to limit the amount of state consumed by HEADERS (<span=
 style=3D"color:rgb(0,0,0);font-size:13.333333015441895px">SETTINGS_HEADER_=
TABLE_SIZE,=C2=A0</span><span style=3D"color:rgb(0,0,0);font-size:13.333333=
015441895px">SETTINGS_MAX_HEADER_LIST_SIZE)</span>.</div><div><br></div><di=
v>In addition to headers this may require additional state to be allocated =
for stream management. The specification also has mechanisms to limit state=
 consumed by streams.</div><div><br></div><blockquote class=3D"gmail_quote"=
 style=3D"margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:=
rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir=3D"ltr"=
><span class=3D"gmail-"><p style=3D"font-size:12.8px;margin:1.2em 0px"> It=
=E2=80=99s true that one trying to send infinite number of PUSH_PROMISEs to=
 client can cause problems, but 1. This only happens if the server is malic=
ious, and if it=E2=80=99s malicious,<span style=3D"font-size:12.8px">having=
 a limit in the RFC won=E2=80=99t prevent anything, and 2. Not counting PUS=
H_PROMISEs is a tradeoff for fast delivery of PUSH_PROMISEs, which stops cl=
ient from sending more requests. I guess this is what Martin meant by =E2=
=80=9CIf you limit server push by applying a stream limit, then you prevent=
 it from being used in time for the client to use it.=E2=80=9D</span></p></=
span></div></blockquote><blockquote class=3D"gmail_quote" style=3D"margin:0=
px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);b=
order-left-style:solid;padding-left:1ex"><div dir=3D"ltr"><p style=3D"font-=
size:12.8px;margin:1.2em 0px">=EF=BC=88Forgot to reply to all :P=EF=BC=89</=
p></div></blockquote><div><br></div><div>Malicious actors is a concern and =
must be dealt with. However there may be proxy-like systems with large amou=
nts of concurrency or other memory constraint systems that already control =
their resources but the peer&#39;s only mechanism to know about these limit=
s is to try-then-fail. Assuming clients impose some limit to their state (i=
nfinite state isn&#39;t practical) then the problem of &quot;the client won=
&#39;t accept this push&quot; exists if the server knows about it before ha=
nd or not. Knowing about it before hand gives the server the ability to pot=
entially prioritize which resources it wants to push or make other more inf=
ormed decisions.<br></div><div><br></div><div><br></div><blockquote class=
=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left-width:1px;bo=
rder-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">=
<div class=3D"gmail-HOEnZb"><div class=3D"gmail-h5"><div class=3D"gmail_ext=
ra"><br><div class=3D"gmail_quote">On Thu, Jan 19, 2017 at 9:21 AM, Scott M=
itchell <span dir=3D"ltr">&lt;<a href=3D"mailto:scott.k.mitch1@gmail.com" t=
arget=3D"_blank">scott.k.mitch1@gmail.com</a>&gt;</span> wrote:<br><blockqu=
ote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left-wid=
th:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-l=
eft:1ex"><div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div class=3D"=
gmail_quote"><span>On Tue, Jan 17, 2017 at 2:43 PM, Scott Mitchell <span di=
r=3D"ltr">&lt;<a href=3D"mailto:scott.k.mitch1@gmail.com" target=3D"_blank"=
>scott.k.mitch1@gmail.com</a>&gt;</span> wrote:<br></span><span><blockquote=
 class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left-width:=
1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left=
:1ex"><div dir=3D"ltr">From my perspective I would like to see two clarific=
ations:<div><br></div><div>1. It is clear to me that PRIORITY doesn&#39;t i=
mpact state.</div></div></blockquote><div><br></div></span><div>Just to cla=
rify ... it is clear that a PRIORITY frame doesn&#39;t impact the state of =
the stream =C2=A0it is carrying priority information for. The impacts PRIOR=
ITY frames have on other streams is not clear due to the wording in section=
 5.1.1.</div><span><div>=C2=A0</div><blockquote class=3D"gmail_quote" style=
=3D"margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(20=
4,204,204);border-left-style:solid;padding-left:1ex"><div dir=3D"ltr"><div>=
 However Section 5.1.1 states &quot;<font color=3D"#000000" size=3D"2">firs=
t use of a new stream identifier&quot; which makes no reference to stream s=
tate. If stream state is important/implied here better to be specific about=
 it. I don&#39;t think the one-off example below this text is sufficient to=
 convey the intended implications of this statement.</font><br></div><div><=
span style=3D"color:rgb(0,0,0);font-size:13.333333015441895px"><br></span><=
/div><div><span style=3D"color:rgb(0,0,0);font-size:13.333333015441895px">2=
. Section 5.1.2 states &quot;</span><span style=3D"color:rgb(0,0,0);font-si=
ze:13.333333015441895px">Streams in either of the &#39;</span><span style=
=3D"color:rgb(0,0,0);font-size:13.333333015441895px">reserved&#39; states d=
o not count toward the stream limit.&quot; which seems to conflict with sec=
tion 8.2.2 &quot;</span><span style=3D"color:rgb(0,0,0);font-size:13.333333=
015441895px">A client can use the SETTINGS_MAX_CONCURRENT_STREAM<wbr>S sett=
ing to limit=C2=A0</span><span style=3D"color:rgb(0,0,0);font-size:13.33333=
3015441895px">the number of responses that can be concurrently pushed by a =
server.</span><span style=3D"color:rgb(0,0,0);font-size:13.333333015441895p=
x">&quot;. These two statements appear to contradict each other. Since=C2=
=A0</span><font color=3D"#000000" size=3D"2">SETTINGS_MAX_CONCURRENT_<wbr>S=
TREAMS is really the only=C2=A0mechanism to limit resources due to server p=
ush I&#39;m assuming=C2=A0section 5.1.2 is overly restrictive.</font></div>=
<div><font color=3D"#000000" size=3D"2"><br></font></div></div><div class=
=3D"gmail-m_-758253695586967279m_7189452689709368695HOEnZb"><div class=3D"g=
mail-m_-758253695586967279m_7189452689709368695h5"><div class=3D"gmail_extr=
a"><br><div class=3D"gmail_quote">On Tue, Jan 17, 2017 at 2:27 PM, Martin T=
homson <span dir=3D"ltr">&lt;<a href=3D"mailto:martin.thomson@gmail.com" ta=
rget=3D"_blank">martin.thomson@gmail.com</a>&gt;</span> wrote:<br><blockquo=
te class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left-widt=
h:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-le=
ft:1ex"><span>On 18 January 2017 at 01:37, Tatsuhiro Tsujikawa &lt;<a href=
=3D"mailto:tatsuhiro.t@gmail.com" target=3D"_blank">tatsuhiro.t@gmail.com</=
a>&gt; wrote:<br>
&gt; If my understanding is correct, this only refers to the new stream ID =
used<br>
&gt; by HEADERS, and PUSH_PROMISE frames which open or reserve streams.=C2=
=A0 The<br>
&gt; example text following that statement uses HEADERS which opens new str=
eam.<br>
&gt; PRIORITY frame does not change stream state, and there is no reason to=
 close<br>
&gt; all unused streams lower than bearing stream ID.=C2=A0 That said, I ag=
ree that<br>
&gt; this is not crystal clear in the document.=C2=A0 In practice, this is =
probably<br>
&gt; rather rare case.<br>
<br>
</span>This is, I think, the expectation.<br>
<br>
I think that we probably want to clarify the point by explicitly<br>
saying that PRIORITY doesn&#39;t affect stream states.=C2=A0 We say that it=
 can<br>
be sent in any state, but we don&#39;t also mention that important point.<b=
r>
Do people here agree that an erratum on this point is appropriate<br>
here?<br>
</blockquote></div><br></div>
</div></div></blockquote></span></div><br></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div></div>

--f403045e9f50d37ddf05468998f8--


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Fri Jan 20 09:18:53 2017
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 CAF29129476 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 20 Jan 2017 09:18:53 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.699
X-Spam-Level:
X-Spam-Status: No, score=-9.699 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, 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 p7bemgAK_IWZ for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 20 Jan 2017 09:18:52 -0800 (PST)
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 5B6A5129452 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Fri, 20 Jan 2017 09:18:52 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cUcnZ-0005O6-7b for ietf-http-wg-dist@listhub.w3.org; Fri, 20 Jan 2017 17:16:25 +0000
Resent-Date: Fri, 20 Jan 2017 17:16:25 +0000
Resent-Message-Id: <E1cUcnZ-0005O6-7b@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <scott.k.mitch1@gmail.com>) id 1cUcnV-0005NG-Cq for ietf-http-wg@listhub.w3.org; Fri, 20 Jan 2017 17:16:21 +0000
Received: from mail-lf0-f45.google.com ([209.85.215.45]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <scott.k.mitch1@gmail.com>) id 1cUcnP-0005aX-4N for ietf-http-wg@w3.org; Fri, 20 Jan 2017 17:16:16 +0000
Received: by mail-lf0-f45.google.com with SMTP id n124so61981789lfd.2 for <ietf-http-wg@w3.org>; Fri, 20 Jan 2017 09:15:54 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=RAFth9BR6mKPDuDnILG6HcroWQ2oR23ijgZ9yXAiSXg=; b=Ej7aeSPhjzRbEmv+cs9OfH6EKGlyArQeTILOaV0sAVJ5r+rCOadUL+68wBtZQQsAya uZgYaxcla7lSLHINWETHsP+RsqSMMWbktAbEyzOEJMCBWm7Rn7UA4Ipr85k0DHE06Isf qvwsEHV2+4mkXlYknn3y7YFTsW+BUCa4tMiMoFEIfga+xTGedjI0GGa1dqhTN/FrqPnL d5xdu0c0wy316kxDYl2TN47ifgAy9eI+z65XVGnRK6rGaNGafsdkLdCDzj1ZCxeZdwue 2KwhZuiVjMdE8KzQ/a1n6+oiiNEBWdVBW2J7pEChVBC7o5QvOGEAdCoCQBz5jiP+Xbgp jWiw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=RAFth9BR6mKPDuDnILG6HcroWQ2oR23ijgZ9yXAiSXg=; b=IWKUAsLss1eao9BBPhY4O+6/HsX2JpuXhtVXjdIRzCksSAA62xYXB9Yoh+B3lQrVRc 9kE6u1Ih2n4hWyvb4YecplPvo+vK2FZLp7RvejCjqiOq6DfEkFD1/3AhR637TWIla2G8 eQRWKVoBYzuRKt60mAXcETZkkugkRP+fGNDDu2ongRXid5dzpZ4iZI/xM45bR75o7Tkq 0ACUfT7eCpryEEvVUPew5WViNXiemv7g3d5pBEtkPVDSVINTCgv9Lhke2ux9nPbkCQeb 0hJHxZWeF1s4s/7lRgc0h9ICpch5DCvRmbwX01kLmyzvlYkAFB9kwgAuNXzEASEGeA1P HT8g==
X-Gm-Message-State: AIkVDXKvl0bw8BBBRWeXOGerocpZ2Fx8XuH5Il0PNuCfYC+JBecw2DPAGbM7qN/ygMZJ2wgN7Y2e/bPgkuDMnw==
X-Received: by 10.25.217.17 with SMTP id q17mr4625847lfg.178.1484932548127; Fri, 20 Jan 2017 09:15:48 -0800 (PST)
MIME-Version: 1.0
Received: by 10.25.18.200 with HTTP; Fri, 20 Jan 2017 09:15:47 -0800 (PST)
In-Reply-To: <CABkgnnV4FG01J5CwdjG_gnCWvoyaT80ZBd3R41TopuWuKEAm5A@mail.gmail.com>
References: <CABkgnnV4FG01J5CwdjG_gnCWvoyaT80ZBd3R41TopuWuKEAm5A@mail.gmail.com>
From: Scott Mitchell <scott.k.mitch1@gmail.com>
Date: Fri, 20 Jan 2017 09:15:47 -0800
Message-ID: <CAFn2buDd_zomeD6GehWN6r=0wey1aEQfJcfjAjEPjr0S390xrA@mail.gmail.com>
To: Martin Thomson <martin.thomson@gmail.com>
Cc: HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary=94eb2c06391a0bf3c2054689cd30
Received-SPF: pass client-ip=209.85.215.45; envelope-from=scott.k.mitch1@gmail.com; helo=mail-lf0-f45.google.com
X-W3C-Hub-Spam-Status: No, score=-2.5
X-W3C-Hub-Spam-Report: AWL=0.732, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cUcnP-0005aX-4N ebf467d11cf7945b6e31e811b1db62ca
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Proposed text for erratum on PRIORITY in RFC 7540
Archived-At: <http://www.w3.org/mid/CAFn2buDd_zomeD6GehWN6r=0wey1aEQfJcfjAjEPjr0S390xrA@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33347
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>

--94eb2c06391a0bf3c2054689cd30
Content-Type: text/plain; charset=UTF-8

On Thu, Jan 19, 2017 at 7:59 PM, Martin Thomson <martin.thomson@gmail.com>
wrote:

> I figure that I might try to nut this out here before opening an
> erratum.  It's not clear from the thread that we all understand this.
>
> I think that suggesting two additions is the right thing here.  It's
> an erratum, so we don't have to do a proper edit, we can leave that
> for some future revision of the spec to get precisely right.
>
> In Section 5.3 (Stream Priority) a new paragraph:
>
> > The information that an endpoint maintains for stream priority is
> separate from other state. Importantly, this includes stream states
> (Section 5.1).  A stream in any state can have its priority changed with a
> PRIORITY frame. The state of a stream is not changed as a result of
> changing its priority.  The number of streams for which state is remembered
> is at the discretion of an endpoint, see Section 5.3.4 for details.
>
> In Section 6.4 (PRIORITY) a new sentence at the end of the first paragraph:
>
>
Section 6.3? Section 6.4 is RST_STREAM right?


> > Sending or receiving a PRIORITY frame does not affect the state of the
> identified stream (Section 5.1), only its priority is altered.
>
>
The bit I think needs clarification is that a PRIORITY frame doesn't impact
state of ANY stream (if this is the intention of the RFC). The ambiguity
comes from the language "first use of a new stream identifier" in section
5.1.1 (see below). Is it possible to directly resolve this issue?  Updating
other sections is great, but this creates an implicit dependency between
different sections which leaves room for error.

https://tools.ietf.org/html/rfc7540#section-5.1.1
> The first use of a new stream identifier implicitly closes all streams in
the "idle" state that might have been initiated by that peer with a
lower-valued stream identifier.


> I think that we only really need one piece of clarification (the
> second would be enough), but it doesn't hurt to make it clear in both
> places that one might go to learn this.

--94eb2c06391a0bf3c2054689cd30
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div class=3D"gmail_quo=
te">On Thu, Jan 19, 2017 at 7:59 PM, Martin Thomson <span dir=3D"ltr">&lt;<=
a href=3D"mailto:martin.thomson@gmail.com" target=3D"_blank">martin.thomson=
@gmail.com</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=
=3D"margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(20=
4,204,204);border-left-style:solid;padding-left:1ex">I figure that I might =
try to nut this out here before opening an<br>
erratum.=C2=A0 It&#39;s not clear from the thread that we all understand th=
is.<br>
<br>
I think that suggesting two additions is the right thing here.=C2=A0 It&#39=
;s<br>
an erratum, so we don&#39;t have to do a proper edit, we can leave that<br>
for some future revision of the spec to get precisely right.<br>
<br>
In Section 5.3 (Stream Priority) a new paragraph:<br>
<br>
&gt; The information that an endpoint maintains for stream priority is sepa=
rate from other state. Importantly, this includes stream states (Section 5.=
1).=C2=A0 A stream in any state can have its priority changed with a PRIORI=
TY frame. The state of a stream is not changed as a result of changing its =
priority.=C2=A0 The number of streams for which state is remembered is at t=
he discretion of an endpoint, see Section 5.3.4 for details.<br>
<br>
In Section 6.4 (PRIORITY) a new sentence at the end of the first paragraph:=
<br>
<br></blockquote><div><br></div><div>Section 6.3? Section 6.4 is RST_STREAM=
 right?</div><div>=C2=A0</div><blockquote class=3D"gmail_quote" style=3D"ma=
rgin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,=
204);border-left-style:solid;padding-left:1ex">
&gt; Sending or receiving a PRIORITY frame does not affect the state of the=
 identified stream (Section 5.1), only its priority is altered.<br>
<br></blockquote><div><br></div><div><div class=3D"gmail_extra">The bit I t=
hink needs clarification is that a PRIORITY frame doesn&#39;t impact state =
of ANY stream (if this is the intention of the RFC).=C2=A0The ambiguity com=
es from the language &quot;first use of a new stream identifier&quot; in se=
ction 5.1.1 (see below). Is it possible to directly resolve this issue?=C2=
=A0 Updating other sections is great, but this creates an implicit dependen=
cy between different sections which leaves room for error.</div><div class=
=3D"gmail_extra"><br></div><div class=3D"gmail_extra"><a href=3D"https://to=
ols.ietf.org/html/rfc7540#section-5.1.1">https://tools.ietf.org/html/rfc754=
0#section-5.1.1</a></div><div class=3D"gmail_extra">&gt;=C2=A0<span style=
=3D"color:rgb(0,0,0);font-size:13.333333015441895px">The first use of a new=
 stream identifier implicitly closes all=C2=A0</span><span style=3D"color:r=
gb(0,0,0);font-size:13.333333015441895px">streams in the &quot;idle&quot; s=
tate that might have been initiated by that=C2=A0</span><span style=3D"colo=
r:rgb(0,0,0);font-size:13.333333015441895px">peer with a lower-valued strea=
m identifier.</span></div></div><div>=C2=A0</div><blockquote class=3D"gmail=
_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left=
-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
I think that we only really need one piece of clarification (the<br>
second would be enough), but it doesn&#39;t hurt to make it clear in both<b=
r>
places that one might go to learn this.=C2=A0</blockquote></div></div><div =
class=3D"gmail_extra"><br></div></div>

--94eb2c06391a0bf3c2054689cd30--


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Fri Jan 20 10:32:39 2017
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 7AD23129C60 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 20 Jan 2017 10:32:39 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.699
X-Spam-Level:
X-Spam-Status: No, score=-9.699 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=chromium.org
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 RUR9r5WU8PSD for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 20 Jan 2017 10:32:37 -0800 (PST)
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 27B77129C48 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Fri, 20 Jan 2017 10:32:37 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cUdwS-00071S-Ia for ietf-http-wg-dist@listhub.w3.org; Fri, 20 Jan 2017 18:29:40 +0000
Resent-Date: Fri, 20 Jan 2017 18:29:40 +0000
Resent-Message-Id: <E1cUdwS-00071S-Ia@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <tombergan@chromium.org>) id 1cUdwN-0006zn-7Z for ietf-http-wg@listhub.w3.org; Fri, 20 Jan 2017 18:29:35 +0000
Received: from mail-wm0-f43.google.com ([74.125.82.43]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <tombergan@chromium.org>) id 1cUdwG-0008Gc-DP for ietf-http-wg@w3.org; Fri, 20 Jan 2017 18:29:29 +0000
Received: by mail-wm0-f43.google.com with SMTP id r126so49033284wmr.0 for <ietf-http-wg@w3.org>; Fri, 20 Jan 2017 10:29:08 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=HKW4UIYeMqeNeuLtQixGiqARxMxspVsyEzwclRQdjyk=; b=F6iYPetq4cMbE1qZ4eEdOZBs81ecBjttRs9JpmsrJsjtwpOWJIUyVvvj0lKUt0PRXK aAGrWSuhP1Iy19grxagOYSYclnvUSLM1Ak2GVByU1HT+gD//aWP46Qz2TpOJZ3Y7r0gK bThJWmI83/+5ojhVymy8Y7acZsHaFDa7E2QRw=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=HKW4UIYeMqeNeuLtQixGiqARxMxspVsyEzwclRQdjyk=; b=XoRU3Hd12asFk2REPvwKy0cXwXPNgUw7K81SKxOsinDyeOki0D3g1/kRfz2weQwS0O EkI8Tohc6TB890fkfUd70AS4mTLK4v3zcKnGNY2JanztdWWfiRgOh8L85yUCXd5cFEKr ODUCcn4Klsnx7BE6AmTjQGpk0mUTvMvaFH3l5ebPcG+OYQ+qtDfTcM+S8omyub/AE7dw DGH6Hh05b/RN69vMFZUGWExO7uJZLGJ80OF/Mw3a5EkrMecyUpX/+0l0k3ABJDTpCoEs Vluug6womgIeDbn8LoJeIoigxMfNgouU4/aDDQSsUXrJo/NBOL+MciLHIbedK0bg4+yn bVYg==
X-Gm-Message-State: AIkVDXI/BcyiNnbuTVJ+yeEzA0xWjW5AQUSCfBkhLMWx64QSAp6k6KjR4PU0qxlJUydGYB1I
X-Received: by 10.28.197.77 with SMTP id v74mr4880942wmf.30.1484936941624; Fri, 20 Jan 2017 10:29:01 -0800 (PST)
Received: from mail-wm0-f50.google.com (mail-wm0-f50.google.com. [74.125.82.50]) by smtp.gmail.com with ESMTPSA id p49sm907988wrb.10.2017.01.20.10.29.00 for <ietf-http-wg@w3.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 20 Jan 2017 10:29:00 -0800 (PST)
Received: by mail-wm0-f50.google.com with SMTP id r126so49032288wmr.0 for <ietf-http-wg@w3.org>; Fri, 20 Jan 2017 10:29:00 -0800 (PST)
X-Received: by 10.223.164.10 with SMTP id d10mr12643339wra.90.1484936940259; Fri, 20 Jan 2017 10:29:00 -0800 (PST)
MIME-Version: 1.0
Received: by 10.28.135.201 with HTTP; Fri, 20 Jan 2017 10:28:59 -0800 (PST)
In-Reply-To: <CAFn2buDuGVBJ8WBptM3cNS_Wy_hnF1v_TMO5VzXriE6B9m-oqQ@mail.gmail.com>
References: <CAFn2buAYWHQSWhhoKZ2GKbqXR1A+tScjkAwZmOuQ9gV9jMp2bA@mail.gmail.com> <CAPyZ6=Kh3n+RJi=RqgFBojgRDpfJ=nbr0i4kvO20ET0Kt7UA8Q@mail.gmail.com> <CABkgnnWmPdDXVS+CvmChRjyqkJooSKgy6KdUdN+9nGzOyJazhg@mail.gmail.com> <CAFn2buDrHtB1z16iTWE945bU_qhxTypr05A=5B_nrQoyQijyOw@mail.gmail.com> <CAFn2buB_RpbwaTzDgYUNt0e9=vFyu--SYgSLBrfAd1Tf0b1_nQ@mail.gmail.com> <CAJutW=dX1Z8z+XJ10+uX729bxgWh417kXdd27kg=RO6VbcbvgA@mail.gmail.com> <CAFn2buDuGVBJ8WBptM3cNS_Wy_hnF1v_TMO5VzXriE6B9m-oqQ@mail.gmail.com>
From: Tom Bergan <tombergan@chromium.org>
Date: Fri, 20 Jan 2017 10:28:59 -0800
X-Gmail-Original-Message-ID: <CA+3+x5GTEKFHGcuPK0p9GKrBCwmkcVM2WpR43V79pLcZ7UuKEQ@mail.gmail.com>
Message-ID: <CA+3+x5GTEKFHGcuPK0p9GKrBCwmkcVM2WpR43V79pLcZ7UuKEQ@mail.gmail.com>
To: Scott Mitchell <scott.k.mitch1@gmail.com>
Cc: laike9m <laike9m@gmail.com>, Martin Thomson <martin.thomson@gmail.com>,  Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary=f403045f164ed6ddf605468ad23f
Received-SPF: pass client-ip=74.125.82.43; envelope-from=tombergan@chromium.org; helo=mail-wm0-f43.google.com
X-W3C-Hub-Spam-Status: No, score=-3.5
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cUdwG-0008Gc-DP 8c5a461ca72d8436cae1a596d80bced7
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Stream State and PRIORITY Frames
Archived-At: <http://www.w3.org/mid/CA+3+x5GTEKFHGcuPK0p9GKrBCwmkcVM2WpR43V79pLcZ7UuKEQ@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33348
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>

--f403045f164ed6ddf605468ad23f
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

IIUC, PUSH_PROMISEs don't count against the stream limit due to a
(hypothetical) scenario like the following: A server currently has 199
streams open on a connection, with limit of 200 per connection, and the
client makes another request. Now the server has 200 streams open. The
server wants to push a resource. Since the PUSH_PROMISE does not count
against the stream limit, the server is allowed to send a PUSH_PROMISE,
which notifies the client that the resource will be pushed (the client does
not need to request it).

I submit that this is a nearly-pointless optimization. Broadly speaking,
there are two reasons a server might want to push a resource:

1. The server speculates that the client will need that resource shortly.
If the pushed resource is not more important than basically all of the 200
streams currently in flight, there is little reason to push that resource.
This is a speculative push, meaning the goal is to reduce latency, but we
can't reduce latency if the push will be queued behind 200 other streams
anyway -- we might as well wait for the client to make the request.

2. The server is participating in a notification protocol where the push
used to notify the client of some event. In this case, the PUSH_PROMISE
does not need to be sent immediately because the server is not speculating
about a future client request. It would be fine to queue the PUSH_PROMISE
in the server until one of the 200 concurrent streams is closed.

Therefore, I propose the following convention: servers should count
PUSH_PROMISEs towards the concurrent stream limit. This doesn't
necessarily help clients, since a client cannot rely on every server to
implement this behavior, but overall it seems like a much simpler
situation. FWIW, this is what I have implemented in Go's HTTP/2 server:
https://github.com/golang/net/blob/77412025ac6f6821b4938edeb45af939de5cccec=
/http2/http2.go#L85

On Fri, Jan 20, 2017 at 9:01 AM, Scott Mitchell <scott.k.mitch1@gmail.com>
wrote:

>
>
> On Fri, Jan 20, 2017 at 5:17 AM, laike9m <laike9m@gmail.com> wrote:
>
>> If you don=E2=80=99t include RESERVED streams in the count for
>> SETTINGS_MAX_CONCURRENT_STREAMS then how do you limit the amount of
>> RESERVED streams, and how does your peer know about this limit? I have
>> imposed an implementation specific metric in the past, but this seems le=
ss
>> preferable than relying on something in the RFC that the peer is aware o=
f.
>> Either way having infinite of something doesn=E2=80=99t work in practice=
.
>>
>> As Martin has explained, H2 doesn=E2=80=99t limit the amount of RESERVED=
 streams,
>> based on the notion that HEADERS are close to free.
>>
>
> "HEADERS are free" sounds like an over simplification which becomes more
> apparent as the concurrency of streams and connections grows. There are
> other provisions in the RFC to limit the amount of state consumed by
> HEADERS (SETTINGS_HEADER_TABLE_SIZE, SETTINGS_MAX_HEADER_LIST_SIZE).
>
> In addition to headers this may require additional state to be allocated
> for stream management. The specification also has mechanisms to limit sta=
te
> consumed by streams.
>
> It=E2=80=99s true that one trying to send infinite number of PUSH_PROMISE=
s to
>> client can cause problems, but 1. This only happens if the server is
>> malicious, and if it=E2=80=99s malicious,having a limit in the RFC won=
=E2=80=99t prevent
>> anything, and 2. Not counting PUSH_PROMISEs is a tradeoff for fast deliv=
ery
>> of PUSH_PROMISEs, which stops client from sending more requests. I guess
>> this is what Martin meant by =E2=80=9CIf you limit server push by applyi=
ng a stream
>> limit, then you prevent it from being used in time for the client to use
>> it.=E2=80=9D
>>
> =EF=BC=88Forgot to reply to all :P=EF=BC=89
>>
>
> Malicious actors is a concern and must be dealt with. However there may b=
e
> proxy-like systems with large amounts of concurrency or other memory
> constraint systems that already control their resources but the peer's on=
ly
> mechanism to know about these limits is to try-then-fail. Assuming client=
s
> impose some limit to their state (infinite state isn't practical) then th=
e
> problem of "the client won't accept this push" exists if the server knows
> about it before hand or not. Knowing about it before hand gives the serve=
r
> the ability to potentially prioritize which resources it wants to push or
> make other more informed decisions.
>
>
>
>> On Thu, Jan 19, 2017 at 9:21 AM, Scott Mitchell <scott.k.mitch1@gmail.co=
m
>> > wrote:
>>
>>>
>>>
>>> On Tue, Jan 17, 2017 at 2:43 PM, Scott Mitchell <
>>> scott.k.mitch1@gmail.com> wrote:
>>>
>>>> From my perspective I would like to see two clarifications:
>>>>
>>>> 1. It is clear to me that PRIORITY doesn't impact state.
>>>>
>>>
>>> Just to clarify ... it is clear that a PRIORITY frame doesn't impact th=
e
>>> state of the stream  it is carrying priority information for. The impac=
ts
>>> PRIORITY frames have on other streams is not clear due to the wording i=
n
>>> section 5.1.1.
>>>
>>>
>>>> However Section 5.1.1 states "first use of a new stream identifier"
>>>> which makes no reference to stream state. If stream state is
>>>> important/implied here better to be specific about it. I don't think t=
he
>>>> one-off example below this text is sufficient to convey the intended
>>>> implications of this statement.
>>>>
>>>> 2. Section 5.1.2 states "Streams in either of the 'reserved' states do
>>>> not count toward the stream limit." which seems to conflict with secti=
on
>>>> 8.2.2 "A client can use the SETTINGS_MAX_CONCURRENT_STREAMS setting to
>>>> limit the number of responses that can be concurrently pushed by a
>>>> server.". These two statements appear to contradict each other. Since
>>>> SETTINGS_MAX_CONCURRENT_STREAMS is really the only mechanism to limit
>>>> resources due to server push I'm assuming section 5.1.2 is overly
>>>> restrictive.
>>>>
>>>>
>>>> On Tue, Jan 17, 2017 at 2:27 PM, Martin Thomson <
>>>> martin.thomson@gmail.com> wrote:
>>>>
>>>>> On 18 January 2017 at 01:37, Tatsuhiro Tsujikawa <
>>>>> tatsuhiro.t@gmail.com> wrote:
>>>>> > If my understanding is correct, this only refers to the new stream
>>>>> ID used
>>>>> > by HEADERS, and PUSH_PROMISE frames which open or reserve streams.
>>>>> The
>>>>> > example text following that statement uses HEADERS which opens new
>>>>> stream.
>>>>> > PRIORITY frame does not change stream state, and there is no reason
>>>>> to close
>>>>> > all unused streams lower than bearing stream ID.  That said, I agre=
e
>>>>> that
>>>>> > this is not crystal clear in the document.  In practice, this is
>>>>> probably
>>>>> > rather rare case.
>>>>>
>>>>> This is, I think, the expectation.
>>>>>
>>>>> I think that we probably want to clarify the point by explicitly
>>>>> saying that PRIORITY doesn't affect stream states.  We say that it ca=
n
>>>>> be sent in any state, but we don't also mention that important point.
>>>>> Do people here agree that an erratum on this point is appropriate
>>>>> here?
>>>>>
>>>>
>>>>
>>>
>>
>

--f403045f164ed6ddf605468ad23f
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">IIUC, PUSH_PROMISEs don&#39;t count against the stream lim=
it due to a (hypothetical) scenario like the following: A server currently =
has 199 streams open on a connection, with limit of 200 per connection, and=
 the client makes another request. Now the server has 200 streams open. The=
 server wants to push a resource. Since the PUSH_PROMISE does not count aga=
inst the stream limit, the server is allowed to send a PUSH_PROMISE, which =
notifies the client that the resource will be pushed (the client does not n=
eed to request it).<div><br></div><div>I submit that this is a nearly-point=
less optimization. Broadly speaking, there are two reasons a server might w=
ant to push a resource:</div><div><br></div><div>1. The server speculates t=
hat the client will need that resource shortly. If the pushed resource is n=
ot more important than basically all of the 200 streams currently in flight=
, there is little reason to push that resource. This is a speculative push,=
 meaning the goal is to reduce latency, but we can&#39;t reduce latency if =
the push will be queued behind 200 other streams anyway -- we might as well=
 wait for the client to make the request.</div><div><br></div><div>2. The s=
erver is participating in a notification protocol where the push used to no=
tify the client of some event. In this case, the PUSH_PROMISE does not need=
 to be sent immediately because the server is not speculating about a futur=
e client request. It would be fine to queue the PUSH_PROMISE in the server =
until one of the 200 concurrent streams is closed.</div><div><br></div><div=
>Therefore, I propose the following convention: servers should count PUSH_P=
ROMISEs towards the concurrent stream limit. This doesn&#39;t necessarily=
=C2=A0help clients, since a client cannot rely on every server to implement=
 this behavior, but overall it seems like a much simpler situation. FWIW, t=
his is what I have implemented in Go&#39;s HTTP/2 server:</div><div><a href=
=3D"https://github.com/golang/net/blob/77412025ac6f6821b4938edeb45af939de5c=
ccec/http2/http2.go#L85">https://github.com/golang/net/blob/77412025ac6f682=
1b4938edeb45af939de5cccec/http2/http2.go#L85</a></div></div><div class=3D"g=
mail_extra"><br><div class=3D"gmail_quote">On Fri, Jan 20, 2017 at 9:01 AM,=
 Scott Mitchell <span dir=3D"ltr">&lt;<a href=3D"mailto:scott.k.mitch1@gmai=
l.com" target=3D"_blank">scott.k.mitch1@gmail.com</a>&gt;</span> wrote:<br>=
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div dir=3D"ltr"><br><div class=3D"gmail_ext=
ra"><br><div class=3D"gmail_quote"><span class=3D"">On Fri, Jan 20, 2017 at=
 5:17 AM, laike9m <span dir=3D"ltr">&lt;<a href=3D"mailto:laike9m@gmail.com=
" target=3D"_blank">laike9m@gmail.com</a>&gt;</span> wrote:<br><blockquote =
class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left-width:1=
px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:=
1ex"><div dir=3D"ltr"><span class=3D"m_7518069248270670440gmail-"><span cla=
ss=3D"m_7518069248270670440gmail-m_-758253695586967279gmail-im" style=3D"fo=
nt-size:12.8px"><blockquote style=3D"margin:1.2em 0px;border-left-width:4px=
;border-left-style:solid;border-left-color:rgb(221,221,221);padding:0px 1em=
;color:rgb(119,119,119);quotes:none"><p style=3D"margin:1.2em 0px">If you d=
on=E2=80=99t include RESERVED streams in the count for SETTINGS_MAX_CONCURR=
ENT_STREAM<wbr>S then how do you limit the amount of RESERVED streams, and =
how does your peer know about this limit? I have imposed an implementation =
specific metric in the past, but this seems less preferable than relying on=
 something in the RFC that the peer is aware of. Either way having infinite=
 of something doesn=E2=80=99t work in practice.</p></blockquote></span><p s=
tyle=3D"font-size:12.8px;margin:1.2em 0px">As Martin has explained, H2 does=
n=E2=80=99t limit the amount of RESERVED streams, based on the notion that =
HEADERS are close to free.</p></span></div></blockquote><div><br></div></sp=
an><div>&quot;HEADERS are free&quot; sounds like an over simplification whi=
ch becomes more apparent as the concurrency of streams and connections grow=
s. There are other provisions in the RFC to limit the amount of state consu=
med by HEADERS (<span style=3D"color:rgb(0,0,0);font-size:13.33333301544189=
5px">SETTINGS_HEADER_TABLE_SIZE,=C2=A0</span><span style=3D"color:rgb(0,0,0=
);font-size:13.333333015441895px">S<wbr>ETTINGS_MAX_HEADER_LIST_SIZE)</span=
>.</div><div><br></div><div>In addition to headers this may require additio=
nal state to be allocated for stream management. The specification also has=
 mechanisms to limit state consumed by streams.</div><div><br></div><blockq=
uote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left-wi=
dth:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-=
left:1ex"><div dir=3D"ltr"><span class=3D"m_7518069248270670440gmail-"><p s=
tyle=3D"font-size:12.8px;margin:1.2em 0px"> It=E2=80=99s true that one tryi=
ng to send infinite number of PUSH_PROMISEs to client can cause problems, b=
ut 1. This only happens if the server is malicious, and if it=E2=80=99s mal=
icious,<span style=3D"font-size:12.8px">having a limit in the RFC won=E2=80=
=99t prevent anything, and 2. Not counting PUSH_PROMISEs is a tradeoff for =
fast delivery of PUSH_PROMISEs, which stops client from sending more reques=
ts. I guess this is what Martin meant by =E2=80=9CIf you limit server push =
by applying a stream limit, then you prevent it from being used in time for=
 the client to use it.=E2=80=9D</span></p></span></div></blockquote><span c=
lass=3D""><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8=
ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-sty=
le:solid;padding-left:1ex"><div dir=3D"ltr"><p style=3D"font-size:12.8px;ma=
rgin:1.2em 0px">=EF=BC=88Forgot to reply to all :P=EF=BC=89</p></div></bloc=
kquote><div><br></div></span><div>Malicious actors is a concern and must be=
 dealt with. However there may be proxy-like systems with large amounts of =
concurrency or other memory constraint systems that already control their r=
esources but the peer&#39;s only mechanism to know about these limits is to=
 try-then-fail. Assuming clients impose some limit to their state (infinite=
 state isn&#39;t practical) then the problem of &quot;the client won&#39;t =
accept this push&quot; exists if the server knows about it before hand or n=
ot. Knowing about it before hand gives the server the ability to potentiall=
y prioritize which resources it wants to push or make other more informed d=
ecisions.<br></div><span class=3D""><div><br></div><div><br></div><blockquo=
te class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left-widt=
h:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-le=
ft:1ex"><div class=3D"m_7518069248270670440gmail-HOEnZb"><div class=3D"m_75=
18069248270670440gmail-h5"><div class=3D"gmail_extra"><br><div class=3D"gma=
il_quote">On Thu, Jan 19, 2017 at 9:21 AM, Scott Mitchell <span dir=3D"ltr"=
>&lt;<a href=3D"mailto:scott.k.mitch1@gmail.com" target=3D"_blank">scott.k.=
mitch1@gmail.com</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote"=
 style=3D"margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:=
rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir=3D"ltr"=
><br><div class=3D"gmail_extra"><br><div class=3D"gmail_quote"><span>On Tue=
, Jan 17, 2017 at 2:43 PM, Scott Mitchell <span dir=3D"ltr">&lt;<a href=3D"=
mailto:scott.k.mitch1@gmail.com" target=3D"_blank">scott.k.mitch1@gmail.com=
</a>&gt;</span> wrote:<br></span><span><blockquote class=3D"gmail_quote" st=
yle=3D"margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb=
(204,204,204);border-left-style:solid;padding-left:1ex"><div dir=3D"ltr">Fr=
om my perspective I would like to see two clarifications:<div><br></div><di=
v>1. It is clear to me that PRIORITY doesn&#39;t impact state.</div></div><=
/blockquote><div><br></div></span><div>Just to clarify ... it is clear that=
 a PRIORITY frame doesn&#39;t impact the state of the stream =C2=A0it is ca=
rrying priority information for. The impacts PRIORITY frames have on other =
streams is not clear due to the wording in section 5.1.1.</div><span><div>=
=C2=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0=
.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-s=
tyle:solid;padding-left:1ex"><div dir=3D"ltr"><div> However Section 5.1.1 s=
tates &quot;<font color=3D"#000000" size=3D"2">first use of a new stream id=
entifier&quot; which makes no reference to stream state. If stream state is=
 important/implied here better to be specific about it. I don&#39;t think t=
he one-off example below this text is sufficient to convey the intended imp=
lications of this statement.</font><br></div><div><span style=3D"color:rgb(=
0,0,0);font-size:13.333333015441895px"><br></span></div><div><span style=3D=
"color:rgb(0,0,0);font-size:13.333333015441895px">2. Section 5.1.2 states &=
quot;</span><span style=3D"color:rgb(0,0,0);font-size:13.333333015441895px"=
>Streams in either of the &#39;</span><span style=3D"color:rgb(0,0,0);font-=
size:13.333333015441895px">reserved&#39; states do not count toward the str=
eam limit.&quot; which seems to conflict with section 8.2.2 &quot;</span><s=
pan style=3D"color:rgb(0,0,0);font-size:13.333333015441895px">A client can =
use the SETTINGS_MAX_CONCURRENT_STREAM<wbr>S setting to limit=C2=A0</span><=
span style=3D"color:rgb(0,0,0);font-size:13.333333015441895px">the number o=
f responses that can be concurrently pushed by a server.</span><span style=
=3D"color:rgb(0,0,0);font-size:13.333333015441895px">&quot;. These two stat=
ements appear to contradict each other. Since=C2=A0</span><font color=3D"#0=
00000" size=3D"2">SETTINGS_MAX_CONCURRENT_<wbr>STREAMS is really the only=
=C2=A0mechanism to limit resources due to server push I&#39;m assuming=C2=
=A0section 5.1.2 is overly restrictive.</font></div><div><font color=3D"#00=
0000" size=3D"2"><br></font></div></div><div class=3D"m_7518069248270670440=
gmail-m_-758253695586967279m_7189452689709368695HOEnZb"><div class=3D"m_751=
8069248270670440gmail-m_-758253695586967279m_7189452689709368695h5"><div cl=
ass=3D"gmail_extra"><br><div class=3D"gmail_quote">On Tue, Jan 17, 2017 at =
2:27 PM, Martin Thomson <span dir=3D"ltr">&lt;<a href=3D"mailto:martin.thom=
son@gmail.com" target=3D"_blank">martin.thomson@gmail.com</a>&gt;</span> wr=
ote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex=
;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style=
:solid;padding-left:1ex"><span>On 18 January 2017 at 01:37, Tatsuhiro Tsuji=
kawa &lt;<a href=3D"mailto:tatsuhiro.t@gmail.com" target=3D"_blank">tatsuhi=
ro.t@gmail.com</a>&gt; wrote:<br>
&gt; If my understanding is correct, this only refers to the new stream ID =
used<br>
&gt; by HEADERS, and PUSH_PROMISE frames which open or reserve streams.=C2=
=A0 The<br>
&gt; example text following that statement uses HEADERS which opens new str=
eam.<br>
&gt; PRIORITY frame does not change stream state, and there is no reason to=
 close<br>
&gt; all unused streams lower than bearing stream ID.=C2=A0 That said, I ag=
ree that<br>
&gt; this is not crystal clear in the document.=C2=A0 In practice, this is =
probably<br>
&gt; rather rare case.<br>
<br>
</span>This is, I think, the expectation.<br>
<br>
I think that we probably want to clarify the point by explicitly<br>
saying that PRIORITY doesn&#39;t affect stream states.=C2=A0 We say that it=
 can<br>
be sent in any state, but we don&#39;t also mention that important point.<b=
r>
Do people here agree that an erratum on this point is appropriate<br>
here?<br>
</blockquote></div><br></div>
</div></div></blockquote></span></div><br></div></div>
</blockquote></div><br></div>
</div></div></blockquote></span></div><br></div></div>
</blockquote></div><br></div>

--f403045f164ed6ddf605468ad23f--


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Fri Jan 20 11:58:34 2017
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 5AFED128BA2 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 20 Jan 2017 11:58:34 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.699
X-Spam-Level:
X-Spam-Status: No, score=-9.699 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, 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 p2niZDlOKgGD for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 20 Jan 2017 11:58:32 -0800 (PST)
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 67F131270B4 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Fri, 20 Jan 2017 11:58:29 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cUfHY-0000ff-H5 for ietf-http-wg-dist@listhub.w3.org; Fri, 20 Jan 2017 19:55:32 +0000
Resent-Date: Fri, 20 Jan 2017 19:55:32 +0000
Resent-Message-Id: <E1cUfHY-0000ff-H5@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <scott.k.mitch1@gmail.com>) id 1cUfHT-0000eV-Bc for ietf-http-wg@listhub.w3.org; Fri, 20 Jan 2017 19:55:27 +0000
Received: from mail-lf0-f51.google.com ([209.85.215.51]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <scott.k.mitch1@gmail.com>) id 1cUfHL-0001Vu-2F for ietf-http-wg@w3.org; Fri, 20 Jan 2017 19:55:22 +0000
Received: by mail-lf0-f51.google.com with SMTP id z134so64265257lff.3 for <ietf-http-wg@w3.org>; Fri, 20 Jan 2017 11:54:58 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=1bAjmCYYEtqr38exQoO9rPMrWEzXPRDUlaZ2UVGJ2JU=; b=KelnbsK/wGdlLz4XqqUiHXxtezwadUvZgmtlr5Rfh567ac04zaWHVI0blI9cpsOugC B1RvmKIHzQfOtoc0+PmVzidOK2ERHfk1fsPi9FpNMc95rQApraSBluQBJbaG14fyCzJU TmjlPAosP35S+iE4SlRCO0F2JHy2KK6OmqzNIi95zzvVEkVKjCxCoQFh9qnFlJjNMezu hLziFxvtspAKCgcLXG1xCFEVmmNvNufnya9lifAeThKlgnQBpZhLM1MhRkzyU5P170TQ YuC4uJq1Tp46BAzpbSoDFYMKSpoXIjbEMmkKyhmQuH2jnT86wt17Y4doE8NZMNf79ZpC d8Hg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=1bAjmCYYEtqr38exQoO9rPMrWEzXPRDUlaZ2UVGJ2JU=; b=n5e+GLZxDjGo4FtoxTf08GP+w7VJI5uw/+fQORCuigKCb7GGxPsyyIHk608ISyNh51 hV2DzWkaXWDSJOaxGKhiOV1kZmaQaBLylL8w58JiP7si39SoV18vukG0aE+KK8xyIb5A fj6GK/BvAAfZ8hDYupmTqHQmEtoK93FRN3Wrt03gpqd3iNdHejVoN8fR+0+qgTJo8/Vg 39k62WQ+Oh8M4yIEzMjRtP8xIDPC6TEDzM8bIsGN2tr0aIBOTnUxNSulCPJ3Bb3zz9sa X6gbbFOut0G+y2YJveqPGIeJRwOQRyXMM/TZcpb5eSKbByezs159Fsq2xvViG9XxT4SK RtDw==
X-Gm-Message-State: AIkVDXLWitHoUpmXC3H8U2dmY2zJhkSRv0KQZ9a3TXWxVm+I6TPE3XXmYrH2Us9ryrgj5BXJviyxJzb2cNjpLg==
X-Received: by 10.46.76.10 with SMTP id z10mr7814840lja.9.1484942091613; Fri, 20 Jan 2017 11:54:51 -0800 (PST)
MIME-Version: 1.0
Received: by 10.25.18.200 with HTTP; Fri, 20 Jan 2017 11:54:50 -0800 (PST)
In-Reply-To: <CA+3+x5GTEKFHGcuPK0p9GKrBCwmkcVM2WpR43V79pLcZ7UuKEQ@mail.gmail.com>
References: <CAFn2buAYWHQSWhhoKZ2GKbqXR1A+tScjkAwZmOuQ9gV9jMp2bA@mail.gmail.com> <CAPyZ6=Kh3n+RJi=RqgFBojgRDpfJ=nbr0i4kvO20ET0Kt7UA8Q@mail.gmail.com> <CABkgnnWmPdDXVS+CvmChRjyqkJooSKgy6KdUdN+9nGzOyJazhg@mail.gmail.com> <CAFn2buDrHtB1z16iTWE945bU_qhxTypr05A=5B_nrQoyQijyOw@mail.gmail.com> <CAFn2buB_RpbwaTzDgYUNt0e9=vFyu--SYgSLBrfAd1Tf0b1_nQ@mail.gmail.com> <CAJutW=dX1Z8z+XJ10+uX729bxgWh417kXdd27kg=RO6VbcbvgA@mail.gmail.com> <CAFn2buDuGVBJ8WBptM3cNS_Wy_hnF1v_TMO5VzXriE6B9m-oqQ@mail.gmail.com> <CA+3+x5GTEKFHGcuPK0p9GKrBCwmkcVM2WpR43V79pLcZ7UuKEQ@mail.gmail.com>
From: Scott Mitchell <scott.k.mitch1@gmail.com>
Date: Fri, 20 Jan 2017 11:54:50 -0800
Message-ID: <CAFn2buAj9hnuhihR1GWZtZ9_e5kZjZQyKog6BXfV7O5qxvsJgQ@mail.gmail.com>
To: Tom Bergan <tombergan@chromium.org>
Cc: laike9m <laike9m@gmail.com>, Martin Thomson <martin.thomson@gmail.com>,  Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary=f403045ea29ee1fe2305468c05ce
Received-SPF: pass client-ip=209.85.215.51; envelope-from=scott.k.mitch1@gmail.com; helo=mail-lf0-f51.google.com
X-W3C-Hub-Spam-Status: No, score=-2.8
X-W3C-Hub-Spam-Report: AWL=0.515, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1cUfHL-0001Vu-2F 2edafe3cafe7d9c0df43f63b540515b3
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Stream State and PRIORITY Frames
Archived-At: <http://www.w3.org/mid/CAFn2buAj9hnuhihR1GWZtZ9_e5kZjZQyKog6BXfV7O5qxvsJgQ@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33349
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>

--f403045ea29ee1fe2305468c05ce
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On Fri, Jan 20, 2017 at 10:28 AM, Tom Bergan <tombergan@chromium.org> wrote=
:

> IIUC, PUSH_PROMISEs don't count against the stream limit due to a
> (hypothetical) scenario like the following: A server currently has 199
> streams open on a connection, with limit of 200 per connection, and the
> client makes another request. Now the server has 200 streams open. The
> server wants to push a resource. Since the PUSH_PROMISE does not count
> against the stream limit, the server is allowed to send a PUSH_PROMISE,
> which notifies the client that the resource will be pushed (the client do=
es
> not need to request it).
>
> I submit that this is a nearly-pointless optimization. Broadly speaking,
> there are two reasons a server might want to push a resource:
>
> 1. The server speculates that the client will need that resource shortly.
> If the pushed resource is not more important than basically all of the 20=
0
> streams currently in flight, there is little reason to push that resource=
.
> This is a speculative push, meaning the goal is to reduce latency, but we
> can't reduce latency if the push will be queued behind 200 other streams
> anyway -- we might as well wait for the client to make the request.
>
> 2. The server is participating in a notification protocol where the push
> used to notify the client of some event. In this case, the PUSH_PROMISE
> does not need to be sent immediately because the server is not speculatin=
g
> about a future client request. It would be fine to queue the PUSH_PROMISE
> in the server until one of the 200 concurrent streams is closed.
>
> Therefore, I propose the following convention: servers should count
> PUSH_PROMISEs towards the concurrent stream limit. This doesn't
> necessarily help clients, since a client cannot rely on every server to
> implement this behavior, but overall it seems like a much simpler
> situation. FWIW, this is what I have implemented in Go's HTTP/2 server:
> https://github.com/golang/net/blob/77412025ac6f6821b4938edeb45af9
> 39de5cccec/http2/http2.go#L85
>
>
To clarify my original intention (given the spec has already been released)
is to have the limit be "advisory". The goal would be to preserve existing
behavior but also allow the client to inform the server of its limitations.
The server would have the option to use that information, or ignore it for
reserved streams. An important factor here is the end result for
violating SETTINGS_MAX_CONCURRENT_STREAMS
and the client resetting a PUSH_PROMISE is the same (stream error aka
RST_STREAM).

Although SETTINGS_MAX_CONCURRENT_STREAMS seems like a natural choice for
this there is one potential challenge. Section 5.1.2 includes the
language "Endpoints
MUST NOT exceed the limit set by their peer". The end result of "sending
too many push promises" and "violating SETTINGS_MAX_CONCURRENT_STREAMS" may
be the same (a stream error), but counting pushed streams
against SETTINGS_MAX_CONCURRENT_STREAMS may violate this MUST NOT clause
for existing implementations which don't count pushed streams against
SETTINGS_MAX_CONCURRENT_STREAMS. To be consistent the MUST NOT would have
to be relaxed and clarified.

https://tools.ietf.org/html/rfc7540#section-5.1.2

Endpoints MUST NOT exceed the limit set by their peer.  An endpoint
that receives a HEADERS frame that causes its advertised concurrent
stream limit to be exceeded MUST treat this as a stream error (Section
5.4.2 <https://tools.ietf.org/html/rfc7540#section-5.4.2>) of type
PROTOCOL_ERROR or REFUSED_STREAM.  The choice of error code determines
whether the endpoint wishes to enable automatic retry (see Section
8.1.4 <https://tools.ietf.org/html/rfc7540#section-8.1.4>) for
details).



> On Fri, Jan 20, 2017 at 9:01 AM, Scott Mitchell <scott.k.mitch1@gmail.com=
>
> wrote:
>
>>
>>
>> On Fri, Jan 20, 2017 at 5:17 AM, laike9m <laike9m@gmail.com> wrote:
>>
>>> If you don=E2=80=99t include RESERVED streams in the count for
>>> SETTINGS_MAX_CONCURRENT_STREAMS then how do you limit the amount of
>>> RESERVED streams, and how does your peer know about this limit? I have
>>> imposed an implementation specific metric in the past, but this seems l=
ess
>>> preferable than relying on something in the RFC that the peer is aware =
of.
>>> Either way having infinite of something doesn=E2=80=99t work in practic=
e.
>>>
>>> As Martin has explained, H2 doesn=E2=80=99t limit the amount of RESERVE=
D
>>> streams, based on the notion that HEADERS are close to free.
>>>
>>
>> "HEADERS are free" sounds like an over simplification which becomes more
>> apparent as the concurrency of streams and connections grows. There are
>> other provisions in the RFC to limit the amount of state consumed by
>> HEADERS (SETTINGS_HEADER_TABLE_SIZE, SETTINGS_MAX_HEADER_LIST_SIZE).
>>
>> In addition to headers this may require additional state to be allocated
>> for stream management. The specification also has mechanisms to limit st=
ate
>> consumed by streams.
>>
>> It=E2=80=99s true that one trying to send infinite number of PUSH_PROMIS=
Es to
>>> client can cause problems, but 1. This only happens if the server is
>>> malicious, and if it=E2=80=99s malicious,having a limit in the RFC won=
=E2=80=99t
>>> prevent anything, and 2. Not counting PUSH_PROMISEs is a tradeoff for f=
ast
>>> delivery of PUSH_PROMISEs, which stops client from sending more request=
s. I
>>> guess this is what Martin meant by =E2=80=9CIf you limit server push by=
 applying a
>>> stream limit, then you prevent it from being used in time for the clien=
t to
>>> use it.=E2=80=9D
>>>
>> =EF=BC=88Forgot to reply to all :P=EF=BC=89
>>>
>>
>> Malicious actors is a concern and must be dealt with. However there may
>> be proxy-like systems with large amounts of concurrency or other memory
>> constraint systems that already control their resources but the peer's o=
nly
>> mechanism to know about these limits is to try-then-fail. Assuming clien=
ts
>> impose some limit to their state (infinite state isn't practical) then t=
he
>> problem of "the client won't accept this push" exists if the server know=
s
>> about it before hand or not. Knowing about it before hand gives the serv=
er
>> the ability to potentially prioritize which resources it wants to push o=
r
>> make other more informed decisions.
>>
>>
>>
>>> On Thu, Jan 19, 2017 at 9:21 AM, Scott Mitchell <
>>> scott.k.mitch1@gmail.com> wrote:
>>>
>>>>
>>>>
>>>> On Tue, Jan 17, 2017 at 2:43 PM, Scott Mitchell <
>>>> scott.k.mitch1@gmail.com> wrote:
>>>>
>>>>> From my perspective I would like to see two clarifications:
>>>>>
>>>>> 1. It is clear to me that PRIORITY doesn't impact state.
>>>>>
>>>>
>>>> Just to clarify ... it is clear that a PRIORITY frame doesn't impact
>>>> the state of the stream  it is carrying priority information for. The
>>>> impacts PRIORITY frames have on other streams is not clear due to the
>>>> wording in section 5.1.1.
>>>>
>>>>
>>>>> However Section 5.1.1 states "first use of a new stream identifier"
>>>>> which makes no reference to stream state. If stream state is
>>>>> important/implied here better to be specific about it. I don't think =
the
>>>>> one-off example below this text is sufficient to convey the intended
>>>>> implications of this statement.
>>>>>
>>>>> 2. Section 5.1.2 states "Streams in either of the 'reserved' states
>>>>> do not count toward the stream limit." which seems to conflict with s=
ection
>>>>> 8.2.2 "A client can use the SETTINGS_MAX_CONCURRENT_STREAMS setting
>>>>> to limit the number of responses that can be concurrently pushed by a
>>>>> server.". These two statements appear to contradict each other. Since
>>>>> SETTINGS_MAX_CONCURRENT_STREAMS is really the only mechanism to limit
>>>>> resources due to server push I'm assuming section 5.1.2 is overly
>>>>> restrictive.
>>>>>
>>>>>
>>>>> On Tue, Jan 17, 2017 at 2:27 PM, Martin Thomson <
>>>>> martin.thomson@gmail.com> wrote:
>>>>>
>>>>>> On 18 January 2017 at 01:37, Tatsuhiro Tsujikawa <
>>>>>> tatsuhiro.t@gmail.com> wrote:
>>>>>> > If my understanding is correct, this only refers to the new stream
>>>>>> ID used
>>>>>> > by HEADERS, and PUSH_PROMISE frames which open or reserve streams.
>>>>>> The
>>>>>> > example text following that statement uses HEADERS which opens new
>>>>>> stream.
>>>>>> > PRIORITY frame does not change stream state, and there is no reaso=
n
>>>>>> to close
>>>>>> > all unused streams lower than bearing stream ID.  That said, I
>>>>>> agree that
>>>>>> > this is not crystal clear in the document.  In practice, this is
>>>>>> probably
>>>>>> > rather rare case.
>>>>>>
>>>>>> This is, I think, the expectation.
>>>>>>
>>>>>> I think that we probably want to clarify the point by explicitly
>>>>>> saying that PRIORITY doesn't affect stream states.  We say that it c=
an
>>>>>> be sent in any state, but we don't also mention that important point=
.
>>>>>> Do people here agree that an erratum on this point is appropriate
>>>>>> here?
>>>>>>
>>>>>
>>>>>
>>>>
>>>
>>
>

--f403045ea29ee1fe2305468c05ce
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div class=3D"gmail_quo=
te">On Fri, Jan 20, 2017 at 10:28 AM, Tom Bergan <span dir=3D"ltr">&lt;<a h=
ref=3D"mailto:tombergan@chromium.org" target=3D"_blank">tombergan@chromium.=
org</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"mar=
gin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,2=
04);border-left-style:solid;padding-left:1ex"><div dir=3D"ltr">IIUC, PUSH_P=
ROMISEs don&#39;t count against the stream limit due to a (hypothetical) sc=
enario like the following: A server currently has 199 streams open on a con=
nection, with limit of 200 per connection, and the client makes another req=
uest. Now the server has 200 streams open. The server wants to push a resou=
rce. Since the PUSH_PROMISE does not count against the stream limit, the se=
rver is allowed to send a PUSH_PROMISE, which notifies the client that the =
resource will be pushed (the client does not need to request it).<div><br><=
/div><div>I submit that this is a nearly-pointless optimization. Broadly sp=
eaking, there are two reasons a server might want to push a resource:</div>=
<div><br></div><div>1. The server speculates that the client will need that=
 resource shortly. If the pushed resource is not more important than basica=
lly all of the 200 streams currently in flight, there is little reason to p=
ush that resource. This is a speculative push, meaning the goal is to reduc=
e latency, but we can&#39;t reduce latency if the push will be queued behin=
d 200 other streams anyway -- we might as well wait for the client to make =
the request.</div><div><br></div><div>2. The server is participating in a n=
otification protocol where the push used to notify the client of some event=
. In this case, the PUSH_PROMISE does not need to be sent immediately becau=
se the server is not speculating about a future client request. It would be=
 fine to queue the PUSH_PROMISE in the server until one of the 200 concurre=
nt streams is closed.</div><div><br></div><div>Therefore, I propose the fol=
lowing convention: servers should count PUSH_PROMISEs towards the concurren=
t stream limit. This doesn&#39;t necessarily=C2=A0help clients, since a cli=
ent cannot rely on every server to implement this behavior, but overall it =
seems like a much simpler situation. FWIW, this is what I have implemented =
in Go&#39;s HTTP/2 server:</div><div><a href=3D"https://github.com/golang/n=
et/blob/77412025ac6f6821b4938edeb45af939de5cccec/http2/http2.go#L85" target=
=3D"_blank">https://github.com/golang/net/<wbr>blob/<wbr>77412025ac6f6821b4=
938edeb45af9<wbr>39de5cccec/http2/http2.go#L85</a></div></div><div class=3D=
"gmail-HOEnZb"><div class=3D"gmail-h5"><div class=3D"gmail_extra"><br></div=
></div></div></blockquote><div><br></div><div>To clarify my original intent=
ion (given the spec has already been released) is to have the limit be &quo=
t;advisory&quot;. The goal would be to preserve existing behavior but also =
allow the client to inform the server of its limitations. The server would =
have the option to use that information, or ignore it for reserved streams.=
 An important factor here is the end result for violating=C2=A0<font color=
=3D"#000000">SETTINGS_MAX_CONCURRENT_STREAMS and the client=C2=A0resetting =
a PUSH_PROMISE is the same (stream error aka RST_STREAM).</font></div><div>=
<br></div><div>Although=C2=A0<font color=3D"#000000" size=3D"2">SETTINGS_MA=
X_CONCURRENT_STREAMS seems like a natural choice for this there is one pote=
ntial challenge. Section 5.1.2 includes the language &quot;</font><span sty=
le=3D"color:rgb(0,0,0);font-size:13.333333015441895px">Endpoints MUST NOT e=
xceed the limit set by their peer</span><span style=3D"color:rgb(0,0,0)">&q=
uot;. The end result of &quot;sending too many push promises&quot; and &quo=
t;violating </span><font color=3D"#000000">SETTINGS_MAX_CONCURRENT_STREAMS&=
quot; may be the same (a stream error), but counting pushed streams against=
=C2=A0SETTINGS_MAX_CONCURRENT_STREAMS may violate this MUST NOT clause for =
existing implementations which don&#39;t count pushed streams against=C2=A0=
</font><span style=3D"color:rgb(0,0,0)">SETTINGS_MAX_CONCURRENT_STREAMS</sp=
an><span style=3D"color:rgb(0,0,0)">. </span><span style=3D"color:rgb(0,0,0=
)">To be consistent the MUST NOT=C2=A0would=C2=A0have to be relaxed and cla=
rified.</span></div><div><font color=3D"#000000" size=3D"2"><br></font></di=
v><div><a href=3D"https://tools.ietf.org/html/rfc7540#section-5.1.2">https:=
//tools.ietf.org/html/rfc7540#section-5.1.2</a></div><div><pre class=3D"gma=
il-newpage" style=3D"font-size:13.333333015441895px;margin-top:0px;margin-b=
ottom:0px;page-break-before:always;color:rgb(0,0,0)">Endpoints MUST NOT exc=
eed the limit set by their peer.  An endpoint that receives a HEADERS frame=
 that causes its advertised concurrent stream limit to be exceeded MUST tre=
at this as a stream error (<a href=3D"https://tools.ietf.org/html/rfc7540#s=
ection-5.4.2">Section 5.4.2</a>) of type PROTOCOL_ERROR or REFUSED_STREAM. =
 The choice of error code determines whether the endpoint wishes to enable =
automatic retry (see <a href=3D"https://tools.ietf.org/html/rfc7540#section=
-8.1.4">Section 8.1.4</a>) for details).</pre></div><div>=C2=A0</div><block=
quote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left-w=
idth:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding=
-left:1ex"><div class=3D"gmail-HOEnZb"><div class=3D"gmail-h5"><div class=
=3D"gmail_extra"><div class=3D"gmail_quote">On Fri, Jan 20, 2017 at 9:01 AM=
, Scott Mitchell <span dir=3D"ltr">&lt;<a href=3D"mailto:scott.k.mitch1@gma=
il.com" target=3D"_blank">scott.k.mitch1@gmail.com</a>&gt;</span> wrote:<br=
><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border=
-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;=
padding-left:1ex"><div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div =
class=3D"gmail_quote"><span>On Fri, Jan 20, 2017 at 5:17 AM, laike9m <span =
dir=3D"ltr">&lt;<a href=3D"mailto:laike9m@gmail.com" target=3D"_blank">laik=
e9m@gmail.com</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" st=
yle=3D"margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb=
(204,204,204);border-left-style:solid;padding-left:1ex"><div dir=3D"ltr"><s=
pan class=3D"gmail-m_-4514015801070492360m_7518069248270670440gmail-"><span=
 class=3D"gmail-m_-4514015801070492360m_7518069248270670440gmail-m_-7582536=
95586967279gmail-im" style=3D"font-size:12.8px"><blockquote style=3D"margin=
:1.2em 0px;border-left-width:4px;border-left-style:solid;border-left-color:=
rgb(221,221,221);padding:0px 1em;color:rgb(119,119,119);quotes:none"><p sty=
le=3D"margin:1.2em 0px">If you don=E2=80=99t include RESERVED streams in th=
e count for SETTINGS_MAX_CONCURRENT_STREAM<wbr>S then how do you limit the =
amount of RESERVED streams, and how does your peer know about this limit? I=
 have imposed an implementation specific metric in the past, but this seems=
 less preferable than relying on something in the RFC that the peer is awar=
e of. Either way having infinite of something doesn=E2=80=99t work in pract=
ice.</p></blockquote></span><p style=3D"font-size:12.8px;margin:1.2em 0px">=
As Martin has explained, H2 doesn=E2=80=99t limit the amount of RESERVED st=
reams, based on the notion that HEADERS are close to free.</p></span></div>=
</blockquote><div><br></div></span><div>&quot;HEADERS are free&quot; sounds=
 like an over simplification which becomes more apparent as the concurrency=
 of streams and connections grows. There are other provisions in the RFC to=
 limit the amount of state consumed by HEADERS (<span style=3D"color:rgb(0,=
0,0);font-size:13.333333015441895px">SETTINGS_HEADER_TABLE_SIZE,=C2=A0</spa=
n><span style=3D"color:rgb(0,0,0);font-size:13.333333015441895px">S<wbr>ETT=
INGS_MAX_HEADER_LIST_SIZE)</span>.</div><div><br></div><div>In addition to =
headers this may require additional state to be allocated for stream manage=
ment. The specification also has mechanisms to limit state consumed by stre=
ams.</div><div><br></div><blockquote class=3D"gmail_quote" style=3D"margin:=
0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);=
border-left-style:solid;padding-left:1ex"><div dir=3D"ltr"><span class=3D"g=
mail-m_-4514015801070492360m_7518069248270670440gmail-"><p style=3D"font-si=
ze:12.8px;margin:1.2em 0px"> It=E2=80=99s true that one trying to send infi=
nite number of PUSH_PROMISEs to client can cause problems, but 1. This only=
 happens if the server is malicious, and if it=E2=80=99s malicious,<span st=
yle=3D"font-size:12.8px">having a limit in the RFC won=E2=80=99t prevent an=
ything, and 2. Not counting PUSH_PROMISEs is a tradeoff for fast delivery o=
f PUSH_PROMISEs, which stops client from sending more requests. I guess thi=
s is what Martin meant by =E2=80=9CIf you limit server push by applying a s=
tream limit, then you prevent it from being used in time for the client to =
use it.=E2=80=9D</span></p></span></div></blockquote><span><blockquote clas=
s=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left-width:1px;b=
order-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"=
><div dir=3D"ltr"><p style=3D"font-size:12.8px;margin:1.2em 0px">=EF=BC=88F=
orgot to reply to all :P=EF=BC=89</p></div></blockquote><div><br></div></sp=
an><div>Malicious actors is a concern and must be dealt with. However there=
 may be proxy-like systems with large amounts of concurrency or other memor=
y constraint systems that already control their resources but the peer&#39;=
s only mechanism to know about these limits is to try-then-fail. Assuming c=
lients impose some limit to their state (infinite state isn&#39;t practical=
) then the problem of &quot;the client won&#39;t accept this push&quot; exi=
sts if the server knows about it before hand or not. Knowing about it befor=
e hand gives the server the ability to potentially prioritize which resourc=
es it wants to push or make other more informed decisions.<br></div><span><=
div><br></div><div><br></div><blockquote class=3D"gmail_quote" style=3D"mar=
gin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,2=
04);border-left-style:solid;padding-left:1ex"><div class=3D"gmail-m_-451401=
5801070492360m_7518069248270670440gmail-HOEnZb"><div class=3D"gmail-m_-4514=
015801070492360m_7518069248270670440gmail-h5"><div class=3D"gmail_extra"><b=
r><div class=3D"gmail_quote">On Thu, Jan 19, 2017 at 9:21 AM, Scott Mitchel=
l <span dir=3D"ltr">&lt;<a href=3D"mailto:scott.k.mitch1@gmail.com" target=
=3D"_blank">scott.k.mitch1@gmail.com</a>&gt;</span> wrote:<br><blockquote c=
lass=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left-width:1p=
x;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1=
ex"><div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div class=3D"gmail=
_quote"><span>On Tue, Jan 17, 2017 at 2:43 PM, Scott Mitchell <span dir=3D"=
ltr">&lt;<a href=3D"mailto:scott.k.mitch1@gmail.com" target=3D"_blank">scot=
t.k.mitch1@gmail.com</a>&gt;</span> wrote:<br></span><span><blockquote clas=
s=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left-width:1px;b=
order-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"=
><div dir=3D"ltr">From my perspective I would like to see two clarification=
s:<div><br></div><div>1. It is clear to me that PRIORITY doesn&#39;t impact=
 state.</div></div></blockquote><div><br></div></span><div>Just to clarify =
... it is clear that a PRIORITY frame doesn&#39;t impact the state of the s=
tream =C2=A0it is carrying priority information for. The impacts PRIORITY f=
rames have on other streams is not clear due to the wording in section 5.1.=
1.</div><span><div>=C2=A0</div><blockquote class=3D"gmail_quote" style=3D"m=
argin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204=
,204);border-left-style:solid;padding-left:1ex"><div dir=3D"ltr"><div> Howe=
ver Section 5.1.1 states &quot;<font color=3D"#000000" size=3D"2">first use=
 of a new stream identifier&quot; which makes no reference to stream state.=
 If stream state is important/implied here better to be specific about it. =
I don&#39;t think the one-off example below this text is sufficient to conv=
ey the intended implications of this statement.</font><br></div><div><span =
style=3D"color:rgb(0,0,0);font-size:13.333333015441895px"><br></span></div>=
<div><span style=3D"color:rgb(0,0,0);font-size:13.333333015441895px">2. Sec=
tion 5.1.2 states &quot;</span><span style=3D"color:rgb(0,0,0);font-size:13=
.333333015441895px">Streams in either of the &#39;</span><span style=3D"col=
or:rgb(0,0,0);font-size:13.333333015441895px">reserved&#39; states do not c=
ount toward the stream limit.&quot; which seems to conflict with section 8.=
2.2 &quot;</span><span style=3D"color:rgb(0,0,0);font-size:13.3333330154418=
95px">A client can use the SETTINGS_MAX_CONCURRENT_STREAM<wbr>S setting to =
limit=C2=A0</span><span style=3D"color:rgb(0,0,0);font-size:13.333333015441=
895px">the number of responses that can be concurrently pushed by a server.=
</span><span style=3D"color:rgb(0,0,0);font-size:13.333333015441895px">&quo=
t;. These two statements appear to contradict each other. Since=C2=A0</span=
><font color=3D"#000000" size=3D"2">SETTINGS_MAX_CONCURRENT_<wbr>STREAMS is=
 really the only=C2=A0mechanism to limit resources due to server push I&#39=
;m assuming=C2=A0section 5.1.2 is overly restrictive.</font></div><div><fon=
t color=3D"#000000" size=3D"2"><br></font></div></div><div class=3D"gmail-m=
_-4514015801070492360m_7518069248270670440gmail-m_-758253695586967279m_7189=
452689709368695HOEnZb"><div class=3D"gmail-m_-4514015801070492360m_75180692=
48270670440gmail-m_-758253695586967279m_7189452689709368695h5"><div class=
=3D"gmail_extra"><br><div class=3D"gmail_quote">On Tue, Jan 17, 2017 at 2:2=
7 PM, Martin Thomson <span dir=3D"ltr">&lt;<a href=3D"mailto:martin.thomson=
@gmail.com" target=3D"_blank">martin.thomson@gmail.com</a>&gt;</span> wrote=
:<br><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;bo=
rder-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:so=
lid;padding-left:1ex"><span>On 18 January 2017 at 01:37, Tatsuhiro Tsujikaw=
a &lt;<a href=3D"mailto:tatsuhiro.t@gmail.com" target=3D"_blank">tatsuhiro.=
t@gmail.com</a>&gt; wrote:<br>
&gt; If my understanding is correct, this only refers to the new stream ID =
used<br>
&gt; by HEADERS, and PUSH_PROMISE frames which open or reserve streams.=C2=
=A0 The<br>
&gt; example text following that statement uses HEADERS which opens new str=
eam.<br>
&gt; PRIORITY frame does not change stream state, and there is no reason to=
 close<br>
&gt; all unused streams lower than bearing stream ID.=C2=A0 That said, I ag=
ree that<br>
&gt; this is not crystal clear in the document.=C2=A0 In practice, this is =
probably<br>
&gt; rather rare case.<br>
<br>
</span>This is, I think, the expectation.<br>
<br>
I think that we probably want to clarify the point by explicitly<br>
saying that PRIORITY doesn&#39;t affect stream states.=C2=A0 We say that it=
 can<br>
be sent in any state, but we don&#39;t also mention that important point.<b=
r>
Do people here agree that an erratum on this point is appropriate<br>
here?<br>
</blockquote></div><br></div>
</div></div></blockquote></span></div><br></div></div>
</blockquote></div><br></div>
</div></div></blockquote></span></div><br></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div></div>

--f403045ea29ee1fe2305468c05ce--


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Fri Jan 20 20:06:55 2017
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 49D9A129784 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 20 Jan 2017 20:06:55 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.699
X-Spam-Level:
X-Spam-Status: No, score=-9.699 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, 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 T1fttq91lgoo for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 20 Jan 2017 20:06:54 -0800 (PST)
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 E2D0F12973A for <httpbisa-archive-bis2Juki@lists.ietf.org>; Fri, 20 Jan 2017 20:06:53 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cUmtU-0002Bc-Sv for ietf-http-wg-dist@listhub.w3.org; Sat, 21 Jan 2017 04:03:12 +0000
Resent-Date: Sat, 21 Jan 2017 04:03:12 +0000
Resent-Message-Id: <E1cUmtU-0002Bc-Sv@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <chhsiao90@gmail.com>) id 1cUmtQ-0002AS-1h for ietf-http-wg@listhub.w3.org; Sat, 21 Jan 2017 04:03:08 +0000
Received: from mail-qt0-f182.google.com ([209.85.216.182]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <chhsiao90@gmail.com>) id 1cUmtJ-0007iy-KK for ietf-http-wg@w3.org; Sat, 21 Jan 2017 04:03:02 +0000
Received: by mail-qt0-f182.google.com with SMTP id x49so62769465qtc.2 for <ietf-http-wg@w3.org>; Fri, 20 Jan 2017 20:02:40 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=RClKtWsd4Lfh6eJ6F8VXlj1jfuOhE/tKYdfccoY0ckc=; b=RpkmW8uBuUCyIG4cLY1mubT/MERbzzstK4YhKJsgFkyu4dogU+e4qoEnSjp4fIkjqx 34fxL4+USxMBTVBhXPCY2tDai1YgrHqrHALmVlIKtlwPNirDVQtKU+MkqmivCKY2wlqQ m5nqxOcxaFXMcDBqKkuSnQh5alpkKzFJ9OqYweZFegc8nXDRRMzESwyTl/LQI5NI/Q3e es9m16yPQwucp8RTjXU/zUFrZuFXEBUAAKgpq4op7i3otK087MHM9Rgr3cr4CHvfTtPZ Df36h8RtWe3XkY4/EyJYa2xww77injyqqEvQZaLpd8dkfmNp1/+Qmn8lzmYkdiOBMlpA cWyQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=RClKtWsd4Lfh6eJ6F8VXlj1jfuOhE/tKYdfccoY0ckc=; b=PQkSdsyi+HqCtEfNmDvQbYpeVubjgWUGzz4uuxyHyGsSjbRxIUdzYN1g+M872+3zrW bgWjUQxjds4q4ep46mcxO+q7SKfhMp3DJrwG0o2NVlDVA979ry9pwMBWUJ72aVn2oav6 9a9vqSoiBL3yZBhTP6Zp+qN8UchI/KnJOSryVZPd4dLKNX3l9ysHHSbMg0vztP7/65kT a/UMJXlq3FkQPZTj/4EAhEndPzQHRw9b/HDjwiSiekTttUAd9U4zBmtDeTY2DxJ+FFX6 4I/nnKeo85DYBgxlIS0VjAeEg267yiW8QjSWdIhQergGGp7Bdw284yWBIdUcQJv/Yiz+ 8nnQ==
X-Gm-Message-State: AIkVDXI4jkJZmQ1g8QRZQk6lsp3u3JpLrZBsIc0u9x7ZdhmKIRhXH5obLl0POCyzb2JOoZD44zwOEf9m4zursg==
X-Received: by 10.237.53.236 with SMTP id d41mr15909628qte.135.1484971354877; Fri, 20 Jan 2017 20:02:34 -0800 (PST)
MIME-Version: 1.0
Received: by 10.55.170.77 with HTTP; Fri, 20 Jan 2017 20:02:34 -0800 (PST)
From: =?UTF-8?B?6JWt6ZuL5ra1?= <chhsiao90@gmail.com>
Date: Sat, 21 Jan 2017 12:02:34 +0800
Message-ID: <CAJ8AU98EXyOzg2a6Oj+7hk=Dysqse_zhunjpcoCU-FO9djjDqw@mail.gmail.com>
To: ietf-http-wg@w3.org
Content-Type: multipart/alternative; boundary=001a11c111e41bf6d5054692d663
Received-SPF: pass client-ip=209.85.216.182; envelope-from=chhsiao90@gmail.com; helo=mail-qt0-f182.google.com
X-W3C-Hub-Spam-Status: No, score=-4.0
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cUmtJ-0007iy-KK 125fad1581d912e8de54e684ec1d7b4f
X-Original-To: ietf-http-wg@w3.org
Subject: Clarify some handling about extension frame and unknown frame on HTTP/2
Archived-At: <http://www.w3.org/mid/CAJ8AU98EXyOzg2a6Oj+7hk=Dysqse_zhunjpcoCU-FO9djjDqw@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33350
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>

--001a11c111e41bf6d5054692d663
Content-Type: text/plain; charset=UTF-8

It's related to https://tools.ietf.org/html/rfc7540#section-5.5 Extending
HTTP/2 and a test case for it
https://github.com/summerwind/h2spec/blob/master/5_5.go#L75-L102

The fourth paragraph said

> Implementations MUST ignore unknown or unsupported values in all
> extensible protocol elements. Implementations MUST discard frames
> that have unknown or unsupported types.


and it also said

> extension frames that appear in the middle of a header block are not
> permitted;
> these MUST be treated as a connection error of type PROTOCOL_ERROR.


So when one end point received one unknown frame in the middle of header
block,
I'm not sure what's the correct way to handle the frame with following two
options.
- the end point should drop the frame without any error
- the end point should close the connection with protocol error.

There is also one paragraph related to this that support the first option.
https://tools.ietf.org/html/rfc7540#section-5.1
at second from the last paragraph

> In the absence of more specific guidance elsewhere in this document,
> implementations SHOULD treat the receipt of a frame that is not
> expressly permitted in the description of a state as a connection
> error of type PROTOCOL_ERROR. Note that PRIORITY can
> be sent and received in any stream state. Frames of unknown types
> are ignored.

That said frames of unknown types should ignore and not treat as protocol
error.

So I think each the option make sense to me, and want to clarify for which
would be the best option.

Thanks

--001a11c111e41bf6d5054692d663
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">It&#39;s related to=C2=A0<a href=3D"https://tools.ietf.org=
/html/rfc7540#section-5.5">https://tools.ietf.org/html/rfc7540#section-5.5<=
/a> Extending HTTP/2 and a test case for it=C2=A0<a href=3D"https://github.=
com/summerwind/h2spec/blob/master/5_5.go#L75-L102">https://github.com/summe=
rwind/h2spec/blob/master/5_5.go#L75-L102</a><div><div><br></div><div>The fo=
urth paragraph said</div><div><blockquote style=3D"margin:0px 0px 0px 0.8ex=
;border-left:1px solid rgb(204,204,204);padding-left:1ex" class=3D"gmail_qu=
ote">Implementations MUST ignore unknown or unsupported values in all<br>ex=
tensible protocol elements.  Implementations MUST discard frames<br>that ha=
ve unknown or unsupported types.</blockquote><div><br></div><div>and it als=
o said=C2=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px=
 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span s=
tyle=3D"color:rgb(0,0,0);font-size:13.3333px">extension frames that appear =
in=C2=A0</span><span style=3D"color:rgb(0,0,0);font-size:13.3333px">the mid=
dle of a header block=C2=A0</span><span style=3D"color:rgb(0,0,0);font-size=
:13.3333px">are=C2=A0</span><span style=3D"color:rgb(0,0,0);font-size:13.33=
33px">not permitted;=C2=A0<br></span><span style=3D"color:rgb(0,0,0);font-s=
ize:13.3333px">these=C2=A0</span><span style=3D"color:rgb(0,0,0);font-size:=
13.3333px">MUST be treated as a connection error=C2=A0</span><span style=3D=
"color:rgb(0,0,0);font-size:13.3333px">of type=C2=A0</span><span style=3D"c=
olor:rgb(0,0,0);font-size:13.3333px">PROTOCOL_ERROR.</span><span style=3D"c=
olor:rgb(0,0,0);font-size:13.3333px">=C2=A0</span></blockquote><div>=C2=A0<=
/div></div><div>So when one end point received one unknown frame in the mid=
dle of header block,</div></div><div>I&#39;m not sure what&#39;s the correc=
t way to handle the frame with following two options.</div><div>- the end p=
oint should drop the frame without any error</div><div>- the end point shou=
ld close the connection with protocol error.</div><div><br></div><div>There=
 is also one paragraph related to this that support the first option.</div>=
<div><a href=3D"https://tools.ietf.org/html/rfc7540#section-5.1">https://to=
ols.ietf.org/html/rfc7540#section-5.1</a><br></div><div>at second from the =
last paragraph</div><div><blockquote style=3D"margin:0px 0px 0px 0.8ex;bord=
er-left:1px solid rgb(204,204,204);padding-left:1ex" class=3D"gmail_quote">=
In the absence of more specific guidance elsewhere in this document,<br>imp=
lementations SHOULD treat the receipt of a frame that is not<br>expressly p=
ermitted in the description of a state as a connection<br>error of type PRO=
TOCOL_ERROR.  Note that PRIORITY can<br>be sent and received in any stream =
state.  Frames of unknown types<br>are ignored.</blockquote><div>That said =
frames of unknown types should ignore and not treat as protocol error.=C2=
=A0</div></div><div><br></div><div>So I think each the option make sense to=
 me, and want to clarify for which would be the best option.</div><div><br>=
</div><div>Thanks</div></div>

--001a11c111e41bf6d5054692d663--


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Sat Jan 21 00:27:18 2017
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 3E89A12998F for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sat, 21 Jan 2017 00:27:18 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.699
X-Spam-Level:
X-Spam-Status: No, score=-9.699 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, 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 nOjpEOjz-53S for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sat, 21 Jan 2017 00:27:16 -0800 (PST)
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 7FBAA12944C for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sat, 21 Jan 2017 00:27:16 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cUqxf-0002Cx-LS for ietf-http-wg-dist@listhub.w3.org; Sat, 21 Jan 2017 08:23:47 +0000
Resent-Date: Sat, 21 Jan 2017 08:23:47 +0000
Resent-Message-Id: <E1cUqxf-0002Cx-LS@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <tatsuhiro.t@gmail.com>) id 1cUqxb-0002C0-A4 for ietf-http-wg@listhub.w3.org; Sat, 21 Jan 2017 08:23:43 +0000
Received: from mail-qt0-f181.google.com ([209.85.216.181]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <tatsuhiro.t@gmail.com>) id 1cUqxV-0003yE-0d for ietf-http-wg@w3.org; Sat, 21 Jan 2017 08:23:37 +0000
Received: by mail-qt0-f181.google.com with SMTP id v23so65812328qtb.0 for <ietf-http-wg@w3.org>; Sat, 21 Jan 2017 00:23:16 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=CiAwdzxdcX1Ity982U7uNe79qVleI4bJJYvCPrZaU+8=; b=EfgrQ31ZI+4s9XCtgktZSrtkT4pal2IZP5cw+ViUZ+6rLBiS2Qg0+HgDg4jk+XJoan +VVAnW/z5sOsZ71qohH3zUiog76ZZOXnVpqfpJ4Q4KToJo463UuyDI2lgkfBDbcBKetU /9mbLOPZjVA/151hEXlRHdLnOdFTrsmxlGj3O5e9/a/f7rBDoid9+3Uky1zqiOfskVfm 92bZkvzMRV7tvEpxx/UlUqZ7UZX6/4Y4JM3EYVAWtkj5AsIDaiqkX0539mojSEgktQa8 QmUm/22gvpDHG972ZogzK4+5TknpLLB2SAhN4VwVfMUxWzRnpSL+TcLgGu2yq71OYXXy CgWw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=CiAwdzxdcX1Ity982U7uNe79qVleI4bJJYvCPrZaU+8=; b=XY7PX+H2U14f4Mi2cW9WExzZhkbDurR8bsoWK7tKlU5wh1ZRQxKhPcv4ZYNfSJWXmI zrX8VyDk1uHG3Q3gWbLhtJB1jz/Vh5DZfv+4RYkt2kWm3yQJiA1XJoMggnYEdPbl87A/ 5LntTYzaqJOgrj1JfWNap98agUFPwSse3we0SgzvCHc60ugVplVG20rrvOUxm20YWFyD t4Pmdhg5rOeMjHNISsCCECH5x7hWv4DuW7S15h62/QGI1BAZvEcq/u7YmttzO/znlBEf gPVsa/sVWUzp4XIMXERr3CyJmqq8jkjC7zbFa1HaDH3uCqbpkw+O1ptO/VSSVvBJgKnp qPoQ==
X-Gm-Message-State: AIkVDXJFfJQIS1w2j6MnucXY+3E9qHmNsnxiaD+yrMqypZmGw/gApxug/f63DtcwnjSqzTnijri6Ey7eernjYg==
X-Received: by 10.200.42.200 with SMTP id c8mr16146887qta.156.1484986991266; Sat, 21 Jan 2017 00:23:11 -0800 (PST)
MIME-Version: 1.0
Received: by 10.12.138.186 with HTTP; Sat, 21 Jan 2017 00:22:50 -0800 (PST)
In-Reply-To: <CAJ8AU98EXyOzg2a6Oj+7hk=Dysqse_zhunjpcoCU-FO9djjDqw@mail.gmail.com>
References: <CAJ8AU98EXyOzg2a6Oj+7hk=Dysqse_zhunjpcoCU-FO9djjDqw@mail.gmail.com>
From: Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>
Date: Sat, 21 Jan 2017 17:22:50 +0900
Message-ID: <CAPyZ6=KXrzUSBrb4S5oN12m2w_ZEk8p+6aqpSv9o6WusP5RqRw@mail.gmail.com>
To: =?UTF-8?B?6JWt6ZuL5ra1?= <chhsiao90@gmail.com>
Cc: "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary=001a1140058e1c586a0546967aa1
Received-SPF: pass client-ip=209.85.216.181; envelope-from=tatsuhiro.t@gmail.com; helo=mail-qt0-f181.google.com
X-W3C-Hub-Spam-Status: No, score=-5.2
X-W3C-Hub-Spam-Report: AWL=-0.998, 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, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1cUqxV-0003yE-0d 2842eadcab202896ad1356d5a81c4c8c
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Clarify some handling about extension frame and unknown frame on HTTP/2
Archived-At: <http://www.w3.org/mid/CAPyZ6=KXrzUSBrb4S5oN12m2w_ZEk8p+6aqpSv9o6WusP5RqRw@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33351
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>

--001a1140058e1c586a0546967aa1
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Hi,

On Sat, Jan 21, 2017 at 1:02 PM, =E8=95=AD=E9=9B=8B=E6=B6=B5 <chhsiao90@gma=
il.com> wrote:

> It's related to https://tools.ietf.org/html/rfc7540#section-5.5 Extending
> HTTP/2 and a test case for it https://github.com/
> summerwind/h2spec/blob/master/5_5.go#L75-L102
>
> The fourth paragraph said
>
>> Implementations MUST ignore unknown or unsupported values in all
>> extensible protocol elements. Implementations MUST discard frames
>> that have unknown or unsupported types.
>
>
> and it also said
>
>> extension frames that appear in the middle of a header block are not
>> permitted;
>> these MUST be treated as a connection error of type PROTOCOL_ERROR.
>
>
> So when one end point received one unknown frame in the middle of header
> block,
> I'm not sure what's the correct way to handle the frame with following tw=
o
> options.
> - the end point should drop the frame without any error
> - the end point should close the connection with protocol error.
>
> There is also one paragraph related to this that support the first option=
.
> https://tools.ietf.org/html/rfc7540#section-5.1
> at second from the last paragraph
>
>> In the absence of more specific guidance elsewhere in this document,
>> implementations SHOULD treat the receipt of a frame that is not
>> expressly permitted in the description of a state as a connection
>> error of type PROTOCOL_ERROR. Note that PRIORITY can
>> be sent and received in any stream state. Frames of unknown types
>> are ignored.
>
> That said frames of unknown types should ignore and not treat as protocol
> error.
>
> So I think each the option make sense to me, and want to clarify for whic=
h
> would be the best option.
>
>
=E2=80=8BMy understanding is that unknown frame type must be ignored except=
 for
those which are received in the middle of header block.   The unknown frame
type appearing in the middle of header block must be treated as connection
error.

=E2=80=8BBest regards,
Tatsuhiro Tsujikawa=E2=80=8B





> Thanks
>

--001a1140058e1c586a0546967aa1
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-family:arial,he=
lvetica,sans-serif;font-size:small">Hi,<br></div><div class=3D"gmail_extra"=
><br><div class=3D"gmail_quote">On Sat, Jan 21, 2017 at 1:02 PM, =E8=95=AD=
=E9=9B=8B=E6=B6=B5 <span dir=3D"ltr">&lt;<a href=3D"mailto:chhsiao90@gmail.=
com" target=3D"_blank">chhsiao90@gmail.com</a>&gt;</span> wrote:<br><blockq=
uote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc =
solid;padding-left:1ex"><div dir=3D"ltr">It&#39;s related to=C2=A0<a href=
=3D"https://tools.ietf.org/html/rfc7540#section-5.5" target=3D"_blank">http=
s://tools.ietf.org/<wbr>html/rfc7540#section-5.5</a> Extending HTTP/2 and a=
 test case for it=C2=A0<a href=3D"https://github.com/summerwind/h2spec/blob=
/master/5_5.go#L75-L102" target=3D"_blank">https://github.com/<wbr>summerwi=
nd/h2spec/blob/master/<wbr>5_5.go#L75-L102</a><div><div><br></div><div>The =
fourth paragraph said</div><div><blockquote style=3D"margin:0px 0px 0px 0.8=
ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class=3D"gmail_=
quote">Implementations MUST ignore unknown or unsupported values in all<br>=
extensible protocol elements.  Implementations MUST discard frames<br>that =
have unknown or unsupported types.</blockquote><div><br></div><div>and it a=
lso said=C2=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0=
px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span=
 style=3D"color:rgb(0,0,0);font-size:13.3333px">extension frames that appea=
r in=C2=A0</span><span style=3D"color:rgb(0,0,0);font-size:13.3333px">the m=
iddle of a header block=C2=A0</span><span style=3D"color:rgb(0,0,0);font-si=
ze:13.3333px">are=C2=A0</span><span style=3D"color:rgb(0,0,0);font-size:13.=
3333px">not permitted;=C2=A0<br></span><span style=3D"color:rgb(0,0,0);font=
-size:13.3333px">these=C2=A0</span><span style=3D"color:rgb(0,0,0);font-siz=
e:13.3333px">MUST be treated as a connection error=C2=A0</span><span style=
=3D"color:rgb(0,0,0);font-size:13.3333px">of type=C2=A0</span><span style=
=3D"color:rgb(0,0,0);font-size:13.3333px">PROTOCOL_ERROR.</span><span style=
=3D"color:rgb(0,0,0);font-size:13.3333px">=C2=A0</span></blockquote><div>=
=C2=A0</div></div><div>So when one end point received one unknown frame in =
the middle of header block,</div></div><div>I&#39;m not sure what&#39;s the=
 correct way to handle the frame with following two options.</div><div>- th=
e end point should drop the frame without any error</div><div>- the end poi=
nt should close the connection with protocol error.</div><div><br></div><di=
v>There is also one paragraph related to this that support the first option=
.</div><div><a href=3D"https://tools.ietf.org/html/rfc7540#section-5.1" tar=
get=3D"_blank">https://tools.ietf.org/html/<wbr>rfc7540#section-5.1</a><br>=
</div><div>at second from the last paragraph</div><div><blockquote style=3D=
"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-le=
ft:1ex" class=3D"gmail_quote">In the absence of more specific guidance else=
where in this document,<br>implementations SHOULD treat the receipt of a fr=
ame that is not<br>expressly permitted in the description of a state as a c=
onnection<br>error of type PROTOCOL_ERROR.  Note that PRIORITY can<br>be se=
nt and received in any stream state.  Frames of unknown types<br>are ignore=
d.</blockquote><div>That said frames of unknown types should ignore and not=
 treat as protocol error.=C2=A0</div></div><div><br></div><div>So I think e=
ach the option make sense to me, and want to clarify for which would be the=
 best option.</div><div><br></div></div></blockquote><div><br><div style=3D=
"font-family:arial,helvetica,sans-serif;font-size:small" class=3D"gmail_def=
ault">=E2=80=8BMy understanding is that unknown frame type must be ignored =
except for those which are received in the middle of header block.=C2=A0=C2=
=A0 The unknown frame type appearing in the middle of header block must be =
treated as connection error.<br><br></div><div style=3D"font-family:arial,h=
elvetica,sans-serif;font-size:small" class=3D"gmail_default">=E2=80=8BBest =
regards,<br></div><div style=3D"font-family:arial,helvetica,sans-serif;font=
-size:small" class=3D"gmail_default">Tatsuhiro Tsujikawa=E2=80=8B</div><br>=
<br><br>=C2=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0=
 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr"><div></=
div><div>Thanks</div></div>
</blockquote></div><br></div></div>

--001a1140058e1c586a0546967aa1--


From nblittlestars@ketacable.net  Sat Jan 21 04:13:40 2017
Return-Path: <nblittlestars@ketacable.net>
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 A62FB1296AA for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sat, 21 Jan 2017 04:13:40 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 4.11
X-Spam-Level: ****
X-Spam-Status: No, score=4.11 tagged_above=-999 required=5 tests=[BAYES_50=0.8, FUZZY_CPILL=0.001, HTML_MESSAGE=0.001, RAZOR2_CF_RANGE_51_100=0.5, RAZOR2_CF_RANGE_E8_51_100=1.886, RAZOR2_CHECK=0.922, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=no autolearn_force=no
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 UtbVN9xzGhtd for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sat, 21 Jan 2017 04:13:40 -0800 (PST)
Received: from smtprelay.b.hostedemail.com (smtprelay0245.b.hostedemail.com [64.98.42.245]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E55941299E8 for <httpbisa-archive-bis2juki@lists.ietf.org>; Sat, 21 Jan 2017 04:13:37 -0800 (PST)
Received: from filter.hostedemail.com (10.5.19.248.rfc1918.com [10.5.19.248]) by smtprelay03.b.hostedemail.com (Postfix) with ESMTP id DB9611A7398 for <httpbisa-archive-bis2juki@lists.ietf.org>; Sat, 21 Jan 2017 12:13:36 +0000 (UTC)
X-Session-Marker: 6C6974746C657374617273406B6574616361626C652E6E6574
X-Spam-Summary: 85,1,0,,d41d8cd98f00b204,nblittlestars@ketacable.net,:,RULES_HIT:41:46:72:150:152:355:379:539:540:541:542:543:567:800:962:967:973:983:988:989:1155:1189:1208:1221:1260:1263:1308:1309:1313:1314:1345:1381:1431:1436:1516:1517:1518:1533:1534:1541:1575:1587:1588:1589:1592:1594:1711:1714:1730:1777:1792:2073:2076:2525:2527:2540:2560:2563:2610:2682:2685:2827:2859:2933:2937:2939:2942:2945:2947:2951:2954:3022:3138:3139:3140:3141:3142:3585:3586:3876:3877:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:5007:6114:6117:6119:6238:6261:6642:7782:7809:8518:8583:8599:8603:9025:9040:10004:10214:10346:10400:10482:10848:11257:11473:11638:11639:11658:11783:11889:11914:11984:12043:12555:12679:12698:12737:12776:12895:12986:13025:13071:13139:13180:13229:13237:14094:14180:14181:14651:14659:14721:19901:19997:21060:21080:21433:21451:21483:21524:30054:30080,0,RBL:218.64.147.232-orl.urbl.hostedemail.com-127.0.0.175,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,
X-HE-Tag: hen37_76ae56e79165e
X-Filterd-Recvd-Size: 3111
Received: from wpsqzagxe (unknown [218.64.147.232]) (Authenticated sender: littlestars@ketacable.net) by omf03.b.hostedemail.com (Postfix) with ESMTPA for <httpbisa-archive-bis2juki@lists.ietf.org>; Sat, 21 Jan 2017 12:13:35 +0000 (UTC)
Message-ID: <81F4B7EFA0B217F989AC250E0A419844@wpsqzagxe>
From: "m-showroom(admin)" <nblittlestars@ketacable.net>
To: <httpbisa-archive-bis2juki@lists.ietf.org>
Subject: =?utf-8?B?KOmHjeimgemCruS7tinlv4XnnIs=?=
Date: Sat, 21 Jan 2017 20:13:28 +0800
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_NextPart_000_0A20_01E8D887.1F503E80"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2900.5512
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512

This is a multi-part message in MIME format.

------=_NextPart_000_0A20_01E8D887.1F503E80
Content-Type: text/plain;
	charset="utf-8"
Content-Transfer-Encoding: base64

SGkgOmh0dHBiaXNhLWFyY2hpdmUtYmlzMmp1a2lAbGlzdHMuaWV0Zi5vcmchDQoNCui0puaIt+Ww
huiiq+mUgeWumu+8jOeUseS6juacquiDvemHjeaWsOmqjOivgeW5tuehruiupOaJgOacieadgy4g
DQoNCuivt+eOsOWcqOeCueatpOadpemqjOivgSENCg0K5pyq6IO96aqM6K+B5YiZ5pqC5pe26YKu
566x5pyN5YqhDQoNCk5PVEU6IOi/meaYr+WcqOebrueahOi/m+ihjOS6huS4gOasoeeUqOaIt+iu
pOivge+8jOS7peaPkOS+m+abtOWuieWFqCDnmoTlubPlj7DvvIzlubblhbPpl63lnKjlnoPlnL7p
gq7ku7bnmoTnm67nmoTlkozlhbbku5bmrLror4jmtLvliqjliJvlu7rnmoTmnLrlmajkurrmiJbm
gbbmhI/nlKjmiLcuIA0KDQoNCu+8iEPvvIkyMDE244CCIOeJiOadg+aJgOaciS4gTk1MU1IgSUQg
Mzk5ODAxIA==

------=_NextPart_000_0A20_01E8D887.1F503E80
Content-Type: text/html;
	charset="utf-8"
Content-Transfer-Encoding: base64

PCFET0NUWVBFIEhUTUwgUFVCTElDICItLy9XM0MvL0RURCBIVE1MIDQuMCBUcmFuc2l0aW9uYWwv
L0VOIj4NCjxIVE1MPjxIRUFEPg0KPE1FVEEgY29udGVudD0idGV4dC9odG1sOyBjaGFyc2V0PXV0
Zi04IiBodHRwLWVxdWl2PUNvbnRlbnQtVHlwZT4NCjxNRVRBIG5hbWU9R0VORVJBVE9SIGNvbnRl
bnQ9Ik1TSFRNTCA4LjAwLjc2MDEuMTgzNjUiPjwvSEVBRD4NCjxCT0RZPg0KPERJViANCnN0eWxl
PSJQQURESU5HLUJPVFRPTTogNXB4OyBDT0xPUjogcmdiKDE2MCwxNjAsMTYwKTsgQ0xFQVI6IGJv
dGg7IFBBRERJTkctVE9QOiAxMnB4Ij48Rk9OVCANCmNvbG9yPSMwMDAwMDA+SGkgOmh0dHBiaXNh
LWFyY2hpdmUtYmlzMmp1a2lAbGlzdHMuaWV0Zi5vcmchPC9GT05UPjxCUj48QlI+PEZPTlQgDQpj
b2xvcj0jMDAwMDAwPui0puaIt+Wwhuiiq+mUgeWumu+8jOeUseS6juacquiDvemHjeaWsOmqjOiv
geW5tuehruiupOaJgOacieadgy4gPC9GT05UPjxCUj48QlI+PEEgDQpocmVmPSJodHRwOi8vY3l5
Z3EuY29tLz9pZjhsZjk9NDYzMzE3Lmh0bWwiPjxGT05UIHN0eWxlPSJMSU5FLUhFSUdIVDogMjNw
eCIgDQpjb2xvcj1kYXJrYmx1ZT7or7fnjrDlnKjngrnmraTmnaXpqozor4EhPC9GT05UPjxCUj48
L0E+PEJSPjxGT05UIA0KY29sb3I9IzAwMDAwMD7mnKrog73pqozor4HliJnmmoLml7bpgq7nrrHm
nI3liqE8QlI+PEJSPk5PVEU6IDwvRk9OVD48Rk9OVCBjb2xvcj1yZWQ+PFNQQU4gDQpzdHlsZT0i
Rk9OVC1TSVpFOiAxMHB4OyBGT05ULVdFSUdIVDogYm9sZCI+PEk+6L+Z5piv5Zyo55uu55qE6L+b
6KGM5LqG5LiA5qyh55So5oi36K6k6K+B77yM5Lul5o+Q5L6b5pu05a6J5YWoIA0K55qE5bmz5Y+w
77yM5bm25YWz6Zet5Zyo5Z6D5Zy+6YKu5Lu255qE55uu55qE5ZKM5YW25LuW5qy66K+I5rS75Yqo
5Yib5bu655qE5py65Zmo5Lq65oiW5oG25oSP55So5oi3LjwvST48L1NQQU4+IDxCUj48L0ZPTlQ+
PEJSPjxCUj7vvIhD77yJMjAxNuOAgiDniYjmnYPmiYDmnIkuIA0KTk1MU1IgSUQgMzk5ODAxIDwv
RElWPjwvQk9EWT48L0hUTUw+DQo=

------=_NextPart_000_0A20_01E8D887.1F503E80--


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Sat Jan 21 05:55:13 2017
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 07C39129A32 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sat, 21 Jan 2017 05:55:13 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.599
X-Spam-Level:
X-Spam-Status: No, score=-9.599 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, 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=lukasa-co-uk.20150623.gappssmtp.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 8AoC9YVy88Ag for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sat, 21 Jan 2017 05:55:11 -0800 (PST)
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 85A01129A2D for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sat, 21 Jan 2017 05:55:11 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cUw4g-0003XO-5g for ietf-http-wg-dist@listhub.w3.org; Sat, 21 Jan 2017 13:51:22 +0000
Resent-Date: Sat, 21 Jan 2017 13:51:22 +0000
Resent-Message-Id: <E1cUw4g-0003XO-5g@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <cory@lukasa.co.uk>) id 1cUw4b-0003WX-7X for ietf-http-wg@listhub.w3.org; Sat, 21 Jan 2017 13:51:17 +0000
Received: from mail-wm0-f54.google.com ([74.125.82.54]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <cory@lukasa.co.uk>) id 1cUw4V-0006sO-3K for ietf-http-wg@w3.org; Sat, 21 Jan 2017 13:51:11 +0000
Received: by mail-wm0-f54.google.com with SMTP id r144so85964338wme.1 for <ietf-http-wg@w3.org>; Sat, 21 Jan 2017 05:50:49 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lukasa-co-uk.20150623.gappssmtp.com; s=20150623; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=QNdd4ZAvlitMLNrEGiobe856XrcbcNgx+OXomFjDKKk=; b=ggmiqiQ5ZJ93+0Elkiwv8yWFQSd/VL3KDv5yMjZCHeVa2JL5klzHmzXZua4REkEVuT KjFfbWbq1F3U3lKChqERcaiI37txQNcjtjtlq4BeprFXXg40sKfjqh9ZRoAQSLbSG/1c ydyVS633YVDQ+K3yWYZuLGS1ntR3CkSvh643uY+tFyl0URrxc3XjLfK7V0kxKG2CEifi Vx+vd+pv77v3z5r06tKNpQGrT3tf04OdHM9B+58J++jnGDXNQgp3vkz9z0widRE51MkG KCkQ5NPEg0lEDwGsRXvVgiJ5dO6CLckXD5NCrPfIFIIh0VWARqL8C07uAR5bySF2mdko foJg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=QNdd4ZAvlitMLNrEGiobe856XrcbcNgx+OXomFjDKKk=; b=q6wH4UtA+swTmywcGOCnZLT+CoIdG3p29GhNmAcb5JpAdUmmPeVTHmT/Nl5dYBklMT 9O7kPhWZkfzBFSjtb1T/HuPn3lrvFdPlSyGfCm4nMUqY2sKf7e0X0nCEBblUV+iWoiqG P/jOXBvSpgHWiC+nCr6tgLkT4WNzzLlehgEH8lIkmjURvpjLPeMlOxRdTklMJeMPjpa1 4IUAF/WmWxMQoxOSuAVeDzS7ZLEhPXC0PAmNofwchy/KKAVqmoEwRadgkWIYYtyz8cd3 HC9+HJ1/zXISM/hOLN9t7F5PEjuLl+lzX3XvfrgNITgx76fDc2MZm5z0lwQ1F03MA0oE JAug==
X-Gm-Message-State: AIkVDXLIIWAVebD++h6x5NPte8pHCNZTAgC23SJf2x+dFNTe6Y0VfxyOSbBXN9W//3VsQA==
X-Received: by 10.28.214.144 with SMTP id n138mr6781874wmg.136.1485006643643; Sat, 21 Jan 2017 05:50:43 -0800 (PST)
Received: from [192.168.1.3] (227.71.125.91.dyn.plus.net. [91.125.71.227]) by smtp.gmail.com with ESMTPSA id o143sm11072076wmd.3.2017.01.21.05.50.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 21 Jan 2017 05:50:42 -0800 (PST)
From: Cory Benfield <cory@lukasa.co.uk>
Message-Id: <AE2DAED4-7938-419C-B97B-4759D469214A@lukasa.co.uk>
Content-Type: multipart/alternative; boundary="Apple-Mail=_DCA11BC7-4CC5-439A-B58C-20DB3625AAE9"
Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\))
Date: Sat, 21 Jan 2017 13:50:41 +0000
In-Reply-To: <CAPyZ6=KXrzUSBrb4S5oN12m2w_ZEk8p+6aqpSv9o6WusP5RqRw@mail.gmail.com>
Cc: =?utf-8?B?6JWt6ZuL5ra1?= <chhsiao90@gmail.com>, "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
To: Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>
References: <CAJ8AU98EXyOzg2a6Oj+7hk=Dysqse_zhunjpcoCU-FO9djjDqw@mail.gmail.com> <CAPyZ6=KXrzUSBrb4S5oN12m2w_ZEk8p+6aqpSv9o6WusP5RqRw@mail.gmail.com>
X-Mailer: Apple Mail (2.3259)
Received-SPF: pass client-ip=74.125.82.54; envelope-from=cory@lukasa.co.uk; helo=mail-wm0-f54.google.com
X-W3C-Hub-Spam-Status: No, score=-3.6
X-W3C-Hub-Spam-Report: AWL=-0.157, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cUw4V-0006sO-3K 3b9d69f09ea608b979d651776b2098f2
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Clarify some handling about extension frame and unknown frame on  HTTP/2
Archived-At: <http://www.w3.org/mid/AE2DAED4-7938-419C-B97B-4759D469214A@lukasa.co.uk>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33352
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>

--Apple-Mail=_DCA11BC7-4CC5-439A-B58C-20DB3625AAE9
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8


> On 21 Jan 2017, at 08:22, Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> =
wrote:
>=20
> =E2=80=8BMy understanding is that unknown frame type must be ignored =
except for those which are received in the middle of header block.   The =
unknown frame type appearing in the middle of header block must be =
treated as connection error.

This is correct. A header block must always be a HEADERS frame, followed =
by zero or more CONTINUATION frames until one of these frames is marked =
with the END_HEADERS. If an unknown frame appears in that sequence, that =
violates the HEADERS rules, and so is a connection error.

Cory=

--Apple-Mail=_DCA11BC7-4CC5-439A-B58C-20DB3625AAE9
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D""><br class=3D""><div><blockquote type=3D"cite" class=3D""><div =
class=3D"">On 21 Jan 2017, at 08:22, Tatsuhiro Tsujikawa &lt;<a =
href=3D"mailto:tatsuhiro.t@gmail.com" =
class=3D"">tatsuhiro.t@gmail.com</a>&gt; wrote:</div><div class=3D""><div =
dir=3D"ltr" style=3D"font-family: Helvetica; font-size: 12px; =
font-style: normal; font-variant-caps: normal; font-weight: normal; =
letter-spacing: normal; orphans: auto; text-align: start; text-indent: =
0px; text-transform: none; white-space: normal; widows: auto; =
word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=3D""><div =
class=3D"gmail_extra"><div class=3D"gmail_quote"><div class=3D""><br =
class=3D""><div class=3D"gmail_default" style=3D"font-family: arial, =
helvetica, sans-serif; font-size: small;">=E2=80=8BMy understanding is =
that unknown frame type must be ignored except for those which are =
received in the middle of header block.&nbsp;&nbsp; The unknown frame =
type appearing in the middle of header block must be treated as =
connection error.<br =
class=3D""></div></div></div></div></div></div></blockquote></div><br =
class=3D""><div class=3D"">This is correct. A header block must always =
be a HEADERS frame, followed by zero or more CONTINUATION frames until =
one of these frames is marked with the END_HEADERS. If an unknown frame =
appears in that sequence, that violates the HEADERS rules, and so is a =
connection error.</div><div class=3D""><br class=3D""></div><div =
class=3D"">Cory</div></body></html>=

--Apple-Mail=_DCA11BC7-4CC5-439A-B58C-20DB3625AAE9--


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Sat Jan 21 18:59:25 2017
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 60389129583 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sat, 21 Jan 2017 18:59:25 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.199
X-Spam-Level:
X-Spam-Status: No, score=-10.199 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-3.199, 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 NAAaZz44t4PH for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sat, 21 Jan 2017 18:59:24 -0800 (PST)
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 53608129570 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sat, 21 Jan 2017 18:59:23 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cV8Jm-0006gX-6L for ietf-http-wg-dist@listhub.w3.org; Sun, 22 Jan 2017 02:55:46 +0000
Resent-Date: Sun, 22 Jan 2017 02:55:46 +0000
Resent-Message-Id: <E1cV8Jm-0006gX-6L@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <chhsiao90@gmail.com>) id 1cV8Ji-0006fm-D6 for ietf-http-wg@listhub.w3.org; Sun, 22 Jan 2017 02:55:42 +0000
Received: from mail-pf0-f178.google.com ([209.85.192.178]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <chhsiao90@gmail.com>) id 1cV8Jc-0008On-Bb for ietf-http-wg@w3.org; Sun, 22 Jan 2017 02:55:37 +0000
Received: by mail-pf0-f178.google.com with SMTP id y143so32035276pfb.0 for <ietf-http-wg@w3.org>; Sat, 21 Jan 2017 18:55:16 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=bgecup4zOOJ0Rcdr305lw/FUILSm4FZ9dKxRm0iHtDU=; b=mGgu4i1UVZiShkRcZU+BVwdNSBoMCTKpZaxWnaFg31DcXkJyA362teotEcnM8CcbLx xmtXHac1IINbAss+k+J0NUqw1sX5B+w/gtYvenScthPFUuYazhSg2eYVsUCJTdf8jOJt 6WyhSYqGZEF2+70/lA3w/BV3Njd/xNX9KDAN/RrlHr5cXBIH3Wzh00I7jiowmv29JnoA 6s0keBr2/bqGF7EBg4BGyj81CeDG8qmiqPB+QmcJbV5bRgSekJEzMBn69iNDmzP6EhgE tGuJymgpySPaQaX3Xo4eTXX40P7dFGtEvWFlGyx9PM8hC4I+ZvKrqov+Alzhq0bJPCZt 6ofw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=bgecup4zOOJ0Rcdr305lw/FUILSm4FZ9dKxRm0iHtDU=; b=CynJ0dMCgeAZxvHj6aFRPzgwUcT8zZhIVSmqJbvhKSAImUVDrCdGnzfs9IS7ldFaSc AD6k6zAbUeTXl08JpXJ+aRkChpYRHSXladU4vefHimylAeUgSXIVYFuQyPofBd+D1kkq lO2rMPMKkcVxSA0GXBvMYIvgR3zHtKvlrMNcGIvDUS27Dmwm81owE+tJt/ikpW0AH0Ij UPRcplqcGvp2zEA3dTUNJJl2PqTTgDzqs1Rxad4yknmJnpZB3rNFArv28Ry0OBA96UOz QT4UKJZFY7+cOqAWGJc44077shjP0pD2Lw6gOhy7PACkPODkIEawQ6jY/1EKpXg4AgqL VaLg==
X-Gm-Message-State: AIkVDXJvjZdCJera8bBv5tqUbDw9BFwuzWwUTJn69d01DWo/C+hut3gb8wH78fggf3DHcw==
X-Received: by 10.98.209.16 with SMTP id z16mr25275705pfg.139.1485053710212; Sat, 21 Jan 2017 18:55:10 -0800 (PST)
Received: from [192.168.200.115] (220-134-105-41.HINET-IP.hinet.net. [220.134.105.41]) by smtp.gmail.com with ESMTPSA id 18sm26924177pgf.28.2017.01.21.18.55.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 21 Jan 2017 18:55:09 -0800 (PST)
From: =?utf-8?B?6JWt6ZuL5ra1?= <chhsiao90@gmail.com>
Message-Id: <FB4B96B2-33A7-482A-B4DF-8CBC1E7D8D38@gmail.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_A65A9CFD-AE9C-4106-83A3-428E8DEE66A5"
Mime-Version: 1.0 (Mac OS X Mail 10.1 \(3251\))
Date: Sun, 22 Jan 2017 10:55:08 +0800
In-Reply-To: <AE2DAED4-7938-419C-B97B-4759D469214A@lukasa.co.uk>
Cc: ietf-http-wg@w3.org
To: Cory Benfield <cory@lukasa.co.uk>, Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>
References: <CAJ8AU98EXyOzg2a6Oj+7hk=Dysqse_zhunjpcoCU-FO9djjDqw@mail.gmail.com> <CAPyZ6=KXrzUSBrb4S5oN12m2w_ZEk8p+6aqpSv9o6WusP5RqRw@mail.gmail.com> <AE2DAED4-7938-419C-B97B-4759D469214A@lukasa.co.uk>
X-Mailer: Apple Mail (2.3251)
Received-SPF: pass client-ip=209.85.192.178; envelope-from=chhsiao90@gmail.com; helo=mail-pf0-f178.google.com
X-W3C-Hub-Spam-Status: No, score=-3.9
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, FREEMAIL_REPLY=1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-1.156, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cV8Jc-0008On-Bb 697b78902be103b7435775d600150f35
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Clarify some handling about extension frame and unknown frame on  HTTP/2
Archived-At: <http://www.w3.org/mid/FB4B96B2-33A7-482A-B4DF-8CBC1E7D8D38@gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33353
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>

--Apple-Mail=_A65A9CFD-AE9C-4106-83A3-428E8DEE66A5
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

Hi Cory and Tatshuhiro,

Thanks for your detailed and clear explanation!
So the rule =E2=80=9Cnever contains other frame in header blocks=E2=80=9D =
had the higher priority than "drop unknown frame".


> Cory Benfield <cory@lukasa.co.uk> =E6=96=BC 2017=E5=B9=B41=E6=9C=8821=E6=
=97=A5 =E4=B8=8B=E5=8D=889:50 =E5=AF=AB=E9=81=93=EF=BC=9A
>=20
>=20
>> On 21 Jan 2017, at 08:22, Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com =
<mailto:tatsuhiro.t@gmail.com>> wrote:
>>=20
>> =E2=80=8BMy understanding is that unknown frame type must be ignored =
except for those which are received in the middle of header block.   The =
unknown frame type appearing in the middle of header block must be =
treated as connection error.
>=20
> This is correct. A header block must always be a HEADERS frame, =
followed by zero or more CONTINUATION frames until one of these frames =
is marked with the END_HEADERS. If an unknown frame appears in that =
sequence, that violates the HEADERS rules, and so is a connection error.
>=20
> Cory


--Apple-Mail=_A65A9CFD-AE9C-4106-83A3-428E8DEE66A5
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D""><div class=3D"">Hi Cory and Tatshuhiro,</div><div =
class=3D""><br class=3D""></div><div class=3D"">Thanks for your detailed =
and clear explanation!</div><div class=3D"">So the rule =E2=80=9Cnever =
contains other frame in header blocks=E2=80=9D had the higher priority =
than "drop unknown frame".</div><div class=3D""><br class=3D""></div><br =
class=3D""><div><blockquote type=3D"cite" class=3D""><div class=3D"">Cory =
Benfield &lt;<a href=3D"mailto:cory@lukasa.co.uk" =
class=3D"">cory@lukasa.co.uk</a>&gt; =E6=96=BC 2017=E5=B9=B41=E6=9C=8821=E6=
=97=A5 =E4=B8=8B=E5=8D=889:50 =E5=AF=AB=E9=81=93=EF=BC=9A</div><br =
class=3D"Apple-interchange-newline"><div class=3D""><meta =
http-equiv=3D"Content-Type" content=3D"text/html charset=3Dutf-8" =
class=3D""><div style=3D"word-wrap: break-word; -webkit-nbsp-mode: =
space; -webkit-line-break: after-white-space;" class=3D""><br =
class=3D""><div class=3D""><blockquote type=3D"cite" class=3D""><div =
class=3D"">On 21 Jan 2017, at 08:22, Tatsuhiro Tsujikawa &lt;<a =
href=3D"mailto:tatsuhiro.t@gmail.com" =
class=3D"">tatsuhiro.t@gmail.com</a>&gt; wrote:</div><div class=3D""><div =
dir=3D"ltr" style=3D"font-family: Helvetica; font-size: 12px; =
font-style: normal; font-variant-caps: normal; font-weight: normal; =
letter-spacing: normal; orphans: auto; text-align: start; text-indent: =
0px; text-transform: none; white-space: normal; widows: auto; =
word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=3D""><div =
class=3D"gmail_extra"><div class=3D"gmail_quote"><div class=3D""><br =
class=3D""><div class=3D"gmail_default" style=3D"font-family: arial, =
helvetica, sans-serif; font-size: small;">=E2=80=8BMy understanding is =
that unknown frame type must be ignored except for those which are =
received in the middle of header block.&nbsp;&nbsp; The unknown frame =
type appearing in the middle of header block must be treated as =
connection error.<br =
class=3D""></div></div></div></div></div></div></blockquote></div><br =
class=3D""><div class=3D"">This is correct. A header block must always =
be a HEADERS frame, followed by zero or more CONTINUATION frames until =
one of these frames is marked with the END_HEADERS. If an unknown frame =
appears in that sequence, that violates the HEADERS rules, and so is a =
connection error.</div><div class=3D""><br class=3D""></div><div =
class=3D"">Cory</div></div></div></blockquote></div><br =
class=3D""></body></html>=

--Apple-Mail=_A65A9CFD-AE9C-4106-83A3-428E8DEE66A5--


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Sun Jan 22 18:52:48 2017
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 635B8129531 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 22 Jan 2017 18:52:48 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.793
X-Spam-Level:
X-Spam-Status: No, score=-8.793 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TRACKER_ID=1.306] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=teamtelstra.onmicrosoft.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 2sBb8SEfNn5V for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 22 Jan 2017 18:52:46 -0800 (PST)
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 2DBC1129575 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sun, 22 Jan 2017 18:52:45 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cVUgd-0008SP-Ph for ietf-http-wg-dist@listhub.w3.org; Mon, 23 Jan 2017 02:48:51 +0000
Resent-Date: Mon, 23 Jan 2017 02:48:51 +0000
Resent-Message-Id: <E1cVUgd-0008SP-Ph@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <James.H.Manger@team.telstra.com>) id 1cVUgX-0008RZ-Ta for ietf-http-wg@listhub.w3.org; Mon, 23 Jan 2017 02:48:45 +0000
Received: from ipxcvo.tcif.telstra.com.au ([203.35.135.208]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <James.H.Manger@team.telstra.com>) id 1cVUgQ-0002he-7h for ietf-http-wg@w3.org; Mon, 23 Jan 2017 02:48:40 +0000
X-IronPort-AV: E=Sophos;i="5.33,272,1477918800";  d="scan'208,217";a="20334565"
Received: from unknown (HELO ipcavi.tcif.telstra.com.au) ([10.97.217.200]) by ipocvi.tcif.telstra.com.au with ESMTP; 23 Jan 2017 13:48:05 +1100
X-IronPort-AV: E=McAfee;i="5700,7163,8416"; a="383131979"
Received: from wsmsg3755.srv.dir.telstra.com ([172.49.40.196]) by ipcavi.tcif.telstra.com.au with ESMTP; 23 Jan 2017 13:48:05 +1100
Received: from wsapp5863.srv.dir.telstra.com (10.75.131.32) by wsmsg3755.srv.dir.telstra.com (172.49.40.196) with Microsoft SMTP Server (TLS) id 8.3.485.1; Mon, 23 Jan 2017 13:48:04 +1100
Received: from wsapp5585.srv.dir.telstra.com (10.75.3.67) by wsapp5863.srv.dir.telstra.com (10.75.131.32) with Microsoft SMTP Server (TLS) id 15.0.1236.3; Mon, 23 Jan 2017 13:48:03 +1100
Received: from AUS01-SY3-obe.outbound.protection.outlook.com (10.172.101.126) by wsapp5585.srv.dir.telstra.com (10.75.3.67) with Microsoft SMTP Server (TLS) id 15.0.1236.3 via Frontend Transport; Mon, 23 Jan 2017 13:48:03 +1100
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=teamtelstra.onmicrosoft.com; s=selector1-team-telstra-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=ysTdghYOWHhNdcR8++OfNZQX0N/d0b86mI4T0gXfjS4=; b=tacGfCg0EkOjNR6R2IlamPJIyiLPpcn8uZyxqhxTIDsdNT7PWwd8Yvb40sjjQAb9PCdOpv4ZeikYx1VTuma4LMme8MCdAeV1s9ThBMMQT4bIZTqvL7lDUSK9X/o2crDcJHVi4iSU0MeqNVUnSUZOjDDyvQq7LubXjevxL4QxHRs=
Received: from SYXPR01MB1615.ausprd01.prod.outlook.com (10.175.209.15) by SYXPR01MB1613.ausprd01.prod.outlook.com (10.175.209.13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.860.13; Mon, 23 Jan 2017 02:48:02 +0000
Received: from SYXPR01MB1615.ausprd01.prod.outlook.com ([10.175.209.15]) by SYXPR01MB1615.ausprd01.prod.outlook.com ([10.175.209.15]) with mapi id 15.01.0860.021; Mon, 23 Jan 2017 02:48:03 +0000
From: "Manger, James" <James.H.Manger@team.telstra.com>
To: "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
Thread-Topic: aes128gcm: vulnerable to truncation attacks
Thread-Index: AdJ1HoQK8Yqsd9ulSaycdXGhz74bdQ==
Date: Mon, 23 Jan 2017 02:48:03 +0000
Message-ID: <SYXPR01MB16150B64E1F19E560321ACDFE5720@SYXPR01MB1615.ausprd01.prod.outlook.com>
Accept-Language: en-AU, en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=James.H.Manger@team.telstra.com; 
x-originating-ip: [203.41.142.244]
x-ms-office365-filtering-correlation-id: 1da3ee0e-df1e-4cc0-cd44-08d4433a4052
x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:SYXPR01MB1613;
x-microsoft-exchange-diagnostics: 1;SYXPR01MB1613;7:mwO/9Wk1bXyFXwdrHTv4FgvEmlSgOn3P1KsgnZKycw0xBoWTSVvn6YFwGS6OGpnngRcUP8dJb3kRJkIgf534NvwrrAcz2DuXhwF5md5T97/aTVhjnJuI8PVvL+XNndrCARC8iL+0bLg/iADLI0olhwZIAqj2nzE/UKLh9zV6Ub9KZIVgADXyi8h2ZspP/Y5bYOA067mH++Fs3SE4y7cLagHJdhYYTon6nCcwpWPwZQCI37ECNP6NU+vW1PDUKR0oAA2DY92i8UgQUHjkmJjzVysrKWoZHsfXhswSKF+ias6whqRsLCWJZbr+5Wtur7rqIq0QYuSK46Bh5oIUbrC4p5G18ejXBvF+DG2Kf7BcQYsW8JVsEqpG07hLNncY1lcyjxkhSY06LRlighL69d+c3dHxQvWXr6Zz8n7JBHBcj267z1NxW+4z/0ghWymD8v3snOPTYzZgsql9pLaAN+kziw==
x-microsoft-antispam-prvs: <SYXPR01MB1613938F5C6DB2F6D3B02E67E5720@SYXPR01MB1613.ausprd01.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(21748063052155);
x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040375)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6041248)(20161123560025)(20161123562025)(20161123555025)(20161123564025)(6072148);SRVR:SYXPR01MB1613;BCL:0;PCL:0;RULEID:;SRVR:SYXPR01MB1613;
x-forefront-prvs: 0196A226D1
x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(7916002)(39450400003)(189002)(199003)(92566002)(8936002)(66066001)(81166006)(33656002)(110136003)(97736004)(7696004)(2900100001)(8676002)(6916009)(7736002)(5660300001)(6116002)(790700001)(575784001)(42882006)(102836003)(122556002)(3660700001)(86362001)(3846002)(81156014)(107886002)(5640700003)(25786008)(2906002)(101416001)(53936002)(2501003)(6436002)(77096006)(450100001)(3280700002)(74316002)(105586002)(6306002)(106356001)(6506006)(55016002)(189998001)(50986999)(38730400001)(9686003)(68736007)(54356999)(5630700001)(99286003)(54896002)(2351001);DIR:OUT;SFP:1102;SCL:1;SRVR:SYXPR01MB1613;H:SYXPR01MB1615.ausprd01.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:0;LANG:en;
received-spf: None (protection.outlook.com: team.telstra.com does not designate permitted sender hosts)
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/alternative; boundary="_000_SYXPR01MB16150B64E1F19E560321ACDFE5720SYXPR01MB1615ausp_"
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Jan 2017 02:48:03.0853 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 49dfc6a3-5fb7-49f4-adea-c54e725bb854
X-MS-Exchange-Transport-CrossTenantHeadersStamped: SYXPR01MB1613
X-OriginatorOrg: team.telstra.com
Received-SPF: none client-ip=203.35.135.208; envelope-from=James.H.Manger@team.telstra.com; helo=ipxcvo.tcif.telstra.com.au
X-W3C-Hub-Spam-Status: No, score=-0.8
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, TRACKER_ID=1.306, W3C_NW=0.5
X-W3C-Scan-Sig: mimas.w3.org 1cVUgQ-0002he-7h 89056555d253ac22bdd6cb23b613cd34
X-Original-To: ietf-http-wg@w3.org
Subject: aes128gcm: vulnerable to truncation attacks
Archived-At: <http://www.w3.org/mid/SYXPR01MB16150B64E1F19E560321ACDFE5720@SYXPR01MB1615.ausprd01.prod.outlook.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33354
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>

--_000_SYXPR01MB16150B64E1F19E560321ACDFE5720SYXPR01MB1615ausp_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

There is a serious flaw in aes128gcm that allows a message to be truncated =
while authenticated decryption still succeeds.

aes128gcm produces 1 or more AEAD records, where all but the last match the=
 given record size. This allows you to authenticate the end of the stream w=
hen you receive at least 2 records. But if you only receive 1 record you ca=
nnot tell if you have a complete message or a truncated message with a tamp=
ered record size.

The problem is that the record size in the header is not authenticated.

For example, the "Encryption with Multiple Records" example in the spec con=
sists of the following ciphertext (in base64url), which decrypted to "I am =
the walrus":

uNCkWiNYzKTnBN9ji3-qWAAAABoCYTGHOqYFz-0in3dpb-VE2GfBngkaPy6bZus_
qLF79s6zQyTSsA0iLOKyd3JqVIwprNzVatRCWZGUx_qsFbJBCQu62RqQuR2d

Truncating this ciphertext after the 1st record, and increasing the record =
size field in the header from 26 to 27 gives:

uNCkWiNYzKTnBN9ji3-qWAAAABsCYTGHOqYFz-0in3dpb-VE2GfBngkaPy6bZus_qA

This successfully decrypts to "I am th". It needs to fail, either with an a=
uthentication failure or a premature end failure.


Suggestion: include the record size in the derivation of the key and nonces=
.
Passing the 20 bytes <16-byte salt><4-byte records size> as the 'salt' para=
meter of the HKDF Extract call might work. Though putting including the rec=
ord size in the cek_info and nonce_info values that are fed to HKDF Expand =
calls might be even better.

--
James Manger

--_000_SYXPR01MB16150B64E1F19E560321ACDFE5720SYXPR01MB1615ausp_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri",sans-serif;
	mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:#0563C1;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:#954F72;
	text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
	{mso-style-priority:34;
	margin-top:0cm;
	margin-right:0cm;
	margin-bottom:0cm;
	margin-left:36.0pt;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri",sans-serif;
	mso-fareast-language:EN-US;}
span.EmailStyle18
	{mso-style-type:personal;
	font-family:"Calibri",sans-serif;
	color:windowtext;}
span.EmailStyle19
	{mso-style-type:personal;
	font-family:"Calibri",sans-serif;
	color:#1F497D;}
span.EmailStyle20
	{mso-style-type:personal-compose;
	font-family:"Calibri",sans-serif;
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-size:10.0pt;}
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
	{page:WordSection1;}
/* List Definitions */
@list l0
	{mso-list-id:270941196;
	mso-list-type:hybrid;
	mso-list-template-ids:-1052215282 201916431 201916441 201916443 201916431 =
201916441 201916443 201916431 201916441 201916443;}
@list l0:level1
	{mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-18.0pt;}
@list l0:level2
	{mso-level-number-format:alpha-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-18.0pt;}
@list l0:level3
	{mso-level-number-format:roman-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:right;
	text-indent:-9.0pt;}
@list l0:level4
	{mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-18.0pt;}
@list l0:level5
	{mso-level-number-format:alpha-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-18.0pt;}
@list l0:level6
	{mso-level-number-format:roman-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:right;
	text-indent:-9.0pt;}
@list l0:level7
	{mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-18.0pt;}
@list l0:level8
	{mso-level-number-format:alpha-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-18.0pt;}
@list l0:level9
	{mso-level-number-format:roman-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:right;
	text-indent:-9.0pt;}
ol
	{margin-bottom:0cm;}
ul
	{margin-bottom:0cm;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"EN-AU" link=3D"#0563C1" vlink=3D"#954F72">
<div class=3D"WordSection1">
<p class=3D"MsoNormal">There is a serious flaw in aes128gcm that allows a m=
essage to be truncated while authenticated decryption still succeeds.<o:p><=
/o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">aes128gcm produces 1 or more AEAD records, where all=
 but the last match the given record size. This allows you to authenticate =
the end of the stream when you receive at least 2 records. But if you only =
receive 1 record you cannot tell if
 you have a complete message or a truncated message with a tampered record =
size.<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">The problem is that the record size in the header is=
 not authenticated.<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">For example, the &#8220;Encryption with Multiple Rec=
ords&#8221; example in the spec consists of the following ciphertext (in ba=
se64url), which decrypted to &#8220;I am the walrus&#8221;:<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">uNCkWiNYzKTnBN9ji3-qWAAAABoCYTGHOqYFz-0in3dpb-VE2GfB=
ngkaPy6bZus_<o:p></o:p></p>
<p class=3D"MsoNormal">qLF79s6zQyTSsA0iLOKyd3JqVIwprNzVatRCWZGUx_qsFbJBCQu6=
2RqQuR2d<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">Truncating this ciphertext after the 1<sup>st</sup> =
record, and increasing the record size field in the header from 26 to 27 gi=
ves:<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">uNCkWiNYzKTnBN9ji3-qWAAAAB<span style=3D"color:red">=
s</span>CYTGHOqYFz-0in3dpb-VE2GfBngkaPy6bZus_qA<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">This successfully decrypts to &#8220;I am th&#8221;.=
 It needs to fail, either with an authentication failure or a premature end=
 failure.<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">Suggestion: include the record size in the derivatio=
n of the key and nonces.<o:p></o:p></p>
<p class=3D"MsoNormal">Passing the 20 bytes &lt;16-byte salt&gt;&lt;4-byte =
records size&gt; as the &#8216;salt&#8217; parameter of the HKDF Extract ca=
ll might work. Though putting including the record size in the cek_info and=
 nonce_info values that are fed to HKDF Expand calls might
 be even better.<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">--<o:p></o:p></p>
<p class=3D"MsoNormal">James Manger<o:p></o:p></p>
</div>
</body>
</html>

--_000_SYXPR01MB16150B64E1F19E560321ACDFE5720SYXPR01MB1615ausp_--


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Sun Jan 22 20:33:17 2017
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 B2151129AC6 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 22 Jan 2017 20:33:17 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.1
X-Spam-Level:
X-Spam-Status: No, score=-10.1 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=teamtelstra.onmicrosoft.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 YTwdfB0KqhGN for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 22 Jan 2017 20:33:16 -0800 (PST)
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 41592129496 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sun, 22 Jan 2017 20:33:15 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cVWGQ-0003vr-LG for ietf-http-wg-dist@listhub.w3.org; Mon, 23 Jan 2017 04:29:54 +0000
Resent-Date: Mon, 23 Jan 2017 04:29:54 +0000
Resent-Message-Id: <E1cVWGQ-0003vr-LG@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <James.H.Manger@team.telstra.com>) id 1cVWGI-0003tB-R1 for ietf-http-wg@listhub.w3.org; Mon, 23 Jan 2017 04:29:46 +0000
Received: from ipxcno.tcif.telstra.com.au ([203.35.82.208]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <James.H.Manger@team.telstra.com>) id 1cVWG2-0006RX-NG for ietf-http-wg@w3.org; Mon, 23 Jan 2017 04:29:41 +0000
X-IronPort-AV: E=Sophos;i="5.33,272,1477918800";  d="scan'208";a="18490358"
Received: from unknown (HELO ipcbni.tcif.telstra.com.au) ([10.97.216.204]) by ipocni.tcif.telstra.com.au with ESMTP; 23 Jan 2017 15:28:57 +1100
X-IronPort-AV: E=McAfee;i="5700,7163,8416"; a="287821958"
Received: from wsmsg3753.srv.dir.telstra.com ([172.49.40.174]) by ipcbni.tcif.telstra.com.au with ESMTP; 23 Jan 2017 15:28:57 +1100
Received: from wsapp5585.srv.dir.telstra.com (10.75.3.67) by WSMSG3753.srv.dir.telstra.com (172.49.40.174) with Microsoft SMTP Server (TLS) id 8.3.485.1; Mon, 23 Jan 2017 15:28:57 +1100
Received: from wsapp5585.srv.dir.telstra.com (10.75.3.67) by wsapp5585.srv.dir.telstra.com (10.75.3.67) with Microsoft SMTP Server (TLS) id 15.0.1236.3; Mon, 23 Jan 2017 15:28:56 +1100
Received: from AUS01-SY3-obe.outbound.protection.outlook.com (10.172.229.126) by wsapp5585.srv.dir.telstra.com (10.75.3.67) with Microsoft SMTP Server (TLS) id 15.0.1236.3 via Frontend Transport; Mon, 23 Jan 2017 15:28:56 +1100
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=teamtelstra.onmicrosoft.com; s=selector1-team-telstra-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=G7CJMbV/tF3m+H0kJFmC+eRSVrBfkqaAnCTye71wRO4=; b=NzM/GH0V28gHpNBjL92JFLz3Zu3ZNko8hBVw8KmMsgceWvEVLkCRR5uMkzSnH1o7GQlnRUlVMY9fKsQ61ceSv64BH530Xs3QN3H46NsOrNWIqC1SSMLGTtcuWS5tx2Fz53jaMi7FktDidrBRbmWMsFwDb9atohstW2ISdR2GCL4=
Received: from SYXPR01MB1615.ausprd01.prod.outlook.com (10.175.209.15) by SYXPR01MB1615.ausprd01.prod.outlook.com (10.175.209.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.860.13; Mon, 23 Jan 2017 04:28:55 +0000
Received: from SYXPR01MB1615.ausprd01.prod.outlook.com ([10.175.209.15]) by SYXPR01MB1615.ausprd01.prod.outlook.com ([10.175.209.15]) with mapi id 15.01.0860.021; Mon, 23 Jan 2017 04:28:55 +0000
From: "Manger, James" <James.H.Manger@team.telstra.com>
To: Martin Thomson <martin.thomson@gmail.com>
CC: "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
Thread-Topic: aes128gcm: why verify padding?
Thread-Index: AdJvg9D1nChV1RXVTGiVAO+6sRrzlwADDv6AAAAcAeAADb7rAAFW7FVw
Date: Mon, 23 Jan 2017 04:28:55 +0000
Message-ID: <SYXPR01MB1615DD56268D7EF9929F3DBFE5720@SYXPR01MB1615.ausprd01.prod.outlook.com>
References: <SYXPR01MB161520224A59CDCE0D433A2CE57A0@SYXPR01MB1615.ausprd01.prod.outlook.com> <CABkgnnUo-tf69AzJC=OUy2rjDZwedTd5Ua9mhOiJBqaA0VKrYw@mail.gmail.com> <SYXPR01MB16150F4D3D19CC69D18E1A09E57D0@SYXPR01MB1615.ausprd01.prod.outlook.com> <CABkgnnV_OatRWyZBE3Rak22gS1jrOZKjCGwOePpbqJCAeJFM4Q@mail.gmail.com>
In-Reply-To: <CABkgnnV_OatRWyZBE3Rak22gS1jrOZKjCGwOePpbqJCAeJFM4Q@mail.gmail.com>
Accept-Language: en-AU, en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=James.H.Manger@team.telstra.com; 
x-originating-ip: [203.41.142.244]
x-ms-office365-filtering-correlation-id: 32bfc4ec-6c0f-4720-1c56-08d4434857b9
x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:SYXPR01MB1615;
x-microsoft-exchange-diagnostics: 1;SYXPR01MB1615;7:WofRkTuZNF8CZ+fh7w3CTMpQZCNWeXWGiiOjt4wTiLO/8szbdvv8/YX3l62CvcSnm2x7ulJ7a//RK7X9kIjvLT8ZGJ49T6R2WRTyMYK4XXQXQoiovEMihjs5XFI70oSVFp6mGAu73s23Rmcnl/f/Q3meF3IsCQ+lzd+BkmaJHBIcGJ5/jr+Akm/8m4sYsvKCmAooR7jZUIKeQFrbxCkQevLZv+skfXA03FLg+fT6mjnkWCtdV/2mTjn3P0oTaxUOM0PW7r4cOs6XTGkp53DarVsGBqWXAsCNYWB3R6wjB+JhXOg6lSmXHMT2aeYbiXpgriG1a4Wt5e3tqIM3BmL+QMsXFuq/Mpf9mtHbkwwi9ylaTJ9qh7Rl4lqHzCCpYC51kzmcQTEcdS5gnk9pmJcNd2mBT3qpJuYTJ8M7ngH9bI9HL9Bfl8qN1/d5xiZT2z7R1mvmgufnpZUeXdqc7j2y3A==
x-microsoft-antispam-prvs: <SYXPR01MB16155654E80956F329A4AFF3E5720@SYXPR01MB1615.ausprd01.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(272811157607776)(67441168502697);
x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040375)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6041248)(20161123562025)(20161123555025)(20161123564025)(20161123560025)(6072148);SRVR:SYXPR01MB1615;BCL:0;PCL:0;RULEID:;SRVR:SYXPR01MB1615;
x-forefront-prvs: 0196A226D1
x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(7916002)(39450400003)(189002)(13464003)(24454002)(377454003)(199003)(9686003)(99286003)(55016002)(3660700001)(15650500001)(6506006)(6436002)(68736007)(25786008)(3280700002)(8936002)(5660300001)(305945005)(106356001)(105586002)(8676002)(81166006)(81156014)(74316002)(97736004)(53936002)(110136003)(66066001)(54356999)(93886004)(2906002)(38730400001)(7696004)(101416001)(122556002)(7736002)(76176999)(33656002)(86362001)(189998001)(92566002)(42882006)(2950100002)(50986999)(2900100001)(39060400001)(3846002)(229853002)(102836003)(6916009)(6116002)(4326007)(77096006);DIR:OUT;SFP:1102;SCL:1;SRVR:SYXPR01MB1615;H:SYXPR01MB1615.ausprd01.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:0;LANG:en;
received-spf: None (protection.outlook.com: team.telstra.com does not designate permitted sender hosts)
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Jan 2017 04:28:55.1985 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 49dfc6a3-5fb7-49f4-adea-c54e725bb854
X-MS-Exchange-Transport-CrossTenantHeadersStamped: SYXPR01MB1615
X-OriginatorOrg: team.telstra.com
Received-SPF: none client-ip=203.35.82.208; envelope-from=James.H.Manger@team.telstra.com; helo=ipxcno.tcif.telstra.com.au
X-W3C-Hub-Spam-Status: No, score=-2.1
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7, W3C_NW=0.5
X-W3C-Scan-Sig: titan.w3.org 1cVWG2-0006RX-NG 8c072db63a75a4748bdde56707056f46
X-Original-To: ietf-http-wg@w3.org
Subject: RE: aes128gcm: why verify padding?
Archived-At: <http://www.w3.org/mid/SYXPR01MB1615DD56268D7EF9929F3DBFE5720@SYXPR01MB1615.ausprd01.prod.outlook.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33355
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>

QWZ0ZXIgaW1wbGVtZW50aW5nIGFlczEyOGdjbSBJIGhhdmUgYW5vdGhlciByZWFzb24gdG8gYWRq
dXN0IHRoZSBwYWRkaW5nIHNjaGVtZS4NClB1dHRpbmcgdGhlIGNvbnRlbnQgZmlyc3QsIGJlZm9y
ZSB0aGUgcGFkZGluZyAod2hhdGV2ZXIgZm9ybWF0KSwgd2lsbCBzYXZlIG1vdmluZyB0aGUgY29u
dGVudCBhZnRlciBkZWNyeXB0aW9uIGluIHNvbWUgKHR5cGljYWw/KSBpbXBsZW1lbnRhdGlvbnMu
IEEgRGVjcnlwdCBBUEkgd2lsbCB0eXBpY2FsbHkgZXhwZWN0IHRoZSBjb250ZW50IHRvIGJlIGF0
IHRoZSBzdGFydCBvZiBhIGdpdmVuIGJ1ZmZlci4gRm9yIGluc3RhbmNlLCBteSBpbXBsZW1lbnRh
dGlvbiBkZWNyeXB0cyB0byBhIGdpdmVuIGJ1ZmZlciwgYnV0IGR1ZSB0byB0aGUgY3VycmVudCBw
YWRkaW5nIHNjaGVtZSAoPHBhZGxlbj48cGFkZGluZz48Y29udGVudD4pIHRoZW4gbmVlZHMgdG8g
Y29weSB0aGUgZGF0YSB0byB0aGUgc3RhcnQgb2YgdGhlIGJ1ZmZlciAoc2hpZnRpbmcgaXQgMiBi
eXRlcyBiYWNrd2FyZHMgaW4gdHlwaWNhbCBuby1wYWRkaW5nIHNpdHVhdGlvbnMpLiBJZiwgaW5z
dGVhZCwgdGhlIGNvbnRlbnQgY2FtZSBmaXJzdCB0aGVuIHRoZSBkYXRhIHdvdWxkbid0IG5lZWQg
dG8gYmUgbW92ZWQuDQoNCg0KU28gSSB3b3VsZCBzdXBwb3J0IGEgcGFkZGluZyBzY2hlbWUgc2lt
aWxhciB0byBUTFMgMS4zOiA8Y29udGVudD48bm9uLXplcm8gYnl0ZT48emVyb3PigKY+Lg0KDQot
LQ0KSmFtZXMgTWFuZ2VyDQoNCi0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQpGcm9tOiBNYXJ0
aW4gVGhvbXNvbiBbbWFpbHRvOm1hcnRpbi50aG9tc29uQGdtYWlsLmNvbV0gDQpTZW50OiBNb25k
YXksIDE2IEphbnVhcnkgMjAxNyA2OjA5IFBNDQpUbzogTWFuZ2VyLCBKYW1lcyA8SmFtZXMuSC5N
YW5nZXJAdGVhbS50ZWxzdHJhLmNvbT4NCkNjOiBpZXRmLWh0dHAtd2dAdzMub3JnDQpTdWJqZWN0
OiBSZTogYWVzMTI4Z2NtOiB3aHkgdmVyaWZ5IHBhZGRpbmc/DQoNCk9uIDE2IEphbnVhcnkgMjAx
NyBhdCAxNDowNiwgTWFuZ2VyLCBKYW1lcw0KPEphbWVzLkguTWFuZ2VyQHRlYW0udGVsc3RyYS5j
b20+IHdyb3RlOg0KPiBJbXByb3ZlbWVudCAyIGlzIGFjdHVhbGx5IG11Y2ggYmV0dGVyIGZvciB0
aGlzLiBUaGUgImludGVybmFsIiBsZW5ndGggKHBhZGRpbmcgbGVuZ3RoKSBpcyBjYWxjdWxhdGVk
IG1vZCAoZXh0ZXJuYWwgbGVuZ3RoIC0gMikgc28gaXQgY2FuIG5ldmVyIGJlIHRvbyBsYXJnZS4N
Cg0KQSBiZXR0ZXIgc2NoZW1lIHdvdWxkIGJlIHRvIHBhZCB3aXRoIGFuIGFyYml0cmFyeSBudW1i
ZXIgb2YgemVyb2VzLA0KdGhlbiBhIHRlcm1pbmFsIG5vbi16ZXJvIHZhbHVlLiAgVGhhdCBjb3Vs
ZCBiZSBhdCB0aGUgZW5kLCBsaWtlIGluDQpUTFMuICBJdCBhbHNvIGFsbG93cyBmb3IgbG93ZXIg
b3ZlcmhlYWQgYW5kIGFyYml0cmFyeSBhbW91bnRzIG9mDQpwYWRkaW5nLg0KDQpCdXQgSSdkIGxp
a2UgdG8gaGVhciB3aGV0aGVyIG90aGVyIHBlb3BsZSB0aGluayB0aGF0IHRoaXMgaXMgd29ydGgg
Zml4aW5nLg0K


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Sun Jan 22 23:40:41 2017
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 0042B12949E for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 22 Jan 2017 23:40:41 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.753
X-Spam-Level:
X-Spam-Status: No, score=-8.753 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_BL_SPAMCOP_NET=1.347, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 D41M-7UkkaHD for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 22 Jan 2017 23:40:39 -0800 (PST)
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 5DEB7129458 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sun, 22 Jan 2017 23:40:39 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cVZBb-0006Dn-BW for ietf-http-wg-dist@listhub.w3.org; Mon, 23 Jan 2017 07:37:07 +0000
Resent-Date: Mon, 23 Jan 2017 07:37:07 +0000
Resent-Message-Id: <E1cVZBb-0006Dn-BW@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <ilariliusvaara@welho.com>) id 1cVZBV-0005Al-7b for ietf-http-wg@listhub.w3.org; Mon, 23 Jan 2017 07:37:01 +0000
Received: from welho-filter3.welho.com ([83.102.41.25]) by titan.w3.org with esmtp (Exim 4.84_2) (envelope-from <ilariliusvaara@welho.com>) id 1cVZBN-0002XR-N1 for ietf-http-wg@w3.org; Mon, 23 Jan 2017 07:36:56 +0000
Received: from localhost (localhost [127.0.0.1]) by welho-filter3.welho.com (Postfix) with ESMTP id 384F31F07A; Mon, 23 Jan 2017 09:36:26 +0200 (EET)
X-Virus-Scanned: Debian amavisd-new at pp.htv.fi
Received: from welho-smtp2.welho.com ([IPv6:::ffff:83.102.41.85]) by localhost (welho-filter3.welho.com [::ffff:83.102.41.25]) (amavisd-new, port 10024) with ESMTP id sSr583l2NLYw; Mon, 23 Jan 2017 09:36:25 +0200 (EET)
Received: from LK-Perkele-V2 (87-92-51-204.bb.dnainternet.fi [87.92.51.204]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by welho-smtp2.welho.com (Postfix) with ESMTPSA id D96ED21C; Mon, 23 Jan 2017 09:36:25 +0200 (EET)
Date: Mon, 23 Jan 2017 09:36:23 +0200
From: Ilari Liusvaara <ilariliusvaara@welho.com>
To: "Manger, James" <James.H.Manger@team.telstra.com>
Cc: Martin Thomson <martin.thomson@gmail.com>, "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
Message-ID: <20170123073623.GA28101@LK-Perkele-V2.elisa-laajakaista.fi>
References: <SYXPR01MB161520224A59CDCE0D433A2CE57A0@SYXPR01MB1615.ausprd01.prod.outlook.com> <CABkgnnUo-tf69AzJC=OUy2rjDZwedTd5Ua9mhOiJBqaA0VKrYw@mail.gmail.com> <SYXPR01MB16150F4D3D19CC69D18E1A09E57D0@SYXPR01MB1615.ausprd01.prod.outlook.com> <CABkgnnV_OatRWyZBE3Rak22gS1jrOZKjCGwOePpbqJCAeJFM4Q@mail.gmail.com> <SYXPR01MB1615DD56268D7EF9929F3DBFE5720@SYXPR01MB1615.ausprd01.prod.outlook.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <SYXPR01MB1615DD56268D7EF9929F3DBFE5720@SYXPR01MB1615.ausprd01.prod.outlook.com>
User-Agent: Mutt/1.5.23 (2014-03-12)
Sender: ilariliusvaara@welho.com
Received-SPF: none client-ip=83.102.41.25; envelope-from=ilariliusvaara@welho.com; helo=welho-filter3.welho.com
X-W3C-Hub-Spam-Status: No, score=-2.5
X-W3C-Hub-Spam-Report: AWL=0.576, BAYES_00=-1.9, RCVD_IN_BL_SPAMCOP_NET=1.347, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_PSBL=2.7, RP_MATCHES_RCVD=-3.199, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1cVZBN-0002XR-N1 b1c8fb82784b3f6605b32201c4c63ccb
X-Original-To: ietf-http-wg@w3.org
Subject: Re: aes128gcm: why verify padding?
Archived-At: <http://www.w3.org/mid/20170123073623.GA28101@LK-Perkele-V2.elisa-laajakaista.fi>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33356
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 Mon, Jan 23, 2017 at 04:28:55AM +0000, Manger, James wrote:
> After implementing aes128gcm I have another reason to adjust the
> padding scheme. Putting the content first, before the padding
> (whatever format), will save moving the content after decryption
> in some (typical?) implementations. A Decrypt API will typically
> expect the content to be at the start of a given buffer. For
> instance, my implementation decrypts to a given buffer, but due
> to the current padding scheme (<padlen><padding><content>) then
> needs to copy the data to the start of the buffer (shifting it 2
> bytes backwards in typical no-padding situations). If, instead,
> the content came first then the data wouldn't need to be moved.
> 
> 
> So I would support a padding scheme similar to TLS 1.3:
> <content><non-zero byte><zeros…>.

Furthermore, if the nonzero byte was 0x01 for non-final blocks and
0x81 for final block (or any two different nonzero values), then
that would also solve the truncation flaw from last message, no?

And while we are at breaking things, it would be good time to make
rs count ciphertext, not plaintext, right?



-Ilari


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Mon Jan 23 04:52:02 2017
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 6215D1295F1 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 23 Jan 2017 04:52:02 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.1
X-Spam-Level:
X-Spam-Status: No, score=-10.1 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=teamtelstra.onmicrosoft.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 IrCTSuIh9sSo for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 23 Jan 2017 04:51:59 -0800 (PST)
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 D38CA1295F6 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 23 Jan 2017 04:51:59 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cVe2t-0004lb-1k for ietf-http-wg-dist@listhub.w3.org; Mon, 23 Jan 2017 12:48:27 +0000
Resent-Date: Mon, 23 Jan 2017 12:48:27 +0000
Resent-Message-Id: <E1cVe2t-0004lb-1k@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <James.H.Manger@team.telstra.com>) id 1cVe2n-0004k2-9x for ietf-http-wg@listhub.w3.org; Mon, 23 Jan 2017 12:48:21 +0000
Received: from ipxcvo.tcif.telstra.com.au ([203.35.135.208]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <James.H.Manger@team.telstra.com>) id 1cVe2f-0003jp-76 for ietf-http-wg@w3.org; Mon, 23 Jan 2017 12:48:15 +0000
X-IronPort-AV: E=Sophos;i="5.33,274,1477918800";  d="scan'208";a="20431846"
Received: from unknown (HELO ipcavi.tcif.telstra.com.au) ([10.97.217.200]) by ipocvi.tcif.telstra.com.au with ESMTP; 23 Jan 2017 23:47:39 +1100
X-IronPort-AV: E=McAfee;i="5700,7163,8416"; a="383415015"
Received: from wsmsg3702.srv.dir.telstra.com ([172.49.40.170]) by ipcavi.tcif.telstra.com.au with ESMTP; 23 Jan 2017 23:47:39 +1100
Received: from wsapp5871.srv.dir.telstra.com (10.75.139.13) by wsmsg3702.srv.dir.telstra.com (172.49.40.170) with Microsoft SMTP Server (TLS) id 8.3.485.1; Mon, 23 Jan 2017 23:47:39 +1100
Received: from wsapp5584.srv.dir.telstra.com (10.75.131.20) by wsapp5871.srv.dir.telstra.com (10.75.139.13) with Microsoft SMTP Server (TLS) id 15.0.1236.3; Mon, 23 Jan 2017 23:47:38 +1100
Received: from AUS01-ME1-obe.outbound.protection.outlook.com (10.172.101.126) by wsapp5584.srv.dir.telstra.com (10.75.131.20) with Microsoft SMTP Server (TLS) id 15.0.1236.3 via Frontend Transport; Mon, 23 Jan 2017 23:47:38 +1100
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=teamtelstra.onmicrosoft.com; s=selector1-team-telstra-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=dOFe1r7Yp+R5AOvR2WkK5Ml5GW7jtNN/f9Lok/njWzI=; b=B/SLy4NzG0/5/P9aunl1N28y4uOd+nFT07HVL7lTuT2c6taNx3WsdDPfDxhArPGbu/McQFoIxP73TUw8O/wMbVmuog/23dr8PJ4EeNzdPFkKdWN9l36rLpEQZ/eURsgZHFbxlnyMTIhVc07zw/J4Gy6BJ3v1tqKcGZ7zc/zV2/c=
Received: from SYXPR01MB1615.ausprd01.prod.outlook.com (10.175.209.15) by SYXPR01MB1616.ausprd01.prod.outlook.com (10.175.209.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.860.13; Mon, 23 Jan 2017 12:47:37 +0000
Received: from SYXPR01MB1615.ausprd01.prod.outlook.com ([10.175.209.15]) by SYXPR01MB1615.ausprd01.prod.outlook.com ([10.175.209.15]) with mapi id 15.01.0860.021; Mon, 23 Jan 2017 12:47:37 +0000
From: "Manger, James" <James.H.Manger@team.telstra.com>
To: "ilariliusvaara@welho.com" <ilariliusvaara@welho.com>
CC: Martin Thomson <martin.thomson@gmail.com>, "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
Thread-Topic: aes128gcm: why verify padding?
Thread-Index: AdJvg9D1nChV1RXVTGiVAO+6sRrzlwADDv6AAAAcAeAADb7rAAFW7FVwAAoO2IAACMzpgA==
Date: Mon, 23 Jan 2017 12:47:37 +0000
Message-ID: <SYXPR01MB1615798CC057FB3232B2FA4BE5720@SYXPR01MB1615.ausprd01.prod.outlook.com>
References: <SYXPR01MB161520224A59CDCE0D433A2CE57A0@SYXPR01MB1615.ausprd01.prod.outlook.com> <CABkgnnUo-tf69AzJC=OUy2rjDZwedTd5Ua9mhOiJBqaA0VKrYw@mail.gmail.com> <SYXPR01MB16150F4D3D19CC69D18E1A09E57D0@SYXPR01MB1615.ausprd01.prod.outlook.com> <CABkgnnV_OatRWyZBE3Rak22gS1jrOZKjCGwOePpbqJCAeJFM4Q@mail.gmail.com> <SYXPR01MB1615DD56268D7EF9929F3DBFE5720@SYXPR01MB1615.ausprd01.prod.outlook.com> <20170123073623.GA28101@LK-Perkele-V2.elisa-laajakaista.fi>
In-Reply-To: <20170123073623.GA28101@LK-Perkele-V2.elisa-laajakaista.fi>
Accept-Language: en-AU, en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=James.H.Manger@team.telstra.com; 
x-originating-ip: [124.188.240.233]
x-ms-office365-filtering-correlation-id: 4eab2371-22e6-4c3e-5f35-08d4438e028f
x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:SYXPR01MB1616;
x-microsoft-exchange-diagnostics: 1;SYXPR01MB1616;7:GVWcM4WdtYn+L3aeq/FQ1cQwx2/Ph5c3yQWVp4rqo9+KOI1syv0YWUrD9Nupq/fzEecjczqCrLs3LucIT3fLAPchOgwlU0i1Zp7XbFzkSwRaFVz4D08VGuKv+6z2YzdX0wQzLQYBs2rsOGLDf5ZYAKw95GUUA7F/UIZUDbx30T/XlM0OckIKb/LRtbIiRFDZjAayysKCYf+Pc5MYGZddMOU5ftzOsKPRRDqyMmY0t4UZnpZKW1YCFyEHQtQ11R3Wz8JMNuZdn4sSvExtoSo89nJcekxtxN9Aq7a2QzWVwAQvMeNgfnL2lPx+XtlY1+wrUni4TD3d24q94aKZQZr5v15QwTNzJIbNjNqq+zMji1LdPySvr3BENxnloDGhkxyyPQqH5ohOm/+ibeDqFDqbOuHMigqF3vd2xxwRvwbJZFsXSJu8EOcRGw0PECYsZZn2E4qvcndwbz3I38ikABjcnQ==
x-microsoft-antispam-prvs: <SYXPR01MB1616646AA30CAB07ECBE08D8E5720@SYXPR01MB1616.ausprd01.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(166708455590820)(272811157607776)(67441168502697);
x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040375)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6041248)(20161123560025)(20161123562025)(20161123555025)(20161123564025)(6072148)(6042181);SRVR:SYXPR01MB1616;BCL:0;PCL:0;RULEID:;SRVR:SYXPR01MB1616;
x-forefront-prvs: 0196A226D1
x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(7916002)(189002)(199003)(13464003)(24454002)(377454003)(74316002)(305945005)(86362001)(105586002)(7736002)(189998001)(54906002)(25786008)(229853002)(77096006)(39060400001)(97736004)(38730400001)(55016002)(6506006)(6436002)(5640700003)(110136003)(99286003)(6306002)(9686003)(66066001)(2501003)(3280700002)(3846002)(6116002)(2950100002)(2351001)(4326007)(102836003)(42882006)(6916009)(106356001)(7696004)(92566002)(1730700003)(8676002)(33656002)(5660300001)(81156014)(15650500001)(2906002)(81166006)(101416001)(2900100001)(53936002)(68736007)(76176999)(3660700001)(93886004)(122556002)(54356999)(8936002)(50986999);DIR:OUT;SFP:1102;SCL:1;SRVR:SYXPR01MB1616;H:SYXPR01MB1615.ausprd01.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:0;LANG:en;
received-spf: None (protection.outlook.com: team.telstra.com does not designate permitted sender hosts)
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Jan 2017 12:47:37.1868 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 49dfc6a3-5fb7-49f4-adea-c54e725bb854
X-MS-Exchange-Transport-CrossTenantHeadersStamped: SYXPR01MB1616
X-OriginatorOrg: team.telstra.com
Received-SPF: none client-ip=203.35.135.208; envelope-from=James.H.Manger@team.telstra.com; helo=ipxcvo.tcif.telstra.com.au
X-W3C-Hub-Spam-Status: No, score=-2.1
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7, W3C_NW=0.5
X-W3C-Scan-Sig: titan.w3.org 1cVe2f-0003jp-76 a3735bcfb3c3bb48029837cfb44796c1
X-Original-To: ietf-http-wg@w3.org
Subject: RE: aes128gcm: why verify padding?
Archived-At: <http://www.w3.org/mid/SYXPR01MB1615798CC057FB3232B2FA4BE5720@SYXPR01MB1615.ausprd01.prod.outlook.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33357
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>

QSBwYWRkaW5nIGJ5dGUgdG8gZGlzdGluZ3Vpc2ggaW50ZXJtZWRpYXRlIGFuZCBmaW5hbCByZWNv
cmRzIGNvdWxkIGluZGVlZCB3b3JrLg0KDQpJdCBkb2Vzbid0IGNvbnN1bWUgYW55IGV4dHJhIGJ5
dGVzIGluIHRoaXMgc2NoZW1lIGFzIGl0IHBpZ2d5LWJhY2tzIG9uIGFuIGVuZC1vZi1wYWRkaW5n
IGJ5dGUuIEJ1dCBpbiBhIGRpZmZlcmVudCBtdWx0aXBsZS1BRUFELXJlY29yZCBzY2hlbWUgdGhh
dCBkaWRuJ3Qgb2ZmZXIgcGFkZGluZyAoYSBuaWNlLCBidXQgbm90IHN0cmljdGx5IG5lY2Vzc2Fy
eSBmZWF0dXJlKSBpdCB3b3VsZG4ndCBiZSBzbyBpZGVhbC4gSSd2ZSBzZWVuIGlkZWFzIHRvIHB1
dCB0aGUgZmlyc3QtdnMtaW50ZXJtZWRpYXRlLXZzLWxhc3QgaW5kaWNhdG9yIGluIHRoZSBub25j
ZSwgaW4gdGhlIEtERiwgaW4gdGhlIEFBRCwgaW4gdGhlIHJlY29yZCBsZW5ndGgsIGFuZCBub3cg
aW4gdGhlIHBsYWludGV4dC4gSSdtIG5vdCBzdXJlIGhvdyB0byBwaWNrLg0KDQpXaGF0IGRvIHlv
dSBkbyBpZiBsYXN0IG5vbi16ZXJvIGJ5dGUgaXNuJ3QgMHgwMSBvciAweDAyPw0KDQo+IEFuZCB3
aGlsZSB3ZSBhcmUgYXQgYnJlYWtpbmcgdGhpbmdzLCBpdCB3b3VsZCBiZSBnb29kIHRpbWUgdG8g
bWFrZQ0KcnMgY291bnQgY2lwaGVydGV4dCwgbm90IHBsYWludGV4dCwgcmlnaHQ/DQoNClRoYXQn
cyBhbHJlYWR5IGluIHRoZSBlZGl0b3IncyBkcmFmdCAoaHR0cHM6Ly9naXRodWIuY29tL2h0dHB3
Zy9odHRwLWV4dGVuc2lvbnMvYmxvYi9tYXN0ZXIvZHJhZnQtaWV0Zi1odHRwYmlzLWVuY3J5cHRp
b24tZW5jb2RpbmcubWQpLg0KDQotLQ0KSmFtZXMgTWFuZ2VyDQoNCi0tLS0tT3JpZ2luYWwgTWVz
c2FnZS0tLS0tDQpGcm9tOiBpbGFyaWxpdXN2YWFyYUB3ZWxoby5jb20gW21haWx0bzppbGFyaWxp
dXN2YWFyYUB3ZWxoby5jb21dIA0KU2VudDogTW9uZGF5LCAyMyBKYW51YXJ5IDIwMTcgNjozNiBQ
TQ0KVG86IE1hbmdlciwgSmFtZXMgPEphbWVzLkguTWFuZ2VyQHRlYW0udGVsc3RyYS5jb20+DQpD
YzogTWFydGluIFRob21zb24gPG1hcnRpbi50aG9tc29uQGdtYWlsLmNvbT47IGlldGYtaHR0cC13
Z0B3My5vcmcNClN1YmplY3Q6IFJlOiBhZXMxMjhnY206IHdoeSB2ZXJpZnkgcGFkZGluZz8NCg0K
T24gTW9uLCBKYW4gMjMsIDIwMTcgYXQgMDQ6Mjg6NTVBTSArMDAwMCwgTWFuZ2VyLCBKYW1lcyB3
cm90ZToNCj4gQWZ0ZXIgaW1wbGVtZW50aW5nIGFlczEyOGdjbSBJIGhhdmUgYW5vdGhlciByZWFz
b24gdG8gYWRqdXN0IHRoZQ0KPiBwYWRkaW5nIHNjaGVtZS4gUHV0dGluZyB0aGUgY29udGVudCBm
aXJzdCwgYmVmb3JlIHRoZSBwYWRkaW5nDQo+ICh3aGF0ZXZlciBmb3JtYXQpLCB3aWxsIHNhdmUg
bW92aW5nIHRoZSBjb250ZW50IGFmdGVyIGRlY3J5cHRpb24NCj4gaW4gc29tZSAodHlwaWNhbD8p
IGltcGxlbWVudGF0aW9ucy4gQSBEZWNyeXB0IEFQSSB3aWxsIHR5cGljYWxseQ0KPiBleHBlY3Qg
dGhlIGNvbnRlbnQgdG8gYmUgYXQgdGhlIHN0YXJ0IG9mIGEgZ2l2ZW4gYnVmZmVyLiBGb3INCj4g
aW5zdGFuY2UsIG15IGltcGxlbWVudGF0aW9uIGRlY3J5cHRzIHRvIGEgZ2l2ZW4gYnVmZmVyLCBi
dXQgZHVlDQo+IHRvIHRoZSBjdXJyZW50IHBhZGRpbmcgc2NoZW1lICg8cGFkbGVuPjxwYWRkaW5n
Pjxjb250ZW50PikgdGhlbg0KPiBuZWVkcyB0byBjb3B5IHRoZSBkYXRhIHRvIHRoZSBzdGFydCBv
ZiB0aGUgYnVmZmVyIChzaGlmdGluZyBpdCAyDQo+IGJ5dGVzIGJhY2t3YXJkcyBpbiB0eXBpY2Fs
IG5vLXBhZGRpbmcgc2l0dWF0aW9ucykuIElmLCBpbnN0ZWFkLA0KPiB0aGUgY29udGVudCBjYW1l
IGZpcnN0IHRoZW4gdGhlIGRhdGEgd291bGRuJ3QgbmVlZCB0byBiZSBtb3ZlZC4NCj4gDQo+IA0K
PiBTbyBJIHdvdWxkIHN1cHBvcnQgYSBwYWRkaW5nIHNjaGVtZSBzaW1pbGFyIHRvIFRMUyAxLjM6
DQo+IDxjb250ZW50Pjxub24temVybyBieXRlPjx6ZXJvc+KApj4uDQoNCkZ1cnRoZXJtb3JlLCBp
ZiB0aGUgbm9uemVybyBieXRlIHdhcyAweDAxIGZvciBub24tZmluYWwgYmxvY2tzIGFuZA0KMHg4
MSBmb3IgZmluYWwgYmxvY2sgKG9yIGFueSB0d28gZGlmZmVyZW50IG5vbnplcm8gdmFsdWVzKSwg
dGhlbg0KdGhhdCB3b3VsZCBhbHNvIHNvbHZlIHRoZSB0cnVuY2F0aW9uIGZsYXcgZnJvbSBsYXN0
IG1lc3NhZ2UsIG5vPw0KDQpBbmQgd2hpbGUgd2UgYXJlIGF0IGJyZWFraW5nIHRoaW5ncywgaXQg
d291bGQgYmUgZ29vZCB0aW1lIHRvIG1ha2UNCnJzIGNvdW50IGNpcGhlcnRleHQsIG5vdCBwbGFp
bnRleHQsIHJpZ2h0Pw0KDQoNCg0KLUlsYXJpDQoNCg==


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Mon Jan 23 15:37:01 2017
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 8BE51129416 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 23 Jan 2017 15:37:01 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.72
X-Spam-Level:
X-Spam-Status: No, score=-9.72 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, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, 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 wnBEu5MHWNIU for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 23 Jan 2017 15:37:00 -0800 (PST)
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 64CB2129409 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 23 Jan 2017 15:37:00 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cVo7E-0001F9-Rr for ietf-http-wg-dist@listhub.w3.org; Mon, 23 Jan 2017 23:33:36 +0000
Resent-Date: Mon, 23 Jan 2017 23:33:36 +0000
Resent-Message-Id: <E1cVo7E-0001F9-Rr@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <martin.thomson@gmail.com>) id 1cVo79-0001Dr-Uu for ietf-http-wg@listhub.w3.org; Mon, 23 Jan 2017 23:33:31 +0000
Received: from mail-qt0-f175.google.com ([209.85.216.175]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <martin.thomson@gmail.com>) id 1cVo74-0005UA-89 for ietf-http-wg@w3.org; Mon, 23 Jan 2017 23:33:26 +0000
Received: by mail-qt0-f175.google.com with SMTP id v23so152420016qtb.0 for <ietf-http-wg@w3.org>; Mon, 23 Jan 2017 15:33:05 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=h1+8RjJHtGVZiSnGnzrtCft14WOyZZaT22709Q/NyOs=; b=EoQlooIuDEmkptu45HPS63ncBpxqdTM29MMxWMa7uSWbHvXHnD049pdMT7W4hsIwwS eKQywOMm0IEL1uSCsHxKQ2UdLCBqBVwJnqTfVfmJdL7q8/KTU9RXrxzjxeXg5c8SjcJO C3zLlq3jZVb2R6Cp2seJLU4coTS9FYhAmc7jrhHlGmpLksS4/zZZQGn2KwPvb5mTomwN 4QLtT//iNZ6lDlpfnSdUrVI1vObfcqRLTizdoG8Si9VGsT/Lsx1XkmhlvSG+Uz3DCztl C6rLIjXdeZe46pV8NMb61uNDsOhZ8ZbMO+AxC57KTiyqMSaFcvoiydITXOr+F2/HWQlX aG6w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=h1+8RjJHtGVZiSnGnzrtCft14WOyZZaT22709Q/NyOs=; b=lIYZjx0Civp7wodPL+0ds974KZgYmGtsVsyCDBCjAdZV3JZgZg3YI/6ibqP8cXPrQh kwrHKMpO0Ad3grv2NQ1RNsGsbx12nOjfO2bGmYhkz7Ao/R0m293NRZ29yZi/0ZXq9jUZ ZZMAZmUkKVlaFu6FqpFZGm5BKrbW5+QgkyUF8xUBU6duNndaidbgevWy/+z19jzrhHU1 iuug0w+EU8XBke3KdjvQuVZCNNrCZyQ/2iUsjvHu9Qa5Brc4saw3eG+RcolXDzmRPiie NcmZtJrqxLh2PX+bM+c6EPAPSOwfJBi1EID/wlEbYcBQ0H0wB3ZHla5Ci5Kq8AwLQQ3P bL3g==
X-Gm-Message-State: AIkVDXI08kKgqmvEnbZJz4f+g5Qwqun0EVZLd3CuEauRH2qwMnHL7fyutbtNreRP96pH1qU8ADKo9Rf90TljkA==
X-Received: by 10.55.27.65 with SMTP id b62mr28637341qkb.202.1485214379900; Mon, 23 Jan 2017 15:32:59 -0800 (PST)
MIME-Version: 1.0
Received: by 10.140.19.112 with HTTP; Mon, 23 Jan 2017 15:32:59 -0800 (PST)
In-Reply-To: <CAFn2buDd_zomeD6GehWN6r=0wey1aEQfJcfjAjEPjr0S390xrA@mail.gmail.com>
References: <CABkgnnV4FG01J5CwdjG_gnCWvoyaT80ZBd3R41TopuWuKEAm5A@mail.gmail.com> <CAFn2buDd_zomeD6GehWN6r=0wey1aEQfJcfjAjEPjr0S390xrA@mail.gmail.com>
From: Martin Thomson <martin.thomson@gmail.com>
Date: Tue, 24 Jan 2017 08:32:59 +0900
Message-ID: <CABkgnnVPiVx608jCk=WyPWq-PDqKJ-kFLQf_3WGZur14pUnnog@mail.gmail.com>
To: Scott Mitchell <scott.k.mitch1@gmail.com>
Cc: HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: text/plain; charset=UTF-8
Received-SPF: pass client-ip=209.85.216.175; envelope-from=martin.thomson@gmail.com; helo=mail-qt0-f175.google.com
X-W3C-Hub-Spam-Status: No, score=-6.1
X-W3C-Hub-Spam-Report: AWL=0.120, 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, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cVo74-0005UA-89 3cfeb60e333a3991fd31912ad28f1037
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Proposed text for erratum on PRIORITY in RFC 7540
Archived-At: <http://www.w3.org/mid/CABkgnnVPiVx608jCk=WyPWq-PDqKJ-kFLQf_3WGZur14pUnnog@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33358
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 21 January 2017 at 02:15, Scott Mitchell <scott.k.mitch1@gmail.com> wrote:
> The bit I think needs clarification is that a PRIORITY frame doesn't impact
> state of ANY stream (if this is the intention of the RFC). The ambiguity
> comes from the language "first use of a new stream identifier" in section
> 5.1.1 (see below). Is it possible to directly resolve this issue?  Updating
> other sections is great, but this creates an implicit dependency between
> different sections which leaves room for error.

How about:

Sending or receiving a PRIORITY frame does not affect the state of any
stream (Section 5.1), only the priority of the identified stream is
altered.

I think that the "first use of a new stream identifier" text is still
problematic, but I don't know how to deal with that without performing
more surgery.


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Mon Jan 23 15:37:02 2017
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 9557E12941A for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 23 Jan 2017 15:37:02 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.72
X-Spam-Level:
X-Spam-Status: No, score=-9.72 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, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, 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 bgQ3z8VO-sck for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 23 Jan 2017 15:37:00 -0800 (PST)
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 64E2C129411 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 23 Jan 2017 15:37:00 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cVo8i-0002yJ-H9 for ietf-http-wg-dist@listhub.w3.org; Mon, 23 Jan 2017 23:35:08 +0000
Resent-Date: Mon, 23 Jan 2017 23:35:08 +0000
Resent-Message-Id: <E1cVo8i-0002yJ-H9@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <martin.thomson@gmail.com>) id 1cVo8f-0001GX-14 for ietf-http-wg@listhub.w3.org; Mon, 23 Jan 2017 23:35:05 +0000
Received: from mail-qt0-f174.google.com ([209.85.216.174]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <martin.thomson@gmail.com>) id 1cVo8Y-0005XX-Iz for ietf-http-wg@w3.org; Mon, 23 Jan 2017 23:34:59 +0000
Received: by mail-qt0-f174.google.com with SMTP id v23so152478358qtb.0 for <ietf-http-wg@w3.org>; Mon, 23 Jan 2017 15:34:37 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=OXIUk+rc4Bh3qUQlDVi/m5M2WuV0KzXN7B0pxwp5KLk=; b=Dc9SSCCoZ+A1fHahabQiHlNbDwSbfVazLJcZAY9lc0YoXADlKDhm0cHfRVvGKufA7C btGqNdzJV1dnvQ9AQQNdDctA9kOjpT9X/upDx34HURvtm2ila+t2TFEll/09mtSCqcp8 W07b22Nvm1Oj3rwfJ8q4EWddtyiB2crk1z3iNTZrOgYM0N173n3LDQaG/WtZZyUVTfuk n21lHaI1V3QR+nwlPHU8BHrNjO8DnTcFGCdGaHBtcIicvAHmThBN78gb4HhcrxPKDbFk FUkhkEV3+wG5zV2lI21UsfcPJ8pnz2JuGml+9u5QiZKgQJIrDaJriFPDRbQfV+b+EV7N oJBg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=OXIUk+rc4Bh3qUQlDVi/m5M2WuV0KzXN7B0pxwp5KLk=; b=nGe6/qxa7iHERjROKb7Mv80CeB+mFGNU/R8wR5/n+uRUpNWkPmfK13ouZb1lSTJxFi GIXVosWG8O9EGjBBxxIQ1ui3v55eUzS5qmcv7+TfInLGDPutpqP6DEIgxD4uUDrODg7l NeKywXfC9qB55wIFs0IuJooEX1V4Voo/ubMXbDg41NTQdKn84JfktH0kZMscSBH5gEgS ROwrGf7ImRMb7LH4KekVzgFH81fOH3/GMN+fLnxV7/Lcz2ZTYpIY9rrQ5gya1etY5bSc 52dwiSuDerYbkyqphK+f7aSjqC7jDw3idpB1drW/TnDJpM7wOtX2S7J3+3V942o+SaJy JYFQ==
X-Gm-Message-State: AIkVDXIJgFZ9F/aFNN0hWSa62o7+LRHvBSNCPhg0NO7KDb60Fier7oDNbpKpTKNF+d4NrnQwhTvh05qzgUeZ+Q==
X-Received: by 10.55.164.85 with SMTP id n82mr27906561qke.316.1485214472177; Mon, 23 Jan 2017 15:34:32 -0800 (PST)
MIME-Version: 1.0
Received: by 10.140.19.112 with HTTP; Mon, 23 Jan 2017 15:34:31 -0800 (PST)
In-Reply-To: <SYXPR01MB16150B64E1F19E560321ACDFE5720@SYXPR01MB1615.ausprd01.prod.outlook.com>
References: <SYXPR01MB16150B64E1F19E560321ACDFE5720@SYXPR01MB1615.ausprd01.prod.outlook.com>
From: Martin Thomson <martin.thomson@gmail.com>
Date: Tue, 24 Jan 2017 08:34:31 +0900
Message-ID: <CABkgnnUgT2==ukoQBF3Lywev7_oAxSuH2aCKP2d6FeHkoCbXUw@mail.gmail.com>
To: "Manger, James" <James.H.Manger@team.telstra.com>
Cc: "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=209.85.216.174; envelope-from=martin.thomson@gmail.com; helo=mail-qt0-f174.google.com
X-W3C-Hub-Spam-Status: No, score=-6.1
X-W3C-Hub-Spam-Report: AWL=0.120, 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, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cVo8Y-0005XX-Iz c0c178595df225863e7d932ed548945c
X-Original-To: ietf-http-wg@w3.org
Subject: Re: aes128gcm: vulnerable to truncation attacks
Archived-At: <http://www.w3.org/mid/CABkgnnUgT2==ukoQBF3Lywev7_oAxSuH2aCKP2d6FeHkoCbXUw@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33359
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>

I think that Ilari's recommendation on the other thread also solves
this problem.

On 23 January 2017 at 11:48, Manger, James
<James.H.Manger@team.telstra.com> wrote:
> There is a serious flaw in aes128gcm that allows a message to be truncate=
d
> while authenticated decryption still succeeds.
>
>
>
> aes128gcm produces 1 or more AEAD records, where all but the last match t=
he
> given record size. This allows you to authenticate the end of the stream
> when you receive at least 2 records. But if you only receive 1 record you
> cannot tell if you have a complete message or a truncated message with a
> tampered record size.
>
>
>
> The problem is that the record size in the header is not authenticated.
>
>
>
> For example, the =E2=80=9CEncryption with Multiple Records=E2=80=9D examp=
le in the spec
> consists of the following ciphertext (in base64url), which decrypted to =
=E2=80=9CI
> am the walrus=E2=80=9D:
>
>
>
> uNCkWiNYzKTnBN9ji3-qWAAAABoCYTGHOqYFz-0in3dpb-VE2GfBngkaPy6bZus_
>
> qLF79s6zQyTSsA0iLOKyd3JqVIwprNzVatRCWZGUx_qsFbJBCQu62RqQuR2d
>
>
>
> Truncating this ciphertext after the 1st record, and increasing the recor=
d
> size field in the header from 26 to 27 gives:
>
>
>
> uNCkWiNYzKTnBN9ji3-qWAAAABsCYTGHOqYFz-0in3dpb-VE2GfBngkaPy6bZus_qA
>
>
>
> This successfully decrypts to =E2=80=9CI am th=E2=80=9D. It needs to fail=
, either with an
> authentication failure or a premature end failure.
>
>
>
>
>
> Suggestion: include the record size in the derivation of the key and nonc=
es.
>
> Passing the 20 bytes <16-byte salt><4-byte records size> as the =E2=80=98=
salt=E2=80=99
> parameter of the HKDF Extract call might work. Though putting including t=
he
> record size in the cek_info and nonce_info values that are fed to HKDF
> Expand calls might be even better.
>
>
>
> --
>
> James Manger


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Mon Jan 23 15:40:25 2017
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 C3E91129422 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 23 Jan 2017 15:40:25 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.72
X-Spam-Level:
X-Spam-Status: No, score=-9.72 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, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, 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 mQkJbCzDZzS5 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 23 Jan 2017 15:40:24 -0800 (PST)
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 B3EF1129420 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 23 Jan 2017 15:40:24 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cVoBv-0005Cu-HO for ietf-http-wg-dist@listhub.w3.org; Mon, 23 Jan 2017 23:38:27 +0000
Resent-Date: Mon, 23 Jan 2017 23:38:27 +0000
Resent-Message-Id: <E1cVoBv-0005Cu-HO@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <martin.thomson@gmail.com>) id 1cVoBs-0005C9-Iq for ietf-http-wg@listhub.w3.org; Mon, 23 Jan 2017 23:38:24 +0000
Received: from mail-qt0-f177.google.com ([209.85.216.177]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <martin.thomson@gmail.com>) id 1cVoBm-0004bk-JL for ietf-http-wg@w3.org; Mon, 23 Jan 2017 23:38:19 +0000
Received: by mail-qt0-f177.google.com with SMTP id v23so152601899qtb.0 for <ietf-http-wg@w3.org>; Mon, 23 Jan 2017 15:37:58 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=x/MiRN+KlHN1CkKK68v9o6mORgezGejCleYfPwH2hwA=; b=FBn2K6hHR+i7ijK/nucd1Zcbaz5lKAvdFWZXdJvhCy1/frE70Vpw4kkYC3AE0TRVH3 AzLYuXMOarMT7ToWyEZCMLCLrHXUzMaS0WddNjb+B/+FaFD6ipJNq1oJcWldwBrksZSP NQYmxRGGq7OLMt6HKg9Utd/MAwETlXzSh+2TXYyUPIK5wEHoYX3eeca1AY1h9DAeaWM0 MY2MIY+lUA4v+fWKfC65s+qhJzNuq0wEZvT0K+X+pebj3ro/rhszJ0RAcWq8eHDEZT1d ZexH6u0lUgxSQxsF9Z/V+2s1JD4oiPD6Y3skyW2zm/lAB20aSqROWhf4QzEMAbMe8DXp MV4A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=x/MiRN+KlHN1CkKK68v9o6mORgezGejCleYfPwH2hwA=; b=R44+tOpKM8aCbYtrc5Ahs45LDENKzpi65bs5BFPvEUo9O/T8S49VG+2AUb1jTrzrSo BRXAJzgKohOZ6kjZ1vzYmBkVhw8qABr3bfgcuj3khOC4ZHpyoY7NGBawE4e5RET9wbSP UILry29baRgAD4bKmo+DYupwYFrasnjW9kUSc+VgiEj5skhwX/FIjlO+NO/k0d/HTLvC AmyOxG/zD01CkpZMR1DNHqC7gBCWH75gn6Zw/xVbnm390g3G1KHSmERTomi5dFzeFaXe bTbqgQi0HF4ecN04rKc7osPbvPv+VD3Sys2mL6VhrTOqQK5GnwQSw24SElQZyqJE2m1G PKhg==
X-Gm-Message-State: AIkVDXJJsWswNmocj7BLW1o5pfv+suZrn/DIDTPGNxB3PrSh5Jma3R1IYbgLS+V/svmQwUA6PmkS6Z4+6JwlfQ==
X-Received: by 10.55.99.85 with SMTP id x82mr26231512qkb.147.1485214672684; Mon, 23 Jan 2017 15:37:52 -0800 (PST)
MIME-Version: 1.0
Received: by 10.140.19.112 with HTTP; Mon, 23 Jan 2017 15:37:51 -0800 (PST)
In-Reply-To: <SYXPR01MB1615798CC057FB3232B2FA4BE5720@SYXPR01MB1615.ausprd01.prod.outlook.com>
References: <SYXPR01MB161520224A59CDCE0D433A2CE57A0@SYXPR01MB1615.ausprd01.prod.outlook.com> <CABkgnnUo-tf69AzJC=OUy2rjDZwedTd5Ua9mhOiJBqaA0VKrYw@mail.gmail.com> <SYXPR01MB16150F4D3D19CC69D18E1A09E57D0@SYXPR01MB1615.ausprd01.prod.outlook.com> <CABkgnnV_OatRWyZBE3Rak22gS1jrOZKjCGwOePpbqJCAeJFM4Q@mail.gmail.com> <SYXPR01MB1615DD56268D7EF9929F3DBFE5720@SYXPR01MB1615.ausprd01.prod.outlook.com> <20170123073623.GA28101@LK-Perkele-V2.elisa-laajakaista.fi> <SYXPR01MB1615798CC057FB3232B2FA4BE5720@SYXPR01MB1615.ausprd01.prod.outlook.com>
From: Martin Thomson <martin.thomson@gmail.com>
Date: Tue, 24 Jan 2017 08:37:51 +0900
Message-ID: <CABkgnnW4e+FOz+gsu6vZ2d9WOSv9Yohn+OejrNom9HCBiMrRWQ@mail.gmail.com>
To: "Manger, James" <James.H.Manger@team.telstra.com>
Cc: "ilariliusvaara@welho.com" <ilariliusvaara@welho.com>, "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=209.85.216.177; envelope-from=martin.thomson@gmail.com; helo=mail-qt0-f177.google.com
X-W3C-Hub-Spam-Status: No, score=-5.8
X-W3C-Hub-Spam-Report: AWL=-0.230, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1cVoBm-0004bk-JL fc352fd7c81bbc7605120040eb106698
X-Original-To: ietf-http-wg@w3.org
Subject: Re: aes128gcm: why verify padding?
Archived-At: <http://www.w3.org/mid/CABkgnnW4e+FOz+gsu6vZ2d9WOSv9Yohn+OejrNom9HCBiMrRWQ@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33360
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 23 January 2017 at 21:47, Manger, James
<James.H.Manger@team.telstra.com> wrote:
> A padding byte to distinguish intermediate and final records could indeed=
 work.

I like it.  You can pad an arbitrary amount and you only pay one octet
per record overhead if you don't like padding, and the trailing record
requirement goes away.

> It doesn't consume any extra bytes in this scheme as it piggy-backs on an=
 end-of-padding byte. But in a different multiple-AEAD-record scheme that d=
idn't offer padding (a nice, but not strictly necessary feature) it wouldn'=
t be so ideal. I've seen ideas to put the first-vs-intermediate-vs-last ind=
icator in the nonce, in the KDF, in the AAD, in the record length, and now =
in the plaintext. I'm not sure how to pick.

I believe that it doesn't matter.

> What do you do if last non-zero byte isn't 0x01 or 0x02?

Explode and discard the data - it's corrupted.  If we don't require
that, then an attacker gains a decryption oracle.  (Same reason for
requiring that the padding be fixed in size.)


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Mon Jan 23 16:14:23 2017
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 95DB8129453 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 23 Jan 2017 16:14:23 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.12
X-Spam-Level:
X-Spam-Status: No, score=-10.12 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-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=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=teamtelstra.onmicrosoft.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 yuTZJYMojXX7 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 23 Jan 2017 16:14:22 -0800 (PST)
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 3E03012944D for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 23 Jan 2017 16:14:22 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cVoi8-0006kT-9S for ietf-http-wg-dist@listhub.w3.org; Tue, 24 Jan 2017 00:11:44 +0000
Resent-Date: Tue, 24 Jan 2017 00:11:44 +0000
Resent-Message-Id: <E1cVoi8-0006kT-9S@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <James.H.Manger@team.telstra.com>) id 1cVoi2-0006jd-Cx for ietf-http-wg@listhub.w3.org; Tue, 24 Jan 2017 00:11:38 +0000
Received: from ipxbvo.tcif.telstra.com.au ([203.35.135.204]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <James.H.Manger@team.telstra.com>) id 1cVohu-0005hc-GM for ietf-http-wg@w3.org; Tue, 24 Jan 2017 00:11:33 +0000
X-IronPort-AV: E=Sophos;i="5.33,276,1477918800";  d="scan'208";a="133945308"
Received: from unknown (HELO ipcavi.tcif.telstra.com.au) ([10.97.217.200]) by ipobvi.tcif.telstra.com.au with ESMTP; 24 Jan 2017 11:10:57 +1100
X-IronPort-AV: E=McAfee;i="5700,7163,8417"; a="383641814"
Received: from wsmsg3754.srv.dir.telstra.com ([172.49.40.198]) by ipcavi.tcif.telstra.com.au with ESMTP; 24 Jan 2017 11:10:57 +1100
Received: from wsapp5862.srv.dir.telstra.com (10.75.3.94) by wsmsg3754.srv.dir.telstra.com (172.49.40.198) with Microsoft SMTP Server (TLS) id 8.3.485.1; Tue, 24 Jan 2017 11:10:57 +1100
Received: from wsapp5585.srv.dir.telstra.com (10.75.3.67) by wsapp5862.srv.dir.telstra.com (10.75.3.94) with Microsoft SMTP Server (TLS) id 15.0.1236.3; Tue, 24 Jan 2017 11:10:56 +1100
Received: from AUS01-SY3-obe.outbound.protection.outlook.com (10.172.229.125) by wsapp5585.srv.dir.telstra.com (10.75.3.67) with Microsoft SMTP Server (TLS) id 15.0.1236.3 via Frontend Transport; Tue, 24 Jan 2017 11:10:57 +1100
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=teamtelstra.onmicrosoft.com; s=selector1-team-telstra-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=aNfMozm422L60gFWUau0lSgrwu8ashIRW83Sy6bIfDA=; b=eaguh0h7Q0qiJrfvbvFNDmIdEv4Fxm0q3Qrovyknb5B7Iaz35ROKFwtLvII/wBiFlRswlmZPD0oUzJdBqCQei5VJgiojXuD9UkoCRjRvQ3TcLPRGcPPYjciSVpFegamURpf4uQX4QCQiG99hOXpmtO62uwUpruZZjTlkwpHNUT8=
Received: from SYXPR01MB1615.ausprd01.prod.outlook.com (10.175.209.15) by SYXPR01MB1616.ausprd01.prod.outlook.com (10.175.209.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.860.13; Tue, 24 Jan 2017 00:10:55 +0000
Received: from SYXPR01MB1615.ausprd01.prod.outlook.com ([10.175.209.15]) by SYXPR01MB1615.ausprd01.prod.outlook.com ([10.175.209.15]) with mapi id 15.01.0860.021; Tue, 24 Jan 2017 00:10:55 +0000
From: "Manger, James" <James.H.Manger@team.telstra.com>
To: Martin Thomson <martin.thomson@gmail.com>
CC: "ilariliusvaara@welho.com" <ilariliusvaara@welho.com>, "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
Thread-Topic: aes128gcm: why verify padding?
Thread-Index: AdJvg9D1nChV1RXVTGiVAO+6sRrzlwADDv6AAAAcAeAADb7rAAFW7FVwAAoO2IAACMzpgAAYx0WAAAAn4DA=
Date: Tue, 24 Jan 2017 00:10:55 +0000
Message-ID: <SYXPR01MB1615AE56D810A0372AF811FCE5750@SYXPR01MB1615.ausprd01.prod.outlook.com>
References: <SYXPR01MB161520224A59CDCE0D433A2CE57A0@SYXPR01MB1615.ausprd01.prod.outlook.com> <CABkgnnUo-tf69AzJC=OUy2rjDZwedTd5Ua9mhOiJBqaA0VKrYw@mail.gmail.com> <SYXPR01MB16150F4D3D19CC69D18E1A09E57D0@SYXPR01MB1615.ausprd01.prod.outlook.com> <CABkgnnV_OatRWyZBE3Rak22gS1jrOZKjCGwOePpbqJCAeJFM4Q@mail.gmail.com> <SYXPR01MB1615DD56268D7EF9929F3DBFE5720@SYXPR01MB1615.ausprd01.prod.outlook.com> <20170123073623.GA28101@LK-Perkele-V2.elisa-laajakaista.fi> <SYXPR01MB1615798CC057FB3232B2FA4BE5720@SYXPR01MB1615.ausprd01.prod.outlook.com> <CABkgnnW4e+FOz+gsu6vZ2d9WOSv9Yohn+OejrNom9HCBiMrRWQ@mail.gmail.com>
In-Reply-To: <CABkgnnW4e+FOz+gsu6vZ2d9WOSv9Yohn+OejrNom9HCBiMrRWQ@mail.gmail.com>
Accept-Language: en-AU, en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=James.H.Manger@team.telstra.com; 
x-originating-ip: [203.35.185.244]
x-ms-office365-filtering-correlation-id: 15113f2c-0ba5-4b78-81a7-08d443ed7731
x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:SYXPR01MB1616;
x-microsoft-exchange-diagnostics: 1;SYXPR01MB1616;7:H6PnOrGJ/+GQyWXK/LM7fD4iCgfbYyitxVC4C8zHdH1KhhTc95NEfUCq9B84jCBh7m82OE7IftDXAEvjwhyDtYh4mFTWYw8fPXbnoWJGxh+9+Wy5KTlRLj13IVV7xfE68+vASfMoz98YgqP9fnnYannHtS2+A3oe+oHfgvjc88wAL93UWbx4bnnZTwT6NMFDoM/9pkwzKBpD/OouiypqV8ogLGrrU0y3OjGaDb70R3bUIL+n/+ZJ5nGTE6Wrpoz5r+8l7Wjo/qFOEq8hWzuouEh1/Ip8H8pRxl2lkE9KF8p9TpGXbcKLlqlI2mgBp6vViCaW1rKl2wJxN0ZeUz3gBIOoJDnEU6E1xBtBkgTySjqk1oCEupNMynJxMXTDx5P9lYLrWY2kzjfqjSPWTWjeMYcQPVGK6ngRU5bL8+Ald/jWHqyxeGUn43rBhJ0SMF145t/ccDXEzG372/WvQSGdlg==
x-microsoft-antispam-prvs: <SYXPR01MB1616BAD1659F764B3BB41AAEE5750@SYXPR01MB1616.ausprd01.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:;
x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040375)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6041248)(20161123555025)(20161123564025)(20161123562025)(20161123560025)(6072148);SRVR:SYXPR01MB1616;BCL:0;PCL:0;RULEID:;SRVR:SYXPR01MB1616;
x-forefront-prvs: 0197AFBD92
x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(7916002)(39450400003)(189002)(199003)(5660300001)(15650500001)(81156014)(2906002)(101416001)(81166006)(92566002)(8676002)(33656002)(76176999)(54356999)(93886004)(3660700001)(7696004)(50986999)(8936002)(122556002)(53936002)(2900100001)(68736007)(105586002)(38730400001)(86362001)(229853002)(39060400001)(25786008)(77096006)(6436002)(55016002)(6506006)(305945005)(99286003)(74316002)(54906002)(189998001)(7736002)(3846002)(2950100002)(6116002)(4326007)(106356001)(102836003)(42882006)(6916009)(3280700002)(9686003)(97736004)(66066001)(110136003);DIR:OUT;SFP:1102;SCL:1;SRVR:SYXPR01MB1616;H:SYXPR01MB1615.ausprd01.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:0;LANG:en;
received-spf: None (protection.outlook.com: team.telstra.com does not designate permitted sender hosts)
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Jan 2017 00:10:55.1505 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 49dfc6a3-5fb7-49f4-adea-c54e725bb854
X-MS-Exchange-Transport-CrossTenantHeadersStamped: SYXPR01MB1616
X-OriginatorOrg: team.telstra.com
Received-SPF: none client-ip=203.35.135.204; envelope-from=James.H.Manger@team.telstra.com; helo=ipxbvo.tcif.telstra.com.au
X-W3C-Hub-Spam-Status: No, score=-2.1
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7, W3C_NW=0.5
X-W3C-Scan-Sig: titan.w3.org 1cVohu-0005hc-GM 9a317f905b2924d2db35f859e934b5ce
X-Original-To: ietf-http-wg@w3.org
Subject: RE: aes128gcm: why verify padding?
Archived-At: <http://www.w3.org/mid/SYXPR01MB1615AE56D810A0372AF811FCE5750@SYXPR01MB1615.ausprd01.prod.outlook.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33361
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>

Pj4+PiBTbyBJIHdvdWxkIHN1cHBvcnQgYSBwYWRkaW5nIHNjaGVtZSBzaW1pbGFyIHRvIFRMUyAx
LjM6IDxjb250ZW50Pjxub24temVybyBieXRlPjx6ZXJvc+KApj4uDQoNCj4+PiBGdXJ0aGVybW9y
ZSwgaWYgdGhlIG5vbnplcm8gYnl0ZSB3YXMgMHgwMSBmb3Igbm9uLWZpbmFsIGJsb2NrcyBhbmQN
CjB4ODEgZm9yIGZpbmFsIGJsb2NrIChvciBhbnkgdHdvIGRpZmZlcmVudCBub256ZXJvIHZhbHVl
cyksIHRoZW4NCnRoYXQgd291bGQgYWxzbyBzb2x2ZSB0aGUgdHJ1bmNhdGlvbiBmbGF3IGZyb20g
bGFzdCBtZXNzYWdlLCBubz8NCg0KPj4gQSBwYWRkaW5nIGJ5dGUgdG8gZGlzdGluZ3Vpc2ggaW50
ZXJtZWRpYXRlIGFuZCBmaW5hbCByZWNvcmRzIGNvdWxkIGluZGVlZCB3b3JrLg0KDQo+IEkgbGlr
ZSBpdC4gIFlvdSBjYW4gcGFkIGFuIGFyYml0cmFyeSBhbW91bnQgYW5kIHlvdSBvbmx5IHBheSBv
bmUgb2N0ZXQNCnBlciByZWNvcmQgb3ZlcmhlYWQgaWYgeW91IGRvbid0IGxpa2UgcGFkZGluZywg
YW5kIHRoZSB0cmFpbGluZyByZWNvcmQNCnJlcXVpcmVtZW50IGdvZXMgYXdheS4NCg0KSWYgd2Ug
Z28gd2l0aCB0aGlzIGFwcHJvYWNoLCB3ZSBzaG91bGQgYWxzbyBkaXN0aW5ndWlzaCB0aGUgMXN0
IHJlY29yZC4gRm9yIGluc3RhbmNlLCBmb3IgdGhlIGVuZC1vZi1wYWRkaW5nIGJ5dGU6DQoqIFNl
dCBiaXQgOA0KKiBTZXQgYml0IDEgaWYgdGhpcyBpcyB0aGUgZmlyc3QgcmVjb3JkDQoqIFNldCBi
aXQgMiBpZiB0aGlzIGlzIHRoZSBsYXN0IHJlY29yZA0KU28NCjB4ODEgaW5kaWNhdGVzIHRoZSAx
c3Qgb2YgbXVsdGlwbGUgcmVjb3JkczsNCjB4ODMgaW5kaWNhdGVzIGEgbWVzc2FnZSB3aXRoIG9u
bHkgYSBzaW5nbGUgcmVjb3JkIChmaXJzdCBpcyBhbHNvIGxhc3QpOw0KMHg4MiBpbmRpY2F0ZXMg
dGhlIGxhc3Qgb2YgbXVsdGlwbGUgcmVjb3JkczsNCjB4ODAgaW5kaWNhdGVzIGFuIGludGVybWVk
aWF0ZSByZWNvcmQ7DQoweDAwIGlzIHBhZGRpbmcsIGtlZXBpbmcgbG9va2luZyBiYWNrIGZvciB0
aGUgZW5kLW9mLXBhZGRpbmcgYnl0ZQ0KQW55IG90aGVyIHZhbHVlIGluZGljYXRlcyBhbiBlcnJv
ci4NCg0KLS0NCkphbWVzIE1hbmdlcg0K


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Mon Jan 23 16:43:35 2017
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 89241129499 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 23 Jan 2017 16:43:35 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.719
X-Spam-Level:
X-Spam-Status: No, score=-9.719 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=chromium.org
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 C6R65FnGCX3F for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 23 Jan 2017 16:43:33 -0800 (PST)
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 2077812948B for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 23 Jan 2017 16:43:32 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cVp9q-00014t-VR for ietf-http-wg-dist@listhub.w3.org; Tue, 24 Jan 2017 00:40:23 +0000
Resent-Date: Tue, 24 Jan 2017 00:40:22 +0000
Resent-Message-Id: <E1cVp9q-00014t-VR@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <tombergan@chromium.org>) id 1cVp9m-000142-F4 for ietf-http-wg@listhub.w3.org; Tue, 24 Jan 2017 00:40:18 +0000
Received: from mail-wm0-f52.google.com ([74.125.82.52]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <tombergan@chromium.org>) id 1cVp9f-0007es-Mh for ietf-http-wg@w3.org; Tue, 24 Jan 2017 00:40:13 +0000
Received: by mail-wm0-f52.google.com with SMTP id c85so158036225wmi.1 for <ietf-http-wg@w3.org>; Mon, 23 Jan 2017 16:39:50 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:from:date:message-id:subject:to; bh=1EmyoToaVyq7A1OdJKqBee3tr9pzuTRsay8f0vyIT8s=; b=R7+qLl09oylm1NvNDujsNyAudAx3reekfO+QPRFBkM9iWqHjnPbE7C/BqJb21iY44l c+XmbOMiNWAi9rp3A0pUQYMnyIMjDQPxElNg/vMKBDcc4AeH1K2UjyTiPmJuB2okEfoL ulZvCCxBFDKkuuMXhXBTGAwXjSGAwf4EtcqvA=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=1EmyoToaVyq7A1OdJKqBee3tr9pzuTRsay8f0vyIT8s=; b=gyIam83JFvvHRWoydY8sNjO/xKk44KZNwMUKtfmqfXa0wllryO4+XlqpEITSj+LJ/D ViGDGKB0xk50aw+inovt7IOZYilgxtZh7NR+CHcUhWcdOxgYN3Qz1iZulkxu3P3nBQiQ bnuW139tY6btzXz5iAiuTy0RnMJHKM52AYdilXpjoMGCkZw8AlxaZrauFsCet+vDFSwf 5JsjgOZ+qlSVkd4Iq9Q5iCRV8UbGNQWlB1HY6wS0642yxManN7q4a39Hk0vm1pwW8jiN uJjXeYC/WrF2QMNOsezc9Kn2VabTb9HQvNtPSegnumlwvScoztZ0nekh/igNMGtWix1Y Z/sg==
X-Gm-Message-State: AIkVDXL6z8C/G2b2CVjb0qtwflQ5vppv06vS8GZ702gNcw99oMkN5MuKTwxaUHHo6u73CbMX
X-Received: by 10.28.51.72 with SMTP id z69mr16558865wmz.38.1485218384175; Mon, 23 Jan 2017 16:39:44 -0800 (PST)
Received: from mail-wm0-f44.google.com (mail-wm0-f44.google.com. [74.125.82.44]) by smtp.gmail.com with ESMTPSA id 186sm23525037wmw.24.2017.01.23.16.39.43 for <ietf-http-wg@w3.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Jan 2017 16:39:43 -0800 (PST)
Received: by mail-wm0-f44.google.com with SMTP id r144so183355292wme.1 for <ietf-http-wg@w3.org>; Mon, 23 Jan 2017 16:39:43 -0800 (PST)
X-Received: by 10.223.141.229 with SMTP id o92mr29409103wrb.22.1485218382982; Mon, 23 Jan 2017 16:39:42 -0800 (PST)
MIME-Version: 1.0
Received: by 10.28.135.201 with HTTP; Mon, 23 Jan 2017 16:39:42 -0800 (PST)
From: Tom Bergan <tombergan@chromium.org>
Date: Mon, 23 Jan 2017 16:39:42 -0800
X-Gmail-Original-Message-ID: <CA+3+x5Ft8MfRduWp1RzJ9_qAgQiCujac8f5FLz81Xpyu3cTDxw@mail.gmail.com>
Message-ID: <CA+3+x5Ft8MfRduWp1RzJ9_qAgQiCujac8f5FLz81Xpyu3cTDxw@mail.gmail.com>
To: HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary=f403045f530a21ecd20546cc5aac
Received-SPF: pass client-ip=74.125.82.52; envelope-from=tombergan@chromium.org; helo=mail-wm0-f52.google.com
X-W3C-Hub-Spam-Status: No, score=-3.5
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cVp9f-0007es-Mh b80bc7560e830884dada034f8d9686fb
X-Original-To: ietf-http-wg@w3.org
Subject: Is a faithful HTTP/2 response scheduler necessarily O(n) in the worst case?
Archived-At: <http://www.w3.org/mid/CA+3+x5Ft8MfRduWp1RzJ9_qAgQiCujac8f5FLz81Xpyu3cTDxw@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33362
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>

--f403045f530a21ecd20546cc5aac
Content-Type: text/plain; charset=UTF-8

I implemented the HTTP/2 response scheduler in Go's HTTP/2 server library.
I'm trying to understand the worst-case behavior of that scheduler. I
believe the worst-case behavior is necessarily O(n) operations per frame
sent on the wire, where n is the number of streams in the dependency tree.
Here is my rationale.

The key operation is finding the highest-priority stream that is ready to
send data.

If we don't care about weights, and we don't care about balancing bandwidth
usage across sibling nodes in a tree, then we can label each node with two
fields: "ready" (true if the stream is ready to send data) and "depth" (the
node's distance from the root of the tree). The scheduler must find a node
with the smallest depth over all nodes with ready = true. It is fairly
trivial to implement this in O(log n).

Now, let's introduce weights. The scheduler must allocate bandwidth to all
ready nodes, which happens recursively as follows:

  func allocateBandwidth(node, bw) {
    if (node.ready) {
      node.bandwidthShare = bw
      return
    }
    totalWeight = 0
    for (n in node.children) {
      if (n.ready || descendantIsReady(n)) {
        totalWeight += n.weight
      }
    }
    for (n in node.children) {
      if (n.ready || descendantIsReady(n)) {
        allocateBandwidth(n, bw * n.weight / totalWeight)
      }
    }
  }
  allocateBandwidth(root, 1.0)

I believe the above definition is a direct translation of RFC 7540 Section
5.3.2 (also see this thread
<https://lists.w3.org/Archives/Public/ietf-http-wg/2016OctDec/0601.html>,
which discussed bandwidth allocation). Given a complete bandwidth
allocation, the server can translate each node's bandwidthShare to a number
of tokens that are updated using a token bucket algorithm (or similar). The
scheduler would then pick the node with the most available tokens. The
scheduler looks something like:

  func scheduleNextFrame() {
    if (tree changed since last frame written) {
      allocateBandwidth(root, 1.0)
      assign tokens and build a priority queue containing all nodes with
allocated bandwidth
    }
    node = priorityQueue.head()
    node.consumeTokens() // consume up to frame size or flow-control limit
    priorityQueue.update(node)
    return node
  }

There are two steps in scheduleNextFrame. The first step updates the
bandwidth allocation if the tree changed since the last frame was written.
This is the most expensive step. I don't believe it's possible to implement
allocateBandwidth using fewer than O(n) worst-case steps. For example, if
the tree is mostly flat, meaning that most nodes are children of the same
node, then the loop to compute totalWeight is O(n). I believe Firefox
<http://bitsup.blogspot.com/2015/01/http2-dependency-priorities-in-firefox.html>
creates mostly-flat trees. Further, allocateBandwidth makes O(depth)
recursive steps, where "depth" is the maximum depth of the dependency tree.
If the tree is mostly-linear, then O(depth) becomes O(n). Chrome
<https://cs.chromium.org/chromium/src/net/spdy/http2_priority_dependencies.cc>
creates mostly-linear trees.

The overall runtime depends on how often the tree changes. If the tree
changes rarely, the scheduler is cheap. If the tree changes frequently, the
scheduler is worst-case O(n). A tree has "changed" if it changed shape
(nodes are added/moved/removed) or if any node's ready state has changed.
Both kinds of changes can happen often in practice, suggesting that the
overall scheduler is worst-case O(n). For example, consider a server that
sends small responses (one or two DATA frames per response) -- each stream
will be closed after one or two DATA frames, so on average, the tree will
change shape every few frames. Further, it's possible for ready states to
change more frequently than you might think. In Go's HTTP/2 implementation,
a stream does not become ready until the application handler calls Write to
buffer response data. After that buffered data is serialized on the wire,
the stream transitions to "not ready" because the scheduler cannot know
when the next Write call will happen. The stream will transition back to
"ready" during the next Write call. Each Write call typically buffers about
32KB of data. This is a "push" model, where the application handler
"pushes" data into the scheduler. I'm aware of one other HTTP/2 server that
works similarly. I suspect that frequent ready/not-ready transitions are
common to most HTTP/2 servers that use a "push" model. These servers will
be more susceptible to the O(n) worst case.

Questions:

1. Am I missing a clever implementation, or is it true that a faithful
HTTP/2 scheduler necessarily requires O(n) operations per frame sent on the
wire, in the worst case? I could not find much discussion of this question
after a quick search. H2O claims to implement an O(1) scheduler
<https://h2o.examp1e.net/configure/http2_directives.html>, however, the
code seems to be worst-case O(depth) or O(n) -- see here
<https://github.com/h2o/h2o/blob/9b70b61b0705ccce22a188e65363cdb506285ff1/lib/http2/scheduler.c#L326>
, here
<https://github.com/h2o/h2o/blob/9b70b61b0705ccce22a188e65363cdb506285ff1/lib/http2/scheduler.c#L342>,
and here
<https://github.com/h2o/h2o/blob/9b70b61b0705ccce22a188e65363cdb506285ff1/lib/http2/scheduler.c#L214>
.

2. If the above is correct, should I be concerned about the O(n) worst
case? I doubt that a typical web browsing session will trigger O(n)
behavior frequently, so I'm less concerned about the average case; I'm more
concerned about pathological cases or possible DoS vectors. Also, think
about cases where the "client" is actually a proxy server, meaning the
HTTP/2 connection may have many more concurrent streams than a typical
browsing session. For comparison, if you recall the predecessor to HTTP/2
(SPDY), a SPDY scheduler could be trivially implemented in O(1), since SPDY
used just eight priority buckets.

3. If I should be concerned about an O(n) worst case, are there any
suggested mitigations beyond setting SETTINGS_MAX_CONCURRENT_STREAMS to a
smallish constant?

--f403045f530a21ecd20546cc5aac
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">I implemented the HTTP/2 response scheduler in Go&#39;s HT=
TP/2 server library. I&#39;m trying to understand the worst-case behavior o=
f that scheduler. I believe the worst-case behavior is necessarily O(n) ope=
rations per frame sent on the wire, where n is the number of streams in the=
 dependency tree. Here is my rationale.<div><br></div><div>The key operatio=
n is finding the highest-priority stream that is ready to send data.</div><=
div><br></div><div>If we don&#39;t care about weights, and we don&#39;t car=
e about balancing bandwidth usage across sibling nodes in a tree, then we c=
an label each node with two fields: &quot;ready&quot; (true if the stream i=
s ready to send data) and &quot;depth&quot; (the node&#39;s distance from t=
he root of the tree). The scheduler must find a node with the smallest dept=
h over all nodes with ready =3D true. It is fairly trivial to implement thi=
s in O(log n).</div><div><br></div><div>Now, let&#39;s introduce weights. T=
he scheduler must allocate bandwidth to all ready nodes, which happens recu=
rsively as follows:</div><div><br></div><div><span style=3D"font-family:mon=
ospace,monospace">=C2=A0</span><span style=3D"font-family:monospace,monospa=
ce">=C2=A0func=C2=A0</span><font face=3D"monospace, monospace">allocateBand=
width(node, bw) {</font></div><div><font face=3D"monospace, monospace">=C2=
=A0=C2=A0</font><span style=3D"font-family:monospace,monospace">=C2=A0</spa=
n><span style=3D"font-family:monospace,monospace">=C2=A0</span><span style=
=3D"font-family:monospace,monospace">if (node.ready) {</span></div><div><fo=
nt face=3D"monospace, monospace">=C2=A0 =C2=A0</font><span style=3D"font-fa=
mily:monospace,monospace">=C2=A0</span><span style=3D"font-family:monospace=
,monospace">=C2=A0</span><span style=3D"font-family:monospace,monospace">=
=C2=A0node.bandwidthShare =3D bw</span></div><div><span style=3D"font-famil=
y:monospace,monospace">=C2=A0 =C2=A0 =C2=A0 return</span></div><div><font f=
ace=3D"monospace, monospace">=C2=A0</font><span style=3D"font-family:monosp=
ace,monospace">=C2=A0</span><span style=3D"font-family:monospace,monospace"=
>=C2=A0</span><span style=3D"font-family:monospace,monospace">=C2=A0}</span=
></div><div><font face=3D"monospace, monospace">=C2=A0</font><span style=3D=
"font-family:monospace,monospace">=C2=A0</span><span style=3D"font-family:m=
onospace,monospace">=C2=A0</span><span style=3D"font-family:monospace,monos=
pace">=C2=A0totalWeight =3D 0</span></div><span style=3D"font-family:monosp=
ace,monospace">=C2=A0=C2=A0</span><font face=3D"monospace, monospace">=C2=
=A0 for (n in node.children) {</font><div><div><font face=3D"monospace, mon=
ospace">=C2=A0 =C2=A0 =C2=A0 if (n.ready || descendantIsReady(n)) {</font><=
/div><div><font face=3D"monospace, monospace">=C2=A0 =C2=A0 =C2=A0 =C2=A0 t=
otalWeight +=3D n.weight</font></div><div><font face=3D"monospace, monospac=
e">=C2=A0 =C2=A0 =C2=A0 }</font></div><div><font face=3D"monospace, monospa=
ce">=C2=A0 =C2=A0 }<br></font><div><div><span style=3D"font-family:monospac=
e,monospace">=C2=A0=C2=A0</span><font face=3D"monospace, monospace">=C2=A0 =
for (n in node.children) {</font></div><span style=3D"font-family:monospace=
,monospace">=C2=A0 =C2=A0 =C2=A0 if (n.ready || descendantIsReady(n)) {</sp=
an><div><span style=3D"font-family:monospace,monospace">=C2=A0 =C2=A0</span=
><span style=3D"font-family:monospace,monospace">=C2=A0 =C2=A0</span><span =
style=3D"font-family:monospace,monospace">=C2=A0 allocateBandwidth(n, bw * =
n.weight / totalWeight)</span></div><div><span style=3D"font-family:monospa=
ce,monospace">=C2=A0 =C2=A0 =C2=A0 }</span></div><div><span style=3D"font-f=
amily:monospace,monospace">=C2=A0</span><span style=3D"font-family:monospac=
e,monospace">=C2=A0 =C2=A0}</span></div><div><span style=3D"font-family:mon=
ospace,monospace">=C2=A0</span><span style=3D"font-family:monospace,monospa=
ce">=C2=A0</span><font face=3D"monospace, monospace">}</font></div><div><fo=
nt face=3D"monospace, monospace">=C2=A0 allocateBandwidth(root, 1.0)</font>=
</div><div><br></div><div>I believe the above definition is a direct transl=
ation of RFC 7540 Section 5.3.2=C2=A0(also see <a href=3D"https://lists.w3.=
org/Archives/Public/ietf-http-wg/2016OctDec/0601.html" target=3D"_blank">th=
is thread</a>, which discussed bandwidth allocation). Given a complete band=
width allocation, the server can translate each node&#39;s bandwidthShare t=
o a number of tokens that are updated using a token bucket algorithm (or si=
milar). The scheduler would then pick the node with the most available toke=
ns. The scheduler looks something like:</div><div><br></div><div><span styl=
e=3D"font-family:monospace,monospace">=C2=A0</span><span style=3D"font-fami=
ly:monospace,monospace">=C2=A0func=C2=A0</span><font face=3D"monospace, mon=
ospace">scheduleNextFrame() {</font></div><div><font face=3D"monospace, mon=
ospace">=C2=A0=C2=A0</font><span style=3D"font-family:monospace,monospace">=
=C2=A0</span><span style=3D"font-family:monospace,monospace">=C2=A0</span><=
span style=3D"font-family:monospace,monospace">if (tree changed since last =
frame written) {</span></div><div><font face=3D"monospace, monospace">=C2=
=A0 =C2=A0</font><span style=3D"font-family:monospace,monospace">=C2=A0</sp=
an><span style=3D"font-family:monospace,monospace">=C2=A0</span><span style=
=3D"font-family:monospace,monospace">=C2=A0</span><span style=3D"font-famil=
y:monospace,monospace">allocateBandwidth(root, 1.0)</span></div><div><span =
style=3D"font-family:monospace,monospace">=C2=A0 =C2=A0 =C2=A0 assign token=
s and build a priority queue containing all nodes=C2=A0</span><span style=
=3D"font-family:monospace,monospace">with allocated bandwidth</span></div><=
div><font face=3D"monospace, monospace">=C2=A0</font><span style=3D"font-fa=
mily:monospace,monospace">=C2=A0</span><span style=3D"font-family:monospace=
,monospace">=C2=A0</span><span style=3D"font-family:monospace,monospace">=
=C2=A0}</span></div><div><font face=3D"monospace, monospace">=C2=A0</font><=
span style=3D"font-family:monospace,monospace">=C2=A0</span><span style=3D"=
font-family:monospace,monospace">=C2=A0</span><span style=3D"font-family:mo=
nospace,monospace">=C2=A0node =3D priorityQueue.head()</span></div><div><sp=
an style=3D"font-family:monospace,monospace">=C2=A0 =C2=A0 node.consumeToke=
ns() // consume up to frame size or flow-control limit</span></div><div><sp=
an style=3D"font-family:monospace,monospace">=C2=A0 =C2=A0 priorityQueue.up=
date(node)</span></div><div><span style=3D"font-family:monospace,monospace"=
>=C2=A0 =C2=A0 return node</span></div><div><div><div><div><span style=3D"f=
ont-family:monospace,monospace">=C2=A0</span><span style=3D"font-family:mon=
ospace,monospace">=C2=A0</span><font face=3D"monospace, monospace">}</font>=
</div></div></div></div><div><br></div><div>There are two steps in schedule=
NextFrame. The first step updates the bandwidth allocation if the tree chan=
ged since the last frame was written. This is the most expensive step. I do=
n&#39;t believe it&#39;s possible to implement allocateBandwidth using fewe=
r than O(n) worst-case steps. For example, if the tree is mostly flat, mean=
ing that most nodes are children of the same node, then the loop to compute=
 totalWeight is O(n). I believe <a href=3D"http://bitsup.blogspot.com/2015/=
01/http2-dependency-priorities-in-firefox.html" target=3D"_blank">Firefox</=
a> creates mostly-flat trees. Further, allocateBandwidth makes O(depth) rec=
ursive steps, where &quot;depth&quot; is the maximum depth of the dependenc=
y tree. If the tree is mostly-linear, then O(depth) becomes O(n). <a href=
=3D"https://cs.chromium.org/chromium/src/net/spdy/http2_priority_dependenci=
es.cc" target=3D"_blank">Chrome</a> creates mostly-linear trees.</div><div>=
<br></div><div>The overall runtime depends on how often the tree changes. I=
f the tree changes rarely, the scheduler is cheap. If the tree changes freq=
uently, the scheduler is worst-case O(n). A tree has &quot;changed&quot; if=
 it changed shape (nodes are added/moved/removed) or if any node&#39;s read=
y state has changed. Both kinds of changes can happen often in practice, su=
ggesting that the overall scheduler is worst-case O(n). For example, consid=
er a server that sends small responses (one or two DATA frames per response=
) -- each stream will be closed after one or two DATA frames, so on average=
, the tree will change shape every few frames. Further, it&#39;s possible f=
or ready states to change more frequently than you might think. In Go&#39;s=
 HTTP/2 implementation, a stream does not become ready until the applicatio=
n handler calls Write to buffer response data. After that buffered data is =
serialized on the wire, the stream transitions to &quot;not ready&quot; bec=
ause the scheduler cannot know when the next Write call will happen. The st=
ream will transition back to &quot;ready&quot; during the next Write call. =
Each Write call typically buffers about 32KB of data. This is a &quot;push&=
quot; model, where the application handler &quot;pushes&quot; data into the=
 scheduler. I&#39;m aware of one other HTTP/2 server that works similarly. =
I suspect that frequent ready/not-ready transitions are common to most HTTP=
/2 servers that use a &quot;push&quot; model. These servers will be more su=
sceptible to the O(n) worst case.</div><div><br></div><div>Questions:</div>=
<div><br></div><div>1. Am I missing a clever implementation, or is it true =
that a faithful HTTP/2 scheduler necessarily requires O(n) operations per f=
rame sent on the wire, in the worst case? I could not find much discussion =
of this question after a quick search. H2O=C2=A0<a href=3D"https://h2o.exam=
p1e.net/configure/http2_directives.html" target=3D"_blank">claims to implem=
ent an O(1) scheduler</a>, however, the code seems to be worst-case O(depth=
) or O(n) -- see=C2=A0<a href=3D"https://github.com/h2o/h2o/blob/9b70b61b07=
05ccce22a188e65363cdb506285ff1/lib/http2/scheduler.c#L326" target=3D"_blank=
">here</a>,=C2=A0<a href=3D"https://github.com/h2o/h2o/blob/9b70b61b0705ccc=
e22a188e65363cdb506285ff1/lib/http2/scheduler.c#L342" target=3D"_blank">her=
e</a>, and=C2=A0<a href=3D"https://github.com/h2o/h2o/blob/9b70b61b0705ccce=
22a188e65363cdb506285ff1/lib/http2/scheduler.c#L214" target=3D"_blank">here=
</a>.</div><div><br></div><div>2. If the above is correct, should I be conc=
erned about the O(n) worst case? I doubt that a typical web browsing sessio=
n will trigger O(n) behavior frequently, so I&#39;m less concerned about th=
e average case; I&#39;m more concerned about pathological cases or possible=
 DoS vectors. Also, think about cases where the &quot;client&quot; is actua=
lly a proxy server, meaning the HTTP/2 connection may have many more concur=
rent streams than a typical browsing session. For comparison, if you recall=
 the predecessor to HTTP/2 (SPDY), a SPDY scheduler could be trivially impl=
emented in O(1), since SPDY used just eight priority buckets.<br></div></di=
v></div></div><div><br></div><div>3. If I should be concerned about an O(n)=
 worst case, are there any suggested mitigations beyond setting=C2=A0SETTIN=
GS_MAX_CONCURRENT_STREAMS to a smallish constant?</div></div>

--f403045f530a21ecd20546cc5aac--


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Mon Jan 23 23:40:33 2017
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 3C09612957A for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 23 Jan 2017 23:40:33 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.72
X-Spam-Level:
X-Spam-Status: No, score=-9.72 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, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, 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 no23vW_OKbaU for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 23 Jan 2017 23:40:31 -0800 (PST)
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 93EAF129578 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 23 Jan 2017 23:40:31 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cVvfO-0003Mu-K1 for ietf-http-wg-dist@listhub.w3.org; Tue, 24 Jan 2017 07:37:22 +0000
Resent-Date: Tue, 24 Jan 2017 07:37:22 +0000
Resent-Message-Id: <E1cVvfO-0003Mu-K1@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <kazuhooku@gmail.com>) id 1cVvfJ-0002jh-Od for ietf-http-wg@listhub.w3.org; Tue, 24 Jan 2017 07:37:17 +0000
Received: from mail-ot0-f173.google.com ([74.125.82.173]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <kazuhooku@gmail.com>) id 1cVvfD-0003KL-MQ for ietf-http-wg@w3.org; Tue, 24 Jan 2017 07:37:12 +0000
Received: by mail-ot0-f173.google.com with SMTP id 73so121090187otj.0 for <ietf-http-wg@w3.org>; Mon, 23 Jan 2017 23:36:51 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=3V/bn089vvt1CH7HWshIU2Q20mfDScvafNLovPYObJY=; b=O0gLNGvhY0tC+/uWvlck0k2FCgnJo/ZMgw4IyLqMg1CXJdmWSM8PXN3of/1dxgmJlo N/bKtd6DuHowWNLuX2u9PMQFvzSilOfvr1Sdb4ypLO57hfg94tUNaempJ3ohkb9/JaQ/ d3C6WrAsAjh5Z85ySZ8kT9DVIRkWWOfC/FqRMA9x54XBJDkotNGVGXNWWUBleJQ4Q6rw 0P06bp7XRUrDkl4zQSZkIgHMeDDThMD6w1aKav8detSezIR8Xe/Ebmy2EpKio3mc89iY qFQcXYuUanWn49sT6HRpPRT4DZrHRPS7pChqvfletam1Db0q3OCM5mfGhMkXKjMVBoEu Bs9w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=3V/bn089vvt1CH7HWshIU2Q20mfDScvafNLovPYObJY=; b=hZu5/7F0wiLvRGlLOlvlMH9z8RWO+vaneJCW3oEf704sO8ghmQzYftEPTlOnxeGbr1 mn6LOvj8ZLIWesaHOTDGedNOCxF3aneHzg1DiEJ1AjIJyYGKNgmyvfdO9Jf2mzVsQLTe Vo4RHXyXV5TV2siOY1FeHpTSxekuIe5hiVlsfDZsuaFedEpntA3Wx8lts+8Xa6ktWoKd L6zvxBwMeoGidj/zL9o9lrYCNtds9t97g9OJ3LZyHvjGQZULg/9OlPhjKkw5nWEYeosb GRj4l9CTpKdplb2Hg+04i0YjA7jCoeZ45i0jqyvkjMlEziBX8FMhXd6xucpcFP8js1ah BH8Q==
X-Gm-Message-State: AIkVDXIu6Z9arwNlgLcVAvbXvma5q1gbeuXL/FbvNaC7cqrATEdv7Hyme+58HGqzfMTY8Ft08TzCMSc/3xoD+w==
X-Received: by 10.157.42.7 with SMTP id t7mr14351087ota.237.1485243405338; Mon, 23 Jan 2017 23:36:45 -0800 (PST)
MIME-Version: 1.0
Received: by 10.157.16.113 with HTTP; Mon, 23 Jan 2017 23:36:44 -0800 (PST)
In-Reply-To: <CA+3+x5Ft8MfRduWp1RzJ9_qAgQiCujac8f5FLz81Xpyu3cTDxw@mail.gmail.com>
References: <CA+3+x5Ft8MfRduWp1RzJ9_qAgQiCujac8f5FLz81Xpyu3cTDxw@mail.gmail.com>
From: Kazuho Oku <kazuhooku@gmail.com>
Date: Tue, 24 Jan 2017 16:36:44 +0900
Message-ID: <CANatvzz0AYxBDDyEbpvnq1xPd1-vrFazbnVt2usanXS0CTKbeA@mail.gmail.com>
To: Tom Bergan <tombergan@chromium.org>
Cc: HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: text/plain; charset=UTF-8
Received-SPF: pass client-ip=74.125.82.173; envelope-from=kazuhooku@gmail.com; helo=mail-ot0-f173.google.com
X-W3C-Hub-Spam-Status: No, score=-4.2
X-W3C-Hub-Spam-Report: AWL=-0.700, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cVvfD-0003KL-MQ b6cff1ee919850f08ab367a1d15e63a6
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Is a faithful HTTP/2 response scheduler necessarily O(n) in the  worst case?
Archived-At: <http://www.w3.org/mid/CANatvzz0AYxBDDyEbpvnq1xPd1-vrFazbnVt2usanXS0CTKbeA@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33363
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>

Regarding your question, I am unaware of a scheduler design that is
better than O(n) for both dequeuing (i.e. selecting the stream to
send) and for rescheduling a stream (especially a stream with many
decendants).

While designing the scheduler of H2O (you are right in pointing out
the fact that it is O(depth)), I came up with two options. One was to
retain the vertical (i.e. parent-children) relationship between the
streams. The other was to squash the vertical relationships to
generate a one-dimensional list of streams ordered by priority.

By taking the latter approach, you could create a scheduler that
dequeues at O(1). But such scheduler would need to perform O(N)
operation when receiving a priority frame or a stream-level window
update (in this case N is number of direct and indirect decendants of
the reprioritized stream).

Considering this, we chose to implement the scheduler of H2O as O(1)
weight-wise, and O(n) depth-wise, but that the constant for O(n) would
be small enough so that it cannot be used an attack vector.

2017-01-24 9:39 GMT+09:00 Tom Bergan <tombergan@chromium.org>:
> I implemented the HTTP/2 response scheduler in Go's HTTP/2 server library.
> I'm trying to understand the worst-case behavior of that scheduler. I
> believe the worst-case behavior is necessarily O(n) operations per frame
> sent on the wire, where n is the number of streams in the dependency tree.
> Here is my rationale.
>
> The key operation is finding the highest-priority stream that is ready to
> send data.
>
> If we don't care about weights, and we don't care about balancing bandwidth
> usage across sibling nodes in a tree, then we can label each node with two
> fields: "ready" (true if the stream is ready to send data) and "depth" (the
> node's distance from the root of the tree). The scheduler must find a node
> with the smallest depth over all nodes with ready = true. It is fairly
> trivial to implement this in O(log n).
>
> Now, let's introduce weights. The scheduler must allocate bandwidth to all
> ready nodes, which happens recursively as follows:
>
>   func allocateBandwidth(node, bw) {
>     if (node.ready) {
>       node.bandwidthShare = bw
>       return
>     }
>     totalWeight = 0
>     for (n in node.children) {
>       if (n.ready || descendantIsReady(n)) {
>         totalWeight += n.weight
>       }
>     }
>     for (n in node.children) {
>       if (n.ready || descendantIsReady(n)) {
>         allocateBandwidth(n, bw * n.weight / totalWeight)
>       }
>     }
>   }
>   allocateBandwidth(root, 1.0)
>
> I believe the above definition is a direct translation of RFC 7540 Section
> 5.3.2 (also see this thread, which discussed bandwidth allocation). Given a
> complete bandwidth allocation, the server can translate each node's
> bandwidthShare to a number of tokens that are updated using a token bucket
> algorithm (or similar). The scheduler would then pick the node with the most
> available tokens. The scheduler looks something like:
>
>   func scheduleNextFrame() {
>     if (tree changed since last frame written) {
>       allocateBandwidth(root, 1.0)
>       assign tokens and build a priority queue containing all nodes with
> allocated bandwidth
>     }
>     node = priorityQueue.head()
>     node.consumeTokens() // consume up to frame size or flow-control limit
>     priorityQueue.update(node)
>     return node
>   }
>
> There are two steps in scheduleNextFrame. The first step updates the
> bandwidth allocation if the tree changed since the last frame was written.
> This is the most expensive step. I don't believe it's possible to implement
> allocateBandwidth using fewer than O(n) worst-case steps. For example, if
> the tree is mostly flat, meaning that most nodes are children of the same
> node, then the loop to compute totalWeight is O(n). I believe Firefox
> creates mostly-flat trees. Further, allocateBandwidth makes O(depth)
> recursive steps, where "depth" is the maximum depth of the dependency tree.
> If the tree is mostly-linear, then O(depth) becomes O(n). Chrome creates
> mostly-linear trees.
>
> The overall runtime depends on how often the tree changes. If the tree
> changes rarely, the scheduler is cheap. If the tree changes frequently, the
> scheduler is worst-case O(n). A tree has "changed" if it changed shape
> (nodes are added/moved/removed) or if any node's ready state has changed.
> Both kinds of changes can happen often in practice, suggesting that the
> overall scheduler is worst-case O(n). For example, consider a server that
> sends small responses (one or two DATA frames per response) -- each stream
> will be closed after one or two DATA frames, so on average, the tree will
> change shape every few frames. Further, it's possible for ready states to
> change more frequently than you might think. In Go's HTTP/2 implementation,
> a stream does not become ready until the application handler calls Write to
> buffer response data. After that buffered data is serialized on the wire,
> the stream transitions to "not ready" because the scheduler cannot know when
> the next Write call will happen. The stream will transition back to "ready"
> during the next Write call. Each Write call typically buffers about 32KB of
> data. This is a "push" model, where the application handler "pushes" data
> into the scheduler. I'm aware of one other HTTP/2 server that works
> similarly. I suspect that frequent ready/not-ready transitions are common to
> most HTTP/2 servers that use a "push" model. These servers will be more
> susceptible to the O(n) worst case.
>
> Questions:
>
> 1. Am I missing a clever implementation, or is it true that a faithful
> HTTP/2 scheduler necessarily requires O(n) operations per frame sent on the
> wire, in the worst case? I could not find much discussion of this question
> after a quick search. H2O claims to implement an O(1) scheduler, however,
> the code seems to be worst-case O(depth) or O(n) -- see here, here, and
> here.
>
> 2. If the above is correct, should I be concerned about the O(n) worst case?
> I doubt that a typical web browsing session will trigger O(n) behavior
> frequently, so I'm less concerned about the average case; I'm more concerned
> about pathological cases or possible DoS vectors. Also, think about cases
> where the "client" is actually a proxy server, meaning the HTTP/2 connection
> may have many more concurrent streams than a typical browsing session. For
> comparison, if you recall the predecessor to HTTP/2 (SPDY), a SPDY scheduler
> could be trivially implemented in O(1), since SPDY used just eight priority
> buckets.
>
> 3. If I should be concerned about an O(n) worst case, are there any
> suggested mitigations beyond setting SETTINGS_MAX_CONCURRENT_STREAMS to a
> smallish constant?



-- 
Kazuho Oku


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Mon Jan 23 23:56:58 2017
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 99A4712957C for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 23 Jan 2017 23:56:58 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.22
X-Spam-Level:
X-Spam-Status: No, score=-10.22 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=-3.199, 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=iij.ad.jp
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 5ZSZH2YdLJAc for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 23 Jan 2017 23:56:56 -0800 (PST)
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 1588212957A for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 23 Jan 2017 23:56:56 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cVvw0-0004Wj-UJ for ietf-http-wg-dist@listhub.w3.org; Tue, 24 Jan 2017 07:54:32 +0000
Resent-Date: Tue, 24 Jan 2017 07:54:32 +0000
Resent-Message-Id: <E1cVvw0-0004Wj-UJ@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <kazu@iij.ad.jp>) id 1cVvvw-0004Qh-Gt for ietf-http-wg@listhub.w3.org; Tue, 24 Jan 2017 07:54:28 +0000
Received: from mo901.iij.ad.jp ([202.232.31.77] helo=omgo.iij.ad.jp) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <kazu@iij.ad.jp>) id 1cVvvp-0003qs-LZ for ietf-http-wg@w3.org; Tue, 24 Jan 2017 07:54:23 +0000
DKIM-Signature: v=1;a=rsa-sha256;c=relaxed/simple;d=iij.ad.jp;h=Date: Message-Id:To:Subject:From:In-Reply-To:References:Mime-Version:Content-Type: Content-Transfer-Encoding;i=kazu@iij.ad.jp;s=omgo2;t=1485244437;x=1486454037; bh=PPzHEDRBmt4SfYkH+eCIFr/50L8IiCWtti/YDym5zac=;b=PFQ2vgyk9jyooMjNcPeRlNNi5bx tuFMbhzVl+zUEZ7PNMuMvM+t3Am9n4pG7bP0nHNqk2uwthrZcyg8j1NxiA4dHeAl5ctZXlUQYhqLd emu+nV2bZCZmCJ7qBTbBtDsb70oK51fQVZrFnqIzlU/DL58ZX1HWao6qkGgGKeDpN2ORNvuFpgbEm VcKWYal4s9p2C04JfNrITacufxu6/H5i6LN7QqgnGClFqkqd96Fhoyc3/20MofKth9pM4Cf/ywSai pms+YQOMIjpf+jSlgzVpEyJG1ZlRJD7DKmCDeR03JFu+CRWpH7x8wmeimyHzjKqNpIuV+Jut7ogac fHvalMQ==;
Received: by omgo.iij.ad.jp (mo901) id v0O7rvCO003616; Tue, 24 Jan 2017 16:53:57 +0900
X-MXL-Hash: 5887081500b54bf3-240f3bc31dec7860950a82ea28c03964e746a474
Date: Tue, 24 Jan 2017 16:53:56 +0900 (JST)
Message-Id: <20170124.165356.870174430965764062.kazu@iij.ad.jp>
To: ietf-http-wg@w3.org
From: Kazu Yamamoto (=?iso-2022-jp?B?GyRCOzNLXE9CSScbKEI=?=) <kazu@iij.ad.jp>
In-Reply-To: <CANatvzz0AYxBDDyEbpvnq1xPd1-vrFazbnVt2usanXS0CTKbeA@mail.gmail.com>
References: <CA+3+x5Ft8MfRduWp1RzJ9_qAgQiCujac8f5FLz81Xpyu3cTDxw@mail.gmail.com> <CANatvzz0AYxBDDyEbpvnq1xPd1-vrFazbnVt2usanXS0CTKbeA@mail.gmail.com>
X-Mailer: Mew version 6.7 on Emacs 25.1 / Mule 6.0 (HANACHIRUSATO)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Received-SPF: pass client-ip=202.232.31.77; envelope-from=kazu@iij.ad.jp; helo=omgo.iij.ad.jp
X-W3C-Hub-Spam-Status: No, score=-7.1
X-W3C-Hub-Spam-Report: AWL=0.100, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RP_MATCHES_RCVD=-3.199, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cVvvp-0003qs-LZ 42d1863ff32c4dfa19b87029a170056d
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Is a faithful HTTP/2 response scheduler necessarily O(n) in  the worst case?
Archived-At: <http://www.w3.org/mid/20170124.165356.870174430965764062.kazu@iij.ad.jp>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33364
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>

Hi Tom,

Probably, this material would help you:

http://www.mew.org/~kazu/material/2015-http2-priority2.pdf
http://www.mew.org/~kazu/doc/paper/http2-haskell-2016.pdf

--Kazu

> Regarding your question, I am unaware of a scheduler design that is
> better than O(n) for both dequeuing (i.e. selecting the stream to
> send) and for rescheduling a stream (especially a stream with many
> decendants).
> 
> While designing the scheduler of H2O (you are right in pointing out
> the fact that it is O(depth)), I came up with two options. One was to
> retain the vertical (i.e. parent-children) relationship between the
> streams. The other was to squash the vertical relationships to
> generate a one-dimensional list of streams ordered by priority.
> 
> By taking the latter approach, you could create a scheduler that
> dequeues at O(1). But such scheduler would need to perform O(N)
> operation when receiving a priority frame or a stream-level window
> update (in this case N is number of direct and indirect decendants of
> the reprioritized stream).
> 
> Considering this, we chose to implement the scheduler of H2O as O(1)
> weight-wise, and O(n) depth-wise, but that the constant for O(n) would
> be small enough so that it cannot be used an attack vector.
> 
> 2017-01-24 9:39 GMT+09:00 Tom Bergan <tombergan@chromium.org>:
>> I implemented the HTTP/2 response scheduler in Go's HTTP/2 server library.
>> I'm trying to understand the worst-case behavior of that scheduler. I
>> believe the worst-case behavior is necessarily O(n) operations per frame
>> sent on the wire, where n is the number of streams in the dependency tree.
>> Here is my rationale.
>>
>> The key operation is finding the highest-priority stream that is ready to
>> send data.
>>
>> If we don't care about weights, and we don't care about balancing bandwidth
>> usage across sibling nodes in a tree, then we can label each node with two
>> fields: "ready" (true if the stream is ready to send data) and "depth" (the
>> node's distance from the root of the tree). The scheduler must find a node
>> with the smallest depth over all nodes with ready = true. It is fairly
>> trivial to implement this in O(log n).
>>
>> Now, let's introduce weights. The scheduler must allocate bandwidth to all
>> ready nodes, which happens recursively as follows:
>>
>>   func allocateBandwidth(node, bw) {
>>     if (node.ready) {
>>       node.bandwidthShare = bw
>>       return
>>     }
>>     totalWeight = 0
>>     for (n in node.children) {
>>       if (n.ready || descendantIsReady(n)) {
>>         totalWeight += n.weight
>>       }
>>     }
>>     for (n in node.children) {
>>       if (n.ready || descendantIsReady(n)) {
>>         allocateBandwidth(n, bw * n.weight / totalWeight)
>>       }
>>     }
>>   }
>>   allocateBandwidth(root, 1.0)
>>
>> I believe the above definition is a direct translation of RFC 7540 Section
>> 5.3.2 (also see this thread, which discussed bandwidth allocation). Given a
>> complete bandwidth allocation, the server can translate each node's
>> bandwidthShare to a number of tokens that are updated using a token bucket
>> algorithm (or similar). The scheduler would then pick the node with the most
>> available tokens. The scheduler looks something like:
>>
>>   func scheduleNextFrame() {
>>     if (tree changed since last frame written) {
>>       allocateBandwidth(root, 1.0)
>>       assign tokens and build a priority queue containing all nodes with
>> allocated bandwidth
>>     }
>>     node = priorityQueue.head()
>>     node.consumeTokens() // consume up to frame size or flow-control limit
>>     priorityQueue.update(node)
>>     return node
>>   }
>>
>> There are two steps in scheduleNextFrame. The first step updates the
>> bandwidth allocation if the tree changed since the last frame was written.
>> This is the most expensive step. I don't believe it's possible to implement
>> allocateBandwidth using fewer than O(n) worst-case steps. For example, if
>> the tree is mostly flat, meaning that most nodes are children of the same
>> node, then the loop to compute totalWeight is O(n). I believe Firefox
>> creates mostly-flat trees. Further, allocateBandwidth makes O(depth)
>> recursive steps, where "depth" is the maximum depth of the dependency tree.
>> If the tree is mostly-linear, then O(depth) becomes O(n). Chrome creates
>> mostly-linear trees.
>>
>> The overall runtime depends on how often the tree changes. If the tree
>> changes rarely, the scheduler is cheap. If the tree changes frequently, the
>> scheduler is worst-case O(n). A tree has "changed" if it changed shape
>> (nodes are added/moved/removed) or if any node's ready state has changed.
>> Both kinds of changes can happen often in practice, suggesting that the
>> overall scheduler is worst-case O(n). For example, consider a server that
>> sends small responses (one or two DATA frames per response) -- each stream
>> will be closed after one or two DATA frames, so on average, the tree will
>> change shape every few frames. Further, it's possible for ready states to
>> change more frequently than you might think. In Go's HTTP/2 implementation,
>> a stream does not become ready until the application handler calls Write to
>> buffer response data. After that buffered data is serialized on the wire,
>> the stream transitions to "not ready" because the scheduler cannot know when
>> the next Write call will happen. The stream will transition back to "ready"
>> during the next Write call. Each Write call typically buffers about 32KB of
>> data. This is a "push" model, where the application handler "pushes" data
>> into the scheduler. I'm aware of one other HTTP/2 server that works
>> similarly. I suspect that frequent ready/not-ready transitions are common to
>> most HTTP/2 servers that use a "push" model. These servers will be more
>> susceptible to the O(n) worst case.
>>
>> Questions:
>>
>> 1. Am I missing a clever implementation, or is it true that a faithful
>> HTTP/2 scheduler necessarily requires O(n) operations per frame sent on the
>> wire, in the worst case? I could not find much discussion of this question
>> after a quick search. H2O claims to implement an O(1) scheduler, however,
>> the code seems to be worst-case O(depth) or O(n) -- see here, here, and
>> here.
>>
>> 2. If the above is correct, should I be concerned about the O(n) worst case?
>> I doubt that a typical web browsing session will trigger O(n) behavior
>> frequently, so I'm less concerned about the average case; I'm more concerned
>> about pathological cases or possible DoS vectors. Also, think about cases
>> where the "client" is actually a proxy server, meaning the HTTP/2 connection
>> may have many more concurrent streams than a typical browsing session. For
>> comparison, if you recall the predecessor to HTTP/2 (SPDY), a SPDY scheduler
>> could be trivially implemented in O(1), since SPDY used just eight priority
>> buckets.
>>
>> 3. If I should be concerned about an O(n) worst case, are there any
>> suggested mitigations beyond setting SETTINGS_MAX_CONCURRENT_STREAMS to a
>> smallish constant?
> 
> 
> 
> -- 
> Kazuho Oku
> 


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Tue Jan 24 00:30:13 2017
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 47E351294BE for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 24 Jan 2017 00:30:13 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.219
X-Spam-Level:
X-Spam-Status: No, score=-10.219 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, MIME_QP_LONG_LINE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=greenbytes.de header.b=Z6sZkhkW; dkim=pass (1024-bit key) header.d=greenbytes.de header.b=c2Ksf4sn
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 yvSdLDRGzyv0 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 24 Jan 2017 00:30:11 -0800 (PST)
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 3737C129458 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 24 Jan 2017 00:30:11 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cVwRp-00077r-5Z for ietf-http-wg-dist@listhub.w3.org; Tue, 24 Jan 2017 08:27:25 +0000
Resent-Date: Tue, 24 Jan 2017 08:27:25 +0000
Resent-Message-Id: <E1cVwRp-00077r-5Z@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <stefan.eissing@greenbytes.de>) id 1cVwRn-00076z-7c for ietf-http-wg@listhub.w3.org; Tue, 24 Jan 2017 08:27:23 +0000
Received: from mail.greenbytes.de ([5.10.171.186]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <stefan.eissing@greenbytes.de>) id 1cVwRg-0004u4-Kk for ietf-http-wg@w3.org; Tue, 24 Jan 2017 08:27:17 +0000
Received: by mail.greenbytes.de (Postfix, from userid 117) id 2623515A04B0; Tue, 24 Jan 2017 09:26:49 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=greenbytes.de; s=mail; t=1485246409; bh=epcbeo1A+sW3cSySox+PfuO8OodKxpHLw+ObQxcui1o=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=Z6sZkhkWFjHDEQMWCJbVxkTUpoTboWe3TxLQSMJNmkUln5QPv5+u/YZ94JaClk5DT N/gql0065tiKC6xAuOzUZGKS3ohbQomaO0RF4/yovu3G4mDIzPOgirJyl+gKz+nwZB CckojskDCteQIo0fzJo5fOdaw/t0uoJEbl/gQtSA=
Received: from [192.168.178.54] (unknown [93.211.122.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mail.greenbytes.de (Postfix) with ESMTPSA id 70DEA15A0468; Tue, 24 Jan 2017 09:26:48 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=greenbytes.de; s=mail; t=1485246408; bh=epcbeo1A+sW3cSySox+PfuO8OodKxpHLw+ObQxcui1o=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=c2Ksf4snsVbt4Qn0mZk3eDFiaYEcXYh3ahEjd6s+GB/iuta0izA8oaAMwokWcKXXE p673o2qinAluzd0dpexTR5Jb9WX3Oz8DJjqWH5L1TjXvGgUuB8U/h1SMfFDgj0p/5n DRreTDRxa4g4Kk4qRqJu1US3ndcAUTh4QX38C5AE=
Content-Type: text/plain; charset=utf-8
Mime-Version: 1.0 (1.0)
From: Stefan Eissing <stefan.eissing@greenbytes.de>
X-Mailer: iPhone Mail (14D27)
In-Reply-To: <20170124.165356.870174430965764062.kazu@iij.ad.jp>
Date: Tue, 24 Jan 2017 09:26:47 +0100
Cc: ietf-http-wg@w3.org
Content-Transfer-Encoding: quoted-printable
Message-Id: <900A5D6B-0752-470E-840C-4518D933DD09@greenbytes.de>
References: <CA+3+x5Ft8MfRduWp1RzJ9_qAgQiCujac8f5FLz81Xpyu3cTDxw@mail.gmail.com> <CANatvzz0AYxBDDyEbpvnq1xPd1-vrFazbnVt2usanXS0CTKbeA@mail.gmail.com> <20170124.165356.870174430965764062.kazu@iij.ad.jp>
To: =?utf-8?Q?"Kazu_Yamamoto_=28=E5=B1=B1=E6=9C=AC=E5=92=8C=E5=BD=A6=29"?= <kazu@iij.ad.jp>
Received-SPF: pass client-ip=5.10.171.186; envelope-from=stefan.eissing@greenbytes.de; helo=mail.greenbytes.de
X-W3C-Hub-Spam-Status: No, score=-6.7
X-W3C-Hub-Spam-Report: AWL=0.482, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, MIME_QP_LONG_LINE=0.001, RP_MATCHES_RCVD=-3.199, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cVwRg-0004u4-Kk da2b5706046356fe8c3e4f20062a193a
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Is a faithful HTTP/2 response scheduler necessarily O(n) in  the worst case?
Archived-At: <http://www.w3.org/mid/900A5D6B-0752-470E-840C-4518D933DD09@greenbytes.de>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33365
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>

The very same problem exists for stream processing in order to generate resp=
onse data.

> Am 24.01.2017 um 08:53 schrieb Kazu Yamamoto (=E5=B1=B1=E6=9C=AC=E5=92=8C=E5=
=BD=A6) <kazu@iij.ad.jp>:
>=20
> Hi Tom,
>=20
> Probably, this material would help you:
>=20
> http://www.mew.org/~kazu/material/2015-http2-priority2.pdf
> http://www.mew.org/~kazu/doc/paper/http2-haskell-2016.pdf
>=20
> --Kazu
>=20
>> Regarding your question, I am unaware of a scheduler design that is
>> better than O(n) for both dequeuing (i.e. selecting the stream to
>> send) and for rescheduling a stream (especially a stream with many
>> decendants).
>>=20
>> While designing the scheduler of H2O (you are right in pointing out
>> the fact that it is O(depth)), I came up with two options. One was to
>> retain the vertical (i.e. parent-children) relationship between the
>> streams. The other was to squash the vertical relationships to
>> generate a one-dimensional list of streams ordered by priority.
>>=20
>> By taking the latter approach, you could create a scheduler that
>> dequeues at O(1). But such scheduler would need to perform O(N)
>> operation when receiving a priority frame or a stream-level window
>> update (in this case N is number of direct and indirect decendants of
>> the reprioritized stream).
>>=20
>> Considering this, we chose to implement the scheduler of H2O as O(1)
>> weight-wise, and O(n) depth-wise, but that the constant for O(n) would
>> be small enough so that it cannot be used an attack vector.
>>=20
>> 2017-01-24 9:39 GMT+09:00 Tom Bergan <tombergan@chromium.org>:
>>> I implemented the HTTP/2 response scheduler in Go's HTTP/2 server librar=
y.
>>> I'm trying to understand the worst-case behavior of that scheduler. I
>>> believe the worst-case behavior is necessarily O(n) operations per frame=

>>> sent on the wire, where n is the number of streams in the dependency tre=
e.
>>> Here is my rationale.
>>>=20
>>> The key operation is finding the highest-priority stream that is ready t=
o
>>> send data.
>>>=20
>>> If we don't care about weights, and we don't care about balancing bandwi=
dth
>>> usage across sibling nodes in a tree, then we can label each node with t=
wo
>>> fields: "ready" (true if the stream is ready to send data) and "depth" (=
the
>>> node's distance from the root of the tree). The scheduler must find a no=
de
>>> with the smallest depth over all nodes with ready =3D true. It is fairly=

>>> trivial to implement this in O(log n).
>>>=20
>>> Now, let's introduce weights. The scheduler must allocate bandwidth to a=
ll
>>> ready nodes, which happens recursively as follows:
>>>=20
>>>  func allocateBandwidth(node, bw) {
>>>    if (node.ready) {
>>>      node.bandwidthShare =3D bw
>>>      return
>>>    }
>>>    totalWeight =3D 0
>>>    for (n in node.children) {
>>>      if (n.ready || descendantIsReady(n)) {
>>>        totalWeight +=3D n.weight
>>>      }
>>>    }
>>>    for (n in node.children) {
>>>      if (n.ready || descendantIsReady(n)) {
>>>        allocateBandwidth(n, bw * n.weight / totalWeight)
>>>      }
>>>    }
>>>  }
>>>  allocateBandwidth(root, 1.0)
>>>=20
>>> I believe the above definition is a direct translation of RFC 7540 Secti=
on
>>> 5.3.2 (also see this thread, which discussed bandwidth allocation). Give=
n a
>>> complete bandwidth allocation, the server can translate each node's
>>> bandwidthShare to a number of tokens that are updated using a token buck=
et
>>> algorithm (or similar). The scheduler would then pick the node with the m=
ost
>>> available tokens. The scheduler looks something like:
>>>=20
>>>  func scheduleNextFrame() {
>>>    if (tree changed since last frame written) {
>>>      allocateBandwidth(root, 1.0)
>>>      assign tokens and build a priority queue containing all nodes with
>>> allocated bandwidth
>>>    }
>>>    node =3D priorityQueue.head()
>>>    node.consumeTokens() // consume up to frame size or flow-control limi=
t
>>>    priorityQueue.update(node)
>>>    return node
>>>  }
>>>=20
>>> There are two steps in scheduleNextFrame. The first step updates the
>>> bandwidth allocation if the tree changed since the last frame was writte=
n.
>>> This is the most expensive step. I don't believe it's possible to implem=
ent
>>> allocateBandwidth using fewer than O(n) worst-case steps. For example, i=
f
>>> the tree is mostly flat, meaning that most nodes are children of the sam=
e
>>> node, then the loop to compute totalWeight is O(n). I believe Firefox
>>> creates mostly-flat trees. Further, allocateBandwidth makes O(depth)
>>> recursive steps, where "depth" is the maximum depth of the dependency tr=
ee.
>>> If the tree is mostly-linear, then O(depth) becomes O(n). Chrome creates=

>>> mostly-linear trees.
>>>=20
>>> The overall runtime depends on how often the tree changes. If the tree
>>> changes rarely, the scheduler is cheap. If the tree changes frequently, t=
he
>>> scheduler is worst-case O(n). A tree has "changed" if it changed shape
>>> (nodes are added/moved/removed) or if any node's ready state has changed=
.
>>> Both kinds of changes can happen often in practice, suggesting that the
>>> overall scheduler is worst-case O(n). For example, consider a server tha=
t
>>> sends small responses (one or two DATA frames per response) -- each stre=
am
>>> will be closed after one or two DATA frames, so on average, the tree wil=
l
>>> change shape every few frames. Further, it's possible for ready states t=
o
>>> change more frequently than you might think. In Go's HTTP/2 implementati=
on,
>>> a stream does not become ready until the application handler calls Write=
 to
>>> buffer response data. After that buffered data is serialized on the wire=
,
>>> the stream transitions to "not ready" because the scheduler cannot know w=
hen
>>> the next Write call will happen. The stream will transition back to "rea=
dy"
>>> during the next Write call. Each Write call typically buffers about 32KB=
 of
>>> data. This is a "push" model, where the application handler "pushes" dat=
a
>>> into the scheduler. I'm aware of one other HTTP/2 server that works
>>> similarly. I suspect that frequent ready/not-ready transitions are commo=
n to
>>> most HTTP/2 servers that use a "push" model. These servers will be more
>>> susceptible to the O(n) worst case.
>>>=20
>>> Questions:
>>>=20
>>> 1. Am I missing a clever implementation, or is it true that a faithful
>>> HTTP/2 scheduler necessarily requires O(n) operations per frame sent on t=
he
>>> wire, in the worst case? I could not find much discussion of this questi=
on
>>> after a quick search. H2O claims to implement an O(1) scheduler, however=
,
>>> the code seems to be worst-case O(depth) or O(n) -- see here, here, and
>>> here.
>>>=20
>>> 2. If the above is correct, should I be concerned about the O(n) worst c=
ase?
>>> I doubt that a typical web browsing session will trigger O(n) behavior
>>> frequently, so I'm less concerned about the average case; I'm more conce=
rned
>>> about pathological cases or possible DoS vectors. Also, think about case=
s
>>> where the "client" is actually a proxy server, meaning the HTTP/2 connec=
tion
>>> may have many more concurrent streams than a typical browsing session. Fo=
r
>>> comparison, if you recall the predecessor to HTTP/2 (SPDY), a SPDY sched=
uler
>>> could be trivially implemented in O(1), since SPDY used just eight prior=
ity
>>> buckets.
>>>=20
>>> 3. If I should be concerned about an O(n) worst case, are there any
>>> suggested mitigations beyond setting SETTINGS_MAX_CONCURRENT_STREAMS to a=

>>> smallish constant?
>>=20
>>=20
>>=20
>> --=20
>> Kazuho Oku
>>=20
>=20



From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Tue Jan 24 13:00:22 2017
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 BA9DB1297C4 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 24 Jan 2017 13:00:22 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.72
X-Spam-Level:
X-Spam-Status: No, score=-6.72 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, HTML_MESSAGE=0.001, HTML_MIME_NO_HTML_TAG=0.377, MIME_HTML_ONLY=0.723, MISSING_MIMEOLE=1.899, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, 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 rb56GrHVXXeY for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 24 Jan 2017 13:00:21 -0800 (PST)
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 C49141297C3 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 24 Jan 2017 13:00:21 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cW89C-0007PU-60 for ietf-http-wg-dist@listhub.w3.org; Tue, 24 Jan 2017 20:56:58 +0000
Resent-Date: Tue, 24 Jan 2017 20:56:58 +0000
Resent-Message-Id: <E1cW89C-0007PU-60@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <geronimotita@gmail.com>) id 1cW897-0007Oi-0P for ietf-http-wg@listhub.w3.org; Tue, 24 Jan 2017 20:56:53 +0000
Received: from mail-ot0-f193.google.com ([74.125.82.193]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <geronimotita@gmail.com>) id 1cW88w-0003N6-Uf for ietf-http-wg@w3.org; Tue, 24 Jan 2017 20:56:44 +0000
Received: by mail-ot0-f193.google.com with SMTP id 73so21085454otj.1 for <ietf-http-wg@w3.org>; Tue, 24 Jan 2017 12:56:22 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:message-id:from:to:importance:mime-version :content-transfer-encoding; bh=WLif2UoKS9xshNYjgPvjowa1WBShFIQ3k/yWTm3mmNU=; b=mo3RILTe+4V5C+uFITnP5RMiCmbBZQoqIcTpmivC9FH555ILnehuKt2YIuNST2mVFb izIXgO8+wNF9Ygl6y37VylJedUshQ4BGOV6/i5+SQzIJu/f138tC2C4nunPwTCMWwXGi /7VNeYWvG4SnkxtPBN3bwtYrLT9HSMx5fnJPqtTTZxyEgWTExvDY3/M+4fa/Sdf7+FhV HueOjpG8aPxABg1mxeN7nmXma8IGPcc77I5GKm2mRXwJphYniq9NN1ic3vNbJS1cyMqo 1e3xZFHJ56dEfnLwUu5My7k5U81Y0u1tMkBKN+N7rHJTirSqxbSmoefAxWcF0FHfZcon FYeg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:from:to:importance:mime-version :content-transfer-encoding; bh=WLif2UoKS9xshNYjgPvjowa1WBShFIQ3k/yWTm3mmNU=; b=dfdTp0eu54CONV8rL9QkswraukA09iuHtQJTIZNnyPoR2jqh4eX1KucEXM+3L9zbQp IyNNdo1JX7jfu1Z4fD9F1hz81D0n5fgypcrJceUPmx6373kpYsonQKMwx2PnSNpQQ6nT Cl4c/QOL3DRqgH1Zpad8kkfTvLJlr/RcYkmCYOOApVg39v3FOSyp+VDWOO40xeJ0wc2V /EhTxlJGxOO6O/3mAEJBkZyUqjLYo3+y3upfKECkqhMnoSzxHEX4EcG9O+Oav/wFrFzn E5/RwAUXYerlhbHA/YPqC6ETXKHw9/M3fg9j3uMJHe/KdyFyUaVe9JMPyJWnraY2pIKq YlgQ==
X-Gm-Message-State: AIkVDXIcHqlqiAmqkF+QfT1ZOTwl9tI5MknMP6Fq8A6ONZ87c+WkdRBpskd596BYrnzXcQ==
X-Received: by 10.157.41.171 with SMTP id n40mr19513723otb.155.1485291376249; Tue, 24 Jan 2017 12:56:16 -0800 (PST)
Received: from ?IPv6:2602:30a:c090:bb50:50df:5f44:2a3:ff32? ([2602:30a:c090:bb50:50df:5f44:2a3:ff32]) by smtp.gmail.com with ESMTPSA id b193sm11085588oii.3.2017.01.24.12.56.15 for <ietf-http-wg@w3.org> (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 24 Jan 2017 12:56:15 -0800 (PST)
Date: Tue, 24 Jan 2017 12:56:11 -0800
Message-ID: <789556d0-3c57-4487-97fa-eae175711ea4@email.android.com>
X-Android-Message-ID: <789556d0-3c57-4487-97fa-eae175711ea4@email.android.com>
From: geronimotita@gmail.com
To: ietf-http-wg@w3.org
Importance: Normal
X-Priority: 3
X-MSMail-Priority: Normal
MIME-Version: 1.0
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: base64
Received-SPF: pass client-ip=74.125.82.193; envelope-from=geronimotita@gmail.com; helo=mail-ot0-f193.google.com
X-W3C-Hub-Spam-Status: Yes, score=4.2
X-W3C-Hub-Spam-Report: AWL=0.200, BAYES_50=0.8, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, HTML_MIME_NO_HTML_TAG=0.377, MIME_HTML_ONLY=0.723, MISSING_MIMEOLE=1.899, MISSING_SUBJECT=1.799, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cW88w-0003N6-Uf ae0d23f446946b28b98087a831a0af50
X-Original-To: ietf-http-wg@w3.org
Subject: [ietf-http-wg] <none>
Archived-At: <http://www.w3.org/mid/789556d0-3c57-4487-97fa-eae175711ea4@email.android.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33366
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>

PGRpdiBkaXI9J2F1dG8nPkhleSBtaWtlPGRpdiBkaXI9ImF1dG8iPldoeSBkbyB5b3UgY29udGlu
dWUgdG8gbGllIHRvIG1lLjwvZGl2PjxkaXYgZGlyPSJhdXRvIj5JIGtub3cgdGhpcyBpcyB5b3Ug
YW5kIEkga25vdyB3aGF0IHlvdSBoYXZlIGJlZW4gZG9pbmcuIEFzayBtZSB0byBzaG93IHlvdSBw
cm9vZiBhbmQgSSB3aWxsLiBCdXQgSSBrbm93IHlvdSBkb24ndCBoYXZlIHRoZSBiYWxscyBjYXVz
ZSBhbGwgd2lsbCBiZSByZXZlYWxlZC4mbmJzcDs8YnI+PGRpdiBkaXI9ImF1dG8iPjxicj48YnI+
PGRpdiBkYXRhLXNtYXJ0bWFpbD0iZ21haWxfc2lnbmF0dXJlIiBkaXI9ImF1dG8iPnRpdGE8L2Rp
dj48L2Rpdj48L2Rpdj48L2Rpdj4=



From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Tue Jan 24 14:27:00 2017
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 6C262129462 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 24 Jan 2017 14:27:00 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.719
X-Spam-Level:
X-Spam-Status: No, score=-9.719 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=chromium.org
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 ai6jWnZ6eZ07 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 24 Jan 2017 14:26:57 -0800 (PST)
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 94AD112945F for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 24 Jan 2017 14:26:57 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cW9V4-0000ca-7b for ietf-http-wg-dist@listhub.w3.org; Tue, 24 Jan 2017 22:23:38 +0000
Resent-Date: Tue, 24 Jan 2017 22:23:38 +0000
Resent-Message-Id: <E1cW9V4-0000ca-7b@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <tombergan@chromium.org>) id 1cW9Ut-0000bb-2z for ietf-http-wg@listhub.w3.org; Tue, 24 Jan 2017 22:23:27 +0000
Received: from mail-wm0-f54.google.com ([74.125.82.54]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <tombergan@chromium.org>) id 1cW9Um-0005cG-1J for ietf-http-wg@w3.org; Tue, 24 Jan 2017 22:23:21 +0000
Received: by mail-wm0-f54.google.com with SMTP id d140so46721228wmd.0 for <ietf-http-wg@w3.org>; Tue, 24 Jan 2017 14:22:59 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=JaQmqgRhA88i+dCLmL5nbXY/Bcgg+w99BdyXWF06dsU=; b=U9yFlatM1FTM1KLb9L+nqW2acOBTPfgFb1xCZpWzFI6bQsPDPNTLBaiJOyn8YzzIqQ hLhdBFq070KyhWa2zd1X3TosPkLxT9F5g6EliXOKK/pvxldtTn75PQWEO5F4zeKAXygd QLiNKCxMlA2pJiuKmPYd4XBZVS8xKHtEym+iE=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=JaQmqgRhA88i+dCLmL5nbXY/Bcgg+w99BdyXWF06dsU=; b=pqXS13BppJ0JFAaloiMMRBEFzRXIUdCtBU7gnxWKUwyXUrjz6owJ2enaEce/YCBiPO wD7CgXY0TqFSSRuc7iZ94a1yaQwUIR3MXyPK3lvH/RQIar40RpJfGWRH1OYfAV/DAsJF 2lA8+muIZVfrFiYlcGxmf7KIc0NDby09ogmCnxOVaquZ3GAWHuI/1XL3+HA0FuQI3sEM /htkQU9kwmLT58rYnnc+XJgfuDPibykmoRq6PYijeHaB586HXue3dreJfqzxLTKF2xKh ejtiGuXhJBjhunrnGwuab3uRzeXA603SHDLWrHu+BcdepB8ejcz3ukyENc0pPIP1HsgS 60NA==
X-Gm-Message-State: AIkVDXJznWhDV38gHcy9sby3iiQxgkRbag5ujtX/wYWXocQZvXVFYvIgtjGG+LPH2ZTYLQYI
X-Received: by 10.223.151.138 with SMTP id s10mr29963361wrb.65.1485296573232; Tue, 24 Jan 2017 14:22:53 -0800 (PST)
Received: from mail-wm0-f52.google.com (mail-wm0-f52.google.com. [74.125.82.52]) by smtp.gmail.com with ESMTPSA id 18sm21939705wrb.14.2017.01.24.14.22.52 for <ietf-http-wg@w3.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Jan 2017 14:22:52 -0800 (PST)
Received: by mail-wm0-f52.google.com with SMTP id c206so424213wme.0 for <ietf-http-wg@w3.org>; Tue, 24 Jan 2017 14:22:52 -0800 (PST)
X-Received: by 10.223.136.85 with SMTP id e21mr29834374wre.28.1485296571872; Tue, 24 Jan 2017 14:22:51 -0800 (PST)
MIME-Version: 1.0
Received: by 10.28.135.201 with HTTP; Tue, 24 Jan 2017 14:22:51 -0800 (PST)
In-Reply-To: <900A5D6B-0752-470E-840C-4518D933DD09@greenbytes.de>
References: <CA+3+x5Ft8MfRduWp1RzJ9_qAgQiCujac8f5FLz81Xpyu3cTDxw@mail.gmail.com> <CANatvzz0AYxBDDyEbpvnq1xPd1-vrFazbnVt2usanXS0CTKbeA@mail.gmail.com> <20170124.165356.870174430965764062.kazu@iij.ad.jp> <900A5D6B-0752-470E-840C-4518D933DD09@greenbytes.de>
From: Tom Bergan <tombergan@chromium.org>
Date: Tue, 24 Jan 2017 14:22:51 -0800
X-Gmail-Original-Message-ID: <CA+3+x5EdkLSAR2gWR9TT72o2Tg4Z_xKXMh8yVREYD7mvNuLB8w@mail.gmail.com>
Message-ID: <CA+3+x5EdkLSAR2gWR9TT72o2Tg4Z_xKXMh8yVREYD7mvNuLB8w@mail.gmail.com>
To: Stefan Eissing <stefan.eissing@greenbytes.de>
Cc: =?UTF-8?B?S2F6dSBZYW1hbW90byAo5bGx5pys5ZKM5b2mKQ==?= <kazu@iij.ad.jp>,  HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary=001a114925388dc3750546de8ec1
Received-SPF: pass client-ip=74.125.82.54; envelope-from=tombergan@chromium.org; helo=mail-wm0-f54.google.com
X-W3C-Hub-Spam-Status: No, score=-3.5
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1cW9Um-0005cG-1J a4e6ffd3140d1763b532fd4cfbe5cd82
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Is a faithful HTTP/2 response scheduler necessarily O(n) in the  worst case?
Archived-At: <http://www.w3.org/mid/CA+3+x5EdkLSAR2gWR9TT72o2Tg4Z_xKXMh8yVREYD7mvNuLB8w@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33367
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>

--001a114925388dc3750546de8ec1
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Thanks for the feedback. Sounds like the worst-case time really is O(n).

> kazuhooku@
> the constant for O(n) would be small enough so that it cannot be used an
attack vector

Don't you need to ensure that n is small, otherwise even O(n) with a small
constant factor can lead to degraded performance? e.g.,
if SETTINGS_MAX_CONCURRENT_STREAMS =3D 20,000, I may end up computing a sum
of 20,000 numbers every few frames, which is not terribly slow, but not
terribly fast either.

> kazu@
> http://www.mew.org/~kazu/material/2015-http2-priority2.pdf
> http://www.mew.org/~kazu/doc/paper/http2-haskell-2016.pdf

Thanks. IIUC, the algorithms described in both links are still at least
O(depth), which can be O(n) for dependency trees generated by certain
clients such as Chrome.

> stefan.eissing@
> The very same problem exists for stream processing in order to generate
response data.

What did you mean by "stream processing"?

On Tue, Jan 24, 2017 at 12:26 AM, Stefan Eissing <
stefan.eissing@greenbytes.de> wrote:

> The very same problem exists for stream processing in order to generate
> response data.
>
> > Am 24.01.2017 um 08:53 schrieb Kazu Yamamoto (=E5=B1=B1=E6=9C=AC=E5=92=
=8C=E5=BD=A6) <kazu@iij.ad.jp>:
> >
> > Hi Tom,
> >
> > Probably, this material would help you:
> >
> > http://www.mew.org/~kazu/material/2015-http2-priority2.pdf
> > http://www.mew.org/~kazu/doc/paper/http2-haskell-2016.pdf
> >
> > --Kazu
> >
> >> Regarding your question, I am unaware of a scheduler design that is
> >> better than O(n) for both dequeuing (i.e. selecting the stream to
> >> send) and for rescheduling a stream (especially a stream with many
> >> decendants).
> >>
> >> While designing the scheduler of H2O (you are right in pointing out
> >> the fact that it is O(depth)), I came up with two options. One was to
> >> retain the vertical (i.e. parent-children) relationship between the
> >> streams. The other was to squash the vertical relationships to
> >> generate a one-dimensional list of streams ordered by priority.
> >>
> >> By taking the latter approach, you could create a scheduler that
> >> dequeues at O(1). But such scheduler would need to perform O(N)
> >> operation when receiving a priority frame or a stream-level window
> >> update (in this case N is number of direct and indirect decendants of
> >> the reprioritized stream).
> >>
> >> Considering this, we chose to implement the scheduler of H2O as O(1)
> >> weight-wise, and O(n) depth-wise, but that the constant for O(n) would
> >> be small enough so that it cannot be used an attack vector.
> >>
> >> 2017-01-24 9:39 GMT+09:00 Tom Bergan <tombergan@chromium.org>:
> >>> I implemented the HTTP/2 response scheduler in Go's HTTP/2 server
> library.
> >>> I'm trying to understand the worst-case behavior of that scheduler. I
> >>> believe the worst-case behavior is necessarily O(n) operations per
> frame
> >>> sent on the wire, where n is the number of streams in the dependency
> tree.
> >>> Here is my rationale.
> >>>
> >>> The key operation is finding the highest-priority stream that is read=
y
> to
> >>> send data.
> >>>
> >>> If we don't care about weights, and we don't care about balancing
> bandwidth
> >>> usage across sibling nodes in a tree, then we can label each node wit=
h
> two
> >>> fields: "ready" (true if the stream is ready to send data) and "depth=
"
> (the
> >>> node's distance from the root of the tree). The scheduler must find a
> node
> >>> with the smallest depth over all nodes with ready =3D true. It is fai=
rly
> >>> trivial to implement this in O(log n).
> >>>
> >>> Now, let's introduce weights. The scheduler must allocate bandwidth t=
o
> all
> >>> ready nodes, which happens recursively as follows:
> >>>
> >>>  func allocateBandwidth(node, bw) {
> >>>    if (node.ready) {
> >>>      node.bandwidthShare =3D bw
> >>>      return
> >>>    }
> >>>    totalWeight =3D 0
> >>>    for (n in node.children) {
> >>>      if (n.ready || descendantIsReady(n)) {
> >>>        totalWeight +=3D n.weight
> >>>      }
> >>>    }
> >>>    for (n in node.children) {
> >>>      if (n.ready || descendantIsReady(n)) {
> >>>        allocateBandwidth(n, bw * n.weight / totalWeight)
> >>>      }
> >>>    }
> >>>  }
> >>>  allocateBandwidth(root, 1.0)
> >>>
> >>> I believe the above definition is a direct translation of RFC 7540
> Section
> >>> 5.3.2 (also see this thread, which discussed bandwidth allocation).
> Given a
> >>> complete bandwidth allocation, the server can translate each node's
> >>> bandwidthShare to a number of tokens that are updated using a token
> bucket
> >>> algorithm (or similar). The scheduler would then pick the node with
> the most
> >>> available tokens. The scheduler looks something like:
> >>>
> >>>  func scheduleNextFrame() {
> >>>    if (tree changed since last frame written) {
> >>>      allocateBandwidth(root, 1.0)
> >>>      assign tokens and build a priority queue containing all nodes wi=
th
> >>> allocated bandwidth
> >>>    }
> >>>    node =3D priorityQueue.head()
> >>>    node.consumeTokens() // consume up to frame size or flow-control
> limit
> >>>    priorityQueue.update(node)
> >>>    return node
> >>>  }
> >>>
> >>> There are two steps in scheduleNextFrame. The first step updates the
> >>> bandwidth allocation if the tree changed since the last frame was
> written.
> >>> This is the most expensive step. I don't believe it's possible to
> implement
> >>> allocateBandwidth using fewer than O(n) worst-case steps. For example=
,
> if
> >>> the tree is mostly flat, meaning that most nodes are children of the
> same
> >>> node, then the loop to compute totalWeight is O(n). I believe Firefox
> >>> creates mostly-flat trees. Further, allocateBandwidth makes O(depth)
> >>> recursive steps, where "depth" is the maximum depth of the dependency
> tree.
> >>> If the tree is mostly-linear, then O(depth) becomes O(n). Chrome
> creates
> >>> mostly-linear trees.
> >>>
> >>> The overall runtime depends on how often the tree changes. If the tre=
e
> >>> changes rarely, the scheduler is cheap. If the tree changes
> frequently, the
> >>> scheduler is worst-case O(n). A tree has "changed" if it changed shap=
e
> >>> (nodes are added/moved/removed) or if any node's ready state has
> changed.
> >>> Both kinds of changes can happen often in practice, suggesting that t=
he
> >>> overall scheduler is worst-case O(n). For example, consider a server
> that
> >>> sends small responses (one or two DATA frames per response) -- each
> stream
> >>> will be closed after one or two DATA frames, so on average, the tree
> will
> >>> change shape every few frames. Further, it's possible for ready state=
s
> to
> >>> change more frequently than you might think. In Go's HTTP/2
> implementation,
> >>> a stream does not become ready until the application handler calls
> Write to
> >>> buffer response data. After that buffered data is serialized on the
> wire,
> >>> the stream transitions to "not ready" because the scheduler cannot
> know when
> >>> the next Write call will happen. The stream will transition back to
> "ready"
> >>> during the next Write call. Each Write call typically buffers about
> 32KB of
> >>> data. This is a "push" model, where the application handler "pushes"
> data
> >>> into the scheduler. I'm aware of one other HTTP/2 server that works
> >>> similarly. I suspect that frequent ready/not-ready transitions are
> common to
> >>> most HTTP/2 servers that use a "push" model. These servers will be mo=
re
> >>> susceptible to the O(n) worst case.
> >>>
> >>> Questions:
> >>>
> >>> 1. Am I missing a clever implementation, or is it true that a faithfu=
l
> >>> HTTP/2 scheduler necessarily requires O(n) operations per frame sent
> on the
> >>> wire, in the worst case? I could not find much discussion of this
> question
> >>> after a quick search. H2O claims to implement an O(1) scheduler,
> however,
> >>> the code seems to be worst-case O(depth) or O(n) -- see here, here, a=
nd
> >>> here.
> >>>
> >>> 2. If the above is correct, should I be concerned about the O(n) wors=
t
> case?
> >>> I doubt that a typical web browsing session will trigger O(n) behavio=
r
> >>> frequently, so I'm less concerned about the average case; I'm more
> concerned
> >>> about pathological cases or possible DoS vectors. Also, think about
> cases
> >>> where the "client" is actually a proxy server, meaning the HTTP/2
> connection
> >>> may have many more concurrent streams than a typical browsing session=
.
> For
> >>> comparison, if you recall the predecessor to HTTP/2 (SPDY), a SPDY
> scheduler
> >>> could be trivially implemented in O(1), since SPDY used just eight
> priority
> >>> buckets.
> >>>
> >>> 3. If I should be concerned about an O(n) worst case, are there any
> >>> suggested mitigations beyond setting SETTINGS_MAX_CONCURRENT_STREAMS
> to a
> >>> smallish constant?
> >>
> >>
> >>
> >> --
> >> Kazuho Oku
> >>
> >
>
>
>

--001a114925388dc3750546de8ec1
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Thanks for the feedback. Sounds like the worst-case time r=
eally is O(n).<div><br></div><div>&gt; kazuhooku@</div><div>&gt; the consta=
nt for O(n) would be small enough so that it cannot be used an attack vecto=
r<br></div><div><div><br></div><div>Don&#39;t you need to ensure that n is =
small, otherwise even O(n) with a small constant factor can lead to degrade=
d performance? e.g., if=C2=A0SETTINGS_MAX_CONCURRENT_STREAMS =3D 20,000, I =
may end up computing a sum of 20,000 numbers every few frames, which is not=
 terribly slow, but not terribly fast either.</div><div><br></div><div>&gt;=
=C2=A0kazu@</div><div>&gt; <a href=3D"http://www.mew.org/~kazu/material/201=
5-http2-priority2.pdf">http://www.mew.org/~kazu/material/2015-http2-priorit=
y2.pdf</a></div><div>&gt; <a href=3D"http://www.mew.org/~kazu/doc/paper/htt=
p2-haskell-2016.pdf">http://www.mew.org/~kazu/doc/paper/http2-haskell-2016.=
pdf</a></div><div><br></div><div>Thanks. IIUC, the algorithms described in =
both links are still at least O(depth), which can be O(n) for dependency tr=
ees generated by certain clients such as Chrome.</div><div><br></div><div>&=
gt;=C2=A0stefan.eissing@</div><div>&gt; The very same problem exists for st=
ream processing in order to generate response data.</div><div><br></div><di=
v>What did you mean by &quot;stream processing&quot;?</div><div></div></div=
></div><div class=3D"gmail_extra"><br><div class=3D"gmail_quote">On Tue, Ja=
n 24, 2017 at 12:26 AM, Stefan Eissing <span dir=3D"ltr">&lt;<a href=3D"mai=
lto:stefan.eissing@greenbytes.de" target=3D"_blank">stefan.eissing@greenbyt=
es.de</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"m=
argin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The very same=
 problem exists for stream processing in order to generate response data.<b=
r>
<div class=3D"HOEnZb"><div class=3D"h5"><br>
&gt; Am 24.01.2017 um 08:53 schrieb Kazu Yamamoto (=E5=B1=B1=E6=9C=AC=E5=92=
=8C=E5=BD=A6) &lt;<a href=3D"mailto:kazu@iij.ad.jp">kazu@iij.ad.jp</a>&gt;:=
<br>
&gt;<br>
&gt; Hi Tom,<br>
&gt;<br>
&gt; Probably, this material would help you:<br>
&gt;<br>
&gt; <a href=3D"http://www.mew.org/~kazu/material/2015-http2-priority2.pdf"=
 rel=3D"noreferrer" target=3D"_blank">http://www.mew.org/~kazu/<wbr>materia=
l/2015-http2-priority2.<wbr>pdf</a><br>
&gt; <a href=3D"http://www.mew.org/~kazu/doc/paper/http2-haskell-2016.pdf" =
rel=3D"noreferrer" target=3D"_blank">http://www.mew.org/~kazu/doc/<wbr>pape=
r/http2-haskell-2016.pdf</a><br>
&gt;<br>
&gt; --Kazu<br>
&gt;<br>
&gt;&gt; Regarding your question, I am unaware of a scheduler design that i=
s<br>
&gt;&gt; better than O(n) for both dequeuing (i.e. selecting the stream to<=
br>
&gt;&gt; send) and for rescheduling a stream (especially a stream with many=
<br>
&gt;&gt; decendants).<br>
&gt;&gt;<br>
&gt;&gt; While designing the scheduler of H2O (you are right in pointing ou=
t<br>
&gt;&gt; the fact that it is O(depth)), I came up with two options. One was=
 to<br>
&gt;&gt; retain the vertical (i.e. parent-children) relationship between th=
e<br>
&gt;&gt; streams. The other was to squash the vertical relationships to<br>
&gt;&gt; generate a one-dimensional list of streams ordered by priority.<br=
>
&gt;&gt;<br>
&gt;&gt; By taking the latter approach, you could create a scheduler that<b=
r>
&gt;&gt; dequeues at O(1). But such scheduler would need to perform O(N)<br=
>
&gt;&gt; operation when receiving a priority frame or a stream-level window=
<br>
&gt;&gt; update (in this case N is number of direct and indirect decendants=
 of<br>
&gt;&gt; the reprioritized stream).<br>
&gt;&gt;<br>
&gt;&gt; Considering this, we chose to implement the scheduler of H2O as O(=
1)<br>
&gt;&gt; weight-wise, and O(n) depth-wise, but that the constant for O(n) w=
ould<br>
&gt;&gt; be small enough so that it cannot be used an attack vector.<br>
&gt;&gt;<br>
&gt;&gt; 2017-01-24 9:39 GMT+09:00 Tom Bergan &lt;<a href=3D"mailto:tomberg=
an@chromium.org">tombergan@chromium.org</a>&gt;:<br>
&gt;&gt;&gt; I implemented the HTTP/2 response scheduler in Go&#39;s HTTP/2=
 server library.<br>
&gt;&gt;&gt; I&#39;m trying to understand the worst-case behavior of that s=
cheduler. I<br>
&gt;&gt;&gt; believe the worst-case behavior is necessarily O(n) operations=
 per frame<br>
&gt;&gt;&gt; sent on the wire, where n is the number of streams in the depe=
ndency tree.<br>
&gt;&gt;&gt; Here is my rationale.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; The key operation is finding the highest-priority stream that =
is ready to<br>
&gt;&gt;&gt; send data.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; If we don&#39;t care about weights, and we don&#39;t care abou=
t balancing bandwidth<br>
&gt;&gt;&gt; usage across sibling nodes in a tree, then we can label each n=
ode with two<br>
&gt;&gt;&gt; fields: &quot;ready&quot; (true if the stream is ready to send=
 data) and &quot;depth&quot; (the<br>
&gt;&gt;&gt; node&#39;s distance from the root of the tree). The scheduler =
must find a node<br>
&gt;&gt;&gt; with the smallest depth over all nodes with ready =3D true. It=
 is fairly<br>
&gt;&gt;&gt; trivial to implement this in O(log n).<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Now, let&#39;s introduce weights. The scheduler must allocate =
bandwidth to all<br>
&gt;&gt;&gt; ready nodes, which happens recursively as follows:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;=C2=A0 func allocateBandwidth(node, bw) {<br>
&gt;&gt;&gt;=C2=A0 =C2=A0 if (node.ready) {<br>
&gt;&gt;&gt;=C2=A0 =C2=A0 =C2=A0 node.bandwidthShare =3D bw<br>
&gt;&gt;&gt;=C2=A0 =C2=A0 =C2=A0 return<br>
&gt;&gt;&gt;=C2=A0 =C2=A0 }<br>
&gt;&gt;&gt;=C2=A0 =C2=A0 totalWeight =3D 0<br>
&gt;&gt;&gt;=C2=A0 =C2=A0 for (n in node.children) {<br>
&gt;&gt;&gt;=C2=A0 =C2=A0 =C2=A0 if (n.ready || descendantIsReady(n)) {<br>
&gt;&gt;&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 totalWeight +=3D n.weight<br>
&gt;&gt;&gt;=C2=A0 =C2=A0 =C2=A0 }<br>
&gt;&gt;&gt;=C2=A0 =C2=A0 }<br>
&gt;&gt;&gt;=C2=A0 =C2=A0 for (n in node.children) {<br>
&gt;&gt;&gt;=C2=A0 =C2=A0 =C2=A0 if (n.ready || descendantIsReady(n)) {<br>
&gt;&gt;&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 allocateBandwidth(n, bw * n.weight =
/ totalWeight)<br>
&gt;&gt;&gt;=C2=A0 =C2=A0 =C2=A0 }<br>
&gt;&gt;&gt;=C2=A0 =C2=A0 }<br>
&gt;&gt;&gt;=C2=A0 }<br>
&gt;&gt;&gt;=C2=A0 allocateBandwidth(root, 1.0)<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I believe the above definition is a direct translation of RFC =
7540 Section<br>
&gt;&gt;&gt; 5.3.2 (also see this thread, which discussed bandwidth allocat=
ion). Given a<br>
&gt;&gt;&gt; complete bandwidth allocation, the server can translate each n=
ode&#39;s<br>
&gt;&gt;&gt; bandwidthShare to a number of tokens that are updated using a =
token bucket<br>
&gt;&gt;&gt; algorithm (or similar). The scheduler would then pick the node=
 with the most<br>
&gt;&gt;&gt; available tokens. The scheduler looks something like:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;=C2=A0 func scheduleNextFrame() {<br>
&gt;&gt;&gt;=C2=A0 =C2=A0 if (tree changed since last frame written) {<br>
&gt;&gt;&gt;=C2=A0 =C2=A0 =C2=A0 allocateBandwidth(root, 1.0)<br>
&gt;&gt;&gt;=C2=A0 =C2=A0 =C2=A0 assign tokens and build a priority queue c=
ontaining all nodes with<br>
&gt;&gt;&gt; allocated bandwidth<br>
&gt;&gt;&gt;=C2=A0 =C2=A0 }<br>
&gt;&gt;&gt;=C2=A0 =C2=A0 node =3D priorityQueue.head()<br>
&gt;&gt;&gt;=C2=A0 =C2=A0 node.consumeTokens() // consume up to frame size =
or flow-control limit<br>
&gt;&gt;&gt;=C2=A0 =C2=A0 priorityQueue.update(node)<br>
&gt;&gt;&gt;=C2=A0 =C2=A0 return node<br>
&gt;&gt;&gt;=C2=A0 }<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; There are two steps in scheduleNextFrame. The first step updat=
es the<br>
&gt;&gt;&gt; bandwidth allocation if the tree changed since the last frame =
was written.<br>
&gt;&gt;&gt; This is the most expensive step. I don&#39;t believe it&#39;s =
possible to implement<br>
&gt;&gt;&gt; allocateBandwidth using fewer than O(n) worst-case steps. For =
example, if<br>
&gt;&gt;&gt; the tree is mostly flat, meaning that most nodes are children =
of the same<br>
&gt;&gt;&gt; node, then the loop to compute totalWeight is O(n). I believe =
Firefox<br>
&gt;&gt;&gt; creates mostly-flat trees. Further, allocateBandwidth makes O(=
depth)<br>
&gt;&gt;&gt; recursive steps, where &quot;depth&quot; is the maximum depth =
of the dependency tree.<br>
&gt;&gt;&gt; If the tree is mostly-linear, then O(depth) becomes O(n). Chro=
me creates<br>
&gt;&gt;&gt; mostly-linear trees.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; The overall runtime depends on how often the tree changes. If =
the tree<br>
&gt;&gt;&gt; changes rarely, the scheduler is cheap. If the tree changes fr=
equently, the<br>
&gt;&gt;&gt; scheduler is worst-case O(n). A tree has &quot;changed&quot; i=
f it changed shape<br>
&gt;&gt;&gt; (nodes are added/moved/removed) or if any node&#39;s ready sta=
te has changed.<br>
&gt;&gt;&gt; Both kinds of changes can happen often in practice, suggesting=
 that the<br>
&gt;&gt;&gt; overall scheduler is worst-case O(n). For example, consider a =
server that<br>
&gt;&gt;&gt; sends small responses (one or two DATA frames per response) --=
 each stream<br>
&gt;&gt;&gt; will be closed after one or two DATA frames, so on average, th=
e tree will<br>
&gt;&gt;&gt; change shape every few frames. Further, it&#39;s possible for =
ready states to<br>
&gt;&gt;&gt; change more frequently than you might think. In Go&#39;s HTTP/=
2 implementation,<br>
&gt;&gt;&gt; a stream does not become ready until the application handler c=
alls Write to<br>
&gt;&gt;&gt; buffer response data. After that buffered data is serialized o=
n the wire,<br>
&gt;&gt;&gt; the stream transitions to &quot;not ready&quot; because the sc=
heduler cannot know when<br>
&gt;&gt;&gt; the next Write call will happen. The stream will transition ba=
ck to &quot;ready&quot;<br>
&gt;&gt;&gt; during the next Write call. Each Write call typically buffers =
about 32KB of<br>
&gt;&gt;&gt; data. This is a &quot;push&quot; model, where the application =
handler &quot;pushes&quot; data<br>
&gt;&gt;&gt; into the scheduler. I&#39;m aware of one other HTTP/2 server t=
hat works<br>
&gt;&gt;&gt; similarly. I suspect that frequent ready/not-ready transitions=
 are common to<br>
&gt;&gt;&gt; most HTTP/2 servers that use a &quot;push&quot; model. These s=
ervers will be more<br>
&gt;&gt;&gt; susceptible to the O(n) worst case.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Questions:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; 1. Am I missing a clever implementation, or is it true that a =
faithful<br>
&gt;&gt;&gt; HTTP/2 scheduler necessarily requires O(n) operations per fram=
e sent on the<br>
&gt;&gt;&gt; wire, in the worst case? I could not find much discussion of t=
his question<br>
&gt;&gt;&gt; after a quick search. H2O claims to implement an O(1) schedule=
r, however,<br>
&gt;&gt;&gt; the code seems to be worst-case O(depth) or O(n) -- see here, =
here, and<br>
&gt;&gt;&gt; here.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; 2. If the above is correct, should I be concerned about the O(=
n) worst case?<br>
&gt;&gt;&gt; I doubt that a typical web browsing session will trigger O(n) =
behavior<br>
&gt;&gt;&gt; frequently, so I&#39;m less concerned about the average case; =
I&#39;m more concerned<br>
&gt;&gt;&gt; about pathological cases or possible DoS vectors. Also, think =
about cases<br>
&gt;&gt;&gt; where the &quot;client&quot; is actually a proxy server, meani=
ng the HTTP/2 connection<br>
&gt;&gt;&gt; may have many more concurrent streams than a typical browsing =
session. For<br>
&gt;&gt;&gt; comparison, if you recall the predecessor to HTTP/2 (SPDY), a =
SPDY scheduler<br>
&gt;&gt;&gt; could be trivially implemented in O(1), since SPDY used just e=
ight priority<br>
&gt;&gt;&gt; buckets.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; 3. If I should be concerned about an O(n) worst case, are ther=
e any<br>
&gt;&gt;&gt; suggested mitigations beyond setting SETTINGS_MAX_CONCURRENT_<=
wbr>STREAMS to a<br>
&gt;&gt;&gt; smallish constant?<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; Kazuho Oku<br>
&gt;&gt;<br>
&gt;<br>
<br>
<br>
</div></div></blockquote></div><br></div>

--001a114925388dc3750546de8ec1--


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Tue Jan 24 14:58:14 2017
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 D47441294E7 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 24 Jan 2017 14:58:14 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.22
X-Spam-Level:
X-Spam-Status: No, score=-10.22 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=-3.199, 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=iij.ad.jp
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 Gapa3polYwfx for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 24 Jan 2017 14:58:13 -0800 (PST)
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 8E2271294E0 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 24 Jan 2017 14:58:13 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cWA09-0006mj-Ba for ietf-http-wg-dist@listhub.w3.org; Tue, 24 Jan 2017 22:55:45 +0000
Resent-Date: Tue, 24 Jan 2017 22:55:45 +0000
Resent-Message-Id: <E1cWA09-0006mj-Ba@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <kazu@iij.ad.jp>) id 1cWA04-0006lO-Mv for ietf-http-wg@listhub.w3.org; Tue, 24 Jan 2017 22:55:40 +0000
Received: from mo901.iij.ad.jp ([202.232.31.77] helo=omgo.iij.ad.jp) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <kazu@iij.ad.jp>) id 1cW9zy-0007gH-7x for ietf-http-wg@w3.org; Tue, 24 Jan 2017 22:55:35 +0000
DKIM-Signature: v=1;a=rsa-sha256;c=relaxed/simple;d=iij.ad.jp;h=Date: Message-Id:To:Subject:From:In-Reply-To:References:Mime-Version:Content-Type: Content-Transfer-Encoding;i=kazu@iij.ad.jp;s=omgo2;t=1485298510;x=1486508110; bh=0sQII9ZNT654OUljVshmXcA5QvuqhANjM9bPn7uFnFk=;b=fZcOvfrgn2nYSIPz7PzL/uGrPao 0azK0dZ4xhVDvl49Aggx9xJW4i5oQN92+iPK8kSNdzMw8DSOEl2LiPBJEx/ZKHNA0oU9t+5j/yhMY WpHWgR3gqu/qTuoqgRpXQ/MKVzu/DRtXzcntKx1RiD1oP82//CW5zmONGQGeNa7DIdHi68/zhDUo3 ZsVSIeTJAqznSTHPbl7hM0dteDD4DKZvSNH00lwHB5v3iRjvllkXEmGHnZ5EbGb3Kvradsl9Knf8p ryM1jsemhA6GneFslvyrw7QNUYU+Lw4sxgwj6GtryGDEv7NbAIdf8Ip6fANVlARFbNUE5UbFq3ybI w/pWwfA==;
Received: by omgo.iij.ad.jp (mo901) id v0OMt95p006802; Wed, 25 Jan 2017 07:55:09 +0900
X-MXL-Hash: 5887db4d55235414-336fcf2bfb9655feeacc1fb77a3850fad6cbf9aa
Date: Wed, 25 Jan 2017 07:55:10 +0900 (JST)
Message-Id: <20170125.075510.1795999132739277437.kazu@iij.ad.jp>
To: ietf-http-wg@w3.org
From: Kazu Yamamoto (=?iso-2022-jp?B?GyRCOzNLXE9CSScbKEI=?=) <kazu@iij.ad.jp>
In-Reply-To: <CA+3+x5EdkLSAR2gWR9TT72o2Tg4Z_xKXMh8yVREYD7mvNuLB8w@mail.gmail.com>
References: <20170124.165356.870174430965764062.kazu@iij.ad.jp> <900A5D6B-0752-470E-840C-4518D933DD09@greenbytes.de> <CA+3+x5EdkLSAR2gWR9TT72o2Tg4Z_xKXMh8yVREYD7mvNuLB8w@mail.gmail.com>
X-Mailer: Mew version 6.7 on Emacs 25.1 / Mule 6.0 (HANACHIRUSATO)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Received-SPF: pass client-ip=202.232.31.77; envelope-from=kazu@iij.ad.jp; helo=omgo.iij.ad.jp
X-W3C-Hub-Spam-Status: No, score=-7.1
X-W3C-Hub-Spam-Report: AWL=0.096, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RP_MATCHES_RCVD=-3.199, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cW9zy-0007gH-7x 33cbaecc2cf3a27db4947d71e48b478d
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Is a faithful HTTP/2 response scheduler necessarily O(n) in  the worst case?
Archived-At: <http://www.w3.org/mid/20170125.075510.1795999132739277437.kazu@iij.ad.jp>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33368
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>

Hi Tom,

>> http://www.mew.org/~kazu/material/2015-http2-priority2.pdf
>> http://www.mew.org/~kazu/doc/paper/http2-haskell-2016.pdf
> 
> Thanks. IIUC, the algorithms described in both links are still at least
> O(depth), which can be O(n) for dependency trees generated by certain
> clients such as Chrome.

Yes. Your understanding is correct.

If a browser creates a list-like tree, I think it is misuse of priority.
And servers should limit the depth of trees.

--Kazu


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Tue Jan 24 15:12:48 2017
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 C74D6129517 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 24 Jan 2017 15:12:48 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.719
X-Spam-Level:
X-Spam-Status: No, score=-9.719 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=chromium.org
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 887M4_FW3pVe for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 24 Jan 2017 15:12:47 -0800 (PST)
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 15C711294FE for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 24 Jan 2017 15:12:47 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cWAEL-0007jX-LN for ietf-http-wg-dist@listhub.w3.org; Tue, 24 Jan 2017 23:10:25 +0000
Resent-Date: Tue, 24 Jan 2017 23:10:25 +0000
Resent-Message-Id: <E1cWAEL-0007jX-LN@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <tombergan@chromium.org>) id 1cWAEI-0007hl-I0 for ietf-http-wg@listhub.w3.org; Tue, 24 Jan 2017 23:10:22 +0000
Received: from mail-wm0-f49.google.com ([74.125.82.49]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <tombergan@chromium.org>) id 1cWAEC-0007I3-6i for ietf-http-wg@w3.org; Tue, 24 Jan 2017 23:10:17 +0000
Received: by mail-wm0-f49.google.com with SMTP id c85so1830464wmi.1 for <ietf-http-wg@w3.org>; Tue, 24 Jan 2017 15:09:55 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=JvDWZjHTJu7UPUsXBklmEE02tvluMT8YlIPCOkDjuww=; b=Bx+NGn0aHYwBZefugGuwFxhl7A3opklKCrJIfXaQq+HuqUvwxV2z8wtRpyObLReVLw J0mwcTLLf2jMWf1gOhTkjomdEc+TqR2s7ryme37IA14LPt3Y5nFciv6NGKeXe+a99hPu E6Ht/uYsSOxYa1KEL3+TrKofo+k4voM+Gg/y0=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=JvDWZjHTJu7UPUsXBklmEE02tvluMT8YlIPCOkDjuww=; b=klucoHvLlDM8r3k/fNJ1kbkcKn+GvlsDjb5zMZnADvRvx5kqnY+unsKM1iD62Bqxxc 3SSMuDVQrJHAgdJOQ2Z824utGk5tJufQb8eaqpaqhZsimjuiIF8nX2G6NViXWrQxnn9Y 6dFGyVEKigYwjzIqrOEwQ8AqjuvnKKPOh+gGEFzUUlN1s2nGkyI/tRtcLSzS98lOCjjB j182owjzc8ZW9balm2QuDT4ABM/Nguy4Mguwdt6waXUI0M7Vmq/WPfx70pbYKn1YZ6f/ XkgmFf2kG61yu//NyrsoVuBYLYRdSHWgB1MhS5HODrbRNtwaSZa5KsSKVZfIdhSRa8w3 9UOQ==
X-Gm-Message-State: AIkVDXLEDq+i2g6zsPbG8w4oy8nbhekpOUnhbWDwJUxHNA97qIGOREr9sLe7qLXvWiFpuTF0
X-Received: by 10.223.133.164 with SMTP id 33mr629185wrt.39.1485299388608; Tue, 24 Jan 2017 15:09:48 -0800 (PST)
Received: from mail-wm0-f45.google.com (mail-wm0-f45.google.com. [74.125.82.45]) by smtp.gmail.com with ESMTPSA id z67sm22090807wrb.49.2017.01.24.15.09.47 for <ietf-http-wg@w3.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Jan 2017 15:09:48 -0800 (PST)
Received: by mail-wm0-f45.google.com with SMTP id r126so2313329wmr.0 for <ietf-http-wg@w3.org>; Tue, 24 Jan 2017 15:09:47 -0800 (PST)
X-Received: by 10.223.141.229 with SMTP id o92mr34612315wrb.22.1485299387650; Tue, 24 Jan 2017 15:09:47 -0800 (PST)
MIME-Version: 1.0
Received: by 10.28.135.201 with HTTP; Tue, 24 Jan 2017 15:09:47 -0800 (PST)
In-Reply-To: <20170125.075510.1795999132739277437.kazu@iij.ad.jp>
References: <20170124.165356.870174430965764062.kazu@iij.ad.jp> <900A5D6B-0752-470E-840C-4518D933DD09@greenbytes.de> <CA+3+x5EdkLSAR2gWR9TT72o2Tg4Z_xKXMh8yVREYD7mvNuLB8w@mail.gmail.com> <20170125.075510.1795999132739277437.kazu@iij.ad.jp>
From: Tom Bergan <tombergan@chromium.org>
Date: Tue, 24 Jan 2017 15:09:47 -0800
X-Gmail-Original-Message-ID: <CA+3+x5HxOkJfEmurFgZCH1-BN2PswHZfsoA7cvksf5dgUbJEgA@mail.gmail.com>
Message-ID: <CA+3+x5HxOkJfEmurFgZCH1-BN2PswHZfsoA7cvksf5dgUbJEgA@mail.gmail.com>
To: Kazu Yamamoto <kazu@iij.ad.jp>
Cc: HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary=f403045f530a6308bf0546df3640
Received-SPF: pass client-ip=74.125.82.49; envelope-from=tombergan@chromium.org; helo=mail-wm0-f49.google.com
X-W3C-Hub-Spam-Status: No, score=-3.5
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1cWAEC-0007I3-6i 5862999e7da639679ae75d5831468e63
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Is a faithful HTTP/2 response scheduler necessarily O(n) in the  worst case?
Archived-At: <http://www.w3.org/mid/CA+3+x5HxOkJfEmurFgZCH1-BN2PswHZfsoA7cvksf5dgUbJEgA@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33369
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>

--f403045f530a6308bf0546df3640
Content-Type: text/plain; charset=UTF-8

On Tue, Jan 24, 2017 at 2:55 PM, Kazu Yamamoto <kazu@iij.ad.jp> wrote:

> Hi Tom,
>
> >> http://www.mew.org/~kazu/material/2015-http2-priority2.pdf
> >> http://www.mew.org/~kazu/doc/paper/http2-haskell-2016.pdf
> >
> > Thanks. IIUC, the algorithms described in both links are still at least
> > O(depth), which can be O(n) for dependency trees generated by certain
> > clients such as Chrome.
>
> Yes. Your understanding is correct.
>
> If a browser creates a list-like tree, I think it is misuse of priority.
> And servers should limit the depth of trees.


Why is that a misuse of priority? It seems entirely reasonable for a client
to specify a mostly-linear order. There is a very good reason for this:
inside HTML pages, CSS links and synchronous scripts must be evaluated in
the order they appear in the HTML file. This implies that the server should
send those resources in a linear order. This is exactly the rationale
behind Chrome using mostly-linear orders. (This is not to say that
mostly-linear orders are not occasionally problematic -- they are
<https://bugs.chromium.org/p/chromium/issues/detail?id=651538#c1> -- but
there are good reasons to linear orders at least some of the time.)

(sorry for the duplicate message, replied from the wrong address)

--f403045f530a6308bf0546df3640
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_extra"><div class=3D"gmail_quote">On T=
ue, Jan 24, 2017 at 2:55 PM, Kazu Yamamoto <span dir=3D"ltr">&lt;<a href=3D=
"mailto:kazu@iij.ad.jp" target=3D"_blank">kazu@iij.ad.jp</a>&gt;</span> wro=
te:<br><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;=
border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Tom,<br>
<span class=3D"gmail-"><br>
&gt;&gt; <a href=3D"http://www.mew.org/~kazu/material/2015-http2-priority2.=
pdf" rel=3D"noreferrer" target=3D"_blank">http://www.mew.org/~kazu/<wbr>mat=
erial/2015-http2-priority2.<wbr>pdf</a><br>
&gt;&gt; <a href=3D"http://www.mew.org/~kazu/doc/paper/http2-haskell-2016.p=
df" rel=3D"noreferrer" target=3D"_blank">http://www.mew.org/~kazu/doc/<wbr>=
paper/http2-haskell-2016.pdf</a><br>
&gt;<br>
&gt; Thanks. IIUC, the algorithms described in both links are still at leas=
t<br>
&gt; O(depth), which can be O(n) for dependency trees generated by certain<=
br>
&gt; clients such as Chrome.<br>
<br>
</span>Yes. Your understanding is correct.<br>
<br>
If a browser creates a list-like tree, I think it is misuse of priority.<br=
>
And servers should limit the depth of trees.</blockquote><div><br></div><di=
v><span style=3D"font-size:12.8px">Why is that a misuse of priority? It see=
ms entirely reasonable for a client to specify a mostly-linear order. There=
 is a very good reason for this: inside HTML pages, CSS links and synchrono=
us scripts must be evaluated in the order they appear in the HTML file. Thi=
s implies that the server should send those resources in a linear order. Th=
is is exactly the rationale behind Chrome using mostly-linear orders. (This=
 is not to say that mostly-linear orders are not occasionally problematic -=
-=C2=A0</span><a href=3D"https://bugs.chromium.org/p/chromium/issues/detail=
?id=3D651538#c1" target=3D"_blank" style=3D"font-size:12.8px">they are</a><=
span style=3D"font-size:12.8px">=C2=A0-- but there are good reasons to line=
ar orders at least some of the time.)</span></div><div><br></div><div><span=
 style=3D"font-size:12.8px"></span>(sorry for the duplicate message, replie=
d from the wrong address)=C2=A0</div></div></div></div>

--f403045f530a6308bf0546df3640--


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Tue Jan 24 15:23:52 2017
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 B3DDD129567 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 24 Jan 2017 15:23:52 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.119
X-Spam-Level:
X-Spam-Status: No, score=-10.119 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 OTF17elxsgJ5 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 24 Jan 2017 15:23:51 -0800 (PST)
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 16A34129566 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 24 Jan 2017 15:23:51 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cWAP1-0007Jt-8o for ietf-http-wg-dist@listhub.w3.org; Tue, 24 Jan 2017 23:21:27 +0000
Resent-Date: Tue, 24 Jan 2017 23:21:27 +0000
Resent-Message-Id: <E1cWAP1-0007Jt-8o@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <pmcmanus@mozilla.com>) id 1cWAOw-0007Io-9w for ietf-http-wg@listhub.w3.org; Tue, 24 Jan 2017 23:21:22 +0000
Received: from www.ducksong.com ([192.155.95.102] helo=linode64.ducksong.com) by titan.w3.org with esmtp (Exim 4.84_2) (envelope-from <pmcmanus@mozilla.com>) id 1cWAOq-0007gm-4A for ietf-http-wg@w3.org; Tue, 24 Jan 2017 23:21:17 +0000
Received: from mail-qk0-f171.google.com (mail-qk0-f171.google.com [209.85.220.171]) by linode64.ducksong.com (Postfix) with ESMTPSA id CC87E3A0A9 for <ietf-http-wg@w3.org>; Tue, 24 Jan 2017 18:20:53 -0500 (EST)
Received: by mail-qk0-f171.google.com with SMTP id j126so39189538qkf.1 for <ietf-http-wg@w3.org>; Tue, 24 Jan 2017 15:20:53 -0800 (PST)
X-Gm-Message-State: AIkVDXLEvHTFe1HnEckDKtKbDm/OSfIcHe3jNOTRB6ifGjs167M0E/7dtoLTI9fznTvMLK/+bkbMkYw6gQ6XDw==
X-Received: by 10.55.20.105 with SMTP id e102mr25553486qkh.35.1485300053577; Tue, 24 Jan 2017 15:20:53 -0800 (PST)
MIME-Version: 1.0
Received: by 10.12.162.65 with HTTP; Tue, 24 Jan 2017 15:20:53 -0800 (PST)
In-Reply-To: <CA+3+x5HxOkJfEmurFgZCH1-BN2PswHZfsoA7cvksf5dgUbJEgA@mail.gmail.com>
References: <20170124.165356.870174430965764062.kazu@iij.ad.jp> <900A5D6B-0752-470E-840C-4518D933DD09@greenbytes.de> <CA+3+x5EdkLSAR2gWR9TT72o2Tg4Z_xKXMh8yVREYD7mvNuLB8w@mail.gmail.com> <20170125.075510.1795999132739277437.kazu@iij.ad.jp> <CA+3+x5HxOkJfEmurFgZCH1-BN2PswHZfsoA7cvksf5dgUbJEgA@mail.gmail.com>
From: Patrick McManus <pmcmanus@mozilla.com>
Date: Wed, 25 Jan 2017 08:20:53 +0900
X-Gmail-Original-Message-ID: <CAOdDvNqCEHGN1tSxCmMPHECtrOMHe8_nE0HPDqK+VideuFNQow@mail.gmail.com>
Message-ID: <CAOdDvNqCEHGN1tSxCmMPHECtrOMHe8_nE0HPDqK+VideuFNQow@mail.gmail.com>
To: Tom Bergan <tombergan@chromium.org>
Cc: Kazu Yamamoto <kazu@iij.ad.jp>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary=001a1144d26614155d0546df5e94
Received-SPF: softfail client-ip=192.155.95.102; envelope-from=pmcmanus@mozilla.com; helo=linode64.ducksong.com
X-W3C-Hub-Spam-Status: No, score=-4.4
X-W3C-Hub-Spam-Report: AWL=-1.617, BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_SORBS_SPAM=0.5, SPF_HELO_PASS=-0.001, SPF_SOFTFAIL=0.665, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1cWAOq-0007gm-4A ecdd146dc5a2a4586b18909c887f831d
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Is a faithful HTTP/2 response scheduler necessarily O(n) in the  worst case?
Archived-At: <http://www.w3.org/mid/CAOdDvNqCEHGN1tSxCmMPHECtrOMHe8_nE0HPDqK+VideuFNQow@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33370
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>

--001a1144d26614155d0546df5e94
Content-Type: text/plain; charset=UTF-8

media frames are another really good use case for linear orders. These, and
Tom's cases, were all cited as use cases during standardization.

I think the discussion about how to process that organization is germane
and interesting (chair hat!), and we should do that cognizant that this is
an expected use of the priority feature.

On Wed, Jan 25, 2017 at 8:09 AM, Tom Bergan <tombergan@chromium.org> wrote:

> On Tue, Jan 24, 2017 at 2:55 PM, Kazu Yamamoto <kazu@iij.ad.jp> wrote:
>
>> Hi Tom,
>>
>> >> http://www.mew.org/~kazu/material/2015-http2-priority2.pdf
>> >> http://www.mew.org/~kazu/doc/paper/http2-haskell-2016.pdf
>> >
>> > Thanks. IIUC, the algorithms described in both links are still at least
>> > O(depth), which can be O(n) for dependency trees generated by certain
>> > clients such as Chrome.
>>
>> Yes. Your understanding is correct.
>>
>> If a browser creates a list-like tree, I think it is misuse of priority.
>> And servers should limit the depth of trees.
>
>
> Why is that a misuse of priority? It seems entirely reasonable for a
> client to specify a mostly-linear order. There is a very good reason for
> this: inside HTML pages, CSS links and synchronous scripts must be
> evaluated in the order they appear in the HTML file. This implies that the
> server should send those resources in a linear order. This is exactly the
> rationale behind Chrome using mostly-linear orders. (This is not to say
> that mostly-linear orders are not occasionally problematic -- they are
> <https://bugs.chromium.org/p/chromium/issues/detail?id=651538#c1> -- but
> there are good reasons to linear orders at least some of the time.)
>
> (sorry for the duplicate message, replied from the wrong address)
>

--001a1144d26614155d0546df5e94
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>media frames are another really good use case for lin=
ear orders. These, and Tom&#39;s cases, were all cited as use cases during =
standardization.<br><br></div><div>I think the discussion about how to proc=
ess that organization is germane and interesting (chair hat!), and we shoul=
d do that cognizant that this is an expected use of the priority feature.<b=
r></div></div><div class=3D"gmail_extra"><br><div class=3D"gmail_quote">On =
Wed, Jan 25, 2017 at 8:09 AM, Tom Bergan <span dir=3D"ltr">&lt;<a href=3D"m=
ailto:tombergan@chromium.org" target=3D"_blank">tombergan@chromium.org</a>&=
gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 =
0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr"><div c=
lass=3D"gmail_extra"><div class=3D"gmail_quote"><span class=3D"">On Tue, Ja=
n 24, 2017 at 2:55 PM, Kazu Yamamoto <span dir=3D"ltr">&lt;<a href=3D"mailt=
o:kazu@iij.ad.jp" target=3D"_blank">kazu@iij.ad.jp</a>&gt;</span> wrote:<br=
><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border=
-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Tom,<br>
<span class=3D"m_-4789175632841022794gmail-"><br>
&gt;&gt; <a href=3D"http://www.mew.org/~kazu/material/2015-http2-priority2.=
pdf" rel=3D"noreferrer" target=3D"_blank">http://www.mew.org/~kazu/mater<wb=
r>ial/2015-http2-priority2.pdf</a><br>
&gt;&gt; <a href=3D"http://www.mew.org/~kazu/doc/paper/http2-haskell-2016.p=
df" rel=3D"noreferrer" target=3D"_blank">http://www.mew.org/~kazu/doc/p<wbr=
>aper/http2-haskell-2016.pdf</a><br>
&gt;<br>
&gt; Thanks. IIUC, the algorithms described in both links are still at leas=
t<br>
&gt; O(depth), which can be O(n) for dependency trees generated by certain<=
br>
&gt; clients such as Chrome.<br>
<br>
</span>Yes. Your understanding is correct.<br>
<br>
If a browser creates a list-like tree, I think it is misuse of priority.<br=
>
And servers should limit the depth of trees.</blockquote><div><br></div></s=
pan><div><span style=3D"font-size:12.8px">Why is that a misuse of priority?=
 It seems entirely reasonable for a client to specify a mostly-linear order=
. There is a very good reason for this: inside HTML pages, CSS links and sy=
nchronous scripts must be evaluated in the order they appear in the HTML fi=
le. This implies that the server should send those resources in a linear or=
der. This is exactly the rationale behind Chrome using mostly-linear orders=
. (This is not to say that mostly-linear orders are not occasionally proble=
matic --=C2=A0</span><a href=3D"https://bugs.chromium.org/p/chromium/issues=
/detail?id=3D651538#c1" style=3D"font-size:12.8px" target=3D"_blank">they a=
re</a><span style=3D"font-size:12.8px">=C2=A0-- but there are good reasons =
to linear orders at least some of the time.)</span></div><div><br></div><di=
v><span style=3D"font-size:12.8px"></span>(sorry for the duplicate message,=
 replied from the wrong address)=C2=A0</div></div></div></div>
</blockquote></div><br></div>

--001a1144d26614155d0546df5e94--


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Tue Jan 24 16:35:48 2017
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 039931295D4 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 24 Jan 2017 16:35:48 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.619
X-Spam-Level:
X-Spam-Status: No, score=-9.619 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=sendgrid.me
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 roEDyQf_E4Fc for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 24 Jan 2017 16:35:46 -0800 (PST)
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 344251295DC for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 24 Jan 2017 16:35:45 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cWBVj-0001lh-2e for ietf-http-wg-dist@listhub.w3.org; Wed, 25 Jan 2017 00:32:27 +0000
Resent-Date: Wed, 25 Jan 2017 00:32:27 +0000
Resent-Message-Id: <E1cWBVj-0001lh-2e@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <bounces+1568871-208f-ietf-http-wg=w3.org@sendgrid.net>) id 1cWBVe-0001jo-DJ for ietf-http-wg@listhub.w3.org; Wed, 25 Jan 2017 00:32:22 +0000
Received: from o1.7nn.fshared.sendgrid.net ([167.89.55.65]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <bounces+1568871-208f-ietf-http-wg=w3.org@sendgrid.net>) id 1cWBVY-0002cH-6m for ietf-http-wg@w3.org; Wed, 25 Jan 2017 00:32:17 +0000
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=sendgrid.me;  h=mime-version:in-reply-to:references:from:subject:to:cc:content-type;  s=smtpapi; bh=4l/flGWxdi4CjKTpvz9SJLx4mFE=; b=pwXlf6qO+oO5liXYjF A7L1U6K9MNfbsspf20MGcjgtA60SnzYRTqerGDO71643rLCxpZH9ZXxFbRJh44nW 1oMyKfld3qkgEU/oza55I7Oct3tIOKYUbNpYUHBOJCVEFp5+dTbDzsgZS3ozNl9d 5UBpwMvsz0FU3hMSWDAi5RIsE=
Received: by filter0533p1mdw1.sendgrid.net with SMTP id filter0533p1mdw1-3453-5887F1E8-9 2017-01-25 00:31:36.110671617 +0000 UTC
Received: from mail-qt0-f174.google.com (mail-qt0-f174.google.com [209.85.216.174]) by ismtpd0001p1iad1.sendgrid.net (SG) with ESMTP id SSq2OrL9RBmFzqhnTDckaw for <ietf-http-wg@w3.org>; Wed, 25 Jan 2017 00:31:36.024 +0000 (UTC)
Received: by mail-qt0-f174.google.com with SMTP id l7so2993657qtd.1 for <ietf-http-wg@w3.org>; Tue, 24 Jan 2017 16:31:36 -0800 (PST)
X-Gm-Message-State: AIkVDXIWKC1f7Q66lt27Ww7MKAb4By61xDxDmDTKFMhOXbszhoFLr9D1r8cJ5kLiZikX8ZoStwvHR+xINFr3Rg==
X-Received: by 10.200.52.105 with SMTP id v38mr31323184qtb.227.1485304295279; Tue, 24 Jan 2017 16:31:35 -0800 (PST)
MIME-Version: 1.0
Received: by 10.12.162.65 with HTTP; Tue, 24 Jan 2017 16:31:34 -0800 (PST)
In-Reply-To: <CABkgnnVPiVx608jCk=WyPWq-PDqKJ-kFLQf_3WGZur14pUnnog@mail.gmail.com>
References: <CABkgnnV4FG01J5CwdjG_gnCWvoyaT80ZBd3R41TopuWuKEAm5A@mail.gmail.com> <CAFn2buDd_zomeD6GehWN6r=0wey1aEQfJcfjAjEPjr0S390xrA@mail.gmail.com> <CABkgnnVPiVx608jCk=WyPWq-PDqKJ-kFLQf_3WGZur14pUnnog@mail.gmail.com>
From: Patrick McManus <mcmanus@ducksong.com>
Date: Wed, 25 Jan 2017 09:31:34 +0900
X-Gmail-Original-Message-ID: <CAOdDvNpEhEv-91kpOSsX24cNR3CXc9i34xWspAa6uO3BrMO4rA@mail.gmail.com>
Message-ID: <CAOdDvNpEhEv-91kpOSsX24cNR3CXc9i34xWspAa6uO3BrMO4rA@mail.gmail.com>
To: Martin Thomson <martin.thomson@gmail.com>
Cc: Scott Mitchell <scott.k.mitch1@gmail.com>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary=001a11412deae789f10546e05ad7
X-SG-EID: YLWet4rakcOTMHWvPPwWbcsiUJbN1FCn0PHYd/Uujh6ZcrwuJjM4e4N3gAvId1x82hY3BpSWg+nhCJ su47FZCe7GOQep8+8tsY/u6UUmBQ/pP94qfRRA+R475zOrlDdzx1B3Qs0schnGhoqewmZKa9m0GTiK /vEkHb6/LZF+rLTFR1V1XRI82aPgjfBlQnTl/jrcWCD9rCrGCnV5+JtF9o0EmkgD53Z75v1OYFio+l g=
Received-SPF: pass client-ip=167.89.55.65; envelope-from=bounces+1568871-208f-ietf-http-wg=w3.org@sendgrid.net; helo=o1.7nn.fshared.sendgrid.net
X-W3C-Hub-Spam-Status: No, score=-7.5
X-W3C-Hub-Spam-Report: AWL=1.273, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-1.156, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, SPF_PASS=-0.001, W3C_AA=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1cWBVY-0002cH-6m a34d1e98d8f6dd771cd8878abd0193ac
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Proposed text for erratum on PRIORITY in RFC 7540
Archived-At: <http://www.w3.org/mid/CAOdDvNpEhEv-91kpOSsX24cNR3CXc9i34xWspAa6uO3BrMO4rA@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33371
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>

--001a11412deae789f10546e05ad7
Content-Type: text/plain; charset=UTF-8

sgtm

On Tue, Jan 24, 2017 at 8:32 AM, Martin Thomson <martin.thomson@gmail.com>
wrote:

> On 21 January 2017 at 02:15, Scott Mitchell <scott.k.mitch1@gmail.com>
> wrote:
> > The bit I think needs clarification is that a PRIORITY frame doesn't
> impact
> > state of ANY stream (if this is the intention of the RFC). The ambiguity
> > comes from the language "first use of a new stream identifier" in section
> > 5.1.1 (see below). Is it possible to directly resolve this issue?
> Updating
> > other sections is great, but this creates an implicit dependency between
> > different sections which leaves room for error.
>
> How about:
>
> Sending or receiving a PRIORITY frame does not affect the state of any
> stream (Section 5.1), only the priority of the identified stream is
> altered.
>
> I think that the "first use of a new stream identifier" text is still
> problematic, but I don't know how to deal with that without performing
> more surgery.
>
>

--001a11412deae789f10546e05ad7
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">sgtm<br></div><div class=3D"gmail_extra"><br><div class=3D=
"gmail_quote">On Tue, Jan 24, 2017 at 8:32 AM, Martin Thomson <span dir=3D"=
ltr">&lt;<a href=3D"mailto:martin.thomson@gmail.com" target=3D"_blank">mart=
in.thomson@gmail.com</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_qu=
ote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex=
"><span class=3D"">On 21 January 2017 at 02:15, Scott Mitchell &lt;<a href=
=3D"mailto:scott.k.mitch1@gmail.com">scott.k.mitch1@gmail.com</a>&gt; wrote=
:<br>
&gt; The bit I think needs clarification is that a PRIORITY frame doesn&#39=
;t impact<br>
&gt; state of ANY stream (if this is the intention of the RFC). The ambigui=
ty<br>
&gt; comes from the language &quot;first use of a new stream identifier&quo=
t; in section<br>
&gt; 5.1.1 (see below). Is it possible to directly resolve this issue?=C2=
=A0 Updating<br>
&gt; other sections is great, but this creates an implicit dependency betwe=
en<br>
&gt; different sections which leaves room for error.<br>
<br>
</span>How about:<br>
<br>
Sending or receiving a PRIORITY frame does not affect the state of any<br>
stream (Section 5.1), only the priority of the identified stream is<br>
altered.<br>
<br>
I think that the &quot;first use of a new stream identifier&quot; text is s=
till<br>
problematic, but I don&#39;t know how to deal with that without performing<=
br>
more surgery.<br>
<br>
</blockquote></div><br></div>

--001a11412deae789f10546e05ad7--


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Tue Jan 24 18:03:38 2017
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 2724A129606 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 24 Jan 2017 18:03:38 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.72
X-Spam-Level:
X-Spam-Status: No, score=-9.72 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, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, 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 97btc3LwTpXs for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 24 Jan 2017 18:03:36 -0800 (PST)
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 EF3D91295F8 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 24 Jan 2017 18:03:35 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cWCt2-00078o-Kj for ietf-http-wg-dist@listhub.w3.org; Wed, 25 Jan 2017 02:00:36 +0000
Resent-Date: Wed, 25 Jan 2017 02:00:36 +0000
Resent-Message-Id: <E1cWCt2-00078o-Kj@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <kazuhooku@gmail.com>) id 1cWCsx-00077V-LT for ietf-http-wg@listhub.w3.org; Wed, 25 Jan 2017 02:00:31 +0000
Received: from mail-ot0-f174.google.com ([74.125.82.174]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <kazuhooku@gmail.com>) id 1cWCsr-0005eL-BV for ietf-http-wg@w3.org; Wed, 25 Jan 2017 02:00:26 +0000
Received: by mail-ot0-f174.google.com with SMTP id 104so141864965otd.3 for <ietf-http-wg@w3.org>; Tue, 24 Jan 2017 18:00:05 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=gmVFzqhWWiw1XeSYHminePgyIYXVPyzjQSKvc9r8+cE=; b=XSwjz+Xm28S/JhncrJIh55cW/RTvjLNi0XqvxKFMGb3BeG32L+FoGwkhqb3L1c7VL8 MQbKUWWEo4MQe/ukclnZ+DtNz5f2SmUcshmICfifQYEv3nrKj5M05B88FciEttEOnVQL QoL/xMYiOUKWSO1LJPA+0mwpKjnA3YHpbOVpnuRa5YnSXlfaYS1UgTHtg/jwgQQWXNHH YR8QSaTF1f/uZap0XTLRMZ+spasZRPhHMoR/Dbo3wSd17U6u1HXFjg4lki+H+6HxynHX TpfD1GXkzbpmkzampvM1S6EvW3OMFijIsWBSMvrlAD+4F7v8TnX8pMlQwRS7aHUdeo8M xLtg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=gmVFzqhWWiw1XeSYHminePgyIYXVPyzjQSKvc9r8+cE=; b=uMgODdsXcX/CDzEAoTdjEqACHuMOLzS7T/BQ8K1bHsVRQRaodBnIsXJFQTzwuoh2NK 2NjQjN2bvZPCOl/0jJCnx2SmxPF22fCZMfMsFu6ajRMbyfpg9mOkiv+MOA4Uu37eYIGK jMZcNMZGu4FSSykToZ1d46YzfhXKwYYLA7Fn2b087jBYLDY5qgqE8GD0hEBpDRxb+p4d 10HohTukV7Eo9w0BE5YjJUoey+lRAmX0s85keZX965PNwXZKsRgH1uDNAN+iSvBZqd4Z LKeeI4+If1USJsTwTBnzirgo7duEaAlhqHkEboHbIU83zvFqmMtZqFy06YUlJRIb6Hzi XZnQ==
X-Gm-Message-State: AIkVDXIS6Knf7THwA3JoQ5H59bvP7yms/q/K77cGejhb1+mt52aH6NbJno1ZovKi9wC78aRZ8wgGHREbEd7P0w==
X-Received: by 10.157.11.137 with SMTP id 9mr16955838oth.14.1485309598984; Tue, 24 Jan 2017 17:59:58 -0800 (PST)
MIME-Version: 1.0
Received: by 10.157.16.113 with HTTP; Tue, 24 Jan 2017 17:59:58 -0800 (PST)
In-Reply-To: <CA+3+x5EdkLSAR2gWR9TT72o2Tg4Z_xKXMh8yVREYD7mvNuLB8w@mail.gmail.com>
References: <CA+3+x5Ft8MfRduWp1RzJ9_qAgQiCujac8f5FLz81Xpyu3cTDxw@mail.gmail.com> <CANatvzz0AYxBDDyEbpvnq1xPd1-vrFazbnVt2usanXS0CTKbeA@mail.gmail.com> <20170124.165356.870174430965764062.kazu@iij.ad.jp> <900A5D6B-0752-470E-840C-4518D933DD09@greenbytes.de> <CA+3+x5EdkLSAR2gWR9TT72o2Tg4Z_xKXMh8yVREYD7mvNuLB8w@mail.gmail.com>
From: Kazuho Oku <kazuhooku@gmail.com>
Date: Wed, 25 Jan 2017 10:59:58 +0900
Message-ID: <CANatvzxviLMMvn3VLJDn3oYJACSBwB8Qhy_43uQ9uBDnnc1s0Q@mail.gmail.com>
To: Tom Bergan <tombergan@chromium.org>
Cc: Stefan Eissing <stefan.eissing@greenbytes.de>,  =?UTF-8?B?S2F6dSBZYW1hbW90byAo5bGx5pys5ZKM5b2mKQ==?= <kazu@iij.ad.jp>,  HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=74.125.82.174; envelope-from=kazuhooku@gmail.com; helo=mail-ot0-f174.google.com
X-W3C-Hub-Spam-Status: No, score=-4.2
X-W3C-Hub-Spam-Report: AWL=-0.670, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cWCsr-0005eL-BV f53fd89c8f49338b653ea819221eebff
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Is a faithful HTTP/2 response scheduler necessarily O(n) in the  worst case?
Archived-At: <http://www.w3.org/mid/CANatvzxviLMMvn3VLJDn3oYJACSBwB8Qhy_43uQ9uBDnnc1s0Q@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33372
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>

2017-01-25 7:22 GMT+09:00 Tom Bergan <tombergan@chromium.org>:
> Thanks for the feedback. Sounds like the worst-case time really is O(n).
>
>> kazuhooku@
>> the constant for O(n) would be small enough so that it cannot be used an
>> attack vector
>
> Don't you need to ensure that n is small, otherwise even O(n) with a smal=
l
> constant factor can lead to degraded performance? e.g., if
> SETTINGS_MAX_CONCURRENT_STREAMS =3D 20,000, I may end up computing a sum =
of
> 20,000 numbers every few frames, which is not terribly slow, but not
> terribly fast either.

I agree. For H2O, the maximum is hard-coded to 100 partly to avoid
that kind of attack.

>> kazu@
>> http://www.mew.org/~kazu/material/2015-http2-priority2.pdf
>> http://www.mew.org/~kazu/doc/paper/http2-haskell-2016.pdf
>
> Thanks. IIUC, the algorithms described in both links are still at least
> O(depth), which can be O(n) for dependency trees generated by certain
> clients such as Chrome.
>
>> stefan.eissing@
>> The very same problem exists for stream processing in order to generate
>> response data.
>
> What did you mean by "stream processing"?
>
> On Tue, Jan 24, 2017 at 12:26 AM, Stefan Eissing
> <stefan.eissing@greenbytes.de> wrote:
>>
>> The very same problem exists for stream processing in order to generate
>> response data.
>>
>> > Am 24.01.2017 um 08:53 schrieb Kazu Yamamoto (=E5=B1=B1=E6=9C=AC=E5=92=
=8C=E5=BD=A6) <kazu@iij.ad.jp>:
>> >
>> > Hi Tom,
>> >
>> > Probably, this material would help you:
>> >
>> > http://www.mew.org/~kazu/material/2015-http2-priority2.pdf
>> > http://www.mew.org/~kazu/doc/paper/http2-haskell-2016.pdf
>> >
>> > --Kazu
>> >
>> >> Regarding your question, I am unaware of a scheduler design that is
>> >> better than O(n) for both dequeuing (i.e. selecting the stream to
>> >> send) and for rescheduling a stream (especially a stream with many
>> >> decendants).
>> >>
>> >> While designing the scheduler of H2O (you are right in pointing out
>> >> the fact that it is O(depth)), I came up with two options. One was to
>> >> retain the vertical (i.e. parent-children) relationship between the
>> >> streams. The other was to squash the vertical relationships to
>> >> generate a one-dimensional list of streams ordered by priority.
>> >>
>> >> By taking the latter approach, you could create a scheduler that
>> >> dequeues at O(1). But such scheduler would need to perform O(N)
>> >> operation when receiving a priority frame or a stream-level window
>> >> update (in this case N is number of direct and indirect decendants of
>> >> the reprioritized stream).
>> >>
>> >> Considering this, we chose to implement the scheduler of H2O as O(1)
>> >> weight-wise, and O(n) depth-wise, but that the constant for O(n) woul=
d
>> >> be small enough so that it cannot be used an attack vector.
>> >>
>> >> 2017-01-24 9:39 GMT+09:00 Tom Bergan <tombergan@chromium.org>:
>> >>> I implemented the HTTP/2 response scheduler in Go's HTTP/2 server
>> >>> library.
>> >>> I'm trying to understand the worst-case behavior of that scheduler. =
I
>> >>> believe the worst-case behavior is necessarily O(n) operations per
>> >>> frame
>> >>> sent on the wire, where n is the number of streams in the dependency
>> >>> tree.
>> >>> Here is my rationale.
>> >>>
>> >>> The key operation is finding the highest-priority stream that is rea=
dy
>> >>> to
>> >>> send data.
>> >>>
>> >>> If we don't care about weights, and we don't care about balancing
>> >>> bandwidth
>> >>> usage across sibling nodes in a tree, then we can label each node wi=
th
>> >>> two
>> >>> fields: "ready" (true if the stream is ready to send data) and "dept=
h"
>> >>> (the
>> >>> node's distance from the root of the tree). The scheduler must find =
a
>> >>> node
>> >>> with the smallest depth over all nodes with ready =3D true. It is fa=
irly
>> >>> trivial to implement this in O(log n).
>> >>>
>> >>> Now, let's introduce weights. The scheduler must allocate bandwidth =
to
>> >>> all
>> >>> ready nodes, which happens recursively as follows:
>> >>>
>> >>>  func allocateBandwidth(node, bw) {
>> >>>    if (node.ready) {
>> >>>      node.bandwidthShare =3D bw
>> >>>      return
>> >>>    }
>> >>>    totalWeight =3D 0
>> >>>    for (n in node.children) {
>> >>>      if (n.ready || descendantIsReady(n)) {
>> >>>        totalWeight +=3D n.weight
>> >>>      }
>> >>>    }
>> >>>    for (n in node.children) {
>> >>>      if (n.ready || descendantIsReady(n)) {
>> >>>        allocateBandwidth(n, bw * n.weight / totalWeight)
>> >>>      }
>> >>>    }
>> >>>  }
>> >>>  allocateBandwidth(root, 1.0)
>> >>>
>> >>> I believe the above definition is a direct translation of RFC 7540
>> >>> Section
>> >>> 5.3.2 (also see this thread, which discussed bandwidth allocation).
>> >>> Given a
>> >>> complete bandwidth allocation, the server can translate each node's
>> >>> bandwidthShare to a number of tokens that are updated using a token
>> >>> bucket
>> >>> algorithm (or similar). The scheduler would then pick the node with
>> >>> the most
>> >>> available tokens. The scheduler looks something like:
>> >>>
>> >>>  func scheduleNextFrame() {
>> >>>    if (tree changed since last frame written) {
>> >>>      allocateBandwidth(root, 1.0)
>> >>>      assign tokens and build a priority queue containing all nodes
>> >>> with
>> >>> allocated bandwidth
>> >>>    }
>> >>>    node =3D priorityQueue.head()
>> >>>    node.consumeTokens() // consume up to frame size or flow-control
>> >>> limit
>> >>>    priorityQueue.update(node)
>> >>>    return node
>> >>>  }
>> >>>
>> >>> There are two steps in scheduleNextFrame. The first step updates the
>> >>> bandwidth allocation if the tree changed since the last frame was
>> >>> written.
>> >>> This is the most expensive step. I don't believe it's possible to
>> >>> implement
>> >>> allocateBandwidth using fewer than O(n) worst-case steps. For exampl=
e,
>> >>> if
>> >>> the tree is mostly flat, meaning that most nodes are children of the
>> >>> same
>> >>> node, then the loop to compute totalWeight is O(n). I believe Firefo=
x
>> >>> creates mostly-flat trees. Further, allocateBandwidth makes O(depth)
>> >>> recursive steps, where "depth" is the maximum depth of the dependenc=
y
>> >>> tree.
>> >>> If the tree is mostly-linear, then O(depth) becomes O(n). Chrome
>> >>> creates
>> >>> mostly-linear trees.
>> >>>
>> >>> The overall runtime depends on how often the tree changes. If the tr=
ee
>> >>> changes rarely, the scheduler is cheap. If the tree changes
>> >>> frequently, the
>> >>> scheduler is worst-case O(n). A tree has "changed" if it changed sha=
pe
>> >>> (nodes are added/moved/removed) or if any node's ready state has
>> >>> changed.
>> >>> Both kinds of changes can happen often in practice, suggesting that
>> >>> the
>> >>> overall scheduler is worst-case O(n). For example, consider a server
>> >>> that
>> >>> sends small responses (one or two DATA frames per response) -- each
>> >>> stream
>> >>> will be closed after one or two DATA frames, so on average, the tree
>> >>> will
>> >>> change shape every few frames. Further, it's possible for ready stat=
es
>> >>> to
>> >>> change more frequently than you might think. In Go's HTTP/2
>> >>> implementation,
>> >>> a stream does not become ready until the application handler calls
>> >>> Write to
>> >>> buffer response data. After that buffered data is serialized on the
>> >>> wire,
>> >>> the stream transitions to "not ready" because the scheduler cannot
>> >>> know when
>> >>> the next Write call will happen. The stream will transition back to
>> >>> "ready"
>> >>> during the next Write call. Each Write call typically buffers about
>> >>> 32KB of
>> >>> data. This is a "push" model, where the application handler "pushes"
>> >>> data
>> >>> into the scheduler. I'm aware of one other HTTP/2 server that works
>> >>> similarly. I suspect that frequent ready/not-ready transitions are
>> >>> common to
>> >>> most HTTP/2 servers that use a "push" model. These servers will be
>> >>> more
>> >>> susceptible to the O(n) worst case.
>> >>>
>> >>> Questions:
>> >>>
>> >>> 1. Am I missing a clever implementation, or is it true that a faithf=
ul
>> >>> HTTP/2 scheduler necessarily requires O(n) operations per frame sent
>> >>> on the
>> >>> wire, in the worst case? I could not find much discussion of this
>> >>> question
>> >>> after a quick search. H2O claims to implement an O(1) scheduler,
>> >>> however,
>> >>> the code seems to be worst-case O(depth) or O(n) -- see here, here,
>> >>> and
>> >>> here.
>> >>>
>> >>> 2. If the above is correct, should I be concerned about the O(n) wor=
st
>> >>> case?
>> >>> I doubt that a typical web browsing session will trigger O(n) behavi=
or
>> >>> frequently, so I'm less concerned about the average case; I'm more
>> >>> concerned
>> >>> about pathological cases or possible DoS vectors. Also, think about
>> >>> cases
>> >>> where the "client" is actually a proxy server, meaning the HTTP/2
>> >>> connection
>> >>> may have many more concurrent streams than a typical browsing sessio=
n.
>> >>> For
>> >>> comparison, if you recall the predecessor to HTTP/2 (SPDY), a SPDY
>> >>> scheduler
>> >>> could be trivially implemented in O(1), since SPDY used just eight
>> >>> priority
>> >>> buckets.
>> >>>
>> >>> 3. If I should be concerned about an O(n) worst case, are there any
>> >>> suggested mitigations beyond setting SETTINGS_MAX_CONCURRENT_STREAMS
>> >>> to a
>> >>> smallish constant?
>> >>
>> >>
>> >>
>> >> --
>> >> Kazuho Oku
>> >>
>> >
>>
>>
>



--=20
Kazuho Oku


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Tue Jan 24 18:04:12 2017
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 F024C129601 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 24 Jan 2017 18:04:12 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.719
X-Spam-Level:
X-Spam-Status: No, score=-9.719 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, 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 i4Y5bH5qqmI6 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 24 Jan 2017 18:04:11 -0800 (PST)
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 142BE1295F8 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 24 Jan 2017 18:04:11 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cWCum-0007JT-IE for ietf-http-wg-dist@listhub.w3.org; Wed, 25 Jan 2017 02:02:24 +0000
Resent-Date: Wed, 25 Jan 2017 02:02:24 +0000
Resent-Message-Id: <E1cWCum-0007JT-IE@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <tatsuhiro.t@gmail.com>) id 1cWCuh-0007Ia-TA for ietf-http-wg@listhub.w3.org; Wed, 25 Jan 2017 02:02:19 +0000
Received: from mail-qt0-f180.google.com ([209.85.216.180]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <tatsuhiro.t@gmail.com>) id 1cWCua-0005jO-TG for ietf-http-wg@w3.org; Wed, 25 Jan 2017 02:02:14 +0000
Received: by mail-qt0-f180.google.com with SMTP id k15so4451395qtg.3 for <ietf-http-wg@w3.org>; Tue, 24 Jan 2017 18:01:52 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=UvsorjzceJxvOvyZNduE41WMoM00r/Zav/L8vXTvYDk=; b=Li8jzvtchaNm2Q3e5m5NW0GLxUL9Vnzqj7v6GSNOGzN4G8k3KRezlYtoabZ46M1nD9 9OUcsvN6bJwp6p+fMGXa4PNYQh0v1sctym2JVMQIj7iVKdcbwJyzCvxs60lp2tTfpcQW tL6FtEfCzuCWwOwyIfX/7b+WwNjBWN7ZkFgFkBS0224s+Je5UhQgyRhJPBDDNON2jiyf CcmsFKZYJ0zT/URk1SdoM3KOFfXc/HYt1yxQJTqT2HwTPCoCEQl8PuoiFjQBPL1LfWvr FyNnD0+wrSvGuE+3/N7+sHY4JjNYogZ+IYOft02jT23EfiQoqLtBrpYAHXREyhQs1WDe X/Jw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=UvsorjzceJxvOvyZNduE41WMoM00r/Zav/L8vXTvYDk=; b=cSaBxvvHs7GzjrKoUcN/yOFRYBu0xLGARIDNRWA6faSFmmG3XViz7F8JqrNZd/WMLo 5T4crNKWSCYPONHQVejgpeuslfooG2WBaZ731MrRjwj9+SZK/LLn/n1tbv2uyNR3Y5df lp1PCix9kVDk2lGXdydnLM789PpbZPaFuDedhUHlUzEmyyXTTV1oMbxgb44CYUC/xsss fyDI/emN/anrs3wZdglrBF3yDX1XtiN0JFwoJdRYpPcbqD3Ih4+je18euSZzUfCy+YAn VcY3R9a9hil4fjEgTQWUE238pYBZfA/c0nWmehO2OXjbaHQQ7FlM1CuKMauhRv7vUvBQ r7PQ==
X-Gm-Message-State: AIkVDXIAyUYSeb1q7dnr8reHh1Oub2GCCk9K5yw+Ca4/cBpRV7AUqIr7hIuUH5LajEVOCBzQZq7RDYO0Ognt1Q==
X-Received: by 10.200.42.200 with SMTP id c8mr32913130qta.156.1485309706667; Tue, 24 Jan 2017 18:01:46 -0800 (PST)
MIME-Version: 1.0
Received: by 10.12.138.186 with HTTP; Tue, 24 Jan 2017 18:01:26 -0800 (PST)
In-Reply-To: <CA+3+x5EdkLSAR2gWR9TT72o2Tg4Z_xKXMh8yVREYD7mvNuLB8w@mail.gmail.com>
References: <CA+3+x5Ft8MfRduWp1RzJ9_qAgQiCujac8f5FLz81Xpyu3cTDxw@mail.gmail.com> <CANatvzz0AYxBDDyEbpvnq1xPd1-vrFazbnVt2usanXS0CTKbeA@mail.gmail.com> <20170124.165356.870174430965764062.kazu@iij.ad.jp> <900A5D6B-0752-470E-840C-4518D933DD09@greenbytes.de> <CA+3+x5EdkLSAR2gWR9TT72o2Tg4Z_xKXMh8yVREYD7mvNuLB8w@mail.gmail.com>
From: Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>
Date: Wed, 25 Jan 2017 11:01:26 +0900
Message-ID: <CAPyZ6=LYEufwdqnXZGrP9o3dfuNVXkyL=Mj04s=PhQG9v0oLGg@mail.gmail.com>
To: Tom Bergan <tombergan@chromium.org>
Cc: Stefan Eissing <stefan.eissing@greenbytes.de>,  =?UTF-8?B?S2F6dSBZYW1hbW90byAo5bGx5pys5ZKM5b2mKQ==?= <kazu@iij.ad.jp>,  HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary=001a1140058e7295a40546e19dcb
Received-SPF: pass client-ip=209.85.216.180; envelope-from=tatsuhiro.t@gmail.com; helo=mail-qt0-f180.google.com
X-W3C-Hub-Spam-Status: No, score=-5.2
X-W3C-Hub-Spam-Report: AWL=-0.998, 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, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cWCua-0005jO-TG 54b8e6ada8105584e18f05048a6eba69
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Is a faithful HTTP/2 response scheduler necessarily O(n) in the  worst case?
Archived-At: <http://www.w3.org/mid/CAPyZ6=LYEufwdqnXZGrP9o3dfuNVXkyL=Mj04s=PhQG9v0oLGg@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33373
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>

--001a1140058e7295a40546e19dcb
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Hi,

On Wed, Jan 25, 2017 at 7:22 AM, Tom Bergan <tombergan@chromium.org> wrote:

> Thanks for the feedback. Sounds like the worst-case time really is O(n).
>
> > kazuhooku@
> > the constant for O(n) would be small enough so that it cannot be used a=
n
> attack vector
>
> Don't you need to ensure that n is small, otherwise even O(n) with a smal=
l
> constant factor can lead to degraded performance? e.g.,
> if SETTINGS_MAX_CONCURRENT_STREAMS =3D 20,000, I may end up computing a s=
um
> of 20,000 numbers every few frames, which is not terribly slow, but not
> terribly fast either.
>
>
=E2=80=8BIf large n is concern, server can limit SETTINGS_MAX_CONCURRENT_ST=
REAMS to
the reasonable number.  Usually we use 100, and it is pretty fast.

Best regards,
Tatsuhiro Tsujikawa=E2=80=8B



> > kazu@
> > http://www.mew.org/~kazu/material/2015-http2-priority2.pdf
> > http://www.mew.org/~kazu/doc/paper/http2-haskell-2016.pdf
>
> Thanks. IIUC, the algorithms described in both links are still at least
> O(depth), which can be O(n) for dependency trees generated by certain
> clients such as Chrome.
>
> > stefan.eissing@
> > The very same problem exists for stream processing in order to generate
> response data.
>
> What did you mean by "stream processing"?
>
> On Tue, Jan 24, 2017 at 12:26 AM, Stefan Eissing <
> stefan.eissing@greenbytes.de> wrote:
>
>> The very same problem exists for stream processing in order to generate
>> response data.
>>
>> > Am 24.01.2017 um 08:53 schrieb Kazu Yamamoto (=E5=B1=B1=E6=9C=AC=E5=92=
=8C=E5=BD=A6) <kazu@iij.ad.jp>:
>> >
>> > Hi Tom,
>> >
>> > Probably, this material would help you:
>> >
>> > http://www.mew.org/~kazu/material/2015-http2-priority2.pdf
>> > http://www.mew.org/~kazu/doc/paper/http2-haskell-2016.pdf
>> >
>> > --Kazu
>> >
>> >> Regarding your question, I am unaware of a scheduler design that is
>> >> better than O(n) for both dequeuing (i.e. selecting the stream to
>> >> send) and for rescheduling a stream (especially a stream with many
>> >> decendants).
>> >>
>> >> While designing the scheduler of H2O (you are right in pointing out
>> >> the fact that it is O(depth)), I came up with two options. One was to
>> >> retain the vertical (i.e. parent-children) relationship between the
>> >> streams. The other was to squash the vertical relationships to
>> >> generate a one-dimensional list of streams ordered by priority.
>> >>
>> >> By taking the latter approach, you could create a scheduler that
>> >> dequeues at O(1). But such scheduler would need to perform O(N)
>> >> operation when receiving a priority frame or a stream-level window
>> >> update (in this case N is number of direct and indirect decendants of
>> >> the reprioritized stream).
>> >>
>> >> Considering this, we chose to implement the scheduler of H2O as O(1)
>> >> weight-wise, and O(n) depth-wise, but that the constant for O(n) woul=
d
>> >> be small enough so that it cannot be used an attack vector.
>> >>
>> >> 2017-01-24 9:39 GMT+09:00 Tom Bergan <tombergan@chromium.org>:
>> >>> I implemented the HTTP/2 response scheduler in Go's HTTP/2 server
>> library.
>> >>> I'm trying to understand the worst-case behavior of that scheduler. =
I
>> >>> believe the worst-case behavior is necessarily O(n) operations per
>> frame
>> >>> sent on the wire, where n is the number of streams in the dependency
>> tree.
>> >>> Here is my rationale.
>> >>>
>> >>> The key operation is finding the highest-priority stream that is
>> ready to
>> >>> send data.
>> >>>
>> >>> If we don't care about weights, and we don't care about balancing
>> bandwidth
>> >>> usage across sibling nodes in a tree, then we can label each node
>> with two
>> >>> fields: "ready" (true if the stream is ready to send data) and
>> "depth" (the
>> >>> node's distance from the root of the tree). The scheduler must find =
a
>> node
>> >>> with the smallest depth over all nodes with ready =3D true. It is fa=
irly
>> >>> trivial to implement this in O(log n).
>> >>>
>> >>> Now, let's introduce weights. The scheduler must allocate bandwidth
>> to all
>> >>> ready nodes, which happens recursively as follows:
>> >>>
>> >>>  func allocateBandwidth(node, bw) {
>> >>>    if (node.ready) {
>> >>>      node.bandwidthShare =3D bw
>> >>>      return
>> >>>    }
>> >>>    totalWeight =3D 0
>> >>>    for (n in node.children) {
>> >>>      if (n.ready || descendantIsReady(n)) {
>> >>>        totalWeight +=3D n.weight
>> >>>      }
>> >>>    }
>> >>>    for (n in node.children) {
>> >>>      if (n.ready || descendantIsReady(n)) {
>> >>>        allocateBandwidth(n, bw * n.weight / totalWeight)
>> >>>      }
>> >>>    }
>> >>>  }
>> >>>  allocateBandwidth(root, 1.0)
>> >>>
>> >>> I believe the above definition is a direct translation of RFC 7540
>> Section
>> >>> 5.3.2 (also see this thread, which discussed bandwidth allocation).
>> Given a
>> >>> complete bandwidth allocation, the server can translate each node's
>> >>> bandwidthShare to a number of tokens that are updated using a token
>> bucket
>> >>> algorithm (or similar). The scheduler would then pick the node with
>> the most
>> >>> available tokens. The scheduler looks something like:
>> >>>
>> >>>  func scheduleNextFrame() {
>> >>>    if (tree changed since last frame written) {
>> >>>      allocateBandwidth(root, 1.0)
>> >>>      assign tokens and build a priority queue containing all nodes
>> with
>> >>> allocated bandwidth
>> >>>    }
>> >>>    node =3D priorityQueue.head()
>> >>>    node.consumeTokens() // consume up to frame size or flow-control
>> limit
>> >>>    priorityQueue.update(node)
>> >>>    return node
>> >>>  }
>> >>>
>> >>> There are two steps in scheduleNextFrame. The first step updates the
>> >>> bandwidth allocation if the tree changed since the last frame was
>> written.
>> >>> This is the most expensive step. I don't believe it's possible to
>> implement
>> >>> allocateBandwidth using fewer than O(n) worst-case steps. For
>> example, if
>> >>> the tree is mostly flat, meaning that most nodes are children of the
>> same
>> >>> node, then the loop to compute totalWeight is O(n). I believe Firefo=
x
>> >>> creates mostly-flat trees. Further, allocateBandwidth makes O(depth)
>> >>> recursive steps, where "depth" is the maximum depth of the dependenc=
y
>> tree.
>> >>> If the tree is mostly-linear, then O(depth) becomes O(n). Chrome
>> creates
>> >>> mostly-linear trees.
>> >>>
>> >>> The overall runtime depends on how often the tree changes. If the tr=
ee
>> >>> changes rarely, the scheduler is cheap. If the tree changes
>> frequently, the
>> >>> scheduler is worst-case O(n). A tree has "changed" if it changed sha=
pe
>> >>> (nodes are added/moved/removed) or if any node's ready state has
>> changed.
>> >>> Both kinds of changes can happen often in practice, suggesting that
>> the
>> >>> overall scheduler is worst-case O(n). For example, consider a server
>> that
>> >>> sends small responses (one or two DATA frames per response) -- each
>> stream
>> >>> will be closed after one or two DATA frames, so on average, the tree
>> will
>> >>> change shape every few frames. Further, it's possible for ready
>> states to
>> >>> change more frequently than you might think. In Go's HTTP/2
>> implementation,
>> >>> a stream does not become ready until the application handler calls
>> Write to
>> >>> buffer response data. After that buffered data is serialized on the
>> wire,
>> >>> the stream transitions to "not ready" because the scheduler cannot
>> know when
>> >>> the next Write call will happen. The stream will transition back to
>> "ready"
>> >>> during the next Write call. Each Write call typically buffers about
>> 32KB of
>> >>> data. This is a "push" model, where the application handler "pushes"
>> data
>> >>> into the scheduler. I'm aware of one other HTTP/2 server that works
>> >>> similarly. I suspect that frequent ready/not-ready transitions are
>> common to
>> >>> most HTTP/2 servers that use a "push" model. These servers will be
>> more
>> >>> susceptible to the O(n) worst case.
>> >>>
>> >>> Questions:
>> >>>
>> >>> 1. Am I missing a clever implementation, or is it true that a faithf=
ul
>> >>> HTTP/2 scheduler necessarily requires O(n) operations per frame sent
>> on the
>> >>> wire, in the worst case? I could not find much discussion of this
>> question
>> >>> after a quick search. H2O claims to implement an O(1) scheduler,
>> however,
>> >>> the code seems to be worst-case O(depth) or O(n) -- see here, here,
>> and
>> >>> here.
>> >>>
>> >>> 2. If the above is correct, should I be concerned about the O(n)
>> worst case?
>> >>> I doubt that a typical web browsing session will trigger O(n) behavi=
or
>> >>> frequently, so I'm less concerned about the average case; I'm more
>> concerned
>> >>> about pathological cases or possible DoS vectors. Also, think about
>> cases
>> >>> where the "client" is actually a proxy server, meaning the HTTP/2
>> connection
>> >>> may have many more concurrent streams than a typical browsing
>> session. For
>> >>> comparison, if you recall the predecessor to HTTP/2 (SPDY), a SPDY
>> scheduler
>> >>> could be trivially implemented in O(1), since SPDY used just eight
>> priority
>> >>> buckets.
>> >>>
>> >>> 3. If I should be concerned about an O(n) worst case, are there any
>> >>> suggested mitigations beyond setting SETTINGS_MAX_CONCURRENT_STREAMS
>> to a
>> >>> smallish constant?
>> >>
>> >>
>> >>
>> >> --
>> >> Kazuho Oku
>> >>
>> >
>>
>>
>>
>

--001a1140058e7295a40546e19dcb
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-family:arial,he=
lvetica,sans-serif;font-size:small">Hi,</div><div class=3D"gmail_extra"><br=
><div class=3D"gmail_quote">On Wed, Jan 25, 2017 at 7:22 AM, Tom Bergan <sp=
an dir=3D"ltr">&lt;<a href=3D"mailto:tombergan@chromium.org" target=3D"_bla=
nk">tombergan@chromium.org</a>&gt;</span> wrote:<br><blockquote class=3D"gm=
ail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-le=
ft:1ex"><div dir=3D"ltr">Thanks for the feedback. Sounds like the worst-cas=
e time really is O(n).<div><br></div><div>&gt; kazuhooku@</div><span class=
=3D""><div>&gt; the constant for O(n) would be small enough so that it cann=
ot be used an attack vector<br></div></span><div><div><br></div><div>Don&#3=
9;t you need to ensure that n is small, otherwise even O(n) with a small co=
nstant factor can lead to degraded performance? e.g., if=C2=A0SETTINGS_MAX_=
CONCURRENT_<wbr>STREAMS =3D 20,000, I may end up computing a sum of 20,000 =
numbers every few frames, which is not terribly slow, but not terribly fast=
 either.</div><div><br></div></div></div></blockquote><div><br></div><div><=
div class=3D"gmail_default" style=3D"font-family:arial,helvetica,sans-serif=
;font-size:small">=E2=80=8BIf large n is concern, server can limit SETTINGS=
_MAX_CONCURRENT_STREAMS to the reasonable number.=C2=A0 Usually we use 100,=
 and it is pretty fast.</div><div class=3D"gmail_default" style=3D"font-fam=
ily:arial,helvetica,sans-serif;font-size:small"><br></div><div class=3D"gma=
il_default" style=3D"font-family:arial,helvetica,sans-serif;font-size:small=
">Best regards,</div><div class=3D"gmail_default" style=3D"font-family:aria=
l,helvetica,sans-serif;font-size:small">Tatsuhiro Tsujikawa=E2=80=8B</div><=
br></div><div>=C2=A0</div><blockquote class=3D"gmail_quote" style=3D"margin=
:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr"><=
div><div></div><div>&gt;=C2=A0kazu@</div><div>&gt; <a href=3D"http://www.me=
w.org/~kazu/material/2015-http2-priority2.pdf" target=3D"_blank">http://www=
.mew.org/~kazu/<wbr>material/2015-http2-priority2.<wbr>pdf</a></div><div>&g=
t; <a href=3D"http://www.mew.org/~kazu/doc/paper/http2-haskell-2016.pdf" ta=
rget=3D"_blank">http://www.mew.org/~kazu/doc/<wbr>paper/http2-haskell-2016.=
pdf</a></div><div><br></div><div>Thanks. IIUC, the algorithms described in =
both links are still at least O(depth), which can be O(n) for dependency tr=
ees generated by certain clients such as Chrome.</div><div><br></div><div>&=
gt;=C2=A0stefan.eissing@</div><span class=3D""><div>&gt; The very same prob=
lem exists for stream processing in order to generate response data.</div><=
div><br></div></span><div>What did you mean by &quot;stream processing&quot=
;?</div><div></div></div></div><div class=3D"HOEnZb"><div class=3D"h5"><div=
 class=3D"gmail_extra"><br><div class=3D"gmail_quote">On Tue, Jan 24, 2017 =
at 12:26 AM, Stefan Eissing <span dir=3D"ltr">&lt;<a href=3D"mailto:stefan.=
eissing@greenbytes.de" target=3D"_blank">stefan.eissing@greenbytes.de</a>&g=
t;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0=
 .8ex;border-left:1px #ccc solid;padding-left:1ex">The very same problem ex=
ists for stream processing in order to generate response data.<br>
<div class=3D"m_1032898800018809577HOEnZb"><div class=3D"m_1032898800018809=
577h5"><br>
&gt; Am 24.01.2017 um 08:53 schrieb Kazu Yamamoto (=E5=B1=B1=E6=9C=AC=E5=92=
=8C=E5=BD=A6) &lt;<a href=3D"mailto:kazu@iij.ad.jp" target=3D"_blank">kazu@=
iij.ad.jp</a>&gt;:<br>
&gt;<br>
&gt; Hi Tom,<br>
&gt;<br>
&gt; Probably, this material would help you:<br>
&gt;<br>
&gt; <a href=3D"http://www.mew.org/~kazu/material/2015-http2-priority2.pdf"=
 rel=3D"noreferrer" target=3D"_blank">http://www.mew.org/~kazu/mater<wbr>ia=
l/2015-http2-priority2.pdf</a><br>
&gt; <a href=3D"http://www.mew.org/~kazu/doc/paper/http2-haskell-2016.pdf" =
rel=3D"noreferrer" target=3D"_blank">http://www.mew.org/~kazu/doc/p<wbr>ape=
r/http2-haskell-2016.pdf</a><br>
&gt;<br>
&gt; --Kazu<br>
&gt;<br>
&gt;&gt; Regarding your question, I am unaware of a scheduler design that i=
s<br>
&gt;&gt; better than O(n) for both dequeuing (i.e. selecting the stream to<=
br>
&gt;&gt; send) and for rescheduling a stream (especially a stream with many=
<br>
&gt;&gt; decendants).<br>
&gt;&gt;<br>
&gt;&gt; While designing the scheduler of H2O (you are right in pointing ou=
t<br>
&gt;&gt; the fact that it is O(depth)), I came up with two options. One was=
 to<br>
&gt;&gt; retain the vertical (i.e. parent-children) relationship between th=
e<br>
&gt;&gt; streams. The other was to squash the vertical relationships to<br>
&gt;&gt; generate a one-dimensional list of streams ordered by priority.<br=
>
&gt;&gt;<br>
&gt;&gt; By taking the latter approach, you could create a scheduler that<b=
r>
&gt;&gt; dequeues at O(1). But such scheduler would need to perform O(N)<br=
>
&gt;&gt; operation when receiving a priority frame or a stream-level window=
<br>
&gt;&gt; update (in this case N is number of direct and indirect decendants=
 of<br>
&gt;&gt; the reprioritized stream).<br>
&gt;&gt;<br>
&gt;&gt; Considering this, we chose to implement the scheduler of H2O as O(=
1)<br>
&gt;&gt; weight-wise, and O(n) depth-wise, but that the constant for O(n) w=
ould<br>
&gt;&gt; be small enough so that it cannot be used an attack vector.<br>
&gt;&gt;<br>
&gt;&gt; 2017-01-24 9:39 GMT+09:00 Tom Bergan &lt;<a href=3D"mailto:tomberg=
an@chromium.org" target=3D"_blank">tombergan@chromium.org</a>&gt;:<br>
&gt;&gt;&gt; I implemented the HTTP/2 response scheduler in Go&#39;s HTTP/2=
 server library.<br>
&gt;&gt;&gt; I&#39;m trying to understand the worst-case behavior of that s=
cheduler. I<br>
&gt;&gt;&gt; believe the worst-case behavior is necessarily O(n) operations=
 per frame<br>
&gt;&gt;&gt; sent on the wire, where n is the number of streams in the depe=
ndency tree.<br>
&gt;&gt;&gt; Here is my rationale.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; The key operation is finding the highest-priority stream that =
is ready to<br>
&gt;&gt;&gt; send data.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; If we don&#39;t care about weights, and we don&#39;t care abou=
t balancing bandwidth<br>
&gt;&gt;&gt; usage across sibling nodes in a tree, then we can label each n=
ode with two<br>
&gt;&gt;&gt; fields: &quot;ready&quot; (true if the stream is ready to send=
 data) and &quot;depth&quot; (the<br>
&gt;&gt;&gt; node&#39;s distance from the root of the tree). The scheduler =
must find a node<br>
&gt;&gt;&gt; with the smallest depth over all nodes with ready =3D true. It=
 is fairly<br>
&gt;&gt;&gt; trivial to implement this in O(log n).<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Now, let&#39;s introduce weights. The scheduler must allocate =
bandwidth to all<br>
&gt;&gt;&gt; ready nodes, which happens recursively as follows:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;=C2=A0 func allocateBandwidth(node, bw) {<br>
&gt;&gt;&gt;=C2=A0 =C2=A0 if (node.ready) {<br>
&gt;&gt;&gt;=C2=A0 =C2=A0 =C2=A0 node.bandwidthShare =3D bw<br>
&gt;&gt;&gt;=C2=A0 =C2=A0 =C2=A0 return<br>
&gt;&gt;&gt;=C2=A0 =C2=A0 }<br>
&gt;&gt;&gt;=C2=A0 =C2=A0 totalWeight =3D 0<br>
&gt;&gt;&gt;=C2=A0 =C2=A0 for (n in node.children) {<br>
&gt;&gt;&gt;=C2=A0 =C2=A0 =C2=A0 if (n.ready || descendantIsReady(n)) {<br>
&gt;&gt;&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 totalWeight +=3D n.weight<br>
&gt;&gt;&gt;=C2=A0 =C2=A0 =C2=A0 }<br>
&gt;&gt;&gt;=C2=A0 =C2=A0 }<br>
&gt;&gt;&gt;=C2=A0 =C2=A0 for (n in node.children) {<br>
&gt;&gt;&gt;=C2=A0 =C2=A0 =C2=A0 if (n.ready || descendantIsReady(n)) {<br>
&gt;&gt;&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 allocateBandwidth(n, bw * n.weight =
/ totalWeight)<br>
&gt;&gt;&gt;=C2=A0 =C2=A0 =C2=A0 }<br>
&gt;&gt;&gt;=C2=A0 =C2=A0 }<br>
&gt;&gt;&gt;=C2=A0 }<br>
&gt;&gt;&gt;=C2=A0 allocateBandwidth(root, 1.0)<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I believe the above definition is a direct translation of RFC =
7540 Section<br>
&gt;&gt;&gt; 5.3.2 (also see this thread, which discussed bandwidth allocat=
ion). Given a<br>
&gt;&gt;&gt; complete bandwidth allocation, the server can translate each n=
ode&#39;s<br>
&gt;&gt;&gt; bandwidthShare to a number of tokens that are updated using a =
token bucket<br>
&gt;&gt;&gt; algorithm (or similar). The scheduler would then pick the node=
 with the most<br>
&gt;&gt;&gt; available tokens. The scheduler looks something like:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;=C2=A0 func scheduleNextFrame() {<br>
&gt;&gt;&gt;=C2=A0 =C2=A0 if (tree changed since last frame written) {<br>
&gt;&gt;&gt;=C2=A0 =C2=A0 =C2=A0 allocateBandwidth(root, 1.0)<br>
&gt;&gt;&gt;=C2=A0 =C2=A0 =C2=A0 assign tokens and build a priority queue c=
ontaining all nodes with<br>
&gt;&gt;&gt; allocated bandwidth<br>
&gt;&gt;&gt;=C2=A0 =C2=A0 }<br>
&gt;&gt;&gt;=C2=A0 =C2=A0 node =3D priorityQueue.head()<br>
&gt;&gt;&gt;=C2=A0 =C2=A0 node.consumeTokens() // consume up to frame size =
or flow-control limit<br>
&gt;&gt;&gt;=C2=A0 =C2=A0 priorityQueue.update(node)<br>
&gt;&gt;&gt;=C2=A0 =C2=A0 return node<br>
&gt;&gt;&gt;=C2=A0 }<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; There are two steps in scheduleNextFrame. The first step updat=
es the<br>
&gt;&gt;&gt; bandwidth allocation if the tree changed since the last frame =
was written.<br>
&gt;&gt;&gt; This is the most expensive step. I don&#39;t believe it&#39;s =
possible to implement<br>
&gt;&gt;&gt; allocateBandwidth using fewer than O(n) worst-case steps. For =
example, if<br>
&gt;&gt;&gt; the tree is mostly flat, meaning that most nodes are children =
of the same<br>
&gt;&gt;&gt; node, then the loop to compute totalWeight is O(n). I believe =
Firefox<br>
&gt;&gt;&gt; creates mostly-flat trees. Further, allocateBandwidth makes O(=
depth)<br>
&gt;&gt;&gt; recursive steps, where &quot;depth&quot; is the maximum depth =
of the dependency tree.<br>
&gt;&gt;&gt; If the tree is mostly-linear, then O(depth) becomes O(n). Chro=
me creates<br>
&gt;&gt;&gt; mostly-linear trees.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; The overall runtime depends on how often the tree changes. If =
the tree<br>
&gt;&gt;&gt; changes rarely, the scheduler is cheap. If the tree changes fr=
equently, the<br>
&gt;&gt;&gt; scheduler is worst-case O(n). A tree has &quot;changed&quot; i=
f it changed shape<br>
&gt;&gt;&gt; (nodes are added/moved/removed) or if any node&#39;s ready sta=
te has changed.<br>
&gt;&gt;&gt; Both kinds of changes can happen often in practice, suggesting=
 that the<br>
&gt;&gt;&gt; overall scheduler is worst-case O(n). For example, consider a =
server that<br>
&gt;&gt;&gt; sends small responses (one or two DATA frames per response) --=
 each stream<br>
&gt;&gt;&gt; will be closed after one or two DATA frames, so on average, th=
e tree will<br>
&gt;&gt;&gt; change shape every few frames. Further, it&#39;s possible for =
ready states to<br>
&gt;&gt;&gt; change more frequently than you might think. In Go&#39;s HTTP/=
2 implementation,<br>
&gt;&gt;&gt; a stream does not become ready until the application handler c=
alls Write to<br>
&gt;&gt;&gt; buffer response data. After that buffered data is serialized o=
n the wire,<br>
&gt;&gt;&gt; the stream transitions to &quot;not ready&quot; because the sc=
heduler cannot know when<br>
&gt;&gt;&gt; the next Write call will happen. The stream will transition ba=
ck to &quot;ready&quot;<br>
&gt;&gt;&gt; during the next Write call. Each Write call typically buffers =
about 32KB of<br>
&gt;&gt;&gt; data. This is a &quot;push&quot; model, where the application =
handler &quot;pushes&quot; data<br>
&gt;&gt;&gt; into the scheduler. I&#39;m aware of one other HTTP/2 server t=
hat works<br>
&gt;&gt;&gt; similarly. I suspect that frequent ready/not-ready transitions=
 are common to<br>
&gt;&gt;&gt; most HTTP/2 servers that use a &quot;push&quot; model. These s=
ervers will be more<br>
&gt;&gt;&gt; susceptible to the O(n) worst case.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Questions:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; 1. Am I missing a clever implementation, or is it true that a =
faithful<br>
&gt;&gt;&gt; HTTP/2 scheduler necessarily requires O(n) operations per fram=
e sent on the<br>
&gt;&gt;&gt; wire, in the worst case? I could not find much discussion of t=
his question<br>
&gt;&gt;&gt; after a quick search. H2O claims to implement an O(1) schedule=
r, however,<br>
&gt;&gt;&gt; the code seems to be worst-case O(depth) or O(n) -- see here, =
here, and<br>
&gt;&gt;&gt; here.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; 2. If the above is correct, should I be concerned about the O(=
n) worst case?<br>
&gt;&gt;&gt; I doubt that a typical web browsing session will trigger O(n) =
behavior<br>
&gt;&gt;&gt; frequently, so I&#39;m less concerned about the average case; =
I&#39;m more concerned<br>
&gt;&gt;&gt; about pathological cases or possible DoS vectors. Also, think =
about cases<br>
&gt;&gt;&gt; where the &quot;client&quot; is actually a proxy server, meani=
ng the HTTP/2 connection<br>
&gt;&gt;&gt; may have many more concurrent streams than a typical browsing =
session. For<br>
&gt;&gt;&gt; comparison, if you recall the predecessor to HTTP/2 (SPDY), a =
SPDY scheduler<br>
&gt;&gt;&gt; could be trivially implemented in O(1), since SPDY used just e=
ight priority<br>
&gt;&gt;&gt; buckets.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; 3. If I should be concerned about an O(n) worst case, are ther=
e any<br>
&gt;&gt;&gt; suggested mitigations beyond setting SETTINGS_MAX_CONCURRENT_S=
TREAM<wbr>S to a<br>
&gt;&gt;&gt; smallish constant?<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; Kazuho Oku<br>
&gt;&gt;<br>
&gt;<br>
<br>
<br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div></div>

--001a1140058e7295a40546e19dcb--


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Tue Jan 24 18:48:11 2017
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 22773129631 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 24 Jan 2017 18:48:11 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.719
X-Spam-Level:
X-Spam-Status: No, score=-9.719 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, 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 UYTDkz15xed4 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 24 Jan 2017 18:48:10 -0800 (PST)
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 039AF12962B for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 24 Jan 2017 18:48:09 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cWDa6-0000a3-Il for ietf-http-wg-dist@listhub.w3.org; Wed, 25 Jan 2017 02:45:06 +0000
Resent-Date: Wed, 25 Jan 2017 02:45:06 +0000
Resent-Message-Id: <E1cWDa6-0000a3-Il@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <scott.k.mitch1@gmail.com>) id 1cWDa1-0005fV-Kr for ietf-http-wg@listhub.w3.org; Wed, 25 Jan 2017 02:45:01 +0000
Received: from mail-lf0-f41.google.com ([209.85.215.41]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <scott.k.mitch1@gmail.com>) id 1cWDZv-00078f-OY for ietf-http-wg@w3.org; Wed, 25 Jan 2017 02:44:56 +0000
Received: by mail-lf0-f41.google.com with SMTP id x1so34799766lff.0 for <ietf-http-wg@w3.org>; Tue, 24 Jan 2017 18:44:35 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=qv6LuFemjIhxjIag0wFzSiICSHsoOa3GvuXi9HDDlL8=; b=XnXUflelpapXld6vHGcELwBphJRCGQEWKwHA15GVCXZ7lf8D/lio5c9QFz3Hpz5+jq lsbyG/NonMdEOIIM9lfgyfUwtQon9YXMhD9DHL7coA2TmuKlmQMH91B4sg4PRJYKjKXp ZxVrRGoi7fPBg6no+f0JitQw8WWN7OydDyHIfLGV8vannTjjM3rMDNVFYhTlmYAF8NvA tEk5KH878ic5DyOXKeoucJwR+yKZA6GZFFzRWYmmVwn7Jon+Sbq02PWfkXizFCfFjbgR 8bycd1VL2F4Ph/inOW9EgNnKAHzAxFVOB+ynwo8Z0l78zDDS7iHfVLa1f5xL0pOh4D83 mdaA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=qv6LuFemjIhxjIag0wFzSiICSHsoOa3GvuXi9HDDlL8=; b=WlGFLBuZkmjElF2Aw97XoY4TEadvlc57TteUSSC/V0uDp5K5OYXP84E4TF/7LZVlsa MkB12/XY8S8nM7yV1YR8LurCzRm6Nggrqo8HE4J2TG1aOgxIZGFy2y2sRwd+juWRRkF3 6Cjw/uDm3mAVUpWJktonEVSw/xIzfq3JYbE6j4UL+i39TVj4vgsNWG9GDsMUYzIMxnCN EFHezfypx+HFB/rgYR0/6cDyn816bHG2KtJ7SWY2DfmX/3xKlJwfJ9j4MI1MLvEgEXAv c582Zf7DJOvnNdqyoiH8qxHyrWQd9frfyR+qVvdUKnaxRZ5C/vIEZ+isjdaM1AWr1RvR XK4w==
X-Gm-Message-State: AIkVDXL3FHTuUNDUsgFy3LCQYRuOrGsnkOxRzMfxVqBvcfIs1EI1A4+O2oyQyIXlNzJOaH8NZYxwpIJ17fMxEA==
X-Received: by 10.25.217.17 with SMTP id q17mr10554565lfg.178.1485312268591; Tue, 24 Jan 2017 18:44:28 -0800 (PST)
MIME-Version: 1.0
Received: by 10.25.18.200 with HTTP; Tue, 24 Jan 2017 18:44:28 -0800 (PST)
In-Reply-To: <CABkgnnVPiVx608jCk=WyPWq-PDqKJ-kFLQf_3WGZur14pUnnog@mail.gmail.com>
References: <CABkgnnV4FG01J5CwdjG_gnCWvoyaT80ZBd3R41TopuWuKEAm5A@mail.gmail.com> <CAFn2buDd_zomeD6GehWN6r=0wey1aEQfJcfjAjEPjr0S390xrA@mail.gmail.com> <CABkgnnVPiVx608jCk=WyPWq-PDqKJ-kFLQf_3WGZur14pUnnog@mail.gmail.com>
From: Scott Mitchell <scott.k.mitch1@gmail.com>
Date: Tue, 24 Jan 2017 18:44:28 -0800
Message-ID: <CAFn2buBA59v9L9kQ0F09hDiQzsgZVRdSHUk6KHBrRYT9aaMH7g@mail.gmail.com>
To: Martin Thomson <martin.thomson@gmail.com>
Cc: HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary=94eb2c06391a266bfe0546e23664
Received-SPF: pass client-ip=209.85.215.41; envelope-from=scott.k.mitch1@gmail.com; helo=mail-lf0-f41.google.com
X-W3C-Hub-Spam-Status: No, score=-2.8
X-W3C-Hub-Spam-Report: AWL=1.177, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cWDZv-00078f-OY 63b6f4f126cb0f1a3da3f56191aded43
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Proposed text for erratum on PRIORITY in RFC 7540
Archived-At: <http://www.w3.org/mid/CAFn2buBA59v9L9kQ0F09hDiQzsgZVRdSHUk6KHBrRYT9aaMH7g@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33374
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>

--94eb2c06391a266bfe0546e23664
Content-Type: text/plain; charset=UTF-8

On Mon, Jan 23, 2017 at 3:32 PM, Martin Thomson <martin.thomson@gmail.com>
wrote:

> On 21 January 2017 at 02:15, Scott Mitchell <scott.k.mitch1@gmail.com>
> wrote:
> > The bit I think needs clarification is that a PRIORITY frame doesn't
> impact
> > state of ANY stream (if this is the intention of the RFC). The ambiguity
> > comes from the language "first use of a new stream identifier" in section
> > 5.1.1 (see below). Is it possible to directly resolve this issue?
> Updating
> > other sections is great, but this creates an implicit dependency between
> > different sections which leaves room for error.
>
> How about:
>
> Sending or receiving a PRIORITY frame does not affect the state of any
> stream (Section 5.1),



This language is much more clear.


only the priority of the identified stream is
> altered.
>
>

This part of the statement may unintentionally cause confusion for other
reasons. A PRIORITY frame references 2 streams, and if the "exclusive" bit
is set the priority of other streams may also be altered.


I think that the "first use of a new stream identifier" text is still
> problematic, but I don't know how to deal with that without performing
> more surgery.
>


I would like to try to flush this out to get more clarify if possible.
Based upon the previous clarification we know PRIORITY frames are excluded
from consideration as "new stream identifier" in this context. Does this
"new stream identifier" include the Promised Stream ID from PUSH_PROMISE
frames?

--94eb2c06391a266bfe0546e23664
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div class=3D"gmail_quo=
te">On Mon, Jan 23, 2017 at 3:32 PM, Martin Thomson <span dir=3D"ltr">&lt;<=
a href=3D"mailto:martin.thomson@gmail.com" target=3D"_blank">martin.thomson=
@gmail.com</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=
=3D"margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(20=
4,204,204);border-left-style:solid;padding-left:1ex"><span class=3D"gmail-"=
>On 21 January 2017 at 02:15, Scott Mitchell &lt;<a href=3D"mailto:scott.k.=
mitch1@gmail.com">scott.k.mitch1@gmail.com</a>&gt; wrote:<br>
&gt; The bit I think needs clarification is that a PRIORITY frame doesn&#39=
;t impact<br>
&gt; state of ANY stream (if this is the intention of the RFC). The ambigui=
ty<br>
&gt; comes from the language &quot;first use of a new stream identifier&quo=
t; in section<br>
&gt; 5.1.1 (see below). Is it possible to directly resolve this issue?=C2=
=A0 Updating<br>
&gt; other sections is great, but this creates an implicit dependency betwe=
en<br>
&gt; different sections which leaves room for error.<br>
<br>
</span>How about:<br>
<br>
Sending or receiving a PRIORITY frame does not affect the state of any<br>
stream (Section 5.1), </blockquote><div><br></div><div><br></div><div>This =
language is much more clear.<br></div><div><br></div><div><br></div><blockq=
uote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left-wi=
dth:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-=
left:1ex">only the priority of the identified stream is<br>
altered.<br>
<br></blockquote><div><br></div><div><br></div><div>This part of the statem=
ent may unintentionally cause confusion for other reasons. A PRIORITY frame=
 references 2 streams, and if the &quot;exclusive&quot; bit is set the prio=
rity of other streams may also be altered.</div><div><br></div><div><br></d=
iv><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;bord=
er-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:soli=
d;padding-left:1ex">
I think that the &quot;first use of a new stream identifier&quot; text is s=
till<br>
problematic, but I don&#39;t know how to deal with that without performing<=
br>
more surgery.<br></blockquote><div><br></div><div><br></div><div>I would li=
ke to try to flush this out to get more clarify if possible. Based upon the=
 previous clarification we know PRIORITY frames are excluded from considera=
tion as &quot;new stream identifier&quot; in this context. Does this &quot;=
new stream identifier&quot; include the Promised Stream ID from PUSH_PROMIS=
E frames?</div></div><br></div></div>

--94eb2c06391a266bfe0546e23664--


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Tue Jan 24 20:08:33 2017
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 733611296A3 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 24 Jan 2017 20:08:33 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.22
X-Spam-Level:
X-Spam-Status: No, score=-10.22 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=-3.199, 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=iij.ad.jp
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 pXDb7-f3p1cR for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 24 Jan 2017 20:08:32 -0800 (PST)
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 10C701296A0 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 24 Jan 2017 20:08:31 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cWEpM-0003iD-VE for ietf-http-wg-dist@listhub.w3.org; Wed, 25 Jan 2017 04:04:56 +0000
Resent-Date: Wed, 25 Jan 2017 04:04:56 +0000
Resent-Message-Id: <E1cWEpM-0003iD-VE@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <kazu@iij.ad.jp>) id 1cWEpH-0003hS-B8 for ietf-http-wg@listhub.w3.org; Wed, 25 Jan 2017 04:04:51 +0000
Received: from mo900.iij.ad.jp ([202.232.31.76] helo=omgo.iij.ad.jp) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <kazu@iij.ad.jp>) id 1cWEpA-0000tD-W8 for ietf-http-wg@w3.org; Wed, 25 Jan 2017 04:04:46 +0000
DKIM-Signature: v=1;a=rsa-sha256;c=relaxed/simple;d=iij.ad.jp;h=Date: Message-Id:To:Subject:From:In-Reply-To:References:Mime-Version:Content-Type: Content-Transfer-Encoding;i=kazu@iij.ad.jp;s=omgo2;t=1485317061;x=1486526661; bh=V9yhtZUfl7TmkI3o5qgsgJw+Cc5VoBd1y+XVEU4/jvs=;b=cxQ4oKZwHomUDzY+jaY3wArwNa2 ZVr52PDSovewlJ3kBHIplsH6koUBxqAFMwSNHGYD9oM6MBq4Oo9+0pg4sMN63jzh/ks+DMDRGLm/H wfFEk7WvycstVm1REz06ZYP81TMuwR6IeAFQ6qaIknXEvbfO8On99W0ihlTYm0syyI3uh/udM0xK2 bwxrh6Q/az8fVO39vpmZI+NUmwG4y1rX3clTjYavS0EA5OSEegZI+roSS4l9mqf3SnkI3X0ApYDaO oA9/isXdWRjzDIJ5ruH0CR4m6uabG9+nDflRVs6JRUi3uY45ngI6oQN++tishgq+X22/+zytlc9Io N8bjREQ==;
Received: by omgo.iij.ad.jp (mo900) id v0P44K8g023567; Wed, 25 Jan 2017 13:04:20 +0900
X-MXL-Hash: 588823c457b2deba-41cbbaafea73ee220c85e1047adfa1a31e364e7c
Date: Wed, 25 Jan 2017 13:03:58 +0900 (JST)
Message-Id: <20170125.130358.1140782660246356035.kazu@iij.ad.jp>
To: ietf-http-wg@w3.org
From: Kazu Yamamoto (=?iso-2022-jp?B?GyRCOzNLXE9CSScbKEI=?=) <kazu@iij.ad.jp>
In-Reply-To: <CA+3+x5GiJO0s6kjXofEicDdAimrz7eBC5vvX9Z+P0MNQGnA_Rg@mail.gmail.com>
References: <CA+3+x5EdkLSAR2gWR9TT72o2Tg4Z_xKXMh8yVREYD7mvNuLB8w@mail.gmail.com> <20170125.075510.1795999132739277437.kazu@iij.ad.jp> <CA+3+x5GiJO0s6kjXofEicDdAimrz7eBC5vvX9Z+P0MNQGnA_Rg@mail.gmail.com>
X-Mailer: Mew version 6.7 on Emacs 25.1 / Mule 6.0 (HANACHIRUSATO)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Received-SPF: pass client-ip=202.232.31.76; envelope-from=kazu@iij.ad.jp; helo=omgo.iij.ad.jp
X-W3C-Hub-Spam-Status: No, score=-7.1
X-W3C-Hub-Spam-Report: AWL=0.092, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RP_MATCHES_RCVD=-3.199, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cWEpA-0000tD-W8 d7f2c20179cab266c628ebfeab96dcaf
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Is a faithful HTTP/2 response scheduler necessarily O(n) in  the worst case?
Archived-At: <http://www.w3.org/mid/20170125.130358.1140782660246356035.kazu@iij.ad.jp>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33375
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>

Hi Tom,

> Why is that a misuse of priority? It seems entirely reasonable for a client
> to specify a mostly-linear order. There is a very good reason for this:
> inside HTML pages, CSS links and synchronous scripts must be evaluated in
> the order they appear in the HTML file. This implies that the server should
> send those resources in a linear order. This is exactly the rationale
> behind Chrome using mostly-linear orders. (This is not to say that
> mostly-linear orders are not occasionally problematic -- they are
> <https://bugs.chromium.org/p/chromium/issues/detail?id=651538#c1> -- but
> there are good reasons to linear orders at least some of the time.)

Thank you for your explanation.
I did not know this use case.
So, I would like to withdraw my previous word "misuse".

--Kazu


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Wed Jan 25 00:36:21 2017
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 88E5E129878 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 25 Jan 2017 00:36:21 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.619
X-Spam-Level:
X-Spam-Status: No, score=-9.619 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, 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=lukasa-co-uk.20150623.gappssmtp.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 JfYd4fsnwknW for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 25 Jan 2017 00:36:20 -0800 (PST)
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 10F54129864 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 25 Jan 2017 00:36:19 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cWJ0u-0006XO-Ez for ietf-http-wg-dist@listhub.w3.org; Wed, 25 Jan 2017 08:33:08 +0000
Resent-Date: Wed, 25 Jan 2017 08:33:08 +0000
Resent-Message-Id: <E1cWJ0u-0006XO-Ez@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <cory@lukasa.co.uk>) id 1cWJ0p-0006Vh-7w for ietf-http-wg@listhub.w3.org; Wed, 25 Jan 2017 08:33:03 +0000
Received: from mail-wm0-f54.google.com ([74.125.82.54]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <cory@lukasa.co.uk>) id 1cWJ0i-0000iw-QK for ietf-http-wg@w3.org; Wed, 25 Jan 2017 08:32:58 +0000
Received: by mail-wm0-f54.google.com with SMTP id c206so17411618wme.0 for <ietf-http-wg@w3.org>; Wed, 25 Jan 2017 00:32:35 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lukasa-co-uk.20150623.gappssmtp.com; s=20150623; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=LmHvS42ZI2NHite+weAn1u7ENMhFcSYp/d87Lf+FNj0=; b=trYXs0cXEGV/I9KfLtM4PKku/TGKfaH2r5DvcFXJbHWYQdyxKVJpD2pG2o/YOGnYLv IG9knlyM+BtqAyhXrUyzmls0XUQkrdDXF0grkrq7lPwawpL20n2c9Y8n/b5Zh/0XGIcV 0fkOGSWzFgl6n5Ed5Z5+BFgPPgfr9qM5XYTHie9bi+cftBXy4z9OoaioTN0ijvxmyeNQ 68Gtev2vxUQFuvDTYrt3OQN01MQg9PcnaOxpBjjdlsQiIzoKvLBSzUEg8mAIf3v/iLSb Hzx/lpTmsbCP1XeADLS3rQu70UimqLgJKlCx75M18rEqnP0CIRWYnvDeG3nJGiEwmZom MwCw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=LmHvS42ZI2NHite+weAn1u7ENMhFcSYp/d87Lf+FNj0=; b=VbYSFqJpoejvlUh2z+kx6J1A/Xtnkb6cMgkFUCGi2ug7pUW9zQJRGM2GGVWH7LT0AF rL47jjadRV0MQcoXpUh2e7hIamhE7yvatUiblfANhYGKiJeV6rNVFxQP2kGc/2gjqDtd nVFW1oLKR69jA/NB8vgGUU2VCK6c+ekY6ruNgaIT1i4paSQearmQDsOAY+4ipeDDPdVU A8FiMlxI058uQX9XmXxO+upvLxQ8kkrAvmXbUoaMW3Cc1S/uul8+agG62IIKSSeCvV6R yqrSMJk994Iu6lkFoooqjiAC3NAoNYenGWdzYMA5IQ7GIvWXPzE63QUPGttasGNLRKW4 1Ddg==
X-Gm-Message-State: AIkVDXKu6wQowA5gL7EhcQ/jUqRYsMZq5t/0yjii80yTgXN3GYnMs9GnDDsdfNsAma8P1w==
X-Received: by 10.223.168.111 with SMTP id l102mr31487498wrc.150.1485333149759; Wed, 25 Jan 2017 00:32:29 -0800 (PST)
Received: from [192.168.1.3] (227.71.125.91.dyn.plus.net. [91.125.71.227]) by smtp.gmail.com with ESMTPSA id k43sm23745006wrc.46.2017.01.25.00.32.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Jan 2017 00:32:28 -0800 (PST)
From: Cory Benfield <cory@lukasa.co.uk>
Message-Id: <C2828755-7067-49B0-8FFE-A417B265FDC7@lukasa.co.uk>
Content-Type: multipart/alternative; boundary="Apple-Mail=_96E21404-801D-4109-8E51-DD77A4D9A09E"
Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\))
Date: Wed, 25 Jan 2017 08:32:27 +0000
In-Reply-To: <CAPyZ6=LYEufwdqnXZGrP9o3dfuNVXkyL=Mj04s=PhQG9v0oLGg@mail.gmail.com>
Cc: Tom Bergan <tombergan@chromium.org>, Stefan Eissing <stefan.eissing@greenbytes.de>, =?utf-8?B?IkthenUgWWFtYW1vdG8gKOWxseacrOWSjOW9piki?= <kazu@iij.ad.jp>, HTTP Working Group <ietf-http-wg@w3.org>
To: Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>
References: <CA+3+x5Ft8MfRduWp1RzJ9_qAgQiCujac8f5FLz81Xpyu3cTDxw@mail.gmail.com> <CANatvzz0AYxBDDyEbpvnq1xPd1-vrFazbnVt2usanXS0CTKbeA@mail.gmail.com> <20170124.165356.870174430965764062.kazu@iij.ad.jp> <900A5D6B-0752-470E-840C-4518D933DD09@greenbytes.de> <CA+3+x5EdkLSAR2gWR9TT72o2Tg4Z_xKXMh8yVREYD7mvNuLB8w@mail.gmail.com> <CAPyZ6=LYEufwdqnXZGrP9o3dfuNVXkyL=Mj04s=PhQG9v0oLGg@mail.gmail.com>
X-Mailer: Apple Mail (2.3259)
Received-SPF: pass client-ip=74.125.82.54; envelope-from=cory@lukasa.co.uk; helo=mail-wm0-f54.google.com
X-W3C-Hub-Spam-Status: No, score=-3.6
X-W3C-Hub-Spam-Report: AWL=-0.157, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1cWJ0i-0000iw-QK 7eac1c6dd86ab9cc48a5089355c39322
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Is a faithful HTTP/2 response scheduler necessarily O(n) in the   worst case?
Archived-At: <http://www.w3.org/mid/C2828755-7067-49B0-8FFE-A417B265FDC7@lukasa.co.uk>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33376
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>

--Apple-Mail=_96E21404-801D-4109-8E51-DD77A4D9A09E
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8


> On 25 Jan 2017, at 02:01, Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> =
wrote:
>=20
> =E2=80=8BIf large n is concern, server can limit =
SETTINGS_MAX_CONCURRENT_STREAMS to the reasonable number.  Usually we =
use 100, and it is pretty fast.=3D

The various Python HTTP/2 implementations also set =
SETTINGS_MAX_CONCURRENT_STREAMS to 100.

Cory=

--Apple-Mail=_96E21404-801D-4109-8E51-DD77A4D9A09E
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D""><br class=3D""><div><blockquote type=3D"cite" class=3D""><div =
class=3D"">On 25 Jan 2017, at 02:01, Tatsuhiro Tsujikawa &lt;<a =
href=3D"mailto:tatsuhiro.t@gmail.com" =
class=3D"">tatsuhiro.t@gmail.com</a>&gt; wrote:</div><div class=3D""><div =
dir=3D"ltr" class=3D""><div class=3D"gmail_extra"><div =
class=3D"gmail_quote"><div class=3D""><br class=3D""></div><div =
class=3D""><div class=3D"gmail_default" =
style=3D"font-family:arial,helvetica,sans-serif;font-size:small">=E2=80=8B=
If large n is concern, server can limit SETTINGS_MAX_CONCURRENT_STREAMS =
to the reasonable number.&nbsp; Usually we use 100, and it is pretty =
fast.=3D</div></div></div></div></div></div></blockquote><br =
class=3D""></div><div>The various Python HTTP/2 implementations also set =
SETTINGS_MAX_CONCURRENT_STREAMS to 100.</div><div><br =
class=3D""></div><div>Cory</div></body></html>=

--Apple-Mail=_96E21404-801D-4109-8E51-DD77A4D9A09E--


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Wed Jan 25 01:17:22 2017
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 6C23C12989E for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 25 Jan 2017 01:17:22 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.01
X-Spam-Level:
X-Spam-Status: No, score=-10.01 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=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=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_DKIM_INVALID=0.01] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=fail (1024-bit key) reason="fail (message has been altered)" header.d=greenbytes.de header.b=CFvmarVK; dkim=fail (1024-bit key) reason="fail (message has been altered)" header.d=greenbytes.de header.b=mwGhvKqJ
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 7Ej5duGV7hYc for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 25 Jan 2017 01:17:21 -0800 (PST)
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 0F750129894 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 25 Jan 2017 01:17:21 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cWJfF-0004yB-1u for ietf-http-wg-dist@listhub.w3.org; Wed, 25 Jan 2017 09:14:49 +0000
Resent-Date: Wed, 25 Jan 2017 09:14:49 +0000
Resent-Message-Id: <E1cWJfF-0004yB-1u@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <stefan.eissing@greenbytes.de>) id 1cWJfD-0004wj-3n for ietf-http-wg@listhub.w3.org; Wed, 25 Jan 2017 09:14:47 +0000
Received: from mail.greenbytes.de ([5.10.171.186]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <stefan.eissing@greenbytes.de>) id 1cWJf7-0002hy-2s for ietf-http-wg@w3.org; Wed, 25 Jan 2017 09:14:41 +0000
Received: by mail.greenbytes.de (Postfix, from userid 117) id 3438915A06FA; Wed, 25 Jan 2017 10:14:13 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=greenbytes.de; s=mail; t=1485335653; bh=RhqSJENLgN3AcLZpZXlYxeIiSANkl5i+lkOPjBRt6nI=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=CFvmarVKRXBkA5UgcdZgZFwMjYDj/UhoaUQHNOiq532m3UC76uS+AYhltZrDqggSl kgIXHjNZJ+ZdVEymoPdxmCjhAw+FpbDW0oHlD34iNOQ3qjo6Cy6Yr2PT9PhWn22YLQ rwRj1L0ACvfPuGV1Ps6IR9qIjdcS33i/AS0N1qRc=
Received: from [192.168.1.175] (unknown [192.168.1.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mail.greenbytes.de (Postfix) with ESMTPSA id 8A8AC15A02D6; Wed, 25 Jan 2017 10:14:12 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=greenbytes.de; s=mail; t=1485335652; bh=RhqSJENLgN3AcLZpZXlYxeIiSANkl5i+lkOPjBRt6nI=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=mwGhvKqJ/1pm4xukhM69FF0uKy8kXSbyON/yNSiVMvAuO5s5yloC+rBrRrb5SYzIa 7KsHIp8ecEtByv3FRnmkCMQUPimk6t48a9B6zOhyt+dofvklj/9bVSweKyAaIrlIaK DZZ1vL39pLOwb0/zlqqx6TUEZkVFf7uege9FIOHU=
Content-Type: text/plain; charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\))
From: Stefan Eissing <stefan.eissing@greenbytes.de>
In-Reply-To: <CA+3+x5EdkLSAR2gWR9TT72o2Tg4Z_xKXMh8yVREYD7mvNuLB8w@mail.gmail.com>
Date: Wed, 25 Jan 2017 10:14:12 +0100
Cc: =?utf-8?B?IkthenUgWWFtYW1vdG8gKOWxseacrOWSjOW9piki?= <kazu@iij.ad.jp>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <551898D7-7B4B-4022-A644-0E1649AB5460@greenbytes.de>
References: <CA+3+x5Ft8MfRduWp1RzJ9_qAgQiCujac8f5FLz81Xpyu3cTDxw@mail.gmail.com> <CANatvzz0AYxBDDyEbpvnq1xPd1-vrFazbnVt2usanXS0CTKbeA@mail.gmail.com> <20170124.165356.870174430965764062.kazu@iij.ad.jp> <900A5D6B-0752-470E-840C-4518D933DD09@greenbytes.de> <CA+3+x5EdkLSAR2gWR9TT72o2Tg4Z_xKXMh8yVREYD7mvNuLB8w@mail.gmail.com>
To: Tom Bergan <tombergan@chromium.org>
X-Mailer: Apple Mail (2.3259)
Received-SPF: pass client-ip=5.10.171.186; envelope-from=stefan.eissing@greenbytes.de; helo=mail.greenbytes.de
X-W3C-Hub-Spam-Status: No, score=-6.7
X-W3C-Hub-Spam-Report: AWL=0.452, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RP_MATCHES_RCVD=-3.199, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cWJf7-0002hy-2s 531283e7df4e5f65c7cf25f1b8619eed
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Is a faithful HTTP/2 response scheduler necessarily O(n) in the   worst case?
Archived-At: <http://www.w3.org/mid/551898D7-7B4B-4022-A644-0E1649AB5460@greenbytes.de>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33377
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>

> Am 24.01.2017 um 23:22 schrieb Tom Bergan <tombergan@chromium.org>:
>=20
> > stefan.eissing@
> > The very same problem exists for stream processing in order to =
generate response data.
>=20
> What did you mean by "stream processing"?

A server has limited resources. In order to determine which stream's =
response gets calculated first priorities and weight need also apply.

Stefan Eissing

<green/>bytes GmbH
Hafenstrasse 16
48155 M=C3=BCnster
www.greenbytes.de



From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Wed Jan 25 15:24:05 2017
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 5DF311293F8 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 25 Jan 2017 15:24:05 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.12
X-Spam-Level:
X-Spam-Status: No, score=-10.12 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, 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=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=unavailable autolearn_force=no
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 tGTLrEhTrX2z for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 25 Jan 2017 15:24:04 -0800 (PST)
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 6E07D1293E0 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 25 Jan 2017 15:24:04 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cWWrv-0000Lq-Rd for ietf-http-wg-dist@listhub.w3.org; Wed, 25 Jan 2017 23:20:47 +0000
Resent-Date: Wed, 25 Jan 2017 23:20:47 +0000
Resent-Message-Id: <E1cWWrv-0000Lq-Rd@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <wwwrun@rfc-editor.org>) id 1cWWrq-0000Kz-D7 for ietf-http-wg@listhub.w3.org; Wed, 25 Jan 2017 23:20:42 +0000
Received: from rfc-editor.org ([4.31.198.49]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <wwwrun@rfc-editor.org>) id 1cWWrk-0006sZ-8p for ietf-http-wg@w3.org; Wed, 25 Jan 2017 23:20:37 +0000
Received: by rfc-editor.org (Postfix, from userid 30) id 9F338B81737; Wed, 25 Jan 2017 15:20:08 -0800 (PST)
To: nekt@nekt.ru, fielding@gbiv.com, julian.reschke@greenbytes.de
X-PHP-Originating-Script: 1005:errata_mail_lib.php
From: RFC Errata System <rfc-editor@rfc-editor.org>
Cc: rfc-editor@rfc-editor.org, iesg@ietf.org, ietf-http-wg@w3.org, rfc-editor@rfc-editor.org
Message-Id: <20170125232008.9F338B81737@rfc-editor.org>
Date: Wed, 25 Jan 2017 15:20:08 -0800 (PST)
Received-SPF: pass client-ip=4.31.198.49; envelope-from=wwwrun@rfc-editor.org; helo=rfc-editor.org
X-W3C-Hub-Spam-Status: No, score=-8.8
X-W3C-Hub-Spam-Report: AWL=2.710, BAYES_20=-0.001, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, W3C_AA=-1, W3C_IRA=-1, W3C_IRR=-3, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cWWrk-0006sZ-8p 9abd950e5a0edbdf71fed322bc86343e
X-Original-To: ietf-http-wg@w3.org
Subject: [Errata Rejected] RFC7231 (4734)
Archived-At: <http://www.w3.org/mid/20170125232008.9F338B81737@rfc-editor.org>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33378
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>

The following errata report has been rejected for RFC7231,
"Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content".

--------------------------------------
You may review the report below and at:
http://www.rfc-editor.org/errata_search.php?rfc=7231&eid=4734

--------------------------------------
Status: Rejected
Type: Editorial

Reported by: Alexey Blyshko <nekt@nekt.ru>
Date Reported: 2016-07-06
Rejected by: RFC Editor  

Section: 5.3.5

Original Text
-------------
   The "Accept-Language" header field can be used by user agents to
   indicate the set of natural languages that are preferred in the
   response.  Language tags are defined in Section 3.1.3.1.

     Accept-Language = 1#( language-range [ weight ] )
     language-range  =
               <language-range, see [RFC4647], Section 2.1>

   Each language-range can be given an associated quality value
   representing an estimate of the user's preference for the languages
   specified by that range, as defined in Section 5.3.1.  For example,

     Accept-Language: da, en-gb;q=0.8, en;q=0.7

   would mean: "I prefer Danish, but will accept British English and
   other types of English".

Corrected Text
--------------
   The "Accept-Language" header field can be used by user agents to
   indicate the set of natural languages that are preferred in the
   response.  Language tags are defined in Section 3.1.3.1.

     Accept-Language = 1#( language-range [ weight ] )
     language-range  =
               <language-range, see [RFC5646], Section 2.1>

   Each language-range can be given an associated quality value
   representing an estimate of the user's preference for the languages
   specified by that range, as defined in Section 5.3.1.  For example,

     Accept-Language: da, en-GB;q=0.8, en;q=0.7

   would mean: "I prefer Danish, but will accept British English and
   other types of English".

Notes
-----
RFC4647 -> RFC5646
en-gb      -> en-GB


 --VERIFIER NOTES-- 
Rejected per Mark Nottingham (chair of HTTPBIS WG):
As far as I can tell, language-range is defined in RFC 4647, not in RFC 5646. So the change as proposed seems to be incorrect. (See BCP 47.)

The other change, from 'en-gb' to 'en-GB', may be seen as a tiny stylistic improvement (because the 'canonical' way to write country codes in language tags is upper case), but is not at all required (because language tags are case-insensitive).

--------------------------------------
RFC7231 (draft-ietf-httpbis-p2-semantics-26)
--------------------------------------
Title               : Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content
Publication Date    : June 2014
Author(s)           : R. Fielding, Ed., J. Reschke, Ed.
Category            : PROPOSED STANDARD
Source              : Hypertext Transfer Protocol Bis APP
Area                : Applications
Stream              : IETF



From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Wed Jan 25 15:45:06 2017
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 2B0311293F8 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 25 Jan 2017 15:45:06 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.72
X-Spam-Level:
X-Spam-Status: No, score=-9.72 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, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, 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 3aAgkKXm0n7h for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 25 Jan 2017 15:45:05 -0800 (PST)
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 12200126D74 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 25 Jan 2017 15:45:05 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cWXD4-0004G6-FP for ietf-http-wg-dist@listhub.w3.org; Wed, 25 Jan 2017 23:42:38 +0000
Resent-Date: Wed, 25 Jan 2017 23:42:38 +0000
Resent-Message-Id: <E1cWXD4-0004G6-FP@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <martin.thomson@gmail.com>) id 1cWXD0-0004E6-2x for ietf-http-wg@listhub.w3.org; Wed, 25 Jan 2017 23:42:34 +0000
Received: from mail-qt0-f173.google.com ([209.85.216.173]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <martin.thomson@gmail.com>) id 1cWXCu-0007T5-8E for ietf-http-wg@w3.org; Wed, 25 Jan 2017 23:42:28 +0000
Received: by mail-qt0-f173.google.com with SMTP id x49so46066165qtc.2 for <ietf-http-wg@w3.org>; Wed, 25 Jan 2017 15:42:07 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=99Kr4XQtEwncQyQOhkh+ny22iERsNiGu9e8UsJzd9MQ=; b=WSa0YOeN90L2AZH6J0ZsXndY8X5d/3JNAytQCjk/X/Hb/+k/yhAVt1Ly9GFs4ZnbgB 0EOWlI1CIic9gV8VwGxnH3423OQJjO6YJNuNDtK8rvnBpHnyGRkfy0VtVwM1nJR87qRs fbzCNw8cu07YXRQKjXlz4n7tgYo3IpymsRUZf6P7F4U7iHQWa2MgaqjtUO3dUBqENF1/ XvEMGB/h9rM1gSo1ySCf9Rr4+K4k8UmqdmNQejZJ1q+RWrGzflxcPNAwf20kD0uEcQ1T gdpjl2PCKoD+rxNXayUpRkrphAle2hjQIb7MKMXwvxhjVJFWyEKdzkwBFF0lWXqCkAcw vHoA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=99Kr4XQtEwncQyQOhkh+ny22iERsNiGu9e8UsJzd9MQ=; b=fK8pNZdMJn4Amfe7oqa2EcigHRpKO2wuYL22QykTgyBo5V82jHz7k3XVJyG6m5pF5f /Gtxx7P9qydL2R8DnmaUPb9ZKMJ7lfTyWkuOpOKnKRgh7AnT2xMyv5aBv++f/DNYPpYO RujUnO7ZjNLnS7sT/+wWyYCJ0F4EDtyZmfbCh3LjIIBoJjA0Rf2FX6z/vQk8hWjw+Xkr tuDTMaw6uOog+Prf4PjjZTr9XpVBmVmZMoxw1DeZKb3NBAioKVybR6D/URMDElaI0TsQ YJ3QuKUzNyhYgHf3NSTa3sCVRq3jtpfHXS9lr2iKUqKGKgzLKz8eRC+rQsJ+tUQfzOdN oVpA==
X-Gm-Message-State: AIkVDXJSKWgaSDXWsCyS1yg6INzYKA/LqaQdtBsDmUHnLodMbAmymzpeBCbsARXYSRuG/Nx1eQbrnN3TJzSHBg==
X-Received: by 10.55.27.65 with SMTP id b62mr38687526qkb.202.1485387722011; Wed, 25 Jan 2017 15:42:02 -0800 (PST)
MIME-Version: 1.0
Received: by 10.140.19.112 with HTTP; Wed, 25 Jan 2017 15:42:01 -0800 (PST)
In-Reply-To: <SYXPR01MB1615AE56D810A0372AF811FCE5750@SYXPR01MB1615.ausprd01.prod.outlook.com>
References: <SYXPR01MB161520224A59CDCE0D433A2CE57A0@SYXPR01MB1615.ausprd01.prod.outlook.com> <CABkgnnUo-tf69AzJC=OUy2rjDZwedTd5Ua9mhOiJBqaA0VKrYw@mail.gmail.com> <SYXPR01MB16150F4D3D19CC69D18E1A09E57D0@SYXPR01MB1615.ausprd01.prod.outlook.com> <CABkgnnV_OatRWyZBE3Rak22gS1jrOZKjCGwOePpbqJCAeJFM4Q@mail.gmail.com> <SYXPR01MB1615DD56268D7EF9929F3DBFE5720@SYXPR01MB1615.ausprd01.prod.outlook.com> <20170123073623.GA28101@LK-Perkele-V2.elisa-laajakaista.fi> <SYXPR01MB1615798CC057FB3232B2FA4BE5720@SYXPR01MB1615.ausprd01.prod.outlook.com> <CABkgnnW4e+FOz+gsu6vZ2d9WOSv9Yohn+OejrNom9HCBiMrRWQ@mail.gmail.com> <SYXPR01MB1615AE56D810A0372AF811FCE5750@SYXPR01MB1615.ausprd01.prod.outlook.com>
From: Martin Thomson <martin.thomson@gmail.com>
Date: Thu, 26 Jan 2017 08:42:01 +0900
Message-ID: <CABkgnnWoSWCeV_TUwDY1J00ivY0TDgU_9NhiSWZpM4_F6XAYfA@mail.gmail.com>
To: "Manger, James" <James.H.Manger@team.telstra.com>
Cc: "ilariliusvaara@welho.com" <ilariliusvaara@welho.com>, "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
Content-Type: text/plain; charset=UTF-8
Received-SPF: pass client-ip=209.85.216.173; envelope-from=martin.thomson@gmail.com; helo=mail-qt0-f173.google.com
X-W3C-Hub-Spam-Status: No, score=-6.1
X-W3C-Hub-Spam-Report: AWL=0.120, 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, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cWXCu-0007T5-8E 01553f059333865ea51f959ebbfe562d
X-Original-To: ietf-http-wg@w3.org
Subject: Re: aes128gcm: why verify padding?
Archived-At: <http://www.w3.org/mid/CABkgnnWoSWCeV_TUwDY1J00ivY0TDgU_9NhiSWZpM4_F6XAYfA@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33379
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 24 January 2017 at 09:10, Manger, James
<James.H.Manger@team.telstra.com> wrote:
> If we go with this approach, we should also distinguish the 1st record. For instance, for the end-of-padding byte:


I think that might be going too far.  Truncating the first record
requires that you are able to find an input to HKDF that provides the
same key, and a nonce that has just the lower bit flipped (you can
truncate more with higher probability).  That requires several
preimage attacks on SHA-256 in series.  Mostly though, marking the
start also increases complexity.  I think that it's enough to say 0x01
= keep going, 0x02 = all done.


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Thu Jan 26 01:10:49 2017
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 94E071294EB for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 26 Jan 2017 01:10:49 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.72
X-Spam-Level:
X-Spam-Status: No, score=-6.72 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, HTML_MESSAGE=0.001, HTML_MIME_NO_HTML_TAG=0.377, MIME_HTML_ONLY=0.723, MISSING_MIMEOLE=1.899, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, 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 JRMiRxdAqQDq for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 26 Jan 2017 01:10:43 -0800 (PST)
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 C6E31129502 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 26 Jan 2017 01:10:43 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cWg1Q-0006ke-O7 for ietf-http-wg-dist@listhub.w3.org; Thu, 26 Jan 2017 09:07:12 +0000
Resent-Date: Thu, 26 Jan 2017 09:07:12 +0000
Resent-Message-Id: <E1cWg1Q-0006ke-O7@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <geronimotita@gmail.com>) id 1cWg1N-0006i4-2f for ietf-http-wg@listhub.w3.org; Thu, 26 Jan 2017 09:07:09 +0000
Received: from mail-oi0-f67.google.com ([209.85.218.67]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <geronimotita@gmail.com>) id 1cWg1H-0008DI-CL for ietf-http-wg@w3.org; Thu, 26 Jan 2017 09:07:03 +0000
Received: by mail-oi0-f67.google.com with SMTP id j15so17575232oih.0 for <ietf-http-wg@w3.org>; Thu, 26 Jan 2017 01:06:42 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:message-id:from:to:importance:mime-version :content-transfer-encoding; bh=57TKq+ls4MWYdjWlbiLyCtsQm7u/2qNAPca3ca9Sy40=; b=GwbLELDR5CVkSZpbuErqNTyE5HQP3JhdiUWWi3Xrf0NMY7UGekdYRQ1xgGbR+3pOVn dZiCoc6hB3cXy+4SBW1e0rPmWM4f3gHJAvphc7yxefM5Ccwsnk4mGiUANGMUTZi4erxs pVArl1+0/Q6Sh7M5CL3PNmjbHN7PK9ruvpnAN1BqZXDASKipDb0hnvU/uoPzUPmgneAS J+wA954W24QTqWudzX10RV6l0/L02rbe8hsazAxdThShzm+HdEbKzAS2kTAHxg1wD1gQ rjrDk6A4sxrOOV5CftOI4iOhqRk0S5Xkz3DZcoPNRTf12M3xi7MTs10Kl8xtS4cHlqz8 Q0Uw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:from:to:importance:mime-version :content-transfer-encoding; bh=57TKq+ls4MWYdjWlbiLyCtsQm7u/2qNAPca3ca9Sy40=; b=k1ScDA5mcysgsYcYGtQmjHIFdk6vE+UNE5JM9oVYmlLFSTkxG57Xep9iWTe965y+rA Z1GhaUOZ3bp6NwaZ1bAe7z9gcONk6Ehg2Kqw09AI3ed8fwpRUQHOLI0b6baAKpxg0ShJ uwv97hObbClAJjceDG5JuyGOV/539uSCMYR6tGP/BMpnJ43tMOmnfNomT0YKRdQ9ZDLU i7iSCPg9KBl1x66l8ItlIC+SXck4Wn4be6PFgsc/ZOx1RNTPjwlLu92vG/t8RT+3pqTV mUeiKW8f4GzITXDpQRbnQ2xacqeZyygdMFUs6RbqknYA+/OrqQYlGk7NjImBSfiHZTuc etCQ==
X-Gm-Message-State: AIkVDXKg1IpSpPIGhVgmX6V7nyoT1PL7pevGub68e4kVc+8elnaBzy0QQrrjKDorhZTkmA==
X-Received: by 10.202.5.129 with SMTP id 123mr899535oif.25.1485421596650; Thu, 26 Jan 2017 01:06:36 -0800 (PST)
Received: from ?IPv6:2602:30a:c090:bb50:50df:5f44:2a3:ff32? ([2602:30a:c090:bb50:50df:5f44:2a3:ff32]) by smtp.gmail.com with ESMTPSA id 97sm458380otp.37.2017.01.26.01.06.35 for <ietf-http-wg@w3.org> (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 26 Jan 2017 01:06:36 -0800 (PST)
Date: Thu, 26 Jan 2017 01:06:31 -0800
Message-ID: <a7d369cb-1e80-41bc-92ab-d8f3e5d7635b@email.android.com>
X-Android-Message-ID: <a7d369cb-1e80-41bc-92ab-d8f3e5d7635b@email.android.com>
From: geronimotita@gmail.com
To: ietf-http-wg@w3.org
Importance: Normal
X-Priority: 3
X-MSMail-Priority: Normal
MIME-Version: 1.0
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: base64
Received-SPF: pass client-ip=209.85.218.67; envelope-from=geronimotita@gmail.com; helo=mail-oi0-f67.google.com
X-W3C-Hub-Spam-Status: Yes, score=4.2
X-W3C-Hub-Spam-Report: AWL=0.200, BAYES_50=0.8, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, HTML_MIME_NO_HTML_TAG=0.377, MIME_HTML_ONLY=0.723, MISSING_MIMEOLE=1.899, MISSING_SUBJECT=1.799, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cWg1H-0008DI-CL 6564c9c9ceb809e2359d6908c039ebbe
X-Original-To: ietf-http-wg@w3.org
Subject: [ietf-http-wg] <none>
Archived-At: <http://www.w3.org/mid/a7d369cb-1e80-41bc-92ab-d8f3e5d7635b@email.android.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33380
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>

PGRpdiBkaXI9J2F1dG8nPk1pa2Ugc3RpbGwgd2FpdGluZzxicj48YnI+PGRpdiBkYXRhLXNtYXJ0
bWFpbD0iZ21haWxfc2lnbmF0dXJlIj50aXRhPC9kaXY+PC9kaXY+



From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Thu Jan 26 01:54:58 2017
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 395DA129509 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 26 Jan 2017 01:54:58 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.119
X-Spam-Level:
X-Spam-Status: No, score=-10.119 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, 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=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
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 uX_7QQ8mzm3N for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 26 Jan 2017 01:54:55 -0800 (PST)
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 EB18A12950C for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 26 Jan 2017 01:54:54 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cWgix-0002Su-Qj for ietf-http-wg-dist@listhub.w3.org; Thu, 26 Jan 2017 09:52:11 +0000
Resent-Date: Thu, 26 Jan 2017 09:52:11 +0000
Resent-Message-Id: <E1cWgix-0002Su-Qj@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <squid3@treenet.co.nz>) id 1cWgis-0002S9-Nw for ietf-http-wg@listhub.w3.org; Thu, 26 Jan 2017 09:52:06 +0000
Received: from [121.99.228.82] (helo=treenet.co.nz) by titan.w3.org with esmtp (Exim 4.84_2) (envelope-from <squid3@treenet.co.nz>) id 1cWgim-00080s-6y for ietf-http-wg@w3.org; Thu, 26 Jan 2017 09:52:01 +0000
Received: from [192.168.20.251] (unknown [121.98.40.15]) by treenet.co.nz (Postfix) with ESMTP id 99F51E6EBA for <ietf-http-wg@w3.org>; Thu, 26 Jan 2017 22:51:26 +1300 (NZDT)
To: ietf-http-wg@w3.org
References: <20170124.165356.870174430965764062.kazu@iij.ad.jp> <900A5D6B-0752-470E-840C-4518D933DD09@greenbytes.de> <CA+3+x5EdkLSAR2gWR9TT72o2Tg4Z_xKXMh8yVREYD7mvNuLB8w@mail.gmail.com> <20170125.075510.1795999132739277437.kazu@iij.ad.jp> <CA+3+x5HxOkJfEmurFgZCH1-BN2PswHZfsoA7cvksf5dgUbJEgA@mail.gmail.com> <CAOdDvNqCEHGN1tSxCmMPHECtrOMHe8_nE0HPDqK+VideuFNQow@mail.gmail.com>
From: Amos Jeffries <squid3@treenet.co.nz>
Message-ID: <ea1f6b49-1b4a-a370-9fc2-39f087221cc8@treenet.co.nz>
Date: Thu, 26 Jan 2017 22:51:18 +1300
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0
MIME-Version: 1.0
In-Reply-To: <CAOdDvNqCEHGN1tSxCmMPHECtrOMHe8_nE0HPDqK+VideuFNQow@mail.gmail.com>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Received-SPF: pass client-ip=121.99.228.82; envelope-from=squid3@treenet.co.nz; helo=treenet.co.nz
X-W3C-Hub-Spam-Status: No, score=-4.3
X-W3C-Hub-Spam-Report: AWL=-1.172, BAYES_00=-1.9, RDNS_NONE=0.793, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1cWgim-00080s-6y e9cd1e036143f9a89938d4ecc89d9344
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Is a faithful HTTP/2 response scheduler necessarily O(n) in the  worst case?
Archived-At: <http://www.w3.org/mid/ea1f6b49-1b4a-a370-9fc2-39f087221cc8@treenet.co.nz>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33381
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 25/01/2017 12:20 p.m., Patrick McManus wrote:
> media frames are another really good use case for linear orders. These, and
> Tom's cases, were all cited as use cases during standardization.
> 

Gateways translating for HTTP/1 clients also need their responses to be
as linear as possible to match the 1.1 sequence. Otherwise they will be
forced to either spend RAM caching response data with a blocked
pipeline, or forgoe the h2 multiplexing and PUSH benefits.


> I think the discussion about how to process that organization is germane
> and interesting (chair hat!), and we should do that cognizant that this is
> an expected use of the priority feature.
> 
> On Wed, Jan 25, 2017 at 8:09 AM, Tom Bergan <tombergan@chromium.org> wrote:
> 
>> On Tue, Jan 24, 2017 at 2:55 PM, Kazu Yamamoto <kazu@iij.ad.jp> wrote:
>>
>>> Hi Tom,
>>>
>>>>> http://www.mew.org/~kazu/material/2015-http2-priority2.pdf
>>>>> http://www.mew.org/~kazu/doc/paper/http2-haskell-2016.pdf
>>>>
>>>> Thanks. IIUC, the algorithms described in both links are still at least
>>>> O(depth), which can be O(n) for dependency trees generated by certain
>>>> clients such as Chrome.
>>>
>>> Yes. Your understanding is correct.
>>>
>>> If a browser creates a list-like tree, I think it is misuse of priority.
>>> And servers should limit the depth of trees.
>>
>>
>> Why is that a misuse of priority? It seems entirely reasonable for a
>> client to specify a mostly-linear order. There is a very good reason for
>> this: inside HTML pages, CSS links and synchronous scripts must be
>> evaluated in the order they appear in the HTML file. This implies that the
>> server should send those resources in a linear order. This is exactly the
>> rationale behind Chrome using mostly-linear orders. (This is not to say
>> that mostly-linear orders are not occasionally problematic -- they are
>> <https://bugs.chromium.org/p/chromium/issues/detail?id=651538#c1> -- but
>> there are good reasons to linear orders at least some of the time.)
>>
>> (sorry for the duplicate message, replied from the wrong address)
>>
> 



From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Thu Jan 26 02:17:10 2017
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 5D5F7129515 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 26 Jan 2017 02:17:10 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.62
X-Spam-Level:
X-Spam-Status: No, score=-9.62 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-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, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, 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=lukasa-co-uk.20150623.gappssmtp.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 jVaHRZlY52ig for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 26 Jan 2017 02:17:09 -0800 (PST)
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 0C475129448 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 26 Jan 2017 02:17:08 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cWh4D-0008Af-4b for ietf-http-wg-dist@listhub.w3.org; Thu, 26 Jan 2017 10:14:09 +0000
Resent-Date: Thu, 26 Jan 2017 10:14:09 +0000
Resent-Message-Id: <E1cWh4D-0008Af-4b@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <cory@lukasa.co.uk>) id 1cWh49-00089b-Vf for ietf-http-wg@listhub.w3.org; Thu, 26 Jan 2017 10:14:06 +0000
Received: from mail-wm0-f46.google.com ([74.125.82.46]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <cory@lukasa.co.uk>) id 1cWh43-0001wc-S1 for ietf-http-wg@w3.org; Thu, 26 Jan 2017 10:14:00 +0000
Received: by mail-wm0-f46.google.com with SMTP id d140so3690696wmd.0 for <ietf-http-wg@w3.org>; Thu, 26 Jan 2017 02:13:39 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lukasa-co-uk.20150623.gappssmtp.com; s=20150623; h=from:content-transfer-encoding:mime-version:subject:message-id:date :to; bh=eVealEdaM3VUjzIbOfuKZfIOECGxBA4eMeFeRvoVKuY=; b=sctx7eLjqe6IawTD3px8NkkPB/YswT0NqLcta9EB2oObsr5Y4ccDwRLHpK6FIkIRbi P8uLdZaRMEb566LSJwza+65GexQmf2sgqs5XS15dTFiVMFoYeGrqgZid2lOqtVS0e5Sq SCYWKdpJAF5PQkSLeAUXoMWnknWAT51hZlWc/POzofaZrTAEswAuV+TZjRkmXeuP6vL7 R5/oosWGRK8rPpNxeEbqUatrLWRzSb5yZ2Q5Ht1pbaEoGfVMHP0d29IyBkOngGRzyqUO T3cgC7XMWxD/V/hPfSpSg2ntWhuEa7bGnG/zLaQn9MLlteKVnkaIZE2KVxRLIiDTD6Fz eSyA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:message-id:date:to; bh=eVealEdaM3VUjzIbOfuKZfIOECGxBA4eMeFeRvoVKuY=; b=Pj2u0nqi+TZtEAw6kAk2MdTbhZPHOSb9hQeLmirzGYJvHdjt3sluG6hU74fIjkYIlY 12p6dhRD59Cci5SuKnGYy8xOjgbIXmhN13MZQjfnLc13AsWUHNVXcwsLWlZ8UtFEZsJ/ mJVqQw4PIb7iUrywQ931O8WslMzYri31jtQ+o/sSLAApeJX93iWates9+X+s844/KIQ7 60SkgrlLKuFZapGR/lNt6CNc9odizO4kgNG+pcN1SgqhxxMaOeDmQok1LyrI6JyT76kC Z3N+jmhvzAdGHvEaIfhFox4LVd3DfS1GRCXvuABjAvHk/yvREZLOz7kSkAC4SYm4AENo gJ5w==
X-Gm-Message-State: AIkVDXKLir505UmjTZkh5PhSO4TBrQm9cvP35h63Op8ETgM68e8z8eofo4BbVrU+HSFXvw==
X-Received: by 10.28.221.11 with SMTP id u11mr1843342wmg.75.1485425612881; Thu, 26 Jan 2017 02:13:32 -0800 (PST)
Received: from [192.168.1.3] (227.71.125.91.dyn.plus.net. [91.125.71.227]) by smtp.gmail.com with ESMTPSA id z134sm35633983wmc.20.2017.01.26.02.13.31 for <ietf-http-wg@w3.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Jan 2017 02:13:32 -0800 (PST)
From: Cory Benfield <cory@lukasa.co.uk>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\))
Message-Id: <AC89F2FD-F183-4B17-B528-60821D2D4EB8@lukasa.co.uk>
Date: Thu, 26 Jan 2017 10:13:30 +0000
To: HTTP Working Group <ietf-http-wg@w3.org>
X-Mailer: Apple Mail (2.3259)
Received-SPF: pass client-ip=74.125.82.46; envelope-from=cory@lukasa.co.uk; helo=mail-wm0-f46.google.com
X-W3C-Hub-Spam-Status: No, score=-3.6
X-W3C-Hub-Spam-Report: AWL=-0.157, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cWh43-0001wc-S1 7a7fabd43669b814a66817a5e1ada944
X-Original-To: ietf-http-wg@w3.org
Subject: HTTP/2 plaintext upgrade
Archived-At: <http://www.w3.org/mid/AC89F2FD-F183-4B17-B528-60821D2D4EB8@lukasa.co.uk>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33382
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>

I=E2=80=99ve got a question about HTTP/2 plaintext upgrade. RFC 7540 =
Section 3.2.1 says about the HTTP2-Settings header field:

> The content of the HTTP2-Settings header field is the payload of a =
SETTINGS frame

My initial implementation provided an entire SETTINGS frame in the =
HTTP2-Settings field, but a contributor has pointed out that the word =
=E2=80=9Cpayload=E2=80=9D may mean that only the body of the SETTINGS =
frame should be provided. It=E2=80=99s not really entirely clear to me =
in the text which I should do, and there are no textual examples either, =
so I=E2=80=99m genuinely not sure.

Can I get an idea of what other implementers have done here?

Cory=


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Thu Jan 26 02:38:46 2017
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 1D47812951F for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 26 Jan 2017 02:38:46 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.119
X-Spam-Level:
X-Spam-Status: No, score=-10.119 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, 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=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
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 b83XgD4aqd2r for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 26 Jan 2017 02:38:45 -0800 (PST)
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 0239112951D for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 26 Jan 2017 02:38:45 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cWhPG-0008Rz-2A for ietf-http-wg-dist@listhub.w3.org; Thu, 26 Jan 2017 10:35:54 +0000
Resent-Date: Thu, 26 Jan 2017 10:35:54 +0000
Resent-Message-Id: <E1cWhPG-0008Rz-2A@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <essen@ninenines.eu>) id 1cWhPC-0008RE-9D for ietf-http-wg@listhub.w3.org; Thu, 26 Jan 2017 10:35:50 +0000
Received: from mout.kundenserver.de ([217.72.192.75]) by mimas.w3.org with esmtps (TLS1.2:DHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <essen@ninenines.eu>) id 1cWhP6-0002hF-4k for ietf-http-wg@w3.org; Thu, 26 Jan 2017 10:35:44 +0000
Received: from [192.168.1.28] ([176.149.24.230]) by mrelayeu.kundenserver.de (mreue103 [212.227.15.183]) with ESMTPSA (Nemesis) id 0MGoe9-1cjdp44AXh-00DaVK; Thu, 26 Jan 2017 11:35:16 +0100
To: Cory Benfield <cory@lukasa.co.uk>, HTTP Working Group <ietf-http-wg@w3.org>
References: <AC89F2FD-F183-4B17-B528-60821D2D4EB8@lukasa.co.uk>
From: =?UTF-8?Q?Lo=c3=afc_Hoguin?= <essen@ninenines.eu>
Organization: Nine Nines
Message-ID: <111bbf48-dc11-9f8a-60b0-5f28810c318f@ninenines.eu>
Date: Thu, 26 Jan 2017 11:35:14 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.0
MIME-Version: 1.0
In-Reply-To: <AC89F2FD-F183-4B17-B528-60821D2D4EB8@lukasa.co.uk>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Provags-ID: V03:K0:eZ8q6yjCuQDi+EDUyYWXypjxsslLXHkHKd1rcfivKwM0nTNiDiE GDUrwYRCBX8nMJhDIyQSHWt+d+9IqIJhAgL0sOiir2IzPUArJ9yhJVwbplHY4VKUYVAO5xn Ds6IxhXk88iVGAvV1Zu/enJ6VVOWL2sWgsTiJhkcKGoGg55uRYIYMJ5+5VFvZ2b/r3xGQCP r93WNQivdui+5VqyLmT3g==
X-UI-Out-Filterresults: notjunk:1;V01:K0:Zg9Co7pvPgI=:ace7eW0VxZuo5RtC21PTQD lUUgbgaKtY/DFlYAVxkaytRqnFqZlgAyQqXha5QCwKJzTiX2/0QR3Wj15jz8dh36IsSoxNj2I aP36pKRkLqzPjSanmcng1oD9BBCVCTszK8lrk9k3ihRFj5SOdgC1WEuT/s1azwEs6zDVHJIyM Si82LlbSNY5KdBmG/YO5JnIhmDkfl2egTQvgavT53q7S8/+LflL5ba5js1AjTR6nkRW1PDcC9 B6A5EOJFTwxXuUieQQmoU78QZHUyktvDn8ZrLFh9wdU65f+92wxlPi5CQHvYC/L1hh3wH0obV +KEeNrUxBeoaHd6h0wGj0jcKQXmGd+454Glh0R38/bXjtNI0J6inCGeEkB7QTbsqunfs/bWfc OabwZPWpjIFOWyjZTPxFmgoSMF0InLR9iKBnRMX29A+th874u7wgfH+d/I5RB36tOTOCvT3Ou 3oeOLPL+dgnUqcpTi5nYr3V9+Y71D0YSLdTAe83lzB29QOmQ9yMXA6v+Rad0Iq15vy81nKVBl 0kJwwUa03FTsSOKynlXawWVKE1WOjmZkXodA7Ps1KDMDzzjFToUIdFzzphZkjEaTa2qcWYINd 02EXkw4zSBcefgd6sF4T7m2srS2Kk55w/Z7ISmzC93szTNlDm12gyW0tAqnnK8C3pZrfTe13r kxxAqUaeK2XzH0a+wi7oF2vNYOiQl0WIPl5hM65xaWf4WT7fYtB+Sq5GupQnhhkX76cjarbuF OOCKYJxjcHa+Vv72
Received-SPF: none client-ip=217.72.192.75; envelope-from=essen@ninenines.eu; helo=mout.kundenserver.de
X-W3C-Hub-Spam-Status: No, score=-3.5
X-W3C-Hub-Spam-Report: AWL=1.578, BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-1.156, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cWhP6-0002hF-4k d3bf549554c9b98983e803c4d937f17f
X-Original-To: ietf-http-wg@w3.org
Subject: Re: HTTP/2 plaintext upgrade
Archived-At: <http://www.w3.org/mid/111bbf48-dc11-9f8a-60b0-5f28810c318f@ninenines.eu>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33383
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>

Hello,

On 01/26/2017 11:13 AM, Cory Benfield wrote:
> I’ve got a question about HTTP/2 plaintext upgrade. RFC 7540 Section 3.2.1 says about the HTTP2-Settings header field:
>
>> The content of the HTTP2-Settings header field is the payload of a SETTINGS frame
>
> My initial implementation provided an entire SETTINGS frame in the HTTP2-Settings field, but a contributor has pointed out that the word “payload” may mean that only the body of the SETTINGS frame should be provided. It’s not really entirely clear to me in the text which I should do, and there are no textual examples either, so I’m genuinely not sure.
>
> Can I get an idea of what other implementers have done here?

I understood "payload" as the frame payload defined in section 4.1:

    All frames begin with a fixed 9-octet header followed by a variable-
    length payload.

     +-----------------------------------------------+
     |                 Length (24)                   |
     +---------------+---------------+---------------+
     |   Type (8)    |   Flags (8)   |
     +-+-------------+---------------+-------------------------------+
     |R|                 Stream Identifier (31)                      |
     +=+=============================================================+
     |                   Frame Payload (0...)                      ...
     +---------------------------------------------------------------+

I have however only used this with a client I implemented myself.

-- 
Loïc Hoguin
https://ninenines.eu


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Thu Jan 26 06:32:33 2017
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 00818129612 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 26 Jan 2017 06:32:33 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.119
X-Spam-Level:
X-Spam-Status: No, score=-10.119 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, 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=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
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 cOzi3fzN2RTE for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 26 Jan 2017 06:32:31 -0800 (PST)
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 2E22A12960F for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 26 Jan 2017 06:32:30 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cWl3L-00031e-Vk for ietf-http-wg-dist@listhub.w3.org; Thu, 26 Jan 2017 14:29:32 +0000
Resent-Date: Thu, 26 Jan 2017 14:29:31 +0000
Resent-Message-Id: <E1cWl3L-00031e-Vk@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <daniel@haxx.se>) id 1cWl3I-00030o-2X for ietf-http-wg@listhub.w3.org; Thu, 26 Jan 2017 14:29:28 +0000
Received: from giant.haxx.se ([80.67.6.50]) by titan.w3.org with esmtp (Exim 4.84_2) (envelope-from <daniel@haxx.se>) id 1cWl3B-0003ds-SO for ietf-http-wg@w3.org; Thu, 26 Jan 2017 14:29:22 +0000
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1]) by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTPS id v0QESvYw016820 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 26 Jan 2017 15:28:57 +0100
Received: from localhost (dast@localhost) by giant.haxx.se (8.15.2/8.15.2/Submit) with ESMTP id v0QESuCt016815; Thu, 26 Jan 2017 15:28:56 +0100
X-Authentication-Warning: giant.haxx.se: dast owned process doing -bs
Date: Thu, 26 Jan 2017 15:28:56 +0100 (CET)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: Cory Benfield <cory@lukasa.co.uk>
cc: HTTP Working Group <ietf-http-wg@w3.org>
In-Reply-To: <AC89F2FD-F183-4B17-B528-60821D2D4EB8@lukasa.co.uk>
Message-ID: <alpine.DEB.2.20.1701261524350.26166@tvnag.unkk.fr>
References: <AC89F2FD-F183-4B17-B528-60821D2D4EB8@lukasa.co.uk>
User-Agent: Alpine 2.20 (DEB 67 2015-01-07)
X-fromdanielhimself: yes
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII; format=flowed
Received-SPF: pass client-ip=80.67.6.50; envelope-from=daniel@haxx.se; helo=giant.haxx.se
X-W3C-Hub-Spam-Status: No, score=-7.8
X-W3C-Hub-Spam-Report: AWL=1.606, BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-3.199, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1cWl3B-0003ds-SO ab45174f70afa10d80ac91eb890ecaa3
X-Original-To: ietf-http-wg@w3.org
Subject: Re: HTTP/2 plaintext upgrade
Archived-At: <http://www.w3.org/mid/alpine.DEB.2.20.1701261524350.26166@tvnag.unkk.fr>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33384
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 Thu, 26 Jan 2017, Cory Benfield wrote:

>> The content of the HTTP2-Settings header field is the payload of a SETTINGS 
>> frame
>
> Can I get an idea of what other implementers have done here?

A suppose many do like curl and use nghttp2_frame_pack_settings_payload() [1] 
for this. It is just a number of settings and their values encoded as section 
6.5.1 [2] describes

Right now I can't really remember exactly what sort of interop we have with 
this. I suspect we don't have too many users actually using h2 plaintext.

[1] = https://nghttp2.org/documentation/nghttp2_pack_settings_payload.html
[2] = http://httpwg.org/specs/rfc7540.html#SettingFormat

-- 

  / daniel.haxx.se


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Thu Jan 26 17:54:41 2017
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 708C2129C69 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 26 Jan 2017 17:54:41 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.12
X-Spam-Level:
X-Spam-Status: No, score=-10.12 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-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=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=teamtelstra.onmicrosoft.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 zyGwjuiSrh8i for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 26 Jan 2017 17:54:39 -0800 (PST)
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 B314A129C62 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 26 Jan 2017 17:54:39 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cWvhO-0001Yf-Bf for ietf-http-wg-dist@listhub.w3.org; Fri, 27 Jan 2017 01:51:34 +0000
Resent-Date: Fri, 27 Jan 2017 01:51:34 +0000
Resent-Message-Id: <E1cWvhO-0001Yf-Bf@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <James.H.Manger@team.telstra.com>) id 1cWvhG-0001Vb-Mn for ietf-http-wg@listhub.w3.org; Fri, 27 Jan 2017 01:51:26 +0000
Received: from ipxcno.tcif.telstra.com.au ([203.35.82.208]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <James.H.Manger@team.telstra.com>) id 1cWvgg-0000cl-H7 for ietf-http-wg@w3.org; Fri, 27 Jan 2017 01:51:21 +0000
X-IronPort-AV: E=Sophos;i="5.33,292,1477918800";  d="scan'208";a="19437260"
Received: from unknown (HELO ipcbni.tcif.telstra.com.au) ([10.97.216.204]) by ipocni.tcif.telstra.com.au with ESMTP; 27 Jan 2017 12:50:17 +1100
X-IronPort-AV: E=McAfee;i="5700,7163,8420"; a="291004500"
Received: from wsmsg3756.srv.dir.telstra.com ([172.49.40.84]) by ipcbni.tcif.telstra.com.au with ESMTP; 27 Jan 2017 12:50:17 +1100
Received: from wsapp5870.srv.dir.telstra.com (10.75.139.12) by wsmsg3756.srv.dir.telstra.com (172.49.40.84) with Microsoft SMTP Server (TLS) id 8.3.485.1; Fri, 27 Jan 2017 12:50:17 +1100
Received: from wsapp5584.srv.dir.telstra.com (10.75.131.20) by wsapp5870.srv.dir.telstra.com (10.75.139.12) with Microsoft SMTP Server (TLS) id 15.0.1236.3; Fri, 27 Jan 2017 12:50:17 +1100
Received: from AUS01-SY3-obe.outbound.protection.outlook.com (10.172.101.126) by wsapp5584.srv.dir.telstra.com (10.75.131.20) with Microsoft SMTP Server (TLS) id 15.0.1236.3 via Frontend Transport; Fri, 27 Jan 2017 12:50:16 +1100
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=teamtelstra.onmicrosoft.com; s=selector1-team-telstra-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=1Dbqlyxo2jQ3fGeXqy4X2zEkOH96d5yqjrs71xsWVzg=; b=LSlvGhNhvWVJ/K6+wo8n+tW2eNscXXEdqnt7hxrhCn5ivFKA7sgLn1GFzagAuTca3LRKU8C9i47MCZm91IghTUnT9OYt/dWo7AdnvbgDZx7QfbOFoJgp/crXPShF2p0Xf7PoaKqdoIAHw7PZjq4AIJyw0fdi+YnkEIbLLxW6vCc=
Received: from SYXPR01MB1615.ausprd01.prod.outlook.com (10.175.209.15) by SYXPR01MB1616.ausprd01.prod.outlook.com (10.175.209.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.860.13; Fri, 27 Jan 2017 01:50:15 +0000
Received: from SYXPR01MB1615.ausprd01.prod.outlook.com ([10.175.209.15]) by SYXPR01MB1615.ausprd01.prod.outlook.com ([10.175.209.15]) with mapi id 15.01.0860.021; Fri, 27 Jan 2017 01:50:15 +0000
From: "Manger, James" <James.H.Manger@team.telstra.com>
To: Martin Thomson <martin.thomson@gmail.com>
CC: "ilariliusvaara@welho.com" <ilariliusvaara@welho.com>, "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
Thread-Topic: aes128gcm: why verify padding?
Thread-Index: AdJvg9D1nChV1RXVTGiVAO+6sRrzlwADDv6AAAAcAeAADb7rAAFW7FVwAAoO2IAACMzpgAAYx0WAAAAn4DAAZJKWgAAzIAMQ
Date: Fri, 27 Jan 2017 01:50:15 +0000
Message-ID: <SYXPR01MB1615C769ADDAF813BB32A65DE5760@SYXPR01MB1615.ausprd01.prod.outlook.com>
References: <SYXPR01MB161520224A59CDCE0D433A2CE57A0@SYXPR01MB1615.ausprd01.prod.outlook.com> <CABkgnnUo-tf69AzJC=OUy2rjDZwedTd5Ua9mhOiJBqaA0VKrYw@mail.gmail.com> <SYXPR01MB16150F4D3D19CC69D18E1A09E57D0@SYXPR01MB1615.ausprd01.prod.outlook.com> <CABkgnnV_OatRWyZBE3Rak22gS1jrOZKjCGwOePpbqJCAeJFM4Q@mail.gmail.com> <SYXPR01MB1615DD56268D7EF9929F3DBFE5720@SYXPR01MB1615.ausprd01.prod.outlook.com> <20170123073623.GA28101@LK-Perkele-V2.elisa-laajakaista.fi> <SYXPR01MB1615798CC057FB3232B2FA4BE5720@SYXPR01MB1615.ausprd01.prod.outlook.com> <CABkgnnW4e+FOz+gsu6vZ2d9WOSv9Yohn+OejrNom9HCBiMrRWQ@mail.gmail.com> <SYXPR01MB1615AE56D810A0372AF811FCE5750@SYXPR01MB1615.ausprd01.prod.outlook.com> <CABkgnnWoSWCeV_TUwDY1J00ivY0TDgU_9NhiSWZpM4_F6XAYfA@mail.gmail.com>
In-Reply-To: <CABkgnnWoSWCeV_TUwDY1J00ivY0TDgU_9NhiSWZpM4_F6XAYfA@mail.gmail.com>
Accept-Language: en-AU, en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=James.H.Manger@team.telstra.com; 
x-originating-ip: [203.35.185.254]
x-ms-office365-filtering-correlation-id: d6d05f52-07b3-404e-2f2c-08d44656d750
x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:SYXPR01MB1616;
x-microsoft-exchange-diagnostics: 1;SYXPR01MB1616;7:vln7E9qF+qIn2VGT0TDLPF9XRjrWgp2jqajrzIKuAqRwTQ9MCN5i0iOYi0csl1xbk/veK1rK6j5wTa4x85uTo9ARrv5ch9ziPDcgahTIojXVQ8ythMXeMX1hCNktd6NFaRFh+iDsP+sEuzkSJXG6bK3FXbGtEiRZ5YG+wzRb6pcY+JxzN6iwAxWqZ8hmt+HDlHAkkVFOVzuWFuPrO54b4z5adAjdiEtYd4VZ9t2J2C3tvdaiRntdiV8yiekZX6eSejbD2AWl1Q9nI6/f3YA9Tx2+dOpnVlxvyQfJYWN53s650p1fi74Dz7FYyCbDFp0WScgawT/TQE7UZw8BFP7u1Cj5si3t5FH8Tv3tEcWjhqOzd9SHgBluWmULuUgapkDa8iUBsfkwUApNfb3YSUqt7fpxHhQ/dtUhHXPB3r8cfapcF1CVv7yKs8VTnGjORwe9qHO/n4yoqc/hKOQGSeg2YA==
x-microsoft-antispam-prvs: <SYXPR01MB161690EF3ECD2B239E794C5EE5760@SYXPR01MB1616.ausprd01.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:;
x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040375)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6041248)(20161123564025)(20161123562025)(20161123560025)(20161123555025)(6072148)(6042181);SRVR:SYXPR01MB1616;BCL:0;PCL:0;RULEID:;SRVR:SYXPR01MB1616;
x-forefront-prvs: 0200DDA8BE
x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(7916002)(189002)(51444003)(199003)(7696004)(101416001)(2900100001)(81166006)(6916009)(15650500001)(2906002)(33656002)(8676002)(92566002)(5660300001)(93886004)(68736007)(53936002)(122556002)(3660700001)(8936002)(54356999)(81156014)(9686003)(105586002)(77096006)(229853002)(6506006)(39060400001)(55016002)(86362001)(6436002)(25786008)(99286003)(76176999)(54906002)(305945005)(38730400001)(50986999)(74316002)(6116002)(3846002)(2950100002)(4326007)(3280700002)(102836003)(42882006)(97736004)(66066001)(189998001)(7736002)(110136003)(106356001);DIR:OUT;SFP:1102;SCL:1;SRVR:SYXPR01MB1616;H:SYXPR01MB1615.ausprd01.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:0;LANG:en;
received-spf: None (protection.outlook.com: team.telstra.com does not designate permitted sender hosts)
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Jan 2017 01:50:15.8319 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 49dfc6a3-5fb7-49f4-adea-c54e725bb854
X-MS-Exchange-Transport-CrossTenantHeadersStamped: SYXPR01MB1616
X-OriginatorOrg: team.telstra.com
Received-SPF: none client-ip=203.35.82.208; envelope-from=James.H.Manger@team.telstra.com; helo=ipxcno.tcif.telstra.com.au
X-W3C-Hub-Spam-Status: No, score=-0.7
X-W3C-Hub-Spam-Report: RCVD_IN_DNSWL_LOW=-0.7, TIME_LIMIT_EXCEEDED=0
X-W3C-Scan-Sig: mimas.w3.org 1cWvgg-0000cl-H7 eb094d8dada7edcc5dc5d3ee971b4454
X-Original-To: ietf-http-wg@w3.org
Subject: RE: aes128gcm: why verify padding?
Archived-At: <http://www.w3.org/mid/SYXPR01MB1615C769ADDAF813BB32A65DE5760@SYXPR01MB1615.ausprd01.prod.outlook.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33385
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>

Pj4gSWYgd2UgZ28gd2l0aCB0aGlzIGFwcHJvYWNoLCB3ZSBzaG91bGQgYWxzbyBkaXN0aW5ndWlz
aCB0aGUgMXN0IHJlY29yZC4gRm9yIGluc3RhbmNlLCBmb3IgdGhlIGVuZC1vZi1wYWRkaW5nIGJ5
dGU6DQoNCg0KPiBJIHRoaW5rIHRoYXQgbWlnaHQgYmUgZ29pbmcgdG9vIGZhci4gIFRydW5jYXRp
bmcgdGhlIGZpcnN0IHJlY29yZA0KcmVxdWlyZXMgdGhhdCB5b3UgYXJlIGFibGUgdG8gZmluZCBh
biBpbnB1dCB0byBIS0RGIHRoYXQgcHJvdmlkZXMgdGhlDQpzYW1lIGtleSwgYW5kIGEgbm9uY2Ug
dGhhdCBoYXMganVzdCB0aGUgbG93ZXIgYml0IGZsaXBwZWQgKHlvdSBjYW4NCnRydW5jYXRlIG1v
cmUgd2l0aCBoaWdoZXIgcHJvYmFiaWxpdHkpLiAgVGhhdCByZXF1aXJlcyBzZXZlcmFsDQpwcmVp
bWFnZSBhdHRhY2tzIG9uIFNIQS0yNTYgaW4gc2VyaWVzLiAgTW9zdGx5IHRob3VnaCwgbWFya2lu
ZyB0aGUNCnN0YXJ0IGFsc28gaW5jcmVhc2VzIGNvbXBsZXhpdHkuICBJIHRoaW5rIHRoYXQgaXQn
cyBlbm91Z2ggdG8gc2F5IDB4MDENCj0ga2VlcCBnb2luZywgMHgwMiA9IGFsbCBkb25lLg0KDQoN
CkkgYWdyZWUgdGhhdCBTdGFydC1vci1taWRkbGUgdnMgRW5kIGlzIGVub3VnaCBpbiB0aGlzIGNh
c2UgZHVlIHRvIHRoZSBLREYuDQpJIHdhcyBob3BpbmcgZm9yIGFuIGFudGktdHJ1bmNhdGlvbiBt
ZWNoYW5pc20gdGhhdCBkaWRuJ3QgZGVwZW5kIGluIGEgbm90LWNvbXBsZXRlbHktb2J2aW91cy10
by1tZSBtYW5uZXIgb24gYSBzZWVtaW5nbHkgcXVpdGUgc2VwYXJhdGUgYXNwZWN0OiB0aGUgS0RG
Lg0KRm9yIGluc3RhbmNlLCBldmVuIHdpdGggbm8gS0RGIChmb3Iga2V5IG9yIG5vbmNlKSBoYXZp
bmcgYSBieXRlIGRpc3Rpbmd1aXNoaW5nIHN0YXJ0L21pZGRsZS9lbmQgd291bGQgYmUgc3VmZmlj
aWVudCB0byBhdXRoZW50aWNhdGUgeW91IGhhdmUgcmVjZWl2ZWQgYW4gYXV0aGVudGljIHByZWZp
eCBvciBzdWZmaXggb3IgY29tcGxldGUgbWVzc2FnZS4NCg0KLS0NCkphbWVzIE1hbmdlcg0K


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Thu Jan 26 18:13:01 2017
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 2628B1293FD for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 26 Jan 2017 18:13:01 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.72
X-Spam-Level:
X-Spam-Status: No, score=-9.72 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, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, 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 DUjtEo2S4_6Z for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 26 Jan 2017 18:13:00 -0800 (PST)
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 F39921293F9 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 26 Jan 2017 18:12:59 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cWvzg-0003QP-Bc for ietf-http-wg-dist@listhub.w3.org; Fri, 27 Jan 2017 02:10:28 +0000
Resent-Date: Fri, 27 Jan 2017 02:10:28 +0000
Resent-Message-Id: <E1cWvzg-0003QP-Bc@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <kazuhooku@gmail.com>) id 1cWvzd-0003Pd-88 for ietf-http-wg@listhub.w3.org; Fri, 27 Jan 2017 02:10:25 +0000
Received: from mail-oi0-f42.google.com ([209.85.218.42]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <kazuhooku@gmail.com>) id 1cWvz3-000189-GT for ietf-http-wg@w3.org; Fri, 27 Jan 2017 02:10:20 +0000
Received: by mail-oi0-f42.google.com with SMTP id j15so149587916oih.2 for <ietf-http-wg@w3.org>; Thu, 26 Jan 2017 18:09:29 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=JNdZN1pnxnPIBqET48f2pz3HNlBFO9Ye6SA3oVnriY0=; b=CNR0K4v3L2aqCuN9E+tM232jT7f5nc9/p9Xa19byyb3QDpePGajX6fipuMy1DyK9N5 vGHSREkXKPeYJ7GM8x3AZbjc/iioUf+vTGsRy7X9E6PixHDaDLKb+zS7/YlF/NvyeTmi tV9efb2tnXZ4IScb6FAnYNskwEF92tUYpCJUpOCJdvM7DWJOx940JShnQN1oahjN0cQu tnOxfPK0rrvVgZBE1VzD7zxyq8BSSyBxwwkk7MMeZE7MUl+ex5dQ/IMfEck2SZxfP1MV 3HvOtiGMkOiqbLR8zZcGbyS/8Q4tH074xDbmVduEcQ249R7OMAl6cFAzBTtJSC882gt/ msrg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=JNdZN1pnxnPIBqET48f2pz3HNlBFO9Ye6SA3oVnriY0=; b=j96deUOXHEU3aFjP4CRMzXXoZuqs1TOV55MEQDcFQhgSPy2WrUG0JVeF9bZUDL+BzL 4fMs+1YOZsf+YfTsMiAgbzvGMWLiTN+Qhq7d2pyMi3cG88QLAU7XdTGrDd9epRhtriV0 tc9ycmPtjcuZIJq6q/R1BROl89UX5DbqqDI6aOba5Ut2o6rrNnT3fxr2XgraNVDa/SnN JM5v+lP/KtT7FQeK4UGtfdwrbz850Cu7vNJbK+Bqk3odcU45lqIVz8WvJWHNqZY3nIzz mCjRmJL3ij1/IteMlCeep8RfoVe8Z3c5eQ9p5vrnWk23paTMKsQAIWx7RdHyQI946KIG Qm9Q==
X-Gm-Message-State: AIkVDXI4oKQG+CPtHvONNx8cJ+nNC/bAjLxN6ixwhKwCgvSAQGaw9Ht8Jj62fwjHFSWpNSVCsMEmvs+1N10eDw==
X-Received: by 10.202.57.197 with SMTP id g188mr3910294oia.185.1485482963065; Thu, 26 Jan 2017 18:09:23 -0800 (PST)
MIME-Version: 1.0
Received: by 10.157.16.113 with HTTP; Thu, 26 Jan 2017 18:09:22 -0800 (PST)
In-Reply-To: <AC89F2FD-F183-4B17-B528-60821D2D4EB8@lukasa.co.uk>
References: <AC89F2FD-F183-4B17-B528-60821D2D4EB8@lukasa.co.uk>
From: Kazuho Oku <kazuhooku@gmail.com>
Date: Fri, 27 Jan 2017 11:09:22 +0900
Message-ID: <CANatvzwqioi29FpP9tKAb=Z2fUnVWPgcQW2NvJq16v-e6k-CSQ@mail.gmail.com>
To: Cory Benfield <cory@lukasa.co.uk>
Cc: HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=209.85.218.42; envelope-from=kazuhooku@gmail.com; helo=mail-oi0-f42.google.com
X-W3C-Hub-Spam-Status: No, score=0.5
X-W3C-Hub-Spam-Report: RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_SORBS_SPAM=0.5, TIME_LIMIT_EXCEEDED=0
X-W3C-Scan-Sig: mimas.w3.org 1cWvz3-000189-GT f7ce51a7eadfdf157c901a37fb20819e
X-Original-To: ietf-http-wg@w3.org
Subject: Re: HTTP/2 plaintext upgrade
Archived-At: <http://www.w3.org/mid/CANatvzwqioi29FpP9tKAb=Z2fUnVWPgcQW2NvJq16v-e6k-CSQ@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33386
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>

2017-01-26 19:13 GMT+09:00 Cory Benfield <cory@lukasa.co.uk>:
> I=E2=80=99ve got a question about HTTP/2 plaintext upgrade. RFC 7540 Sect=
ion 3.2.1 says about the HTTP2-Settings header field:
>
>> The content of the HTTP2-Settings header field is the payload of a SETTI=
NGS frame
>
> My initial implementation provided an entire SETTINGS frame in the HTTP2-=
Settings field, but a contributor has pointed out that the word =E2=80=9Cpa=
yload=E2=80=9D may mean that only the body of the SETTINGS frame should be =
provided. It=E2=80=99s not really entirely clear to me in the text which I =
should do, and there are no textual examples either, so I=E2=80=99m genuine=
ly not sure.
>
> Can I get an idea of what other implementers have done here?

I think the most direct answer to the quession would be the following
sentence in section 6.5.1.

   The payload of a SETTINGS frame consists of zero or more parameters,
   each consisting of an unsigned 16-bit setting identifier and an
   unsigned 32-bit value.


> Cory



--=20
Kazuho Oku


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Thu Jan 26 23:25:06 2017
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 42AB2128874 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 26 Jan 2017 23:25:06 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.12
X-Spam-Level:
X-Spam-Status: No, score=-10.12 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, 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=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 ryYUKZt9PJuP for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 26 Jan 2017 23:25:04 -0800 (PST)
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 6F7E3124281 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 26 Jan 2017 23:25:03 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cX0qa-00033I-54 for ietf-http-wg-dist@listhub.w3.org; Fri, 27 Jan 2017 07:21:24 +0000
Resent-Date: Fri, 27 Jan 2017 07:21:24 +0000
Resent-Message-Id: <E1cX0qa-00033I-54@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <ilariliusvaara@welho.com>) id 1cX0qU-000322-KH for ietf-http-wg@listhub.w3.org; Fri, 27 Jan 2017 07:21:18 +0000
Received: from welho-filter2.welho.com ([83.102.41.24]) by titan.w3.org with esmtp (Exim 4.84_2) (envelope-from <ilariliusvaara@welho.com>) id 1cX0qO-000453-NZ for ietf-http-wg@w3.org; Fri, 27 Jan 2017 07:21:13 +0000
Received: from localhost (localhost [127.0.0.1]) by welho-filter2.welho.com (Postfix) with ESMTP id 1CAC71AD26; Fri, 27 Jan 2017 09:20:45 +0200 (EET)
X-Virus-Scanned: Debian amavisd-new at pp.htv.fi
Received: from welho-smtp1.welho.com ([IPv6:::ffff:83.102.41.84]) by localhost (welho-filter2.welho.com [::ffff:83.102.41.24]) (amavisd-new, port 10024) with ESMTP id ISJxhPd32IMd; Fri, 27 Jan 2017 09:20:44 +0200 (EET)
Received: from LK-Perkele-V2 (87-92-51-204.bb.dnainternet.fi [87.92.51.204]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by welho-smtp1.welho.com (Postfix) with ESMTPSA id C78A5C4; Fri, 27 Jan 2017 09:20:44 +0200 (EET)
Date: Fri, 27 Jan 2017 09:20:41 +0200
From: Ilari Liusvaara <ilariliusvaara@welho.com>
To: "Manger, James" <James.H.Manger@team.telstra.com>
Cc: Martin Thomson <martin.thomson@gmail.com>, "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
Message-ID: <20170127072041.GA16072@LK-Perkele-V2.elisa-laajakaista.fi>
References: <CABkgnnUo-tf69AzJC=OUy2rjDZwedTd5Ua9mhOiJBqaA0VKrYw@mail.gmail.com> <SYXPR01MB16150F4D3D19CC69D18E1A09E57D0@SYXPR01MB1615.ausprd01.prod.outlook.com> <CABkgnnV_OatRWyZBE3Rak22gS1jrOZKjCGwOePpbqJCAeJFM4Q@mail.gmail.com> <SYXPR01MB1615DD56268D7EF9929F3DBFE5720@SYXPR01MB1615.ausprd01.prod.outlook.com> <20170123073623.GA28101@LK-Perkele-V2.elisa-laajakaista.fi> <SYXPR01MB1615798CC057FB3232B2FA4BE5720@SYXPR01MB1615.ausprd01.prod.outlook.com> <CABkgnnW4e+FOz+gsu6vZ2d9WOSv9Yohn+OejrNom9HCBiMrRWQ@mail.gmail.com> <SYXPR01MB1615AE56D810A0372AF811FCE5750@SYXPR01MB1615.ausprd01.prod.outlook.com> <CABkgnnWoSWCeV_TUwDY1J00ivY0TDgU_9NhiSWZpM4_F6XAYfA@mail.gmail.com> <SYXPR01MB1615C769ADDAF813BB32A65DE5760@SYXPR01MB1615.ausprd01.prod.outlook.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <SYXPR01MB1615C769ADDAF813BB32A65DE5760@SYXPR01MB1615.ausprd01.prod.outlook.com>
User-Agent: Mutt/1.5.23 (2014-03-12)
Sender: ilariliusvaara@welho.com
Received-SPF: none client-ip=83.102.41.24; envelope-from=ilariliusvaara@welho.com; helo=welho-filter2.welho.com
X-W3C-Hub-Spam-Status: No, score=-4.5
X-W3C-Hub-Spam-Report: AWL=2.599, BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-3.199, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1cX0qO-000453-NZ a66c1edf35fb3292f8c694ec0b2157ae
X-Original-To: ietf-http-wg@w3.org
Subject: Re: aes128gcm: why verify padding?
Archived-At: <http://www.w3.org/mid/20170127072041.GA16072@LK-Perkele-V2.elisa-laajakaista.fi>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33387
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 Fri, Jan 27, 2017 at 01:50:15AM +0000, Manger, James wrote:

> I was hoping for an anti-truncation mechanism that didn't depend in a
> not-completely-obvious-to-me manner on a seemingly quite separate aspect:
> the KDF. For instance, even with no KDF (for key or nonce) having a byte
> distinguishing start/middle/end would be sufficient to authenticate you
> have received an authentic prefix or suffix or complete message.

Actually, if you don't use KDF to obtain the nonce base together with
the key, attacker can corrupt messages unless you actually verify that
the start block is in its proper place.

This is because if attacker can choose noncebase, attacker can reorder
the blocks so all decrypt properly.

Using KDF prevents this because attacker can't produce suitably
related noncebase pairs for the same key



-Ilari



From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Sun Jan 29 18:34:32 2017
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 9AD65128AC9 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 29 Jan 2017 18:34:32 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.12
X-Spam-Level:
X-Spam-Status: No, score=-10.12 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-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=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=teamtelstra.onmicrosoft.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 3OtKdUuALmdx for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 29 Jan 2017 18:34:31 -0800 (PST)
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 E235C1298D2 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sun, 29 Jan 2017 18:34:30 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cY1kA-00087b-Sf for ietf-http-wg-dist@listhub.w3.org; Mon, 30 Jan 2017 02:30:58 +0000
Resent-Date: Mon, 30 Jan 2017 02:30:58 +0000
Resent-Message-Id: <E1cY1kA-00087b-Sf@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <James.H.Manger@team.telstra.com>) id 1cY1k3-000860-QO for ietf-http-wg@listhub.w3.org; Mon, 30 Jan 2017 02:30:51 +0000
Received: from ipxcno.tcif.telstra.com.au ([203.35.82.208]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <James.H.Manger@team.telstra.com>) id 1cY1jq-0004p5-77 for ietf-http-wg@w3.org; Mon, 30 Jan 2017 02:30:46 +0000
X-IronPort-AV: E=Sophos;i="5.33,309,1477918800";  d="scan'208";a="19901256"
Received: from unknown (HELO ipcani.tcif.telstra.com.au) ([10.97.216.200]) by ipocni.tcif.telstra.com.au with ESMTP; 30 Jan 2017 13:30:05 +1100
X-IronPort-AV: E=McAfee;i="5700,7163,8423"; a="277679320"
Received: from wsmsg3753.srv.dir.telstra.com ([172.49.40.174]) by ipcani.tcif.telstra.com.au with ESMTP; 30 Jan 2017 13:30:05 +1100
Received: from wsapp5862.srv.dir.telstra.com (10.75.3.94) by WSMSG3753.srv.dir.telstra.com (172.49.40.174) with Microsoft SMTP Server (TLS) id 8.3.485.1; Mon, 30 Jan 2017 13:30:05 +1100
Received: from wsapp5584.srv.dir.telstra.com (10.75.131.20) by wsapp5862.srv.dir.telstra.com (10.75.3.94) with Microsoft SMTP Server (TLS) id 15.0.1236.3; Mon, 30 Jan 2017 13:30:03 +1100
Received: from AUS01-SY3-obe.outbound.protection.outlook.com (10.172.229.126) by wsapp5584.srv.dir.telstra.com (10.75.131.20) with Microsoft SMTP Server (TLS) id 15.0.1236.3 via Frontend Transport; Mon, 30 Jan 2017 13:30:04 +1100
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=teamtelstra.onmicrosoft.com; s=selector1-team-telstra-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=n5BXQAhDlcIftYTKZQfwBR3nBRmBWap6bL23YyKPGd0=; b=bUXbJoMbV05kJRkSKqlqeCxI5pltqGB10LzR2/7Gtt2IHSd2PyTaBhIAymbR2y0+vNQZofVtx2CFl2wndIXGZoWZhq9oe1zjqTNs0TzwG0gfcysuDtHN8gg/RRZvCJ2P5SIDQOiTHyiZrKYM/hjbIwnbm0K/nxpYAY1cYooE8ew=
Received: from SYXPR01MB1615.ausprd01.prod.outlook.com (10.175.209.15) by SYXPR01MB1615.ausprd01.prod.outlook.com (10.175.209.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.860.13; Mon, 30 Jan 2017 02:30:04 +0000
Received: from SYXPR01MB1615.ausprd01.prod.outlook.com ([10.175.209.15]) by SYXPR01MB1615.ausprd01.prod.outlook.com ([10.175.209.15]) with mapi id 15.01.0860.024; Mon, 30 Jan 2017 02:30:04 +0000
From: "Manger, James" <James.H.Manger@team.telstra.com>
To: "ilariliusvaara@welho.com" <ilariliusvaara@welho.com>
CC: Martin Thomson <martin.thomson@gmail.com>, "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
Thread-Topic: aes128gcm: why verify padding?
Thread-Index: AdJvg9D1nChV1RXVTGiVAO+6sRrzlwADDv6AAAAcAeAADb7rAAFW7FVwAAoO2IAACMzpgAAYx0WAAAAn4DAAZJKWgAAzIAMQAA8vZIAAi3LTUA==
Importance: low
X-Priority: 5
Date: Mon, 30 Jan 2017 02:30:03 +0000
Message-ID: <SYXPR01MB16157AC6FFBC54BA8A046AF6E54B0@SYXPR01MB1615.ausprd01.prod.outlook.com>
References: <CABkgnnUo-tf69AzJC=OUy2rjDZwedTd5Ua9mhOiJBqaA0VKrYw@mail.gmail.com> <SYXPR01MB16150F4D3D19CC69D18E1A09E57D0@SYXPR01MB1615.ausprd01.prod.outlook.com> <CABkgnnV_OatRWyZBE3Rak22gS1jrOZKjCGwOePpbqJCAeJFM4Q@mail.gmail.com> <SYXPR01MB1615DD56268D7EF9929F3DBFE5720@SYXPR01MB1615.ausprd01.prod.outlook.com> <20170123073623.GA28101@LK-Perkele-V2.elisa-laajakaista.fi> <SYXPR01MB1615798CC057FB3232B2FA4BE5720@SYXPR01MB1615.ausprd01.prod.outlook.com> <CABkgnnW4e+FOz+gsu6vZ2d9WOSv9Yohn+OejrNom9HCBiMrRWQ@mail.gmail.com> <SYXPR01MB1615AE56D810A0372AF811FCE5750@SYXPR01MB1615.ausprd01.prod.outlook.com> <CABkgnnWoSWCeV_TUwDY1J00ivY0TDgU_9NhiSWZpM4_F6XAYfA@mail.gmail.com> <SYXPR01MB1615C769ADDAF813BB32A65DE5760@SYXPR01MB1615.ausprd01.prod.outlook.com> <20170127072041.GA16072@LK-Perkele-V2.elisa-laajakaista.fi>
In-Reply-To: <20170127072041.GA16072@LK-Perkele-V2.elisa-laajakaista.fi>
Accept-Language: en-AU, en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=James.H.Manger@team.telstra.com; 
x-originating-ip: [203.41.142.244]
x-ms-office365-filtering-correlation-id: 4eeadf71-d38e-4ced-85fe-08d448b7e5f0
x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:SYXPR01MB1615;
x-microsoft-exchange-diagnostics: 1;SYXPR01MB1615;7:LrZ/RADLy8pOM0E52UsmeLGPGNfdn6tHP3iaj8LKQyCZaYAKWPLwtvdOZOBbQJtQMSiEwjKYiH1+tz/d+WSbtqPg+S9u74u9OtVz450b8AfU4VPH4IHqZvF7Zl16EbpFb8GqAm5fC9monQABwIBagM3VMOlyK+YY0C5Tm4+b6kFsP9Dcn+vevIIgif05IYCKyU0LcOogd+iwX8xNfS9jv4GpTlBgJuRqozkkxY+iGD93afECvrDfnBVXqIHwutnNb9i/ijW0uGvk9PdgHbHdeoc0UBrIeS2jrXA2uHRZeZ6ZWX3IApBpjP70ncymT3A3fNcnKdGI0W8RugmXaoQXxk/OaICQlLS2osNxYcIOdjNB2T6AG5ox4HVekXcDB+CDqcPhqaxsJGGtpjXjx+dklsiCsffoIPepwQYfjVOFr6Pxx+C0+l6QB7mFWcqrUOnnOKPy3zYk+3D66YoDDUb39Q==
x-microsoft-antispam-prvs: <SYXPR01MB16156DCF07EECB4586B4F11BE54B0@SYXPR01MB1615.ausprd01.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:;
x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040375)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6041248)(20161123564025)(20161123560025)(20161123562025)(20161123555025)(6072148);SRVR:SYXPR01MB1615;BCL:0;PCL:0;RULEID:;SRVR:SYXPR01MB1615;
x-forefront-prvs: 0203C93D51
x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(7916002)(39450400003)(189002)(199003)(122556002)(7696004)(4326007)(3280700002)(66066001)(33656002)(77096006)(3660700001)(2900100001)(229853002)(55016002)(99286003)(2906002)(6506006)(54906002)(38730400001)(92566002)(39060400001)(2351001)(6436002)(5640700003)(105586002)(15650500001)(9686003)(93886004)(106356001)(86362001)(25786008)(101416001)(110136003)(5660300001)(6116002)(97736004)(189998001)(3846002)(102836003)(81686999)(74316002)(50986999)(305945005)(7736002)(54356999)(53936002)(8676002)(8936002)(1730700003)(81166006)(76176999)(81156014)(68736007)(2501003)(2950100002)(6916009)(42882006);DIR:OUT;SFP:1102;SCL:1;SRVR:SYXPR01MB1615;H:SYXPR01MB1615.ausprd01.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:0;LANG:en;
received-spf: None (protection.outlook.com: team.telstra.com does not designate permitted sender hosts)
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Jan 2017 02:30:03.9082 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 49dfc6a3-5fb7-49f4-adea-c54e725bb854
X-MS-Exchange-Transport-CrossTenantHeadersStamped: SYXPR01MB1615
X-OriginatorOrg: team.telstra.com
Received-SPF: none client-ip=203.35.82.208; envelope-from=James.H.Manger@team.telstra.com; helo=ipxcno.tcif.telstra.com.au
X-W3C-Hub-Spam-Status: No, score=-2.1
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, W3C_NW=0.5
X-W3C-Scan-Sig: mimas.w3.org 1cY1jq-0004p5-77 4b0a6d6dc96e29be937cb2a7c86ef0de
X-Original-To: ietf-http-wg@w3.org
Subject: RE: aes128gcm: why verify padding?
Archived-At: <http://www.w3.org/mid/SYXPR01MB16157AC6FFBC54BA8A046AF6E54B0@SYXPR01MB1615.ausprd01.prod.outlook.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33388
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>

Pj4gSSB3YXMgaG9waW5nIGZvciBhbiBhbnRpLXRydW5jYXRpb24gbWVjaGFuaXNtIHRoYXQgZGlk
bid0IGRlcGVuZCBpbiBhDQo+PiBub3QtY29tcGxldGVseS1vYnZpb3VzLXRvLW1lIG1hbm5lciBv
biBhIHNlZW1pbmdseSBxdWl0ZSBzZXBhcmF0ZSBhc3BlY3Q6DQo+PiB0aGUgS0RGLiBGb3IgaW5z
dGFuY2UsIGV2ZW4gd2l0aCBubyBLREYgKGZvciBrZXkgb3Igbm9uY2UpIGhhdmluZyBhIGJ5dGUN
Cj4+IGRpc3Rpbmd1aXNoaW5nIHN0YXJ0L21pZGRsZS9lbmQgd291bGQgYmUgc3VmZmljaWVudCB0
byBhdXRoZW50aWNhdGUgeW91DQo+PiBoYXZlIHJlY2VpdmVkIGFuIGF1dGhlbnRpYyBwcmVmaXgg
b3Igc3VmZml4IG9yIGNvbXBsZXRlIG1lc3NhZ2UuDQoNCj4gQWN0dWFsbHksIGlmIHlvdSBkb24n
dCB1c2UgS0RGIHRvIG9idGFpbiB0aGUgbm9uY2UgYmFzZSB0b2dldGhlciB3aXRoDQo+IHRoZSBr
ZXksIGF0dGFja2VyIGNhbiBjb3JydXB0IG1lc3NhZ2VzIHVubGVzcyB5b3UgYWN0dWFsbHkgdmVy
aWZ5IHRoYXQNCj4gdGhlIHN0YXJ0IGJsb2NrIGlzIGluIGl0cyBwcm9wZXIgcGxhY2UuDQoNCklz
IHRoaXMgYmVjYXVzZSB0aGUgc2NoZW1lIHVzZXMgTm9uY2UgWE9SIEluZGV4IChub3QgTm9uY2Ug
KyBJbmRleCk/DQpHaXZlbiAyIHZhbGlkIEFFQURzLCB5b3UgY2FuIGdldCB0aGUgWE9SIG9mIHRo
ZWlyIGluZGljZXMgYnV0IHRoYXQgaXNuJ3QgZW5vdWdoIHRvIHRlbGwgaG93IGZhciBhcGFydCB0
aGV5IGFyZSBpbiBhIHNlcXVlbmNlLiBJdCBpc24ndCBldmVuIHN1ZmZpY2llbnQgdG8gdGVsbCB0
aGF0IG9uZSBjb21lcyByaWdodCBiZWZvcmUgdGhlIG90aGVyLiBIZW5jZSwgeW91IHJlYWxseSBu
ZWVkIHRvIGdldCB0aGUgQUVBRCBtYXJrZWQgInN0YXJ0IiBmaXJzdCAob3IgZ2V0IHRoZSBzYWx0
IGZyb20gd2hpY2ggdGhlICJzdGFydCIgcmVjb3JkJ3Mgbm9uY2UgaXMgZGVyaXZlZCkuDQoNCj4g
VGhpcyBpcyBiZWNhdXNlIGlmIGF0dGFja2VyIGNhbiBjaG9vc2Ugbm9uY2ViYXNlLCBhdHRhY2tl
ciBjYW4gcmVvcmRlcg0KPiB0aGUgYmxvY2tzIHNvIGFsbCBkZWNyeXB0IHByb3Blcmx5Lg0KPg0K
PiBVc2luZyBLREYgcHJldmVudHMgdGhpcyBiZWNhdXNlIGF0dGFja2VyIGNhbid0IHByb2R1Y2Ug
c3VpdGFibHkNCj4gcmVsYXRlZCBub25jZWJhc2UgcGFpcnMgZm9yIHRoZSBzYW1lIGtleQ0KDQot
LQ0KSmFtZXMgTWFuZ2VyDQo=


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Sun Jan 29 19:22:49 2017
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 14608120726 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 29 Jan 2017 19:22:49 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.719
X-Spam-Level:
X-Spam-Status: No, score=-9.719 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, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=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 6ObR3YW6CA9B for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 29 Jan 2017 19:22:48 -0800 (PST)
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 133DD126CD8 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sun, 29 Jan 2017 19:22:47 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cY2W3-0004b6-6V for ietf-http-wg-dist@listhub.w3.org; Mon, 30 Jan 2017 03:20:27 +0000
Resent-Date: Mon, 30 Jan 2017 03:20:27 +0000
Resent-Message-Id: <E1cY2W3-0004b6-6V@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <martin.thomson@gmail.com>) id 1cY2Vx-0004XT-L0 for ietf-http-wg@listhub.w3.org; Mon, 30 Jan 2017 03:20:21 +0000
Received: from mail-qk0-f176.google.com ([209.85.220.176]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <martin.thomson@gmail.com>) id 1cY2Vr-00064I-Fa for ietf-http-wg@w3.org; Mon, 30 Jan 2017 03:20:16 +0000
Received: by mail-qk0-f176.google.com with SMTP id u25so116633343qki.2 for <ietf-http-wg@w3.org>; Sun, 29 Jan 2017 19:19:55 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=kX4nTU9lMd6OeGy8lI4uNJGMKTj9OXHLTA2T/Wl7Zlk=; b=Pd1/tSWjZxyz+lxz5ZbgVGVtqDl3OdtaBImvW+d+2ejgAmbony/RYBfX04L2AhoSMV /CZH6w/lIE1a2hrXT8Qih/G5olU+1s6u2cX868V7vD+OMDKPR04EEkzujPw6Ylqi7jdY q571+nFzUuIqKbXw6VngJbBK8QIr/z6YDxQ/739fXy+3MhcZpmQqi+bS8bQPckorEaa7 Frmran0UhDZ2XfRFW0FzBjSlSRkUxfdCeKe/dK0TWGBU8yPVFWS9Pa0D3kfKr6ZrR9Jx BCMxU4aw9Sps4oeNbbhG06/LF9oq+oirOhkCkuRolitWmSkTZf9Ks+yGJZ6u96JrecyI 8NNg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=kX4nTU9lMd6OeGy8lI4uNJGMKTj9OXHLTA2T/Wl7Zlk=; b=DFSq3M2eRTEAJe5aWo5oCarolglIlLmS8ynA4P8GSHJ8o/zXlpIqXYr4PX8/Wd+A0U pCRXo/u3RsUSg5xKe8eA3A0esHkipwTp9dilNmDnt6M3rH+trXifqKqcSfSW4L8fhjXY A83J1PiO487QAaeiLWzyg4ojXFbUQwuJEPW9RH2ntcHO6/4KHO489GgwyMdS9N8Pq5CO M0ib6pKFY4vgKAv84hmS5/RDOFBmZ/tWlSlZZJCy8p7TiaEEneYwUTgFOeCYUoj85/KB zMqnqrl8nHAnbLePC0qb1gfqwcJtWlwBcH9x/gInZCTFWyFoMduMNa2nTrJGDtWe6msu semA==
X-Gm-Message-State: AIkVDXJqCmG+RJ1fg2DXki6TAdn30SD2+KcGZuEbOSz74t9A1rwHqN/fTSu0U9AEt0wdxWNWKXja12lr5QyatQ==
X-Received: by 10.55.27.65 with SMTP id b62mr20811560qkb.202.1485746389497; Sun, 29 Jan 2017 19:19:49 -0800 (PST)
MIME-Version: 1.0
Received: by 10.140.19.112 with HTTP; Sun, 29 Jan 2017 19:19:49 -0800 (PST)
In-Reply-To: <SYXPR01MB16157AC6FFBC54BA8A046AF6E54B0@SYXPR01MB1615.ausprd01.prod.outlook.com>
References: <CABkgnnUo-tf69AzJC=OUy2rjDZwedTd5Ua9mhOiJBqaA0VKrYw@mail.gmail.com> <SYXPR01MB16150F4D3D19CC69D18E1A09E57D0@SYXPR01MB1615.ausprd01.prod.outlook.com> <CABkgnnV_OatRWyZBE3Rak22gS1jrOZKjCGwOePpbqJCAeJFM4Q@mail.gmail.com> <SYXPR01MB1615DD56268D7EF9929F3DBFE5720@SYXPR01MB1615.ausprd01.prod.outlook.com> <20170123073623.GA28101@LK-Perkele-V2.elisa-laajakaista.fi> <SYXPR01MB1615798CC057FB3232B2FA4BE5720@SYXPR01MB1615.ausprd01.prod.outlook.com> <CABkgnnW4e+FOz+gsu6vZ2d9WOSv9Yohn+OejrNom9HCBiMrRWQ@mail.gmail.com> <SYXPR01MB1615AE56D810A0372AF811FCE5750@SYXPR01MB1615.ausprd01.prod.outlook.com> <CABkgnnWoSWCeV_TUwDY1J00ivY0TDgU_9NhiSWZpM4_F6XAYfA@mail.gmail.com> <SYXPR01MB1615C769ADDAF813BB32A65DE5760@SYXPR01MB1615.ausprd01.prod.outlook.com> <20170127072041.GA16072@LK-Perkele-V2.elisa-laajakaista.fi> <SYXPR01MB16157AC6FFBC54BA8A046AF6E54B0@SYXPR01MB1615.ausprd01.prod.outlook.com>
From: Martin Thomson <martin.thomson@gmail.com>
Date: Mon, 30 Jan 2017 14:19:49 +1100
Message-ID: <CABkgnnXYc3V3FoVH_TsBUMZes5r3uZaTLs4zdFPXNMg178ppFw@mail.gmail.com>
To: "Manger, James" <James.H.Manger@team.telstra.com>
Cc: "ilariliusvaara@welho.com" <ilariliusvaara@welho.com>, "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=209.85.220.176; envelope-from=martin.thomson@gmail.com; helo=mail-qk0-f176.google.com
X-W3C-Hub-Spam-Status: No, score=-6.3
X-W3C-Hub-Spam-Report: AWL=0.338, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-1.156, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1cY2Vr-00064I-Fa 57aa2a4c4d248851bde77751a39d780c
X-Original-To: ietf-http-wg@w3.org
Subject: Re: aes128gcm: why verify padding?
Archived-At: <http://www.w3.org/mid/CABkgnnXYc3V3FoVH_TsBUMZes5r3uZaTLs4zdFPXNMg178ppFw@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33389
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 30 January 2017 at 13:30, Manger, James
<James.H.Manger@team.telstra.com> wrote:
>> Actually, if you don't use KDF to obtain the nonce base together with
>> the key, attacker can corrupt messages unless you actually verify that
>> the start block is in its proper place.
>
> Is this because the scheme uses Nonce XOR Index (not Nonce + Index)?

Not exactly.  The theoretical attack (if I understood Ilari correctly)
is if you had an explicit nonce on each record.  For instance, the
nonce is the first 12 octets of the ciphertext.  At that point, an
attacker would be more capable of performing interchanging any two
records.

That's different to your concern regarding dropping of some number of
records and producing a valid sequence of records.

Even assuming that you find an input that produces the same key while
allowing you to control the nonce, you would be stuck with the
interesting problem of finding a pattern of records that fit the XOR
pattern. If there were only two records, dropping the first is
trivial.  If there were three records and you wanted to keep two of
them, you have to switch the second and third to fit the pattern,
which would run afoul of the padding delimiter check.

Given that you would know the key at this point, I'd suggest that
constructing a new message would be easier.


> Given 2 valid AEADs, you can get the XOR of their indices but that isn't =
enough to tell how far apart they are in a sequence. It isn't even sufficie=
nt to tell that one comes right before the other. Hence, you really need to=
 get the AEAD marked "start" first (or get the salt from which the "start" =
record's nonce is derived).

Are you saying that you can feed random data into your oracle until it
accepts two records?  And that you used the same key to generate that
random data?  Assuming those preconditions, I agree that you can get
the XOR of the indices of these records.  But you must have known
those indices because the oracle we're designing only accepts records
at those indices.

Even if you could do what you suggest (with a different oracle
perhaps), I think that you are right in suggesting that that isn't
much use.  You have just won every lottery on the planet in the same
week, and still that information doesn't seem very useful.


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Sun Jan 29 21:02:59 2017
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 0E06712940F for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 29 Jan 2017 21:02:59 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.719
X-Spam-Level:
X-Spam-Status: No, score=-9.719 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, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=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 fIJSHLxge-iQ for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 29 Jan 2017 21:02:58 -0800 (PST)
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 E1C9A129408 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sun, 29 Jan 2017 21:02:57 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cY448-0002nX-4o for ietf-http-wg-dist@listhub.w3.org; Mon, 30 Jan 2017 04:59:44 +0000
Resent-Date: Mon, 30 Jan 2017 04:59:44 +0000
Resent-Message-Id: <E1cY448-0002nX-4o@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <martin.thomson@gmail.com>) id 1cY442-0002mJ-SH for ietf-http-wg@listhub.w3.org; Mon, 30 Jan 2017 04:59:38 +0000
Received: from mail-qt0-f182.google.com ([209.85.216.182]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <martin.thomson@gmail.com>) id 1cY43v-0002Gk-K3 for ietf-http-wg@w3.org; Mon, 30 Jan 2017 04:59:32 +0000
Received: by mail-qt0-f182.google.com with SMTP id x49so193372847qtc.2 for <ietf-http-wg@w3.org>; Sun, 29 Jan 2017 20:59:11 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=o0z4UWJuCiJyqsMowbGrUznd9QbicR+4RgaeZ3FAXYM=; b=Rsv4QLaMTpj3hnmOwngpbtVIvc/y8YQzVcoCh0JTgCCvr35iWnRxg5kKkd9RuubF1z Xxswnbu71QNyWCWXMksYezZc1rUCaQemRsMYF2AdgINd2TZu0mNLcOgWdslHdFquq0+p N7ZAKDJzl0PTd2YkPFqRmlqV9KYnBJLO7kd8/dYb6M70m53j8vhEbXFPYtuVwbKCvyFo rU9+xBfPKZnluA1qwlneECS31sAUHDyJVDpl/5i0yb6brUvsougLC3+F05JkCeyjw5Qc h7FyK997BTpWlMu98FQOuAAy+bru6KHYVEP94HZtgoXyIjazE5o4wZFjoXs7faEd2KB6 92HQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=o0z4UWJuCiJyqsMowbGrUznd9QbicR+4RgaeZ3FAXYM=; b=pdo4AJjDQ8rjlw0FQatvUqZ3hkH98q+WSQEQB7bmLe25XKSaHo3892y+BA606na2Sw sZq71tReQlcFOgm2HcXPSwwK6cZrfa/3N0T58pBqTVYeSOPLEXDhRNuycub3SY/dIneI lOoJDRxRKDfKpJx3uVm4dCfJaXD1ra+mWQuU84CRkF+ZWPLRNFuVZKybks/rxxtD6eEn EhBwJGUXUIpExmgklmWrw3IU7AZiTZ6XPhZ8KYrUQhswwNvY3eQqL0Ctv/VSECnCqXRn RI4mAa/jxECawqN8CmFySfL4RbCPYHEfBUx+YxUvXWAdGLRhogaPemk/UGjy1pNdPijN FM4Q==
X-Gm-Message-State: AIkVDXI38ogxjwtsAx2aykNQ9O7cbJnhkVqcrDyCoOU3/GWajgY43IsLMYkvU9JY6Cc5i+w/LvuNQnn9w14TjA==
X-Received: by 10.200.53.247 with SMTP id l52mr18875489qtb.144.1485752345806; Sun, 29 Jan 2017 20:59:05 -0800 (PST)
MIME-Version: 1.0
Received: by 10.140.19.112 with HTTP; Sun, 29 Jan 2017 20:59:05 -0800 (PST)
From: Martin Thomson <martin.thomson@gmail.com>
Date: Mon, 30 Jan 2017 15:59:05 +1100
Message-ID: <CABkgnnVtKUL3LYh1KLgY=O-Bpp7LUHXA88oVSmjS6_T=owAerQ@mail.gmail.com>
To: HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: text/plain; charset=UTF-8
Received-SPF: pass client-ip=209.85.216.182; envelope-from=martin.thomson@gmail.com; helo=mail-qt0-f182.google.com
X-W3C-Hub-Spam-Status: No, score=-6.1
X-W3C-Hub-Spam-Report: AWL=0.120, 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, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cY43v-0002Gk-K3 ff726151113de983ca82450a8d5d18bf
X-Original-To: ietf-http-wg@w3.org
Subject: Change to padding in encryption
Archived-At: <http://www.w3.org/mid/CABkgnnVtKUL3LYh1KLgY=O-Bpp7LUHXA88oVSmjS6_T=owAerQ@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33390
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>

Based on the discussion thus far, I've put together a PR that changes
how padding works.

https://github.com/httpwg/http-extensions/pull/283


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Sun Jan 29 21:26:54 2017
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 BC4BA129413 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 29 Jan 2017 21:26:54 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.119
X-Spam-Level:
X-Spam-Status: No, score=-10.119 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-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=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=teamtelstra.onmicrosoft.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 ZCDgnlP0kGZM for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 29 Jan 2017 21:26:53 -0800 (PST)
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 8D324129408 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sun, 29 Jan 2017 21:26:53 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cY4RV-0001pY-OZ for ietf-http-wg-dist@listhub.w3.org; Mon, 30 Jan 2017 05:23:53 +0000
Resent-Date: Mon, 30 Jan 2017 05:23:53 +0000
Resent-Message-Id: <E1cY4RV-0001pY-OZ@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <James.H.Manger@team.telstra.com>) id 1cY4RO-0001oK-Lq for ietf-http-wg@listhub.w3.org; Mon, 30 Jan 2017 05:23:46 +0000
Received: from ipxbvo.tcif.telstra.com.au ([203.35.135.204]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <James.H.Manger@team.telstra.com>) id 1cY4RH-00041k-54 for ietf-http-wg@w3.org; Mon, 30 Jan 2017 05:23:41 +0000
X-IronPort-AV: E=Sophos;i="5.33,310,1477918800";  d="scan'208";a="135380756"
Received: from unknown (HELO ipcavi.tcif.telstra.com.au) ([10.97.217.200]) by ipobvi.tcif.telstra.com.au with ESMTP; 30 Jan 2017 16:23:06 +1100
X-IronPort-AV: E=McAfee;i="5700,7163,8423"; a="387300702"
Received: from wsmsg3706.srv.dir.telstra.com ([172.49.40.80]) by ipcavi.tcif.telstra.com.au with ESMTP; 30 Jan 2017 16:23:05 +1100
Received: from wsapp5871.srv.dir.telstra.com (10.75.139.13) by wsmsg3706.srv.dir.telstra.com (172.49.40.80) with Microsoft SMTP Server (TLS) id 8.3.485.1; Mon, 30 Jan 2017 16:23:05 +1100
Received: from wsapp5585.srv.dir.telstra.com (10.75.3.67) by wsapp5871.srv.dir.telstra.com (10.75.139.13) with Microsoft SMTP Server (TLS) id 15.0.1236.3; Mon, 30 Jan 2017 16:23:05 +1100
Received: from AUS01-SY3-obe.outbound.protection.outlook.com (10.172.229.125) by wsapp5585.srv.dir.telstra.com (10.75.3.67) with Microsoft SMTP Server (TLS) id 15.0.1236.3 via Frontend Transport; Mon, 30 Jan 2017 16:23:05 +1100
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=teamtelstra.onmicrosoft.com; s=selector1-team-telstra-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=Ivm8o/tKTtbKHzBJ+hz2D9c892VAL52WSflEDDW/PXw=; b=ForLcbcmdQuGNq65J7sBlqAYmJTJfgyHEn4mLg0j2pGz5Bx1Djxr9ciLN21jZ8TVr+pGC8o2AaHDQqSRcBDn1pPY4W6g0Yw+XBSAxjnNky/me8gdd/WhHvhwi2b6UsJelhKiKWBvo/s1iVxIK5nXrSsHZ5k2rleLIZlMgeA5FZ8=
Received: from SYXPR01MB1615.ausprd01.prod.outlook.com (10.175.209.15) by SYXPR01MB1615.ausprd01.prod.outlook.com (10.175.209.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.860.13; Mon, 30 Jan 2017 05:23:03 +0000
Received: from SYXPR01MB1615.ausprd01.prod.outlook.com ([10.175.209.15]) by SYXPR01MB1615.ausprd01.prod.outlook.com ([10.175.209.15]) with mapi id 15.01.0860.024; Mon, 30 Jan 2017 05:23:03 +0000
From: "Manger, James" <James.H.Manger@team.telstra.com>
To: Martin Thomson <martin.thomson@gmail.com>
CC: "ilariliusvaara@welho.com" <ilariliusvaara@welho.com>, "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
Thread-Topic: aes128gcm: why verify padding?
Thread-Index: AdJvg9D1nChV1RXVTGiVAO+6sRrzlwADDv6AAAAcAeAADb7rAAFW7FVwAAoO2IAACMzpgAAYx0WAAAAn4DAAZJKWgAAzIAMQAA8vZIAAi3LTUAADA3iAAAC57JA=
Date: Mon, 30 Jan 2017 05:23:03 +0000
Message-ID: <SYXPR01MB16153632AEC9FCA5889C9EB1E54B0@SYXPR01MB1615.ausprd01.prod.outlook.com>
References: <CABkgnnUo-tf69AzJC=OUy2rjDZwedTd5Ua9mhOiJBqaA0VKrYw@mail.gmail.com> <SYXPR01MB16150F4D3D19CC69D18E1A09E57D0@SYXPR01MB1615.ausprd01.prod.outlook.com> <CABkgnnV_OatRWyZBE3Rak22gS1jrOZKjCGwOePpbqJCAeJFM4Q@mail.gmail.com> <SYXPR01MB1615DD56268D7EF9929F3DBFE5720@SYXPR01MB1615.ausprd01.prod.outlook.com> <20170123073623.GA28101@LK-Perkele-V2.elisa-laajakaista.fi> <SYXPR01MB1615798CC057FB3232B2FA4BE5720@SYXPR01MB1615.ausprd01.prod.outlook.com> <CABkgnnW4e+FOz+gsu6vZ2d9WOSv9Yohn+OejrNom9HCBiMrRWQ@mail.gmail.com> <SYXPR01MB1615AE56D810A0372AF811FCE5750@SYXPR01MB1615.ausprd01.prod.outlook.com> <CABkgnnWoSWCeV_TUwDY1J00ivY0TDgU_9NhiSWZpM4_F6XAYfA@mail.gmail.com> <SYXPR01MB1615C769ADDAF813BB32A65DE5760@SYXPR01MB1615.ausprd01.prod.outlook.com> <20170127072041.GA16072@LK-Perkele-V2.elisa-laajakaista.fi> <SYXPR01MB16157AC6FFBC54BA8A046AF6E54B0@SYXPR01MB1615.ausprd01.prod.outlook.com> <CABkgnnXYc3V3FoVH_TsBUMZes5r3uZaTLs4zdFPXNMg178ppFw@mail.gmail.com>
In-Reply-To: <CABkgnnXYc3V3FoVH_TsBUMZes5r3uZaTLs4zdFPXNMg178ppFw@mail.gmail.com>
Accept-Language: en-AU, en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=James.H.Manger@team.telstra.com; 
x-originating-ip: [203.41.142.244]
x-ms-office365-filtering-correlation-id: 0b927ede-2c23-47dd-31d1-08d448d01096
x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:SYXPR01MB1615;
x-microsoft-exchange-diagnostics: 1;SYXPR01MB1615;7:GR/aTBDxW/5VXMHeGjmbKkvSoQQ1z/walvZneGIyKCcs3jO7+UkUOhxixLzjUxKb/kqYJiFtl6cEd0PIGZKCwrEJsb0Vg575jwvbN1PXPB4Llpxdc0yg9FoDsJESaRUt/iuCoaG2YgVCvOfUUrBDN6pqQckd9GK2x6EsZ7Ame6CN+k83HyAFwWCpuYQ3PfCmIPwPtbZAaLCZ314kXMlVPx0o75EJgpiy+w6j8d0jxxWhmMBTTCSrO5lbaeOtLKEdT6JiQC2C2I6T79PiZ4BSlq9InJvpEomXE/Tp4YbScYkAcJ8F/g7njJi1LcIK71rtDv6w/Sovc9JtpgYYAC1xwoaBf8UTTGh+JmoW4cHJ4ealIyVanZLUnInTe7HLTwN8s0JU4GWKHRlxsiaN60m6ZeKke96EqANyhkjolN+1QlGhpEsLJJtVg9w3CxBRcFIETpi39hpS+bdL+WHwefR8KQ==
x-microsoft-antispam-prvs: <SYXPR01MB161514A10B95A0FA6FBEF79EE54B0@SYXPR01MB1615.ausprd01.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(272811157607776)(67441168502697);
x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040375)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6041248)(20161123564025)(20161123560025)(20161123562025)(20161123555025)(6072148);SRVR:SYXPR01MB1615;BCL:0;PCL:0;RULEID:;SRVR:SYXPR01MB1615;
x-forefront-prvs: 0203C93D51
x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(7916002)(39450400003)(199003)(13464003)(24454002)(377454003)(51444003)(189002)(74316002)(50986999)(305945005)(7736002)(10000500002)(5660300001)(3846002)(189998001)(102836003)(6116002)(97736004)(68736007)(81156014)(76176999)(2950100002)(42882006)(6916009)(8676002)(54356999)(53936002)(81166006)(8936002)(38730400001)(92566002)(2900100001)(6506006)(54906002)(2906002)(55016002)(99286003)(229853002)(39060400001)(4326007)(7696004)(122556002)(77096006)(33656002)(3280700002)(3660700001)(66066001)(86362001)(25786008)(110136003)(101416001)(106356001)(6436002)(105586002)(93886004)(10750500005)(9686003)(15650500001);DIR:OUT;SFP:1102;SCL:1;SRVR:SYXPR01MB1615;H:SYXPR01MB1615.ausprd01.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:0;MX:1;LANG:en;
received-spf: None (protection.outlook.com: team.telstra.com does not designate permitted sender hosts)
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Jan 2017 05:23:03.3447 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 49dfc6a3-5fb7-49f4-adea-c54e725bb854
X-MS-Exchange-Transport-CrossTenantHeadersStamped: SYXPR01MB1615
X-OriginatorOrg: team.telstra.com
Received-SPF: none client-ip=203.35.135.204; envelope-from=James.H.Manger@team.telstra.com; helo=ipxbvo.tcif.telstra.com.au
X-W3C-Hub-Spam-Status: No, score=-2.1
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, W3C_NW=0.5
X-W3C-Scan-Sig: titan.w3.org 1cY4RH-00041k-54 b96eb8c5c8d9d04be4911eea7cf2cc16
X-Original-To: ietf-http-wg@w3.org
Subject: RE: aes128gcm: why verify padding?
Archived-At: <http://www.w3.org/mid/SYXPR01MB16153632AEC9FCA5889C9EB1E54B0@SYXPR01MB1615.ausprd01.prod.outlook.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33391
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>

TXkgdGhvdWdoIGV4cGVyaW1lbnQgd2FzIHRvIGhhdmUgYSB2ZXJ5IHNpbXBseSBzaXR1YXRpb246
IGEga2V5IGFuZCBhIGNvdW50ZXIgdG8gdXNlIGFzIHRoZSBub25jZS4gVG8gc2VuZCBhIG1lc3Nh
Z2UgaW4sIHNheSwgMyBBRUFEIHBhcnRzIHVzZSBub25jZXMgIDEsIDIsIDM7IHRvIHNlbmQgdGhl
IG5leHQgbWVzc2FnZSBpbiwgc2F5LCAyIHBhcnRzIHVzZSBub25jZXMgNCAmIDU7IGFuZCB0aGUg
bmV4dCBtZXNzYWdlIGluIDEgcGFydCB1c2VzIG5vbmNlIDYuIEFzIGxvbmcgYXMgcmVjb3JkcyB0
aGF0IHN0YXJ0IGEgbWVzc2FnZSBhcmUgZmxhZ2dlZCAoMSwgNCwgJiA2IGhlcmUpIGFuZCByZWNv
cmRzIHRoYXQgZW5kIGEgbWVzc2FnZSBhcmUgZmxhZ2dlZCAoMywgNSwgJiA2IGhlcmUpIEkgdGhp
bmsgdGhpcyBzaW1wbGUgc2NoZW1lIGNhbiB3b3JrOiBhIHJlY2VpdmVyIGNhbiB0ZWxsIHdoZW4g
YSBidW5jaCBvZiByZWNvcmRzIGFyZSBhbiBhdXRoZW50aWMgc2VxdWVuY2UgKHByZWZpeCwgc3Vm
Zml4LCBvciBpbiB0aGUgbWlkZGxlKTsgdGhvdWdoIG5vdCB3aGVuIHNlcGFyYXRlIHNlcXVlbmNl
cyBhcmUgcGFydCBvZiB0aGUgc2FtZSBtZXNzYWdlIHdpdGhvdXQgam9pbmluZyB0aGVtIChubyBz
dGFydC9lbmQgZmxhZ3MgaW4gYmV0d2VlbikuDQoNClVzaW5nIFhPUiwgaW5zdGVhZCBvZiArLCBj
YW4gc3RpbGwgd29yazsgYnV0IGEgcmVjZWl2ZXIgY2FuIG9ubHkgcmVhbGx5IGF1dGhlbnRpY2F0
ZSBmcm9tIHRoZSBzdGFydC4NCg0KVXNpbmcgdGhlIEtERiBzZWVtcyB0byBtZWFuOiB5b3Uga25v
dyByZWNvcmRzIGFyZSBwYXJ0IG9mIHRoZSBzYW1lIG1lc3NhZ2UgKHNhbWUgc2FsdCk7IHlvdSBr
bm93IGEgcmVjb3JkJ3MgcG9zaXRpb24gKGV2ZW4gaWYgdXNpbmcgWE9SLCBub3QgKyk7IHlvdSBr
bm93IHdoZXJlIHRoZSBzdGFydCBpcyBzbyB5b3UgZG9uJ3QgbmVlZCB0byBkaXN0aW5ndWlzaCBz
dGFydCAmIG1pZGRsZS4NCg0KQSBzdGFydC9taWRkbGUvZW5kIGluZGljYXRvciBpcyBuZWNlc3Nh
cnkgZm9yIHRoZSBzaW1wbGVzdCBzY2hlbWVzLg0KQSBub3QtZW5kL2VuZCBpbmRpY2F0b3IgaXMg
c3VmZmljaWVudCBmb3IgdGhlIGFlczEyOGdjbSBzY2hlbWUsIHRoYW5rcyB0byB0aGUgS0RGLg0K
TXkganVkZ2VtZW50IGlzIHRoYXQgc3RhcnQvbWlkZGxlL2VuZCBpcyBtb3JlIGdlbmVyaWMsIHdp
dGggdmVyeSBsaXR0bGUgZXh0cmEgY29tcGxleGl0eSAoYnV0IGlmIEknbSBpbiB0aGUgcm91Z2gg
c28gYmUgaXQpLg0KDQotLQ0KSmFtZXMgTWFuZ2VyDQoNCg0KDQotLS0tLU9yaWdpbmFsIE1lc3Nh
Z2UtLS0tLQ0KRnJvbTogTWFydGluIFRob21zb24gW21haWx0bzptYXJ0aW4udGhvbXNvbkBnbWFp
bC5jb21dIA0KU2VudDogTW9uZGF5LCAzMCBKYW51YXJ5IDIwMTcgMjoyMCBQTQ0KVG86IE1hbmdl
ciwgSmFtZXMgPEphbWVzLkguTWFuZ2VyQHRlYW0udGVsc3RyYS5jb20+DQpDYzogaWxhcmlsaXVz
dmFhcmFAd2VsaG8uY29tOyBpZXRmLWh0dHAtd2dAdzMub3JnDQpTdWJqZWN0OiBSZTogYWVzMTI4
Z2NtOiB3aHkgdmVyaWZ5IHBhZGRpbmc/DQoNCk9uIDMwIEphbnVhcnkgMjAxNyBhdCAxMzozMCwg
TWFuZ2VyLCBKYW1lcw0KPEphbWVzLkguTWFuZ2VyQHRlYW0udGVsc3RyYS5jb20+IHdyb3RlOg0K
Pj4gQWN0dWFsbHksIGlmIHlvdSBkb24ndCB1c2UgS0RGIHRvIG9idGFpbiB0aGUgbm9uY2UgYmFz
ZSB0b2dldGhlciB3aXRoDQo+PiB0aGUga2V5LCBhdHRhY2tlciBjYW4gY29ycnVwdCBtZXNzYWdl
cyB1bmxlc3MgeW91IGFjdHVhbGx5IHZlcmlmeSB0aGF0DQo+PiB0aGUgc3RhcnQgYmxvY2sgaXMg
aW4gaXRzIHByb3BlciBwbGFjZS4NCj4NCj4gSXMgdGhpcyBiZWNhdXNlIHRoZSBzY2hlbWUgdXNl
cyBOb25jZSBYT1IgSW5kZXggKG5vdCBOb25jZSArIEluZGV4KT8NCg0KTm90IGV4YWN0bHkuICBU
aGUgdGhlb3JldGljYWwgYXR0YWNrIChpZiBJIHVuZGVyc3Rvb2QgSWxhcmkgY29ycmVjdGx5KQ0K
aXMgaWYgeW91IGhhZCBhbiBleHBsaWNpdCBub25jZSBvbiBlYWNoIHJlY29yZC4gIEZvciBpbnN0
YW5jZSwgdGhlDQpub25jZSBpcyB0aGUgZmlyc3QgMTIgb2N0ZXRzIG9mIHRoZSBjaXBoZXJ0ZXh0
LiAgQXQgdGhhdCBwb2ludCwgYW4NCmF0dGFja2VyIHdvdWxkIGJlIG1vcmUgY2FwYWJsZSBvZiBw
ZXJmb3JtaW5nIGludGVyY2hhbmdpbmcgYW55IHR3bw0KcmVjb3Jkcy4NCg0KVGhhdCdzIGRpZmZl
cmVudCB0byB5b3VyIGNvbmNlcm4gcmVnYXJkaW5nIGRyb3BwaW5nIG9mIHNvbWUgbnVtYmVyIG9m
DQpyZWNvcmRzIGFuZCBwcm9kdWNpbmcgYSB2YWxpZCBzZXF1ZW5jZSBvZiByZWNvcmRzLg0KDQpF
dmVuIGFzc3VtaW5nIHRoYXQgeW91IGZpbmQgYW4gaW5wdXQgdGhhdCBwcm9kdWNlcyB0aGUgc2Ft
ZSBrZXkgd2hpbGUNCmFsbG93aW5nIHlvdSB0byBjb250cm9sIHRoZSBub25jZSwgeW91IHdvdWxk
IGJlIHN0dWNrIHdpdGggdGhlDQppbnRlcmVzdGluZyBwcm9ibGVtIG9mIGZpbmRpbmcgYSBwYXR0
ZXJuIG9mIHJlY29yZHMgdGhhdCBmaXQgdGhlIFhPUg0KcGF0dGVybi4gSWYgdGhlcmUgd2VyZSBv
bmx5IHR3byByZWNvcmRzLCBkcm9wcGluZyB0aGUgZmlyc3QgaXMNCnRyaXZpYWwuICBJZiB0aGVy
ZSB3ZXJlIHRocmVlIHJlY29yZHMgYW5kIHlvdSB3YW50ZWQgdG8ga2VlcCB0d28gb2YNCnRoZW0s
IHlvdSBoYXZlIHRvIHN3aXRjaCB0aGUgc2Vjb25kIGFuZCB0aGlyZCB0byBmaXQgdGhlIHBhdHRl
cm4sDQp3aGljaCB3b3VsZCBydW4gYWZvdWwgb2YgdGhlIHBhZGRpbmcgZGVsaW1pdGVyIGNoZWNr
Lg0KDQpHaXZlbiB0aGF0IHlvdSB3b3VsZCBrbm93IHRoZSBrZXkgYXQgdGhpcyBwb2ludCwgSSdk
IHN1Z2dlc3QgdGhhdA0KY29uc3RydWN0aW5nIGEgbmV3IG1lc3NhZ2Ugd291bGQgYmUgZWFzaWVy
Lg0KDQoNCj4gR2l2ZW4gMiB2YWxpZCBBRUFEcywgeW91IGNhbiBnZXQgdGhlIFhPUiBvZiB0aGVp
ciBpbmRpY2VzIGJ1dCB0aGF0IGlzbid0IGVub3VnaCB0byB0ZWxsIGhvdyBmYXIgYXBhcnQgdGhl
eSBhcmUgaW4gYSBzZXF1ZW5jZS4gSXQgaXNuJ3QgZXZlbiBzdWZmaWNpZW50IHRvIHRlbGwgdGhh
dCBvbmUgY29tZXMgcmlnaHQgYmVmb3JlIHRoZSBvdGhlci4gSGVuY2UsIHlvdSByZWFsbHkgbmVl
ZCB0byBnZXQgdGhlIEFFQUQgbWFya2VkICJzdGFydCIgZmlyc3QgKG9yIGdldCB0aGUgc2FsdCBm
cm9tIHdoaWNoIHRoZSAic3RhcnQiIHJlY29yZCdzIG5vbmNlIGlzIGRlcml2ZWQpLg0KDQpBcmUg
eW91IHNheWluZyB0aGF0IHlvdSBjYW4gZmVlZCByYW5kb20gZGF0YSBpbnRvIHlvdXIgb3JhY2xl
IHVudGlsIGl0DQphY2NlcHRzIHR3byByZWNvcmRzPyAgQW5kIHRoYXQgeW91IHVzZWQgdGhlIHNh
bWUga2V5IHRvIGdlbmVyYXRlIHRoYXQNCnJhbmRvbSBkYXRhPyAgQXNzdW1pbmcgdGhvc2UgcHJl
Y29uZGl0aW9ucywgSSBhZ3JlZSB0aGF0IHlvdSBjYW4gZ2V0DQp0aGUgWE9SIG9mIHRoZSBpbmRp
Y2VzIG9mIHRoZXNlIHJlY29yZHMuICBCdXQgeW91IG11c3QgaGF2ZSBrbm93bg0KdGhvc2UgaW5k
aWNlcyBiZWNhdXNlIHRoZSBvcmFjbGUgd2UncmUgZGVzaWduaW5nIG9ubHkgYWNjZXB0cyByZWNv
cmRzDQphdCB0aG9zZSBpbmRpY2VzLg0KDQpFdmVuIGlmIHlvdSBjb3VsZCBkbyB3aGF0IHlvdSBz
dWdnZXN0ICh3aXRoIGEgZGlmZmVyZW50IG9yYWNsZQ0KcGVyaGFwcyksIEkgdGhpbmsgdGhhdCB5
b3UgYXJlIHJpZ2h0IGluIHN1Z2dlc3RpbmcgdGhhdCB0aGF0IGlzbid0DQptdWNoIHVzZS4gIFlv
dSBoYXZlIGp1c3Qgd29uIGV2ZXJ5IGxvdHRlcnkgb24gdGhlIHBsYW5ldCBpbiB0aGUgc2FtZQ0K
d2VlaywgYW5kIHN0aWxsIHRoYXQgaW5mb3JtYXRpb24gZG9lc24ndCBzZWVtIHZlcnkgdXNlZnVs
Lg0K


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Sun Jan 29 21:49:13 2017
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 D5BE9129979 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 29 Jan 2017 21:49:13 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.119
X-Spam-Level:
X-Spam-Status: No, score=-10.119 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-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=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=teamtelstra.onmicrosoft.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 qIYPtMWTyb-c for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 29 Jan 2017 21:49:12 -0800 (PST)
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 77EBE12996E for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sun, 29 Jan 2017 21:49:12 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cY4mm-0001Qr-Jl for ietf-http-wg-dist@listhub.w3.org; Mon, 30 Jan 2017 05:45:52 +0000
Resent-Date: Mon, 30 Jan 2017 05:45:52 +0000
Resent-Message-Id: <E1cY4mm-0001Qr-Jl@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <James.H.Manger@team.telstra.com>) id 1cY4mf-0000T6-IL for ietf-http-wg@listhub.w3.org; Mon, 30 Jan 2017 05:45:45 +0000
Received: from ipxbno.tcif.telstra.com.au ([203.35.82.204]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <James.H.Manger@team.telstra.com>) id 1cY4mX-00058F-LM for ietf-http-wg@w3.org; Mon, 30 Jan 2017 05:45:40 +0000
X-IronPort-AV: E=Sophos;i="5.33,310,1477918800";  d="scan'208";a="128049484"
Received: from unknown (HELO ipcani.tcif.telstra.com.au) ([10.97.216.200]) by ipobni.tcif.telstra.com.au with ESMTP; 30 Jan 2017 16:45:06 +1100
X-IronPort-AV: E=McAfee;i="5700,7163,8423"; a="277786990"
Received: from wsmsg3702.srv.dir.telstra.com ([172.49.40.170]) by ipcani.tcif.telstra.com.au with ESMTP; 30 Jan 2017 16:45:06 +1100
Received: from wsapp5863.srv.dir.telstra.com (10.75.131.32) by wsmsg3702.srv.dir.telstra.com (172.49.40.170) with Microsoft SMTP Server (TLS) id 8.3.485.1; Mon, 30 Jan 2017 16:44:58 +1100
Received: from wsapp5584.srv.dir.telstra.com (10.75.131.20) by wsapp5863.srv.dir.telstra.com (10.75.131.32) with Microsoft SMTP Server (TLS) id 15.0.1236.3; Mon, 30 Jan 2017 16:44:56 +1100
Received: from AUS01-ME1-obe.outbound.protection.outlook.com (10.172.229.125) by wsapp5584.srv.dir.telstra.com (10.75.131.20) with Microsoft SMTP Server (TLS) id 15.0.1236.3 via Frontend Transport; Mon, 30 Jan 2017 16:44:57 +1100
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=teamtelstra.onmicrosoft.com; s=selector1-team-telstra-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=RqVf0x7ghDG+29X+zFW/YaT4erR29/KqyvESnQ0bcjw=; b=AWUXmPaeWl5BQIFE7we7eyDBDNX8BbKraAYYoSQnSXBO0qEcyFQ/y8/gvORBDi9vero0kHTnsj3l2VClD66vQj+4iOLZ4q8GWrJ6ykwpAtkcEyXyCdCTXHJSZHejtKw5gojTlp8hfboZM5cfbQr5TekzHaBFr19RYOvKjERRlcM=
Received: from SYXPR01MB1615.ausprd01.prod.outlook.com (10.175.209.15) by SYXPR01MB1613.ausprd01.prod.outlook.com (10.175.209.13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.860.13; Mon, 30 Jan 2017 05:44:56 +0000
Received: from SYXPR01MB1615.ausprd01.prod.outlook.com ([10.175.209.15]) by SYXPR01MB1615.ausprd01.prod.outlook.com ([10.175.209.15]) with mapi id 15.01.0860.024; Mon, 30 Jan 2017 05:44:56 +0000
From: "Manger, James" <James.H.Manger@team.telstra.com>
To: Martin Thomson <martin.thomson@gmail.com>, HTTP Working Group <ietf-http-wg@w3.org>
Thread-Topic: Change to padding in encryption -- enabling random access
Thread-Index: AdJ6u17E6Lor8apvSIizqbE+dqcFRA==
Date: Mon, 30 Jan 2017 05:44:56 +0000
Message-ID: <SYXPR01MB1615E160116B0FABB6703DC6E54B0@SYXPR01MB1615.ausprd01.prod.outlook.com>
Accept-Language: en-AU, en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=James.H.Manger@team.telstra.com; 
x-originating-ip: [203.41.142.244]
x-ms-office365-filtering-correlation-id: f1455b66-6063-449d-f7b2-08d448d31f78
x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:SYXPR01MB1613;
x-microsoft-exchange-diagnostics: 1;SYXPR01MB1613;7:Jss21BI8LGHvhQ+xR7XR1nBadQNREfntPoN75dtG0i50+xtgFpIIYDFGpYtEWebxpLFR4wRTa8iPylz68b/RuB4rGQW8hhJGTwigcFYgNLTzMPes6aQedeaeXLKi7pajMINstaPEywp7nr4IHB9VkPjXkS+VMu3aaJD9DLcXZwfdD8Ik1pc2mybbVuxL8sa5EwYWcKain0/y7KFwlpV5T9fJ5Vz9tEK1qVj05VkV+wojW/pjb/V5WaLfzjiXarWmdVJsok29hFT/C9RHB604Ky8c7ArjeU3PQTTrDdX56qAjaqzdvnTTbgiiTILMI3F2LgUt/AHTuvDuELkRs7IFVAXcKX5k/dqakQRZ6CjrUv4/P4cfDFW+IHkWPIuKCxu/j3CNyYslw9tIY8Gim8fA4t/UT1boJbgyi4qX1OOy9ItkyotTX5GzISx0VUhyJtWgRFleyQ/5S8A69ClsEb5EbA==
x-microsoft-antispam-prvs: <SYXPR01MB16139FF430985774909669C8E54B0@SYXPR01MB1613.ausprd01.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(166708455590820);
x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040375)(2401047)(5005006)(8121501046)(10201501046)(3002001)(6041248)(20161123555025)(20161123560025)(20161123562025)(20161123564025)(6072148);SRVR:SYXPR01MB1613;BCL:0;PCL:0;RULEID:;SRVR:SYXPR01MB1613;
x-forefront-prvs: 0203C93D51
x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(7916002)(39450400003)(13464003)(189002)(199003)(377454003)(9686003)(189998001)(305945005)(99286003)(8936002)(229853002)(50986999)(54356999)(6306002)(107886002)(55016002)(106356001)(77096006)(101416001)(53936002)(3280700002)(6436002)(39060400001)(6506006)(74316002)(25786008)(38730400001)(2906002)(68736007)(97736004)(5001770100001)(105586002)(3846002)(33656002)(92566002)(7736002)(81166006)(2900100001)(66066001)(86362001)(5660300001)(3660700001)(81156014)(42882006)(8676002)(102836003)(7696004)(122556002)(6116002);DIR:OUT;SFP:1102;SCL:1;SRVR:SYXPR01MB1613;H:SYXPR01MB1615.ausprd01.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:0;LANG:en;
received-spf: None (protection.outlook.com: team.telstra.com does not designate permitted sender hosts)
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Jan 2017 05:44:56.8402 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 49dfc6a3-5fb7-49f4-adea-c54e725bb854
X-MS-Exchange-Transport-CrossTenantHeadersStamped: SYXPR01MB1613
X-OriginatorOrg: team.telstra.com
Received-SPF: none client-ip=203.35.82.204; envelope-from=James.H.Manger@team.telstra.com; helo=ipxbno.tcif.telstra.com.au
X-W3C-Hub-Spam-Status: No, score=-2.1
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, W3C_NW=0.5
X-W3C-Scan-Sig: titan.w3.org 1cY4mX-00058F-LM 7d12eaf3df731e3cf03f797063abbaed
X-Original-To: ietf-http-wg@w3.org
Subject: RE: Change to padding in encryption -- enabling random access
Archived-At: <http://www.w3.org/mid/SYXPR01MB1615E160116B0FABB6703DC6E54B0@SYXPR01MB1615.ausprd01.prod.outlook.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33392
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>

UmFuZG9tIGFjY2VzcyB0byBjb250ZW50IHZpYSBhIHJhbmdlIHJlcXVlc3QgaXMgYWxtb3N0IHN1
cHBvcnRlZCBieSBhZXMxMjhnY20sIGJ1dCBhcyB0aGUgZHJhZnQgc2F5cyBpdCAiY291bGQgYmUg
Y29uZm91bmRlZCBieSB0aGUgcHJlc2VuY2Ugb2YgcGFkZGluZyIuIFlvdSBjYW4gZGVjcnlwdCwg
c2F5LCB0aGUgMTAwdGggMUtCIHJlY29yZCwgYnV0IHRoYXQgZ2l2ZXMgeW91IG5vIGNsdWUgaG93
IG1hbnkgb2YgdGhlIGVhcmxpZXIgOTksNjkzIGJ5dGVzIGFyZSBjb250ZW50IHZzIHBhZGRpbmcg
4oCUIHVubGVzcyB5b3UgYXJlIHRvbGQuDQoNCkhvdyBhYm91dCBhIGZsYWcgaW4gdGhlIHBhZGRp
bmcgZGVsaW1pdGVyIGJ5dGUgdGhhdCwgaWYgc2V0LCBtZWFucyB0aGVyZSBpcyBubyBwYWRkaW5n
IGluIGVhcmxpZXIgcmVjb3Jkcz8NCg0KQW4gZW5jcnlwdG9yIHRoYXQgd2FudHMgdG8gZW5hYmxl
IHJhbmRvbSBhY2Nlc3MgY2FuIGVhc2lseSBmbGFnIHRoaXMgaW4gYW4gYXV0aGVudGljIG1hbm5l
ci4NCkEgZGVjcnlwdG9yIHRoYXQgZG9lc24ndCBjYXJlIGNhbiBlYXNpbHkgaWdub3JlIHRoZSBm
bGFnLg0KDQoNCg0KVHlwbyBpbiBQUiAjMjgzOg0K4pyXICJhbGwgb3RoZXIgb2N0ZXRzIGhhdmUg
YSBwYWRkaW5nIGRlbGltaXRlciB3aXRoIHRoZSB2YWx1ZSAxIg0K4pyTICJhbGwgb3RoZXIgcmVj
b3JkcyBoYXZlIGEgcGFkZGluZyBkZWxpbWl0ZXIgd2l0aCB0aGUgdmFsdWUgMSINCg0KLS0NCkph
bWVzIE1hbmdlcg0KDQotLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KRnJvbTogTWFydGluIFRo
b21zb24gW21haWx0bzptYXJ0aW4udGhvbXNvbkBnbWFpbC5jb21dIA0KU2VudDogTW9uZGF5LCAz
MCBKYW51YXJ5IDIwMTcgMzo1OSBQTQ0KVG86IEhUVFAgV29ya2luZyBHcm91cCA8aWV0Zi1odHRw
LXdnQHczLm9yZz4NClN1YmplY3Q6IENoYW5nZSB0byBwYWRkaW5nIGluIGVuY3J5cHRpb24NCg0K
QmFzZWQgb24gdGhlIGRpc2N1c3Npb24gdGh1cyBmYXIsIEkndmUgcHV0IHRvZ2V0aGVyIGEgUFIg
dGhhdCBjaGFuZ2VzDQpob3cgcGFkZGluZyB3b3Jrcy4NCg0KaHR0cHM6Ly9naXRodWIuY29tL2h0
dHB3Zy9odHRwLWV4dGVuc2lvbnMvcHVsbC8yODMNCg0K


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Sun Jan 29 21:53:45 2017
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 D6AC312996E for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 29 Jan 2017 21:53:45 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.719
X-Spam-Level:
X-Spam-Status: No, score=-9.719 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, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=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 I7ta4V2nF5Vg for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 29 Jan 2017 21:53:45 -0800 (PST)
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 04A7A1289B0 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sun, 29 Jan 2017 21:53:45 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cY4s8-0004YP-Pk for ietf-http-wg-dist@listhub.w3.org; Mon, 30 Jan 2017 05:51:24 +0000
Resent-Date: Mon, 30 Jan 2017 05:51:24 +0000
Resent-Message-Id: <E1cY4s8-0004YP-Pk@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <martin.thomson@gmail.com>) id 1cY4s5-0004XR-3I for ietf-http-wg@listhub.w3.org; Mon, 30 Jan 2017 05:51:21 +0000
Received: from mail-qt0-f177.google.com ([209.85.216.177]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <martin.thomson@gmail.com>) id 1cY4ry-0005Sz-Ln for ietf-http-wg@w3.org; Mon, 30 Jan 2017 05:51:15 +0000
Received: by mail-qt0-f177.google.com with SMTP id x49so193994685qtc.2 for <ietf-http-wg@w3.org>; Sun, 29 Jan 2017 21:50:54 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=u8Ntpm/kA7lydwlxmrl4+bWgXcE/4SuGKrZpR3t+nQE=; b=r27N00ujKpu3uKKyDXb7D2drdWkPwpH5wjqkskOYX/TKufkEwQOJQK2/WMC/tkQWB2 HGt3xxRD00+Hv0Q7qInsnQEF1/dhvMFkj6NNg1vQEiVfTT7WAKrDuWGR+kll7vYCbLmU kaWD0jYNRgU1N4IWHDHDhyDyBkFLetGM/+6iaFZca9xFZwSuQGbNESa2L2DqM/V0hEwE qERNTM30l/8Fh6IswDUlrdgvMb9w6nm8eUVOVOwsqbMfGE2pyAMgthSmFDef6NvBrhDP AbGUX95kOvi57ageeZCA2lnJBr8fAyoD6RhdibWqidLcYu6aXuMDc8Yt/zOIRBhWiIpZ TMiQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=u8Ntpm/kA7lydwlxmrl4+bWgXcE/4SuGKrZpR3t+nQE=; b=YXVlQGujbtiDCeTcbE+7zXvwf9IgRl6j+cB1JUvQahn3GSFnXSZUPk+Fzm9kx3Z3jX Bgvjmbfg1p5LkPghxwx43qrXbRKQVPoyEO49vTcp/x2qfVeL4LhxhM0FqA5XEcIdDkt1 pVWzdpbRoIjYh+95S2qNB5gayBwmM6I/4+rRFQj4JirCPBRfcD56FwgsLtQgnsuGZxVT 9zuR8gJ4wAuM11jSkxRERhyuTk5HVfvoe5q22fDJIYDkFiOGM6QbfEPAKFt9n/nd8R4a 5D6gKYyusXEacdCGp3sL7Nfz7+89XGwoa6mH2eBi+VY2f/4jzReLIIV61mAuCPb3rOIO Jzog==
X-Gm-Message-State: AIkVDXJKIjdeXuKplnWtS8IMuatWLvUf0RXG4JAK0FXgDB1jad8YJ1xhr5o80koIZERXPzq4A3OlSpVzHjVQAw==
X-Received: by 10.200.57.199 with SMTP id v65mr18412568qte.13.1485755448993; Sun, 29 Jan 2017 21:50:48 -0800 (PST)
MIME-Version: 1.0
Received: by 10.140.19.112 with HTTP; Sun, 29 Jan 2017 21:50:48 -0800 (PST)
In-Reply-To: <SYXPR01MB1615E160116B0FABB6703DC6E54B0@SYXPR01MB1615.ausprd01.prod.outlook.com>
References: <SYXPR01MB1615E160116B0FABB6703DC6E54B0@SYXPR01MB1615.ausprd01.prod.outlook.com>
From: Martin Thomson <martin.thomson@gmail.com>
Date: Mon, 30 Jan 2017 16:50:48 +1100
Message-ID: <CABkgnnXvmkMmncE8UdsouOW-NH4x=hu6gcPvY3H43ZRWST58CA@mail.gmail.com>
To: "Manger, James" <James.H.Manger@team.telstra.com>
Cc: HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=209.85.216.177; envelope-from=martin.thomson@gmail.com; helo=mail-qt0-f177.google.com
X-W3C-Hub-Spam-Status: No, score=-5.8
X-W3C-Hub-Spam-Report: AWL=-0.230, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1cY4ry-0005Sz-Ln d93ddbd764902a5c40792c117a2acd9a
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Change to padding in encryption -- enabling random access
Archived-At: <http://www.w3.org/mid/CABkgnnXvmkMmncE8UdsouOW-NH4x=hu6gcPvY3H43ZRWST58CA@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33393
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 30 January 2017 at 16:44, Manger, James
<James.H.Manger@team.telstra.com> wrote:
> How about a flag in the padding delimiter byte that, if set, means there =
is no padding in earlier records?

It was always my thought that this sort of signal could be carried out
of band even more easily.  Indicating to a random access reader that
padding is always at the end achieves the goal without increasing
per-record complexity anywhere.

> Typo in PR #283:
> =E2=9C=97 "all other octets have a padding delimiter with the value 1"
> =E2=9C=93 "all other records have a padding delimiter with the value 1"

Thanks.


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Sun Jan 29 22:08:48 2017
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 6B3F11289B0 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 29 Jan 2017 22:08:48 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.12
X-Spam-Level:
X-Spam-Status: No, score=-10.12 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-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=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=teamtelstra.onmicrosoft.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 DUhyxPI24rjt for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 29 Jan 2017 22:08:47 -0800 (PST)
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 6839B129978 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sun, 29 Jan 2017 22:08:47 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cY55X-0004Zn-Bm for ietf-http-wg-dist@listhub.w3.org; Mon, 30 Jan 2017 06:05:15 +0000
Resent-Date: Mon, 30 Jan 2017 06:05:15 +0000
Resent-Message-Id: <E1cY55X-0004Zn-Bm@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <James.H.Manger@team.telstra.com>) id 1cY55R-0004Bq-SE for ietf-http-wg@listhub.w3.org; Mon, 30 Jan 2017 06:05:09 +0000
Received: from ipxcno.tcif.telstra.com.au ([203.35.82.208]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <James.H.Manger@team.telstra.com>) id 1cY551-0006C5-5B for ietf-http-wg@w3.org; Mon, 30 Jan 2017 06:04:54 +0000
X-IronPort-AV: E=Sophos;i="5.33,310,1477918800";  d="scan'208";a="19962033"
Received: from unknown (HELO ipcbni.tcif.telstra.com.au) ([10.97.216.204]) by ipocni.tcif.telstra.com.au with ESMTP; 30 Jan 2017 17:04:12 +1100
X-IronPort-AV: E=McAfee;i="5700,7163,8423"; a="292727175"
Received: from wsmsg3706.srv.dir.telstra.com ([172.49.40.80]) by ipcbni.tcif.telstra.com.au with ESMTP; 30 Jan 2017 17:04:12 +1100
Received: from wsapp5871.srv.dir.telstra.com (10.75.139.13) by wsmsg3706.srv.dir.telstra.com (172.49.40.80) with Microsoft SMTP Server (TLS) id 8.3.485.1; Mon, 30 Jan 2017 17:04:12 +1100
Received: from wsapp5584.srv.dir.telstra.com (10.75.131.20) by wsapp5871.srv.dir.telstra.com (10.75.139.13) with Microsoft SMTP Server (TLS) id 15.0.1236.3; Mon, 30 Jan 2017 17:04:11 +1100
Received: from AUS01-ME1-obe.outbound.protection.outlook.com (10.172.101.126) by wsapp5584.srv.dir.telstra.com (10.75.131.20) with Microsoft SMTP Server (TLS) id 15.0.1236.3 via Frontend Transport; Mon, 30 Jan 2017 17:04:11 +1100
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=teamtelstra.onmicrosoft.com; s=selector1-team-telstra-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=sE39RmztXMDQ3DiJlQqi1QYsVefBkYPLgeLSPrFK8ZA=; b=HB1OUEiRX8d09jCj6iLYOzdkXxBvYAN3PHFnRNKSFBMulxRzBlvu79A5RT7RoWy51tj8kmQZgat4tNHXM95q7ChQQ557vC+DPJS+2JvnlPur48ZuTgx+ykdNH7fYCQsdbxlFmpglrsyt72tlADS+JhVDjTO6Sgz+zT618/XmHXA=
Received: from SYXPR01MB1615.ausprd01.prod.outlook.com (10.175.209.15) by SYXPR01MB1614.ausprd01.prod.outlook.com (10.175.209.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.860.13; Mon, 30 Jan 2017 06:04:10 +0000
Received: from SYXPR01MB1615.ausprd01.prod.outlook.com ([10.175.209.15]) by SYXPR01MB1615.ausprd01.prod.outlook.com ([10.175.209.15]) with mapi id 15.01.0860.024; Mon, 30 Jan 2017 06:04:10 +0000
From: "Manger, James" <James.H.Manger@team.telstra.com>
To: Martin Thomson <martin.thomson@gmail.com>
CC: HTTP Working Group <ietf-http-wg@w3.org>
Thread-Topic: Change to padding in encryption -- enabling random access
Thread-Index: AdJ6u17E6Lor8apvSIizqbE+dqcFRAAAW98AAAAT39A=
Date: Mon, 30 Jan 2017 06:04:10 +0000
Message-ID: <SYXPR01MB1615E583D39EB73552D16287E54B0@SYXPR01MB1615.ausprd01.prod.outlook.com>
References: <SYXPR01MB1615E160116B0FABB6703DC6E54B0@SYXPR01MB1615.ausprd01.prod.outlook.com> <CABkgnnXvmkMmncE8UdsouOW-NH4x=hu6gcPvY3H43ZRWST58CA@mail.gmail.com>
In-Reply-To: <CABkgnnXvmkMmncE8UdsouOW-NH4x=hu6gcPvY3H43ZRWST58CA@mail.gmail.com>
Accept-Language: en-AU, en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=James.H.Manger@team.telstra.com; 
x-originating-ip: [203.41.142.244]
x-ms-office365-filtering-correlation-id: 936b3a4f-ef7b-42a0-89df-08d448d5cf30
x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:SYXPR01MB1614;
x-microsoft-exchange-diagnostics: 1;SYXPR01MB1614;7:/uIDugKJeHs7F/fTwJLXLM4deCS34L4zZjg3pfjUsrQgz/+h4FQ9qX8/roYCI5URJarrxlQEk0Nch81WXn0/0xp+C4amdCbmNqZZBEc0gN7lQrM4db+GiTBxCu9WCroJE3cqP7zB2DJkzSTDp2Rf62w4Du7S0qvvdqgw9AUpTGV4LlVuXxncDfXQ7lzX7f7wBMtWlKLSRnKNfoSs7sqMkMb89QpJIx7E48YTL5NqkU53fX80DV5u1gAinpidh9SUzMznB7+cAAw2IW7A0tRLV86HDZep1hpuDv1KnkZZ6Wq/bPGwoopoU7c6ltjQhbsqKdJ2ZuZuRfmpQGbATh72WqllrdNYvv7ldE4qMX1i5hSM0/R1OKrbDFh8Ck2DRLcCl7/qL9vHl3i+XCQWQxv49bKUyuvVxHaVqlLm06cllgUJNL0Zd3kwi7rl6dviAcyYcB1JEgYXWb2jYduZxsmkUw==
x-microsoft-antispam-prvs: <SYXPR01MB16140DCDCB219B95FA780DCEE54B0@SYXPR01MB1614.ausprd01.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(158342451672863);
x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040375)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6041248)(20161123564025)(20161123562025)(20161123555025)(20161123560025)(6072148);SRVR:SYXPR01MB1614;BCL:0;PCL:0;RULEID:;SRVR:SYXPR01MB1614;
x-forefront-prvs: 0203C93D51
x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(7916002)(39450400003)(189002)(199003)(53936002)(3846002)(2950100002)(3280700002)(42882006)(6916009)(5660300001)(102836003)(105586002)(4326007)(110136003)(2906002)(7696004)(6116002)(106356001)(68736007)(66066001)(86362001)(7736002)(25786008)(74316002)(81156014)(8676002)(81166006)(9686003)(122556002)(189998001)(3660700001)(305945005)(99286003)(54356999)(92566002)(6506006)(55016002)(39060400001)(77096006)(33656002)(2900100001)(6436002)(50986999)(8936002)(76176999)(229853002)(38730400001)(97736004)(101416001);DIR:OUT;SFP:1102;SCL:1;SRVR:SYXPR01MB1614;H:SYXPR01MB1615.ausprd01.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:0;LANG:en;
received-spf: None (protection.outlook.com: team.telstra.com does not designate permitted sender hosts)
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Jan 2017 06:04:10.6600 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 49dfc6a3-5fb7-49f4-adea-c54e725bb854
X-MS-Exchange-Transport-CrossTenantHeadersStamped: SYXPR01MB1614
X-OriginatorOrg: team.telstra.com
Received-SPF: none client-ip=203.35.82.208; envelope-from=James.H.Manger@team.telstra.com; helo=ipxcno.tcif.telstra.com.au
X-W3C-Hub-Spam-Status: No, score=-2.1
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, W3C_NW=0.5
X-W3C-Scan-Sig: titan.w3.org 1cY551-0006C5-5B c9c3d1cf588063dfa94747aadbaf572a
X-Original-To: ietf-http-wg@w3.org
Subject: RE: Change to padding in encryption -- enabling random access
Archived-At: <http://www.w3.org/mid/SYXPR01MB1615E583D39EB73552D16287E54B0@SYXPR01MB1615.ausprd01.prod.outlook.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33394
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>

Pj4gSG93IGFib3V0IGEgZmxhZyBpbiB0aGUgcGFkZGluZyBkZWxpbWl0ZXIgYnl0ZSB0aGF0LCBp
ZiBzZXQsIG1lYW5zIHRoZXJlIGlzIG5vIHBhZGRpbmcgaW4gZWFybGllciByZWNvcmRzPw0KDQo+
IEl0IHdhcyBhbHdheXMgbXkgdGhvdWdodCB0aGF0IHRoaXMgc29ydCBvZiBzaWduYWwgY291bGQg
YmUgY2FycmllZCBvdXQNCj4gb2YgYmFuZCBldmVuIG1vcmUgZWFzaWx5LiAgSW5kaWNhdGluZyB0
byBhIHJhbmRvbSBhY2Nlc3MgcmVhZGVyIHRoYXQNCj4gcGFkZGluZyBpcyBhbHdheXMgYXQgdGhl
IGVuZCBhY2hpZXZlcyB0aGUgZ29hbCB3aXRob3V0IGluY3JlYXNpbmcNCj4gcGVyLXJlY29yZCBj
b21wbGV4aXR5IGFueXdoZXJlLg0KDQpCdXQgYW4gb3V0LW9mLWJhbmQgc2lnbmFsIGRvZXNuJ3Qg
c291bmQgZWFzeS4gTWF5YmUgdGhlIGRpc3RyaWJ1dGlvbiBvZiB0aGUga2V5IChJS00pIGNvdWxk
IHNheSAibm8gcGFkZGluZyB3aWxsIGV2ZXIgYmUgdXNlZCB3aXRoIHRoaXMga2V5Ii4gQnV0IHRo
YXQgZmVlbHMgZnJhZ2lsZSwgYW5kIGlzIHBlci1rZXkgbm90IHBlci1tZXNzYWdlLiBPdGhlciBz
aWduYWxzIGZyb20gdGhlIHdlYiBzZXJ2ZXIgZG9uJ3QgaGVscCBhcyB0aGUgcG9pbnQgb2YgYW4g
ZW5jcnlwdGVkIGNvbnRlbnQtZW5jb2Rpbmcgd2FzIG5vdCB0byBoYXZlIHRvIHRydXN0IHRoZSB3
ZWIgc2VydmVyLg0KDQpQYWRkaW5nIGlzIGluLWJhbmQgZXZlbiB3aGVuIHRoZSBlbmNyeXB0b3Ig
ZG9lc24ndCB3YW50IHRvIHVzZSBhbnksIHNvIGFuIGluLWJhbmQgc2lnbmFsIHRoYXQgdGhlcmUg
aXMgbm8gZWFybGllciBwYWRkaW5nIGRvZXNuJ3QgZmVlbCBsaWtlIGNvbXBsZXhpdHkgdGhhdCBp
cyBvdXQtb2YtcGxhY2UuDQoNCi0tDQpKYW1lcyBNYW5nZXINCg==


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Sun Jan 29 22:31:14 2017
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 316AA129437 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 29 Jan 2017 22:31:14 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.719
X-Spam-Level:
X-Spam-Status: No, score=-9.719 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, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=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 FKRuTZUm2Slm for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 29 Jan 2017 22:31:12 -0800 (PST)
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 C4D9C1289B0 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sun, 29 Jan 2017 22:31:12 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cY5Rd-0007uO-PP for ietf-http-wg-dist@listhub.w3.org; Mon, 30 Jan 2017 06:28:05 +0000
Resent-Date: Mon, 30 Jan 2017 06:28:05 +0000
Resent-Message-Id: <E1cY5Rd-0007uO-PP@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <martin.thomson@gmail.com>) id 1cY5RZ-0007tY-Nx for ietf-http-wg@listhub.w3.org; Mon, 30 Jan 2017 06:28:01 +0000
Received: from mail-qk0-f182.google.com ([209.85.220.182]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <martin.thomson@gmail.com>) id 1cY5RC-0004de-RL for ietf-http-wg@w3.org; Mon, 30 Jan 2017 06:27:50 +0000
Received: by mail-qk0-f182.google.com with SMTP id s140so119829204qke.0 for <ietf-http-wg@w3.org>; Sun, 29 Jan 2017 22:27:18 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=L0sSI6/w9DN9hDJ2qM8Z2TmNla93aaSzIqHQkUfgoYU=; b=pJVk8n8QZfW8oVT37VQ30O2RLHhMc1OvGv/LM+93TJ70+BVBtzjnOx8mAwzJdRff4T 5HWJdEd5WPOMKb0Xst2vvOC6ZSRcbIWmB8JcRE1FYPJuDNk8k3zcvhFlHOl9q6WybuPS HGsOqPReLUv/k2LsqKI/4T8VUSMmovPIZEBNWACxhoWohss4cFU9KHrBUmIgDp+bue1k /1eL5iAHnfvLdEzfvua24FXP6sqY03S6eWKv76i3ffmnyxsu4/ClUg/1XvQnsDV092FU qlaLkQ35nlqHDUtzSfhCKLYZ9hIjN+xONz+qEfHyL1AG2rRVsoXxBlW9PQ79FjvrjReX HbXA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=L0sSI6/w9DN9hDJ2qM8Z2TmNla93aaSzIqHQkUfgoYU=; b=REYi48o6aGZQCeqCmzvHLqfSnyrMCP+f5yjYJ7/f7w6I7UGt/rbqWQSnRFiG04UgVE NkqMXCO82JwxoYeV4K+A2Vrhbnj+YZ5yExspZXubJTZXHHl/CxZkG9oOxwvfTIbyNRaj sZLZtu9IMuMJXg/iKk/m4QWyVHgkp92WfN9PyxjNyhRCDycaip8rGEXu0zxsBfG9cMlS nTYKw+cdbHXbfw8q/+7Yl6O2PeuW/fE8RUyhUjrw7ZfFhwL+cd2jBL+XqIthBWabWO3b nV6JyFvdWTYbY61DnsvDZXHhgZnNYF5hSg6AFxQTl4olDBf7rnU38AODuAHV/IbedWO/ MHqg==
X-Gm-Message-State: AIkVDXI6W11HH3/jFIIS5LDd1b5BSuOrWkq1UMYmaXFQBm9i/bKHEFYs/n+0dU2uuKf8G4C9yIO8xKLwJ4sHvQ==
X-Received: by 10.55.185.131 with SMTP id j125mr13049478qkf.115.1485757632872; Sun, 29 Jan 2017 22:27:12 -0800 (PST)
MIME-Version: 1.0
Received: by 10.140.19.112 with HTTP; Sun, 29 Jan 2017 22:27:12 -0800 (PST)
In-Reply-To: <SYXPR01MB1615E583D39EB73552D16287E54B0@SYXPR01MB1615.ausprd01.prod.outlook.com>
References: <SYXPR01MB1615E160116B0FABB6703DC6E54B0@SYXPR01MB1615.ausprd01.prod.outlook.com> <CABkgnnXvmkMmncE8UdsouOW-NH4x=hu6gcPvY3H43ZRWST58CA@mail.gmail.com> <SYXPR01MB1615E583D39EB73552D16287E54B0@SYXPR01MB1615.ausprd01.prod.outlook.com>
From: Martin Thomson <martin.thomson@gmail.com>
Date: Mon, 30 Jan 2017 17:27:12 +1100
Message-ID: <CABkgnnU2vrvpBv_nDGRDEP5VUsAhqVamSZufnFsgU67FA2rODw@mail.gmail.com>
To: "Manger, James" <James.H.Manger@team.telstra.com>
Cc: HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: text/plain; charset=UTF-8
Received-SPF: pass client-ip=209.85.220.182; envelope-from=martin.thomson@gmail.com; helo=mail-qk0-f182.google.com
X-W3C-Hub-Spam-Status: No, score=-5.7
X-W3C-Hub-Spam-Report: AWL=-0.225, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cY5RC-0004de-RL 9a348a0ddc9b7194d5ca2befc65aa234
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Change to padding in encryption -- enabling random access
Archived-At: <http://www.w3.org/mid/CABkgnnU2vrvpBv_nDGRDEP5VUsAhqVamSZufnFsgU67FA2rODw@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33395
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 30 January 2017 at 17:04, Manger, James
<James.H.Manger@team.telstra.com> wrote:
> Padding is in-band even when the encryptor doesn't want to use any, so an in-band signal that there is no earlier padding doesn't feel like complexity that is out-of-place.

That would be true if you consider the random access use case to be
common enough to justify any complexity at all.


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Mon Jan 30 23:06:50 2017
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 1A116124281 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 30 Jan 2017 23:06:50 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.1
X-Spam-Level:
X-Spam-Status: No, score=-10.1 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=teamtelstra.onmicrosoft.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 6RF2KEtVsV67 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 30 Jan 2017 23:06:47 -0800 (PST)
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 92698126FDC for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 30 Jan 2017 23:06:46 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cYSSu-0002nK-3H for ietf-http-wg-dist@listhub.w3.org; Tue, 31 Jan 2017 07:02:56 +0000
Resent-Date: Tue, 31 Jan 2017 07:02:56 +0000
Resent-Message-Id: <E1cYSSu-0002nK-3H@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <James.H.Manger@team.telstra.com>) id 1cYSSm-0002m4-Dt for ietf-http-wg@listhub.w3.org; Tue, 31 Jan 2017 07:02:48 +0000
Received: from ipxavo.tcif.telstra.com.au ([203.35.135.200]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <James.H.Manger@team.telstra.com>) id 1cYSSW-0006OM-Fs for ietf-http-wg@w3.org; Tue, 31 Jan 2017 07:02:42 +0000
X-IronPort-AV: E=Sophos;i="5.33,313,1477918800";  d="scan'208";a="134545496"
Received: from unknown (HELO ipcbvi.tcif.telstra.com.au) ([10.97.217.204]) by ipoavi.tcif.telstra.com.au with ESMTP; 31 Jan 2017 18:01:58 +1100
X-IronPort-AV: E=McAfee;i="5700,7163,8424"; a="410974155"
Received: from wsmsg3752.srv.dir.telstra.com ([172.49.40.173]) by ipcbvi.tcif.telstra.com.au with ESMTP; 31 Jan 2017 18:01:58 +1100
Received: from wsapp5585.srv.dir.telstra.com (10.75.3.67) by wsmsg3752.srv.dir.telstra.com (172.49.40.173) with Microsoft SMTP Server (TLS) id 8.3.485.1; Tue, 31 Jan 2017 18:01:59 +1100
Received: from wsapp5585.srv.dir.telstra.com (10.75.3.67) by wsapp5585.srv.dir.telstra.com (10.75.3.67) with Microsoft SMTP Server (TLS) id 15.0.1236.3; Tue, 31 Jan 2017 18:01:57 +1100
Received: from AUS01-ME1-obe.outbound.protection.outlook.com (10.172.229.126) by wsapp5585.srv.dir.telstra.com (10.75.3.67) with Microsoft SMTP Server (TLS) id 15.0.1236.3 via Frontend Transport; Tue, 31 Jan 2017 18:01:57 +1100
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=teamtelstra.onmicrosoft.com; s=selector1-team-telstra-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=1+voNnhId3rNaY1tqfFdT0aeAXIPS8OeM/1mtRgi5d8=; b=EF3J6BA6ZAb9MJ5rHzKFjMYZeJKm3jziHnF5NueEmWySAN+uWEdynVmbMa1oRnFRfpenfXg0Tzp3bnTUSWPXH3E9fCaOE0Oyp0S5HQfqbvlBShimA4dWjWHEVJ2v+Qg2YrIxbWV6SMlJmx4SPFD8cm0Pj6U60yb+XVzzxfUHgF4=
Received: from SYXPR01MB1615.ausprd01.prod.outlook.com (10.175.209.15) by SYXPR01MB1614.ausprd01.prod.outlook.com (10.175.209.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.860.13; Tue, 31 Jan 2017 07:01:55 +0000
Received: from SYXPR01MB1615.ausprd01.prod.outlook.com ([10.175.209.15]) by SYXPR01MB1615.ausprd01.prod.outlook.com ([10.175.209.15]) with mapi id 15.01.0860.024; Tue, 31 Jan 2017 07:01:55 +0000
From: "Manger, James" <James.H.Manger@team.telstra.com>
To: Martin Thomson <martin.thomson@gmail.com>, HTTP Working Group <ietf-http-wg@w3.org>
Thread-Topic: Change to padding in encryption -- examples look ok
Thread-Index: AdJ7ipVCFoDTaJsWStC2EhW7HU6vXw==
Date: Tue, 31 Jan 2017 07:01:55 +0000
Message-ID: <SYXPR01MB1615624CD6805FD00B64020BE54A0@SYXPR01MB1615.ausprd01.prod.outlook.com>
Accept-Language: en-AU, en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=James.H.Manger@team.telstra.com; 
x-originating-ip: [203.35.185.244]
x-ms-office365-filtering-correlation-id: 0c701937-b2c2-4dba-6120-08d449a70af2
x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:SYXPR01MB1614;
x-microsoft-exchange-diagnostics: 1;SYXPR01MB1614;7:1/kx+N/vc95kiZuT2DlGxLkuItA0LJpxRtHehJ84gdShOphi4RRq8QUO/O9696hfWAlIxdvz4t6RSKuAIJyojg1/GDYq9R7+7zYkOmb4xb22yYqsfRbKDYez3c0rWYdwJ6MGcMYO8DNHtr4T86d2Kn9K99LUVFv2iHC1CQMV+ZnOrsJJ4zhOsLv/PQJps8U5oqoJ9d7sOZQPWXbnjixNXc3fLhTtrQ+y2K+1lcyzJbOeednwaz1df/AGPeGCBGK66qNkMbZU/p9qc5/CHGicYO0dRAXwCPymzBQ187vlq+1Bk/1S+oj6sfsjTz0fD1tGPN0hvcB9xJAPreRfOT0SEVEzZl9/XcxqZFpza3jcTQ32krpKN1vTnuprxjQP6JnNsa5Rgutl3m36llWVWHUBRyG/OS4kcUgVh9gTMF33nn5roWHwrmw/2SKN3qy0T9YdRu4TC2PDnIgjQzl5aEWFWNCWbJOu41XXnNeZNCEXbw+3Z1IpzBKu8mboWpcL7I7cwdoIOUGnoghHft9/RD2aOhx8zrgd3fYb4qRaMLPv0Yv5HtVPLK9EhKGmgrRGzcX3
x-microsoft-antispam-prvs: <SYXPR01MB1614EFA5D8554568DF38AC6CE54A0@SYXPR01MB1614.ausprd01.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(166708455590820)(67441168502697);
x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040375)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6041248)(20161123564025)(20161123560025)(20161123555025)(20161123562025)(6072148);SRVR:SYXPR01MB1614;BCL:0;PCL:0;RULEID:;SRVR:SYXPR01MB1614;
x-forefront-prvs: 0204F0BDE2
x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(7916002)(39450400003)(189002)(199003)(24454002)(3280700002)(53936002)(305945005)(3846002)(107886002)(68736007)(102836003)(105586002)(42882006)(2906002)(5660300001)(106356001)(7696004)(66066001)(6116002)(86362001)(8936002)(74316002)(81156014)(122556002)(8676002)(9686003)(81166006)(189998001)(3660700001)(7736002)(97736004)(5001770100001)(39060400001)(92566002)(50986999)(6306002)(55016002)(6506006)(54356999)(33656002)(2900100001)(6436002)(77096006)(99286003)(38730400001)(101416001)(25786008)(229853002)(19627235001);DIR:OUT;SFP:1102;SCL:1;SRVR:SYXPR01MB1614;H:SYXPR01MB1615.ausprd01.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:0;LANG:en;
received-spf: None (protection.outlook.com: team.telstra.com does not designate permitted sender hosts)
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Jan 2017 07:01:55.6694 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 49dfc6a3-5fb7-49f4-adea-c54e725bb854
X-MS-Exchange-Transport-CrossTenantHeadersStamped: SYXPR01MB1614
X-OriginatorOrg: team.telstra.com
Received-SPF: none client-ip=203.35.135.200; envelope-from=James.H.Manger@team.telstra.com; helo=ipxavo.tcif.telstra.com.au
X-W3C-Hub-Spam-Status: No, score=-2.1
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, W3C_NW=0.5
X-W3C-Scan-Sig: titan.w3.org 1cYSSW-0006OM-Fs 8cee99e8dd2f9a5186a5b6430ecabd29
X-Original-To: ietf-http-wg@w3.org
Subject: RE: Change to padding in encryption -- examples look ok
Archived-At: <http://www.w3.org/mid/SYXPR01MB1615624CD6805FD00B64020BE54A0@SYXPR01MB1615.ausprd01.prod.outlook.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33396
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>

TWFydGluIFRob21zb24gd3JvdGU6DQo+IEJhc2VkIG9uIHRoZSBkaXNjdXNzaW9uIHRodXMgZmFy
LCBJJ3ZlIHB1dCB0b2dldGhlciBhIFBSIHRoYXQgY2hhbmdlcyBob3cgcGFkZGluZyB3b3Jrcy4N
Cj4gaHR0cHM6Ly9naXRodWIuY29tL2h0dHB3Zy9odHRwLWV4dGVuc2lvbnMvcHVsbC8yODMNCg0K
VGhlIDIgbWFpbiBleGFtcGxlcyBpbiB0aGUgUFIgYXJlIGNvcnJlY3QgYWNjb3JkaW5nIHRvIG15
IGltcGxlbWVudGF0aW9uIChodHRwczovL2lkLmN0by50ZWxzdHJhLmNvbS8yMDE3L2FlczEyOGdj
bSkuDQoNCg0KVHlwb3M6DQoqIEluICJKV0UgTWFwcGluZyIsICJsZWFkaW5nIHBhZGRpbmciIHNo
b3VsZCBub3cgYmUgInRyYWlsaW5nIHBhZGRpbmciLg0KKiBJbiAiSldFIE1hcHBpbmciLCB0aGUg
bm9uY2UgbG9va3Mgd3Jvbmc7IEkgZ3Vlc3MgaXQgc2hvdWxkIGJlIC5CY3M4Z2tJUktMSThHZUk4
LiB0byBtYXRjaCB0aGUgI2V4cGxpY2l0IGV4YW1wbGUuDQoqIEluICNhZXMxMjhnY20sIGRyb3Ag
ImEiIGZyb20gIm9jdGV0IGEgdmFsdWUgb2YgMSIuDQoNCi0tDQpKYW1lcyBNYW5nZXINCg==


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Mon Jan 30 23:15:14 2017
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 1AF10129413 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 30 Jan 2017 23:15:14 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.7
X-Spam-Level:
X-Spam-Status: No, score=-9.7 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_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, 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 e5A6fpdFIGC2 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 30 Jan 2017 23:15:13 -0800 (PST)
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 E2592124281 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 30 Jan 2017 23:15:12 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cYSct-0006o7-O4 for ietf-http-wg-dist@listhub.w3.org; Tue, 31 Jan 2017 07:13:15 +0000
Resent-Date: Tue, 31 Jan 2017 07:13:15 +0000
Resent-Message-Id: <E1cYSct-0006o7-O4@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <martin.thomson@gmail.com>) id 1cYScq-0006nO-Ce for ietf-http-wg@listhub.w3.org; Tue, 31 Jan 2017 07:13:12 +0000
Received: from mail-qk0-f178.google.com ([209.85.220.178]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <martin.thomson@gmail.com>) id 1cYScj-0001du-PV for ietf-http-wg@w3.org; Tue, 31 Jan 2017 07:13:06 +0000
Received: by mail-qk0-f178.google.com with SMTP id l126so22068400qkc.1 for <ietf-http-wg@w3.org>; Mon, 30 Jan 2017 23:12:45 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=8HSH4NzCGhXP8gGW3rEer/GzlI01OLobi+3ITu5RdUs=; b=q0MWyHe8MKHE94hy97vlkYjhXdxqUo+cHoEsAdclfggnFBgHKXX7OZWGqke7HBC8g0 hRbMGEjt0MgkB8d13a+x1SSllFjrdIU0qP3Op3Uyl1Lo5GYBeZ7EWL4iTU9pP+suaNO4 PDngay44WI0ecSyRrGucMJqbAiAQTm2Oc9/wWifXPF2vNnjhOWaoS8Dj2skMdj8gjCyH Wwba+dAAJ0Y8Q9F4dVQdVlG3/vtO+AIw27Yy8/x9ZxKWkapMrPp/wOpvMU1NzmMwuDnN dsjuuTeNDxXM23UcYLWXyH//M7E8o1f8W9vWUIh5rvocLxXZkMMQeiqeaOyDovw7ms9p Q4Ig==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=8HSH4NzCGhXP8gGW3rEer/GzlI01OLobi+3ITu5RdUs=; b=N6Fn2SCLw2DZaFm6S2InM3o9obOW588F+eyaTVX9SnDMI8PkBI3Ot+JvAutgG6yJVG CFb+NHRrBa9uiiqmsWBD/zdbCpEYee46RWXuul1McVqrVv2vMmFow1fbCM5v3EV15cwM Mkm9O6XFA935P8688oNsI3aQqcpdRjjeSr4+H9/vF2vL+kYYT+SeEXE7lwU5izKPXzos YbgGYqrRze44t9JjPAjoGEPg+PoRIEJD1ouRcWfvq+ZHyrPMx/ATBEuwRJdh/JhRhjjw T7/HbwDq63QIO19v9LAi7lYUVdUTeWx4tjOlYtDsrkzAUAYKEepmrKIXrKLirO6YUCUF Ce7Q==
X-Gm-Message-State: AIkVDXJXTK3j5l06SCdCHYYxjgiDIzYd4AFiOUAZLjSnUO3Fpc28Q2DN06BwccwmBGoaVz5z4YUeNFWe5LFCcA==
X-Received: by 10.55.99.80 with SMTP id x77mr11869541qkb.147.1485846759709; Mon, 30 Jan 2017 23:12:39 -0800 (PST)
MIME-Version: 1.0
Received: by 10.140.19.112 with HTTP; Mon, 30 Jan 2017 23:12:39 -0800 (PST)
In-Reply-To: <SYXPR01MB1615624CD6805FD00B64020BE54A0@SYXPR01MB1615.ausprd01.prod.outlook.com>
References: <SYXPR01MB1615624CD6805FD00B64020BE54A0@SYXPR01MB1615.ausprd01.prod.outlook.com>
From: Martin Thomson <martin.thomson@gmail.com>
Date: Tue, 31 Jan 2017 18:12:39 +1100
Message-ID: <CABkgnnV8MGmB=hgTRe8ewbWevf9JCTy1ERwrn8nvxwOwavzt=Q@mail.gmail.com>
To: "Manger, James" <James.H.Manger@team.telstra.com>
Cc: HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: text/plain; charset=UTF-8
Received-SPF: pass client-ip=209.85.220.178; envelope-from=martin.thomson@gmail.com; helo=mail-qk0-f178.google.com
X-W3C-Hub-Spam-Status: No, score=-5.7
X-W3C-Hub-Spam-Report: AWL=-0.223, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cYScj-0001du-PV dc2d54b72cea2223186638dac8cf9bc7
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Change to padding in encryption -- examples look ok
Archived-At: <http://www.w3.org/mid/CABkgnnV8MGmB=hgTRe8ewbWevf9JCTy1ERwrn8nvxwOwavzt=Q@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33397
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>

Thanks for confirming so quickly James.  I've corrected the nits.

On 31 January 2017 at 18:01, Manger, James
<James.H.Manger@team.telstra.com> wrote:
> Martin Thomson wrote:
>> Based on the discussion thus far, I've put together a PR that changes how padding works.
>> https://github.com/httpwg/http-extensions/pull/283
>
> The 2 main examples in the PR are correct according to my implementation (https://id.cto.telstra.com/2017/aes128gcm).
>
>
> Typos:
> * In "JWE Mapping", "leading padding" should now be "trailing padding".
> * In "JWE Mapping", the nonce looks wrong; I guess it should be .Bcs8gkIRKLI8GeI8. to match the #explicit example.
> * In #aes128gcm, drop "a" from "octet a value of 1".
>
> --
> James Manger


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Mon Jan 30 23:30:34 2017
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 AD14C120726 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 30 Jan 2017 23:30:34 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.1
X-Spam-Level:
X-Spam-Status: No, score=-10.1 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 dan4nKufJYf9 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 30 Jan 2017 23:30:31 -0800 (PST)
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 5119312941C for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 30 Jan 2017 23:30:31 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cYSrR-0007OW-1A for ietf-http-wg-dist@listhub.w3.org; Tue, 31 Jan 2017 07:28:17 +0000
Resent-Date: Tue, 31 Jan 2017 07:28:17 +0000
Resent-Message-Id: <E1cYSrR-0007OW-1A@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <mnot@mnot.net>) id 1cYSrM-0007NE-Px for ietf-http-wg@listhub.w3.org; Tue, 31 Jan 2017 07:28:12 +0000
Received: from mxout-07.mxes.net ([216.86.168.182]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <mnot@mnot.net>) id 1cYSrD-00028M-W3 for ietf-http-wg@w3.org; Tue, 31 Jan 2017 07:28:07 +0000
Received: from [192.168.3.104] (unknown [124.189.98.244]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 485C722E1F3; Tue, 31 Jan 2017 02:27:35 -0500 (EST)
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\))
From: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <F4E8AD6F-2981-440D-9D1F-09A5D361FD6A@mnot.net>
Date: Tue, 31 Jan 2017 18:27:31 +1100
Cc: HTTP working group mailing list <ietf-http-wg@w3.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <7AE1C62F-3899-412E-8EB3-062FDC8CFEEF@mnot.net>
References: <148070210225.29664.2630836091018103593.idtracker@ietfa.amsl.com> <15ba01d24d4b$bbd65ec0$33831c40$@baycloud.com> <AEB52D75-E794-468E-B954-E57A63C6EB3D@ischool.berkeley.edu> <F4E8AD6F-2981-440D-9D1F-09A5D361FD6A@mnot.net>
To: Nick Doty <npdoty@ischool.berkeley.edu>, Ilya Grigorik <ilya@igvita.com>
X-Mailer: Apple Mail (2.3259)
Received-SPF: pass client-ip=216.86.168.182; envelope-from=mnot@mnot.net; helo=mxout-07.mxes.net
X-W3C-Hub-Spam-Status: No, score=-7.7
X-W3C-Hub-Spam-Report: AWL=1.946, BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_IRR=-3, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cYSrD-00028M-W3 3e871c1deccb38298f897f4cf63fdf9d
X-Original-To: ietf-http-wg@w3.org
Subject: Re: I-D Action: draft-ietf-httpbis-client-hints-03.txt
Archived-At: <http://www.w3.org/mid/7AE1C62F-3899-412E-8EB3-062FDC8CFEEF@mnot.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33398
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>

It's been a month, and there haven't been any responses to the =
suggestions below. We're really close to shipping this spec, can we =
please get it over the line?

I've nominated stuckees below...

Cheers,


> On 26 Dec 2016, at 7:47 am, Mark Nottingham <mnot@mnot.net> wrote:
>=20
> Thanks, Nick.
>=20
> A few responses below.
>=20
>> On 13 Dec 2016, at 8:08 pm, Nick Doty <npdoty@ischool.berkeley.edu> =
wrote:
>>=20
>> I share Mike's concern about the privacy issues of this proposed =
mechanism. It appears that this feature would ease browser =
fingerprinting; inhibit efforts to detect or mitigate browser =
fingerprinting; and expose local network information. The Security =
Considerations section does not adequately describe or mitigate these =
impacts.
>>=20
>> In particular, while some information exposed in these hints may =
already be available to client-side JavaScript in some browser =
implementations, making the same information available in (potentially =
all) HTTP requests would make fingerprinting more trivially achievable =
and, importantly, less detectable. Making fingerprinting detectable is a =
key goal given the challenge of eliminating the capability altogether =
and the potential harmful effects of unsanctioned tracking methods. =
Moving information about the user from active client-side code into HTTP =
requests inhibits user agents, researchers and policymakers in detecting =
that fingerprinting is ongoing.
>=20
> Right. It seems like Security Considerations needs to be rewritten =
with this in mind; i.e., that fingerprinting which used to require =
active measures could now be performed passively.=20

Ilya, do you want to attempt a revision here? Would you like some help?


>> Related, adding HTTP headers for subrequests, including to static =
resources, exposes client information to parties that previously would =
not have been able to access it, and in a way where the user agent =
cannot detect it. The Introduction notes as a limitation that HTTP =
cookies are bound by the same-origin policy; we typically cite the =
same-origin policy as a feature of the Web privacy model, not something =
to be removed.
>=20
> In some cases, CH is necessary on sub requests for proper conneg; e.g. =
DPR and Width. In others, it could probably be restricted to the =
navigation request (e.g., Viewport-Width).
>=20
> Ilya, I know we'd said that much of this could be handled in the Fetch =
integration, but could we have some high-level constraints on when it's =
to be sent in this spec?

Ilya? There seem to be some similarities with =
<https://github.com/httpwg/http-extensions/issues/156> here.


>> Finally, this draft includes adding access to local network =
information; as defined, this is potentially high entropy (as opposed to =
"Save-Data" which has only the "on" value) the "Downlink" header has (at =
least) 33 values in the cited Community Group report and user agents and =
can also reveal private network topology that might otherwise have been =
intentionally obscured.
>=20
> Save-Data is defined in terms of NetInfo's downlinkMax, which seems to =
be a double. Personally, I'd agree that having that much precision isn't =
terribly helpful.
>=20
> Ilya, as an aside -- referring to NetInfo is going to be problematic; =
it will likely block publication. Can we make that non-normative (or =
ideally, drop it)?

Ilya?


>> Mitigations could include, as Mike suggests, asking users to opt in, =
although explaining the details to users may be difficult.
>=20
> That's already discussed in Security Considerations, although we could =
certainly expand it. Would you mind making text suggestions?

Nick?


>> Detectability could be improved by requiring that user agents only =
send client hint information in HTTP if the server has specifically =
requested it in an HTTP response header.
>=20
> How do people feel about requiring Accept-CH before sending any CH? =
Right now it's implied, but we could raise this to a requirement.

Anyone? Raised as <https://github.com/httpwg/http-extensions/issues/284>


>> Specifying that hints should not be sent to other origins on =
subrequests would limit the unintentional spread of this client =
information. At that point, however, it's not entirely clear how great =
the functional advantage is over using existing mechanisms (like =
client-side JavaScript access to user agent information and explicit =
HTTP cookies for managing preferences). Restricting values to a smaller =
enumerated range is mentioned, but the specification does not provide =
such an enumeration or recommend its use.
>=20
> It seems like candidates for that would be Width, Viewport-Width and =
Downlink (as discussed above).
>=20
> AFAICT Width and Viewport-Width do not require pixel precision; would =
rounding to the nearest 10 be sufficient?

Ilya?


>> While I'm glad to see that there has been some discussion of =
active/passive fingerprinting and our draft on mitigating browser =
fingerprinting (https://github.com/httpwg/http-extensions/issues/215), =
I'm not sure those issues have been substantively resolved. That =
implementers could potentially implement a variety of mitigations is =
accurate, but if we consider which of those mitigations is necessary to =
prevent a marked harm to user privacy, we could include some mitigations =
in the design, such that UA/server implementation variation doesn't =
determine the outcome.
>>=20
>> The first sentence of the Security Considerations section appears to =
be false.
>>> Client Hints defined in this specification do not expose new
>>>  information about the user's environment beyond what is already
>>>  available to, and can be communicated by, the application at =
runtime
>>>  via JavaScript and CSS.
>>=20
>> Both the Downlink and Save-Data client hint, if broadly implemented, =
would likely reveal new information about the user's environment. Also, =
it's generally concerning when the first sentence of the Security =
Considerations section does not summarize the security or privacy issues =
of a specification but instead suggests to the casual reader that =
there's nothing to see here.
>>=20
>>> However, implementors
>>>  should consider the privacy implications of various methods to =
enable
>>>  delivery of Client Hints - see "Sending Client Hints" section.
>>=20
>> The Security Considerations section also refers to the Sending Client =
Hints section, but I don't understand the point it's trying to make. Is =
it just that user agents can use user preferences to decide whether to =
send client hints and could use that as a time to consider privacy =
implications?
>>=20
>> Thanks,
>> Nick
>>=20
>>> On Dec 3, 2016, at 1:58 AM, Mike O'Neill =
<michael.oneill@baycloud.com> wrote:
>>>=20
>>> I worry that this makes fingerprinting easier for tracking servers, =
especially for subresources.
>>> It is true that these capabilities are already available via JS but =
only for browsing contexts and the extra turnaround forces some =
stickiness. This would make these granular user-agent capabilities =
immediately available to any resource, without need for a round trip.
>>>=20
>>> I think that at least the availability of a user opt-in should be a =
MUST.
>>>=20
>>> -----Original Message-----
>>> From: internet-drafts@ietf.org [mailto:internet-drafts@ietf.org]
>>> Sent: 02 December 2016 18:08
>>> To: i-d-announce@ietf.org
>>> Cc: ietf-http-wg@w3.org
>>> Subject: I-D Action: draft-ietf-httpbis-client-hints-03.txt
>>>=20
>>>=20
>>> A New Internet-Draft is available from the on-line Internet-Drafts =
directories.
>>> This draft is a work item of the Hypertext Transfer Protocol of the =
IETF.
>>>=20
>>>      Title           : HTTP Client Hints
>>>      Author          : Ilya Grigorik
>>> 	Filename        : draft-ietf-httpbis-client-hints-03.txt
>>> 	Pages           : 13
>>> 	Date            : 2016-12-02
>>>=20
>>> Abstract:
>>> An increasing diversity of Web-connected devices and software
>>> capabilities has created a need to deliver optimized content for =
each
>>> device.
>>>=20
>>> This specification defines a set of HTTP request header fields,
>>> colloquially known as Client Hints, to address this.  They are
>>> intended to be used as input to proactive content negotiation; just
>>> as the Accept header field allows clients to indicate what formats
>>> they prefer, Client Hints allow clients to indicate a list of device
>>> and agent specific preferences.
>>>=20
>>>=20
>>> The IETF datatracker status page for this draft is:
>>> https://datatracker.ietf.org/doc/draft-ietf-httpbis-client-hints/
>>>=20
>>> There's also a htmlized version available at:
>>> https://tools.ietf.org/html/draft-ietf-httpbis-client-hints-03
>>>=20
>>> A diff from the previous version is available at:
>>> https://www.ietf.org/rfcdiff?url2=3Ddraft-ietf-httpbis-client-hints-03=

>>>=20
>>>=20
>>> Please note that it may take a couple of minutes from the time of =
submission
>>> until the htmlized version and diff are available at tools.ietf.org.
>>>=20
>>> Internet-Drafts are also available by anonymous FTP at:
>>> ftp://ftp.ietf.org/internet-drafts/
>=20
> --
> Mark Nottingham   https://www.mnot.net/
>=20
>=20
>=20
>=20
>=20

--
Mark Nottingham   https://www.mnot.net/



From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Mon Jan 30 23:40:16 2017
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 3F8511293FB for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 30 Jan 2017 23:40:16 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.1
X-Spam-Level:
X-Spam-Status: No, score=-10.1 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=unavailable autolearn_force=no
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 QGgfWzvdbs1m for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 30 Jan 2017 23:40:15 -0800 (PST)
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 3222B12940D for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 30 Jan 2017 23:30:31 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cYSs1-0007RI-JD for ietf-http-wg-dist@listhub.w3.org; Tue, 31 Jan 2017 07:28:53 +0000
Resent-Date: Tue, 31 Jan 2017 07:28:53 +0000
Resent-Message-Id: <E1cYSs1-0007RI-JD@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <mnot@mnot.net>) id 1cYSrx-0007Pw-Ou for ietf-http-wg@listhub.w3.org; Tue, 31 Jan 2017 07:28:49 +0000
Received: from mxout-07.mxes.net ([216.86.168.182]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <mnot@mnot.net>) id 1cYSrr-0007Ki-Bc for ietf-http-wg@w3.org; Tue, 31 Jan 2017 07:28:44 +0000
Received: from [192.168.3.104] (unknown [124.189.98.244]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 83B3922E1FA; Tue, 31 Jan 2017 02:28:20 -0500 (EST)
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\))
From: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <E569879C-EF3E-45A7-90A6-5471CBA16F7D@mnot.net>
Date: Tue, 31 Jan 2017 18:28:17 +1100
Cc: Ilya Grigorik <ilya@igvita.com>, "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <5166AC08-04C2-4974-80FA-B984F857C79A@mnot.net>
References: <148070210225.29664.2630836091018103593.idtracker@ietfa.amsl.com> <33226.1480703913@critter.freebsd.dk> <21010c5f-6a6c-1632-b3dd-d0cec7a9e336@gmx.de> <95134.1480926027@critter.freebsd.dk> <e90e3aa8-9e53-f077-f6ab-7c7fc50e0061@gmx.de> <95173.1480926596@critter.freebsd.dk> <CAKRe7JFkmrjMQ2UHfBr94vLuASDe5p36mJHVEHYGfrGtY9NSbQ@mail.gmail.com> <CABkgnnVmWRnv+Ku2CNLncxKuWHJPL+NTkvr6+BqY3otieXgXLA@mail.gmail.com> <E569879C-EF3E-45A7-90A6-5471CBA16F7D@mnot.net>
To: Martin Thomson <martin.thomson@gmail.com>
X-Mailer: Apple Mail (2.3259)
Received-SPF: pass client-ip=216.86.168.182; envelope-from=mnot@mnot.net; helo=mxout-07.mxes.net
X-W3C-Hub-Spam-Status: No, score=-7.7
X-W3C-Hub-Spam-Report: AWL=1.946, BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_IRR=-3, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1cYSrr-0007Ki-Bc 46a39ccf40c6b704c8f4d8a78d527218
X-Original-To: ietf-http-wg@w3.org
Subject: Re: I-D Action: draft-ietf-httpbis-client-hints-03.txt
Archived-At: <http://www.w3.org/mid/5166AC08-04C2-4974-80FA-B984F857C79A@mnot.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33399
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 24 Dec 2016, at 2:14 am, Mark Nottingham <mnot@mnot.net> wrote:
>=20
>=20
>> On 13 Dec. 2016, at 7:31 pm, Martin Thomson =
<martin.thomson@gmail.com> wrote:
>>=20
>> On 6 December 2016 at 08:51, Ilya Grigorik <ilya@igvita.com> wrote:
>>> Background: https://github.com/httpwg/http-extensions/issues/168
>>>=20
>>> We didn't intend Save-Data to be a list.. The goal was to allow =
attributes
>>> on the single token defined in CH. I'll defer to Mark on Key.
>>=20
>>=20
>> Whether you have a list or not, Save-Data has some odd semantics when
>> it comes to extension.  How do I model the following variants?
>>=20
>> Save-Data: on
>> Save-Data: on;video-only
>> Save-Data: on;exclude-video
>> Save-Data: on;compress-video-more
>>=20
>> Assuming that the extensions are not understood, we end up in an odd
>> place.  I see several conclusions:
>>=20
>> 1. unknown extensions are ignored
>> 2. unknown extensions can only increase the amount of compression; =
and
>> are ignored otherwise (see compress-video-more)
>> 3. unknown extensions cause the entire clause to be ignored
>>=20
>> Option 1 seems to be what we have right now, but that doesn't give a
>> client any way to request selective compression (the
>> video-only/not-video example).
>>=20
>> Option 2 might allow a client to request more aggressive compression,
>> but it does nothing to address the case where a client wants video
>> compression, but would prefer not to have images degraded by
>> compression.
>>=20
>> Option 3 might be combined with a comma-separated list to allow
>> clients to provide a fallback strategy.
>>=20
>> There's also probably something more complex as well.
>=20
> I think there's also an Option 4: extensions can only be defined by a =
sd-token, when it is defined. I.e., this extension syntax is for the use =
of future sd-tokens, not for arbitrary extension independent of them.
>=20
> That's what I'd assumed when we defined the syntax; regardless of the =
intent, we should write something down about how the extension point is =
used.

Is this workable for everyone?


--
Mark Nottingham   https://www.mnot.net/



From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Tue Jan 31 00:59:23 2017
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 E5E88126D74 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 31 Jan 2017 00:59:23 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.599
X-Spam-Level:
X-Spam-Status: No, score=-9.599 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 ga-FF9yaToth for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 31 Jan 2017 00:59:22 -0800 (PST)
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 75950126D73 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 31 Jan 2017 00:59:22 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cYUEY-0000q5-DY for ietf-http-wg-dist@listhub.w3.org; Tue, 31 Jan 2017 08:56:14 +0000
Resent-Date: Tue, 31 Jan 2017 08:56:14 +0000
Resent-Message-Id: <E1cYUEY-0000q5-DY@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <pmcmanus@mozilla.com>) id 1cYUET-0000pI-4e for ietf-http-wg@listhub.w3.org; Tue, 31 Jan 2017 08:56:09 +0000
Received: from www.ducksong.com ([192.155.95.102] helo=linode64.ducksong.com) by titan.w3.org with esmtp (Exim 4.84_2) (envelope-from <pmcmanus@mozilla.com>) id 1cYUEM-0001WZ-Mr for ietf-http-wg@w3.org; Tue, 31 Jan 2017 08:56:03 +0000
Received: from mail-qk0-f174.google.com (mail-qk0-f174.google.com [209.85.220.174]) by linode64.ducksong.com (Postfix) with ESMTPSA id 026373A021 for <ietf-http-wg@w3.org>; Tue, 31 Jan 2017 03:55:40 -0500 (EST)
Received: by mail-qk0-f174.google.com with SMTP id 11so156614465qkl.3 for <ietf-http-wg@w3.org>; Tue, 31 Jan 2017 00:55:40 -0800 (PST)
X-Gm-Message-State: AIkVDXLFUpmC2uVcV+XlGGyQIcvhr6f4netn6mevqjgOBGF24y+zT2/5eo2cN4OD1npr0fSH5x73hC8N6qjA1g==
X-Received: by 10.55.157.138 with SMTP id g132mr24457375qke.313.1485852939700; Tue, 31 Jan 2017 00:55:39 -0800 (PST)
MIME-Version: 1.0
Received: by 10.12.162.65 with HTTP; Tue, 31 Jan 2017 00:55:39 -0800 (PST)
In-Reply-To: <CAC4RtVBamPXgKepQBkUo524FUW4psMRzHLqOnY3J_rhkq+YvzQ@mail.gmail.com>
References: <CAOdDvNr==BmizwUPKaMZq__UckfM5bAJ0w15=A-R1xrtZ+JxjA@mail.gmail.com> <CABkgnnVw9K4DiRySgSjbYcxkEyAqxU9DU3dw4e4+vpEk6ff5Zg@mail.gmail.com> <CAC4RtVBamPXgKepQBkUo524FUW4psMRzHLqOnY3J_rhkq+YvzQ@mail.gmail.com>
From: Patrick McManus <pmcmanus@mozilla.com>
Date: Tue, 31 Jan 2017 09:55:39 +0100
X-Gmail-Original-Message-ID: <CAOdDvNpM3vRsb5NRcE6EJuVDOP+GAZ9THMEoLqL-3CSfG__WvA@mail.gmail.com>
Message-ID: <CAOdDvNpM3vRsb5NRcE6EJuVDOP+GAZ9THMEoLqL-3CSfG__WvA@mail.gmail.com>
To: Barry Leiba <barryleiba@computer.org>
Cc: Martin Thomson <martin.thomson@gmail.com>, Patrick McManus <pmcmanus@mozilla.com>,  HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary=94eb2c06f424a8edee0547601842
Received-SPF: softfail client-ip=192.155.95.102; envelope-from=pmcmanus@mozilla.com; helo=linode64.ducksong.com
X-W3C-Hub-Spam-Status: No, score=-4.4
X-W3C-Hub-Spam-Report: AWL=-1.617, BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_SORBS_SPAM=0.5, SPF_HELO_PASS=-0.001, SPF_SOFTFAIL=0.665, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1cYUEM-0001WZ-Mr 493d6e271556866c3c7f761ab4f6e9ea
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Issue 271 of 5987bis - Proposed Standard or Internet Standard?
Archived-At: <http://www.w3.org/mid/CAOdDvNpM3vRsb5NRcE6EJuVDOP+GAZ9THMEoLqL-3CSfG__WvA@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33400
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>

--94eb2c06f424a8edee0547601842
Content-Type: text/plain; charset=UTF-8

Thanks all for the thoughtful replies.  I believe we have consensus for
moving this document forward as a Proposed Standard. I will make the change
in datatracker and leave it to the editor to make the change in the draft.
-Patrick


On Tue, Jan 17, 2017 at 3:33 AM, Barry Leiba <barryleiba@computer.org>
wrote:

> >> I need to direct your attention to one of just two open issues with the
> >> 5987bis document (Indicating Character Encoding and Language for HTTP
> Header
> >> Field Parameters), which deals with the intended status of the eventual
> RFC.
> >
> > Proposed Standard would seem to be sufficient.  I would think that
> > being MORE mature than HTTP would be unrealistic, so that limits us to
> > PS.
>
> Indeed... and beyond "unrealistic", at least somewhat against IETF
> process.  The document has 7230 and 7231 as normative references, so
> they would qualify as "downrefs" if we should try for Internet
> Standard.  We do have a process -- documented in RFC 3967 -- that
> allows downrefs if they are called out explicitly in last call, but
> that is mostly used for referencing informational documents for
> terminology and such.  3967 is pretty clear that it should *not* be
> used in lieu of moving the less-mature references up in maturity
> first.
>
> We should move the HTTP 1.1 set up to IS before we start trying to
> make other HTTP-related standards IS.
>
> Barry
>

--94eb2c06f424a8edee0547601842
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Thanks all for the thoughtful replies.=C2=A0 I believ=
e we have consensus for moving this document forward as a Proposed Standard=
. I will make the change in datatracker and leave it to the editor to make =
the change in the draft.<br></div>-Patrick<br><br></div><div class=3D"gmail=
_extra"><br><div class=3D"gmail_quote">On Tue, Jan 17, 2017 at 3:33 AM, Bar=
ry Leiba <span dir=3D"ltr">&lt;<a href=3D"mailto:barryleiba@computer.org" t=
arget=3D"_blank">barryleiba@computer.org</a>&gt;</span> wrote:<br><blockquo=
te class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc so=
lid;padding-left:1ex"><span class=3D"">&gt;&gt; I need to direct your atten=
tion to one of just two open issues with the<br>
&gt;&gt; 5987bis document (Indicating Character Encoding and Language for H=
TTP Header<br>
&gt;&gt; Field Parameters), which deals with the intended status of the eve=
ntual RFC.<br>
&gt;<br>
&gt; Proposed Standard would seem to be sufficient.=C2=A0 I would think tha=
t<br>
&gt; being MORE mature than HTTP would be unrealistic, so that limits us to=
<br>
&gt; PS.<br>
<br>
</span>Indeed... and beyond &quot;unrealistic&quot;, at least somewhat agai=
nst IETF<br>
process.=C2=A0 The document has 7230 and 7231 as normative references, so<b=
r>
they would qualify as &quot;downrefs&quot; if we should try for Internet<br=
>
Standard.=C2=A0 We do have a process -- documented in RFC 3967 -- that<br>
allows downrefs if they are called out explicitly in last call, but<br>
that is mostly used for referencing informational documents for<br>
terminology and such.=C2=A0 3967 is pretty clear that it should *not* be<br=
>
used in lieu of moving the less-mature references up in maturity<br>
first.<br>
<br>
We should move the HTTP 1.1 set up to IS before we start trying to<br>
make other HTTP-related standards IS.<br>
<span class=3D"HOEnZb"><font color=3D"#888888"><br>
Barry<br>
</font></span></blockquote></div><br></div>

--94eb2c06f424a8edee0547601842--


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Tue Jan 31 01:58:18 2017
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 562AA129643 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 31 Jan 2017 01:58:18 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.6
X-Spam-Level:
X-Spam-Status: No, score=-9.6 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 Xwd82o99ql4k for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 31 Jan 2017 01:58:17 -0800 (PST)
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 53A9E129409 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 31 Jan 2017 01:58:17 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cYV9t-0005ap-HU for ietf-http-wg-dist@listhub.w3.org; Tue, 31 Jan 2017 09:55:29 +0000
Resent-Date: Tue, 31 Jan 2017 09:55:29 +0000
Resent-Message-Id: <E1cYV9t-0005ap-HU@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <julian.reschke@gmx.de>) id 1cYV9p-0005a4-Nj for ietf-http-wg@listhub.w3.org; Tue, 31 Jan 2017 09:55:25 +0000
Received: from mout.gmx.net ([212.227.17.21]) by titan.w3.org with esmtps (TLS1.2:DHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <julian.reschke@gmx.de>) id 1cYV9j-0003YW-Hs for ietf-http-wg@w3.org; Tue, 31 Jan 2017 09:55:20 +0000
Received: from [192.168.1.123] ([5.10.171.186]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0Maa3B-1csUyS2Abx-00K9dq; Tue, 31 Jan 2017 10:54:45 +0100
To: Patrick McManus <pmcmanus@mozilla.com>, Barry Leiba <barryleiba@computer.org>
References: <CAOdDvNr==BmizwUPKaMZq__UckfM5bAJ0w15=A-R1xrtZ+JxjA@mail.gmail.com> <CABkgnnVw9K4DiRySgSjbYcxkEyAqxU9DU3dw4e4+vpEk6ff5Zg@mail.gmail.com> <CAC4RtVBamPXgKepQBkUo524FUW4psMRzHLqOnY3J_rhkq+YvzQ@mail.gmail.com> <CAOdDvNpM3vRsb5NRcE6EJuVDOP+GAZ9THMEoLqL-3CSfG__WvA@mail.gmail.com>
Cc: Martin Thomson <martin.thomson@gmail.com>, HTTP Working Group <ietf-http-wg@w3.org>
From: Julian Reschke <julian.reschke@gmx.de>
Message-ID: <af68c90e-d5a3-148a-d058-44cb7c1821bf@gmx.de>
Date: Tue, 31 Jan 2017 10:54:46 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0
MIME-Version: 1.0
In-Reply-To: <CAOdDvNpM3vRsb5NRcE6EJuVDOP+GAZ9THMEoLqL-3CSfG__WvA@mail.gmail.com>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Provags-ID: V03:K0:2/hhNjObicIwjgIpNYxhcevHcxGCTlT6gzsHAJayXz++cx+SSmD VH+MSPYs8lXuT2PPv4ToH58SQSbVXhFSHld+0D1ZGttEL7MuV+g0pSA9uI90hGSJ2/Ne2ld PPpU9AfaL4vjUG9pgjLAH+KRx/4rkX3JNftk4QHYBmmDxYOMiHVYNm7MqXkVfaKN9Xms9yX kMnPPQhloWxG6MxRPsuRw==
X-UI-Out-Filterresults: notjunk:1;V01:K0:EFC2o0twn0E=:1Tl2vAkFAN/eYwfD1tXSCs 9ZsZ/K2c+oV/s56jZSo+2JbbxQlP3BUjutnFgbDymK8iEUImopwNt659upJRwbrK3AiIb6BJH 8XzY8/J6Sk3ekWq9kZ9xeE36QlGlRqCaRRXohLzZ0oMNowdEpoBaeRpjNJaSbumoO7bMC4W9i GakEtM6WBNJ74c9fHbN5sQ8B8/Mhw815tQMwckK4H8XXG1VBukp57OJrzbLdSMuauGrlk5LFO TeiwLw9jtTc1eiUBKSbZUvCi8lw8GgeoGDqoHL7WNMnxkIuWV3GVxa3rH9xDS5FixuNzGfuTI X/g50FTXIk0Dn3x1ArhUAfda4bLDTy4dXLFGbmRSbCvN0Oou/9Z46G9jm/p52wLf6eIl8sG+4 Q3tLi5lFnBOxiNF6yKADXZaKViMPJ1oXIcge0DQOUzugFLSg5d7Y7Lf14YfWdkIRDk/L9opMS /hQvVBk/rECyf7L++0nErxgYTpCCnLGKxMSNoVgzQugs0T+u/5IjidF6Gvc2kOBSsjZxaLYzA D+nJJzJCGBctGM3ofyk+NKc3Gu3wyYvtZSVyzNxmFdf9Yaz4XT+G5sWEEykSR5B4j1WaSc7vx hyX8nGw7BiIr71KJU/pWGF1YiZ1SKpXP7HbQafefMtGjVVhqSI7TrMmQAZ5gtIxGkfk1yUyse Ng7NPKjQLedP1UAe+Ka+UR1QawUf392/t/gW150CHowvsN8snkZkk4RURnZZGM2j0ZpfHk86E qSDsORoVMxzq1w8jLbR8EL1WMLip0kaaXbXagcRVBaHrYAZj+JbYtlNa5YkS0Wu+hoqqR8ELn pW9I6sS5Y8XeSEHvKI9tsp4nLbSdNtyv/ZLf3O6G9WVXgiwBGSQ3KgWRpCik8wmQMqDkY5LAA JxjZpNcwd03IE9tCi/olUNDzGq6OoLQEPJLcmaUb2ZNCkirfJue6VFN6JZ6jf53LQj4Udmb0V TdKxPos+gvOwg2UlJ7ElqWt7E2f4s5LoiYRUxQIrVTtivQOdsZCQktbZzyP2CzNj4pZueBI3Y yYXbFgDutDiml1A0c7wrZsY=
Received-SPF: pass client-ip=212.227.17.21; envelope-from=julian.reschke@gmx.de; helo=mout.gmx.net
X-W3C-Hub-Spam-Status: No, score=-6.7
X-W3C-Hub-Spam-Report: AWL=0.575, BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-1.147, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1cYV9j-0003YW-Hs 37948d736ac263928bb8b9e66a1f814a
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Issue 271 of 5987bis - Proposed Standard or Internet Standard?
Archived-At: <http://www.w3.org/mid/af68c90e-d5a3-148a-d058-44cb7c1821bf@gmx.de>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33401
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 2017-01-31 09:55, Patrick McManus wrote:
> Thanks all for the thoughtful replies.  I believe we have consensus for
> moving this document forward as a Proposed Standard. I will make the
> change in datatracker and leave it to the editor to make the change in
> the draft.
> -Patrick

FWIW, the draft (as published) doesn't contain the intended status, so 
no change is needed.

Best regards, Julian

PS: yes, the *source* of the draft does, but that's a 
rfc2629.xslt-specific extension element that is stripped before posting; 
now updated.



From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Tue Jan 31 21:20:29 2017
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 DA26D129C23 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 31 Jan 2017 21:20:29 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.619
X-Spam-Level:
X-Spam-Status: No, score=-9.619 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
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 MIsyB2BJvY-A for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 31 Jan 2017 21:20:28 -0800 (PST)
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 7271E1296A9 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 31 Jan 2017 21:20:28 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cYnHq-0008Of-3H for ietf-http-wg-dist@listhub.w3.org; Wed, 01 Feb 2017 05:16:54 +0000
Resent-Date: Wed, 01 Feb 2017 05:16:54 +0000
Resent-Message-Id: <E1cYnHq-0008Of-3H@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <internet-drafts@ietf.org>) id 1cYnHj-0008NN-Ap for ietf-http-wg@listhub.w3.org; Wed, 01 Feb 2017 05:16:47 +0000
Received: from mail.ietf.org ([4.31.198.44]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <internet-drafts@ietf.org>) id 1cYnHc-0000Fr-Um for ietf-http-wg@w3.org; Wed, 01 Feb 2017 05:16:42 +0000
Received: from ietfa.amsl.com (localhost [IPv6:::1]) by ietfa.amsl.com (Postfix) with ESMTP id 21E82129461; Tue, 31 Jan 2017 21:16:14 -0800 (PST)
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
From: internet-drafts@ietf.org
To: <i-d-announce@ietf.org>
Cc: ietf-http-wg@w3.org
X-Test-IDTracker: no
X-IETF-IDTracker: 6.41.1
Auto-Submitted: auto-generated
Message-ID: <148592617413.5931.617984624486973260.idtracker@ietfa.amsl.com>
Date: Tue, 31 Jan 2017 21:16:14 -0800
Received-SPF: pass client-ip=4.31.198.44; envelope-from=internet-drafts@ietf.org; helo=mail.ietf.org
X-W3C-Hub-Spam-Status: No, score=-6.6
X-W3C-Hub-Spam-Report: AWL=0.291, BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-1.147, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1cYnHc-0000Fr-Um c544514d5bd0adb7306fd119df24bca9
X-Original-To: ietf-http-wg@w3.org
Subject: I-D Action: draft-ietf-httpbis-http2-encryption-10.txt
Archived-At: <http://www.w3.org/mid/148592617413.5931.617984624486973260.idtracker@ietfa.amsl.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33402
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>

A New Internet-Draft is available from the on-line Internet-Drafts directories.
This draft is a work item of the Hypertext Transfer Protocol of the IETF.

        Title           : Opportunistic Security for HTTP
        Authors         : Mark Nottingham
                          Martin Thomson
	Filename        : draft-ietf-httpbis-http2-encryption-10.txt
	Pages           : 10
	Date            : 2017-01-31

Abstract:
   This document describes how "http" URIs can be accessed using
   Transport Layer Security (TLS) to mitigate pervasive monitoring
   attacks.

Note to Readers

   Discussion of this draft takes place on the HTTP working group
   mailing list (ietf-http-wg@w3.org), which is archived at
   https://lists.w3.org/Archives/Public/ietf-http-wg/ .

   Working Group information can be found at http://httpwg.github.io/ ;
   source code and issues list for this draft can be found at
   https://github.com/httpwg/http-extensions/labels/opp-sec .


The IETF datatracker status page for this draft is:
https://datatracker.ietf.org/doc/draft-ietf-httpbis-http2-encryption/

There's also a htmlized version available at:
https://tools.ietf.org/html/draft-ietf-httpbis-http2-encryption-10

A diff from the previous version is available at:
https://www.ietf.org/rfcdiff?url2=draft-ietf-httpbis-http2-encryption-10


Please note that it may take a couple of minutes from the time of submission
until the htmlized version and diff are available at tools.ietf.org.

Internet-Drafts are also available by anonymous FTP at:
ftp://ftp.ietf.org/internet-drafts/



From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Tue Jan 31 21:20:31 2017
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 0C0BD1296A9 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 31 Jan 2017 21:20:31 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.719
X-Spam-Level:
X-Spam-Status: No, score=-9.719 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, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=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 B5iiaeL0cdju for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 31 Jan 2017 21:20:28 -0800 (PST)
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 72735129BFA for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 31 Jan 2017 21:20:28 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cYnJR-0008QO-3x for ietf-http-wg-dist@listhub.w3.org; Wed, 01 Feb 2017 05:18:33 +0000
Resent-Date: Wed, 01 Feb 2017 05:18:33 +0000
Resent-Message-Id: <E1cYnJR-0008QO-3x@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <martin.thomson@gmail.com>) id 1cYnJN-0008Pa-Jy for ietf-http-wg@listhub.w3.org; Wed, 01 Feb 2017 05:18:29 +0000
Received: from mail-qk0-f169.google.com ([209.85.220.169]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <martin.thomson@gmail.com>) id 1cYnIt-0002Ld-T1 for ietf-http-wg@w3.org; Wed, 01 Feb 2017 05:18:22 +0000
Received: by mail-qk0-f169.google.com with SMTP id s186so6782472qkb.1 for <ietf-http-wg@w3.org>; Tue, 31 Jan 2017 21:17:39 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=2tCRyzMskoiKthrx5x4ixgkcQrDqV0A6wgIA/CV40UY=; b=TfgRWgp9jZQpNc+W77Y7Xdx1kDQ7U5y2VkaCr4RZDu8cTyJrB0jPh+83da18nQee0W YA7xPnG4VbXFRXFaZGsm8g1NiT7Su6tMw637iBF6TTORBGSE92TJp5UVdRtal2QwmIvb sAei73SiBV5gNVrG0tPwY6o8cop36cL7Assr+RrF0znxFrspYTaLAGOaX9RDFoceTSkn c5MBf6jYv9esCTOw+yAKL2qPN7EJ8VPlTOLiro6selhCJOuuXjF+nHUaIxhnzRyc0Q0G rvyiAS2wCzm7KjP7HAjayFZw2uCE0AXYNEp49/A5L3inm5/qw9wP2l3fPzJAU7rxdShG H2wA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=2tCRyzMskoiKthrx5x4ixgkcQrDqV0A6wgIA/CV40UY=; b=UJ/8rlJsHNEQ34/1tidpX/wozJP7u0TXHcRPfX0AaTsVzwVt3BSZLne1s+TsvJsWyY 4L7knFh2kbLy0qFMF4FkRqWUee/wmMBuF22QMo6BrUvwp5YUmUxPAfyiA7eRtLKEOrG8 WzNn5uzB4K1h7RxzUL1PtXxoNTG8+bs9k9M275ncRbjZ2fjtmieEfM8FIh7hhC2PYXx1 JbpB6jHvUsVWtCbLKlw9kKpna2cyI28aD6HYnApYMKqfkCBJlBQLze2ZeOK5Jc7CtVAJ aexTMUfFKo8p9oLtXtblI6FgV/xsKGofges69lESLq2lH6/1PAnjKsaP39SIfXiLoz2u Dhtg==
X-Gm-Message-State: AMke39noeALPQbLQK8f+POW+KxPhXq1RdL5Hyv9VNtafz76lvcuP6usN0rr+UkLQt1DlTaZsJORhXEjbeClFRg==
X-Received: by 10.55.152.3 with SMTP id a3mr1040071qke.202.1485926253379; Tue, 31 Jan 2017 21:17:33 -0800 (PST)
MIME-Version: 1.0
Received: by 10.140.19.112 with HTTP; Tue, 31 Jan 2017 21:17:32 -0800 (PST)
From: Martin Thomson <martin.thomson@gmail.com>
Date: Wed, 1 Feb 2017 16:17:32 +1100
Message-ID: <CABkgnnVBCj3LGNM6UH51okP9TQrxEmJwnXbg62qq9ex3fH-Xog@mail.gmail.com>
To: HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: text/plain; charset=UTF-8
Received-SPF: pass client-ip=209.85.220.169; envelope-from=martin.thomson@gmail.com; helo=mail-qk0-f169.google.com
X-W3C-Hub-Spam-Status: No, score=-5.7
X-W3C-Hub-Spam-Report: AWL=-0.223, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cYnIt-0002Ld-T1 835aa5a94d6bba74fde7ca69bc68a691
X-Original-To: ietf-http-wg@w3.org
Subject: draft-ietf-httpbis-http2-encryption-10
Archived-At: <http://www.w3.org/mid/CABkgnnVBCj3LGNM6UH51okP9TQrxEmJwnXbg62qq9ex3fH-Xog@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33403
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>

I've just posted an update to this doc:

https://datatracker.ietf.org/doc/draft-ietf-httpbis-http2-encryption/

This incorporates my best attempt to address the comments Kari had on
the last version.  If this is OK, I think that Mark should ask the
IESG to publish this as Experimental.


From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Tue Jan 31 22:11:15 2017
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 03E0C1293F2 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 31 Jan 2017 22:11:15 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.119
X-Spam-Level:
X-Spam-Status: No, score=-10.119 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, 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=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
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 x632GVYrRRLB for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 31 Jan 2017 22:11:13 -0800 (PST)
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 9FF3712975C for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 31 Jan 2017 22:11:13 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cYo5t-0007Ex-4T for ietf-http-wg-dist@listhub.w3.org; Wed, 01 Feb 2017 06:08:37 +0000
Resent-Date: Wed, 01 Feb 2017 06:08:37 +0000
Resent-Message-Id: <E1cYo5t-0007Ex-4T@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <mnot@mnot.net>) id 1cYo5o-0007DK-KP for ietf-http-wg@listhub.w3.org; Wed, 01 Feb 2017 06:08:32 +0000
Received: from mxout-07.mxes.net ([216.86.168.182]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <mnot@mnot.net>) id 1cYo5i-0001nx-GU for ietf-http-wg@w3.org; Wed, 01 Feb 2017 06:08:27 +0000
Received: from [192.168.3.104] (unknown [124.189.98.244]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 3D55922E256; Wed,  1 Feb 2017 01:08:02 -0500 (EST)
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\))
From: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <CABkgnnVBCj3LGNM6UH51okP9TQrxEmJwnXbg62qq9ex3fH-Xog@mail.gmail.com>
Date: Wed, 1 Feb 2017 17:07:59 +1100
Cc: HTTP Working Group <ietf-http-wg@w3.org>, Mike Bishop <Michael.Bishop@microsoft.com>
Content-Transfer-Encoding: quoted-printable
Message-Id: <05695909-7317-4316-BD18-A2CCE27FF7E8@mnot.net>
References: <CABkgnnVBCj3LGNM6UH51okP9TQrxEmJwnXbg62qq9ex3fH-Xog@mail.gmail.com>
To: Martin Thomson <martin.thomson@gmail.com>
X-Mailer: Apple Mail (2.3259)
Received-SPF: pass client-ip=216.86.168.182; envelope-from=mnot@mnot.net; helo=mxout-07.mxes.net
X-W3C-Hub-Spam-Status: No, score=-7.7
X-W3C-Hub-Spam-Report: AWL=1.858, BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_IRR=-3, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1cYo5i-0001nx-GU e20b2ab5946c5cd0cda095a3f621a0d8
X-Original-To: ietf-http-wg@w3.org
Subject: Re: draft-ietf-httpbis-http2-encryption-10
Archived-At: <http://www.w3.org/mid/05695909-7317-4316-BD18-A2CCE27FF7E8@mnot.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33404
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>

I know we're pretty exhausted with this one, but I do observe that the =
change since WGLC on this one are pretty substantial:
  =
https://www.ietf.org/rfcdiff?url1=3Ddraft-ietf-httpbis-http2-encryption-04=
&url2=3Ddraft-ietf-httpbis-http2-encryption-10

However, Mike is Document Shepherd on this one, so I'll let him make the =
call as to whether we need another WGLC. Personally, I think if we do =
have one, a week or so would be sufficient.

Cheers,


> On 1 Feb 2017, at 4:17 pm, Martin Thomson <martin.thomson@gmail.com> =
wrote:
>=20
> I've just posted an update to this doc:
>=20
> https://datatracker.ietf.org/doc/draft-ietf-httpbis-http2-encryption/
>=20
> This incorporates my best attempt to address the comments Kari had on
> the last version.  If this is OK, I think that Mark should ask the
> IESG to publish this as Experimental.
>=20

--
Mark Nottingham   https://www.mnot.net/



From ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org  Tue Jan 31 22:54:03 2017
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 90EC5120727 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 31 Jan 2017 22:54:03 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.119
X-Spam-Level:
X-Spam-Status: No, score=-10.119 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, 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=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
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 dbBT3kITHmjn for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 31 Jan 2017 22:54:02 -0800 (PST)
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 F0CF3129964 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 31 Jan 2017 22:54:01 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cYokd-0002K4-75 for ietf-http-wg-dist@listhub.w3.org; Wed, 01 Feb 2017 06:50:43 +0000
Resent-Date: Wed, 01 Feb 2017 06:50:43 +0000
Resent-Message-Id: <E1cYokd-0002K4-75@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <mnot@mnot.net>) id 1cYokX-0002J9-LM for ietf-http-wg@listhub.w3.org; Wed, 01 Feb 2017 06:50:37 +0000
Received: from mxout-07.mxes.net ([216.86.168.182]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <mnot@mnot.net>) id 1cYokR-0002me-M0 for ietf-http-wg@w3.org; Wed, 01 Feb 2017 06:50:32 +0000
Received: from [192.168.3.104] (unknown [124.189.98.244]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 2EA6122E1F3 for <ietf-http-wg@w3.org>; Wed,  1 Feb 2017 01:50:08 -0500 (EST)
From: Mark Nottingham <mnot@mnot.net>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\))
Message-Id: <C3CCA267-F5B5-4827-AC27-9853BDADACDE@mnot.net>
Date: Wed, 1 Feb 2017 17:50:05 +1100
To: HTTP Working Group <ietf-http-wg@w3.org>
X-Mailer: Apple Mail (2.3259)
Received-SPF: pass client-ip=216.86.168.182; envelope-from=mnot@mnot.net; helo=mxout-07.mxes.net
X-W3C-Hub-Spam-Status: No, score=-7.7
X-W3C-Hub-Spam-Report: AWL=1.946, BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_IRR=-3, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1cYokR-0002me-M0 7c0e11dde1c6456747ac5028e60a466f
X-Original-To: ietf-http-wg@w3.org
Subject: ORIGIN - suggested changes
Archived-At: <http://www.w3.org/mid/C3CCA267-F5B5-4827-AC27-9853BDADACDE@mnot.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33405
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>

[ editor hat ]

After talking to a few people, I have a few suggested changes in a pull =
request:
  https://github.com/httpwg/http-extensions/pull/285/files

Basically, this:
  - Removes the requirement for a supporting client to check DNS to =
determine if the server is authoritative, when ORIGIN is received
  - Redefines the initial Origin Set as whatever SNI included (if =
anything).

I suspect some adjustments will need to be made, but I wanted to get =
some feedback on the ideas first.

Some people have also been talking about simplifying ORIGIN, e.g., by =
removing some of the set operations. I think we should talk about that =
on list first.

Cheers,

--
Mark Nottingham   https://www.mnot.net/


