Re: Design Issue: Separate HEADERS and PRIORITY Frames, Eliminate HEADERS+PRIORITY

James M Snell <jasnell@gmail.com> Tue, 21 May 2013 16:35 UTC

Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6B8B421F98A5 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 21 May 2013 09:35:04 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.246
X-Spam-Level:
X-Spam-Status: No, score=-9.246 tagged_above=-999 required=5 tests=[AWL=1.353, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VBS0oY57cZWk for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 21 May 2013 09:34:58 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id BA5D421F977A for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 21 May 2013 09:34:58 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1UepWK-0008QK-MX for ietf-http-wg-dist@listhub.w3.org; Tue, 21 May 2013 16:34:40 +0000
Resent-Date: Tue, 21 May 2013 16:34:40 +0000
Resent-Message-Id: <E1UepWK-0008QK-MX@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <jasnell@gmail.com>) id 1UepW9-0008Pa-JJ for ietf-http-wg@listhub.w3.org; Tue, 21 May 2013 16:34:29 +0000
Received: from mail-oa0-f47.google.com ([209.85.219.47]) by maggie.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <jasnell@gmail.com>) id 1UepW4-0005oi-Tk for ietf-http-wg@w3.org; Tue, 21 May 2013 16:34:29 +0000
Received: by mail-oa0-f47.google.com with SMTP id m1so1081362oag.6 for <ietf-http-wg@w3.org>; Tue, 21 May 2013 09:33:59 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=Pn8AQesV4PDLla5mrWbOpcOEk3oub8iJDI/QAJmSO2Y=; b=mISEyGhD+j+LrPjhQXMdhCMIeH0Hfjk68EYcA+wEeqKL3kiMkYgM4/HsgeqXbhzR1M Z5xTN2vu5NAHvVweFjyh2Xc0itJCHnymGv5lFs0+j7qRtvw+dscAR/iocKhZe3y5Yj0J kZSQk5zV+TNnhMH142jP0eRyajcKtZfMWnL9U4eWEi3fPfVFDu9TITQyl3QedfOrvpK/ 47ganLyp90KkBJy/XV181KpRCoJgZiMjEvmlY0uocqPzMNNYVC7UP/oY+l+wxz2VPyMs s6LecKJGsAE7BBNIuuWO2EPKRz15Flv9gLcIlFmhDrSHCG9imLZfoCvpNgRwk1RyxLAl tupQ==
X-Received: by 10.182.246.198 with SMTP id xy6mr2027080obc.1.1369154039102; Tue, 21 May 2013 09:33:59 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.60.3.137 with HTTP; Tue, 21 May 2013 09:33:39 -0700 (PDT)
In-Reply-To: <CAP+FsNcwG9G3_fiNEEGaA9pkcoSsBP8h+n3crTUFc1s4O5gKCg@mail.gmail.com>
References: <CABP7RbfX_H_7dwM7ExL5qJgpV5JN1NYyv9tqnu_E23qGk63mWg@mail.gmail.com> <CAP+FsNcwG9G3_fiNEEGaA9pkcoSsBP8h+n3crTUFc1s4O5gKCg@mail.gmail.com>
From: James M Snell <jasnell@gmail.com>
Date: Tue, 21 May 2013 09:33:39 -0700
Message-ID: <CABP7RbdTu4yxi8HQTxFxi75Rx6vqQ4r5rhQ8RFMsLpJVjXKvYA@mail.gmail.com>
To: Roberto Peon <grmocg@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.219.47; envelope-from=jasnell@gmail.com; helo=mail-oa0-f47.google.com
X-W3C-Hub-Spam-Status: No, score=-3.5
X-W3C-Hub-Spam-Report: AWL=-2.678, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1UepW4-0005oi-Tk 394ed3086d59bc826cc8ed08cf16003d
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Design Issue: Separate HEADERS and PRIORITY Frames, Eliminate HEADERS+PRIORITY
Archived-At: <http://www.w3.org/mid/CABP7RbdTu4yxi8HQTxFxi75Rx6vqQ4r5rhQ8RFMsLpJVjXKvYA@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/18056
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>

Which is why we could allow for the client sending the PRIORITY frame
*before* the initial HEADERS frame.



On Tue, May 21, 2013 at 9:31 AM, Roberto Peon <grmocg@gmail.com> wrote:
> This separation would introduce a race where the server may start sending
> content before it knows the appropriate priority.
>
> That would be bad.
>
> On May 21, 2013 9:13 AM, "James M Snell" <jasnell@gmail.com> wrote:
>>
>> https://github.com/http2/http2-spec/issues/99
>>
>> With regards to the discussion over stream re-prioritization, I suggest:
>>
>> 1. Drop the HEADERS+PRIORITY frame type.
>> 2. Create a new separate PRIORITY frame type whose payload is the
>> Priority value, no frame-specific flags.
>> 3. The PRIORITY frame becomes the only way to set/change the priority
>> for a stream.
>>
>> If it is necessary to allow an endpoint to establish the priority of
>> stream prior to actually initiating the stream, we can allow sending a
>> PRIORITY frame before the initial HEADERS frame. Doing so would
>> effectively reserve the stream id (in the same general manner
>> PUSH_PROMISE does).
>>
>> The advantages of this approach are:
>>
>> 1. It eliminates any possible confusion and complexity about when to
>> use HEADERS+PRIORITY vs. HEADERS
>> 2. It provides a single way of setting/change stream priority (as
>> opposed to using HEADERS+PRIORITY plus a separate CHANGE-PRIORITY
>> frame)
>>
>