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

William Chan (陈智昌) <willchan@chromium.org> Tue, 04 June 2013 21:36 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 5ACC221F99B6 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 4 Jun 2013 14:36:17 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.801
X-Spam-Level:
X-Spam-Status: No, score=-8.801 tagged_above=-999 required=5 tests=[AWL=0.875, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, MIME_8BIT_HEADER=0.3, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KFUQ55Vla+iC for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 4 Jun 2013 14:36:12 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id E858421F9BA5 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 4 Jun 2013 12:19:27 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1Ujwji-0005AR-CO for ietf-http-wg-dist@listhub.w3.org; Tue, 04 Jun 2013 19:17:38 +0000
Resent-Date: Tue, 04 Jun 2013 19:17:38 +0000
Resent-Message-Id: <E1Ujwji-0005AR-CO@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <willchan@google.com>) id 1UjwjS-00059V-SM for ietf-http-wg@listhub.w3.org; Tue, 04 Jun 2013 19:17:22 +0000
Received: from mail-qe0-f49.google.com ([209.85.128.49]) by lisa.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <willchan@google.com>) id 1UjwjO-0002JZ-1e for ietf-http-wg@w3.org; Tue, 04 Jun 2013 19:17:22 +0000
Received: by mail-qe0-f49.google.com with SMTP id cz11so462574qeb.8 for <ietf-http-wg@w3.org>; Tue, 04 Jun 2013 12:16:52 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=sRgTpZUh1KbX947A4gEJ64emw8hd5m9BOzxfqleb83Q=; b=X6NdD5PBSvXceSiY2FC6cjLh4pYbSk7INVGDmdcZb5Uw/91MgM+CU1mK6F0MnUb/Yq wnKO1mwG6MiXHCQ5r8Z3IyVSOBoaPV5FCZaufXwZsBYq6PfxsUV6Pod97jgBOE2f/yzr vUW0iZkyRbWaMSpQgxJffBosYSN0AnT2HoohFvD2tmtoSubdVYhfay+YkJtmmrifladr AuN3TToHrfbsYjb5L8UJ1/TklZOjsxcF8659yVdu7kh6fNxFd6XoMIy8ZVQJQ6e/M6cc 2jUtrLzGw1vlaXdy8APzFQaxVncEECS1KroYKZXAjDf+0xEvwLI0txG4j3a2si2XOXti 6q/A==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=sRgTpZUh1KbX947A4gEJ64emw8hd5m9BOzxfqleb83Q=; b=NVzbBh1Q78Q8K9aADO2iWQcEpvtSwHrovIl31bPgkS8uq/S8iknX4Z+4y4aVF4QVRX JrIOMJxLDp8dKXNNHAHT3KZYyvizXgN4ebPmxPLU2xB2Z0YlmrchOU8jNvEEuP68C82k iOpfZmoQGwxI4iQ3Vwvnnz6AtZo6imcMl53LY=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :x-gm-message-state; bh=sRgTpZUh1KbX947A4gEJ64emw8hd5m9BOzxfqleb83Q=; b=CEtValPHvZA7EN9xfieu6fZZFyyh4d3jFy7jPO0GdAeAgVP31KvSPexbznK5zpG5j/ Q/yjuEijT5JFeSvT2QpKDGN7AILSmPwoO2Ing3v6BrODXKtuGL+gSJ+bKJ7hRolN7dix /KlWt/vzAmciH3C3wi9hRH3pfH4u4LViHX1MAlW+Rh6pJ+3PTGc6X+WdEqCssr5CCyej wbKjA0/rxiMjCcTZf6ljaVibIIbGDbStPblVsDf8ptGxjn8fWjCIT/xXczefDyN8pPSS ByO7D0xf57/ObfL8mtsNEmtkMcGTqYgJW7xAOhSyb9nPY7RnqCkks2vAoOQEH6vm/up6 0DIw==
MIME-Version: 1.0
X-Received: by 10.224.214.134 with SMTP id ha6mr24806304qab.77.1370373412020; Tue, 04 Jun 2013 12:16:52 -0700 (PDT)
Sender: willchan@google.com
Received: by 10.229.62.133 with HTTP; Tue, 4 Jun 2013 12:16:51 -0700 (PDT)
In-Reply-To: <CABP7RbdUSLTN1YJDkigfqvMJw7hUh4Uv+CYSsFETn6N+EQ0NdA@mail.gmail.com>
References: <CABP7RbfX_H_7dwM7ExL5qJgpV5JN1NYyv9tqnu_E23qGk63mWg@mail.gmail.com> <CAA4WUYhDhoS+BNknRnYLAOXfWzumcjkWnQnM=NkNM8oqqE=atw@mail.gmail.com> <CAOdDvNqkuY5qtOzFz5J0v1F1_n8HmFY9J==sXMs_9tDrTTE=cg@mail.gmail.com> <CAA4WUYhZb_ScYZ=F8ypGkXkX=3oK+4TnyWOtuN_FNkZqqhbZLQ@mail.gmail.com> <CABP7RbeAwrT15QKn5kL0=w+V0zBgObe_pOzT-NxbwSrZ_RyA+A@mail.gmail.com> <CAP+FsNd95pXcPM1OiG2qjOyXKV80noh2frdEbORwe6HxsgeK3Q@mail.gmail.com> <CABP7RbfOWdaOVeVSmnrqUtHM5F8=xjLauDBoRbpijWsWxyK+rw@mail.gmail.com> <CA+pLO_g892Cr1B8GtN01j1GArU0+Mkoya2UAAb893ZrfKdyeEA@mail.gmail.com> <CAP+FsNe4=hVsm3sNerAdELECHz_2m8aWOLK-Kif-JVz_G=HyKw@mail.gmail.com> <CA+pLO_jaDNWyZyxsWVQ2YuBG8kuZjo1KovmBVfa2d9vVYb56dg@mail.gmail.com> <CAP+FsNd0AZEDXvTD7uvEgFK-4GRShj9tEcam0C68t4S_ySTNUw@mail.gmail.com> <CA+pLO_i84tPbrVZgE-0uLeZs5UB0wY2PLn=R9V74ZUe+0TyfiA@mail.gmail.com> <CAP+FsNcWfdgtW+-6tpXgcAPZSNHOdBuoMXLY4nPyf4YoLTeotg@mail.gmail.com> <CA+pLO_gV4YS6FVMiQ0rzDEHCYnOJdeGftY4Z0nm18qfaQBdofA@mail.gmail.com> <CAP+FsNfBoh6wcqTUHfHPhbf8zZ4Vj=i2Lg4bEG5wcyuUwz60eQ@mail.gmail.com> <CA+pLO_j8CX9vddtogsjz80uN=kv6vE7V1dJqEuJdTtGO64PYyw@mail.gmail.com> <CABP7RbdUSLTN1YJDkigfqvMJw7hUh4Uv+CYSsFETn6N+EQ0NdA@mail.gmail.com>
Date: Tue, 04 Jun 2013 12:16:51 -0700
X-Google-Sender-Auth: kjPTM_wTP85jenCEHL8iJa1qpoM
Message-ID: <CAA4WUYi5_sbHD6KcDphsE8AkXA0vQnZ0sZecgXT9+XdhzpjZ0g@mail.gmail.com>
From: "William Chan (陈智昌)" <willchan@chromium.org>
To: James M Snell <jasnell@gmail.com>
Cc: Jeff Pinner <jpinner@twitter.com>, Roberto Peon <grmocg@gmail.com>, Patrick McManus <pmcmanus@mozilla.com>, "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary="20cf300fb23d6f2b8304de58ec87"
X-Gm-Message-State: ALoCoQlcdEfOoDn6HsvNBewqWyMiHhrdfxCgJKw0/UXW+jA4zHgVDKTX1KqqkJ9joH8TRe2bSK7kqfOJ1905mBDsuDBK+9QN86oiVVnZOQj7DXxAaNqDFZ+qjnr2aSS7eb4pTIgbYsYSrC9oc6YrQi1hRRbr+4MnWXF5KYJWdVAk3dmLT74FRyRvxHJ8tHrLo1oNQGHw4FlY
Received-SPF: pass client-ip=209.85.128.49; envelope-from=willchan@google.com; helo=mail-qe0-f49.google.com
X-W3C-Hub-Spam-Status: No, score=-3.8
X-W3C-Hub-Spam-Report: AWL=-2.468, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RP_MATCHES_RCVD=-0.535, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1UjwjO-0002JZ-1e 1b6e06dd1495ca6276fca64ea1a0fac0
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/CAA4WUYi5_sbHD6KcDphsE8AkXA0vQnZ0sZecgXT9+XdhzpjZ0g@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/18177
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>

As at least Google and Mozilla have plans to begin play around with
reprioritization in SPDY now-ish, I've submitted a pull request that adds
the PRIORITY frame: https://github.com/http2/http2-spec/pull/111.

I'm in no hurry in driving forward the rest of the changes, so I have
elected not to bother with them and leave a more eager contributor to take
on this task :) And if anyone cares to bikeshed my pull request's text, I
care not. I just want something I can commit to the SPDY/4 spec, so it'd be
great to get something in the http2 spec for this frame.

Cheers.


On Sun, May 26, 2013 at 8:31 AM, James M Snell <jasnell@gmail.com> wrote:

>
> On May 26, 2013 7:31 AM, "Jeff Pinner" <jpinner@twitter.com> wrote:
> >
> [snip]
> >
> > So since we have frame specific flags now can we just use them and drop
> to duplicated frame type so that only one frame is used for stream creation?
> >
> > 1. remove frame 0x08 HEADERS as duplicated
> > 2. rename frame 0x01 from HEADERS+PRIORITY to HEADERS and indicate that
> it is the only frame that may create a stream
> > 3. add flag 0x02 PRIORITY to the HEADERS frame to indicate the first 4
> bytes of the frame contain a priority field
> > 4. add flag 0x04 CONTINUED to the HEADERS frame to indicate that the
> headers block is split across a second frame which must be the next frame
> sent on the wire
> > 5. add a frame 0x02 PRIORITY that is 4 bytes long and must be sent only
> on open streams
> >
> > a slightly different shade of shed :)
>
> +1... This works for me.
>