Re: http2-encoded-data

Matthew Kerwin <matthew@kerwin.net.au> Mon, 06 July 2015 12:27 UTC

Return-Path: <ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id CF4F51A1AA2 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 6 Jul 2015 05:27:14 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.689
X-Spam-Level:
X-Spam-Status: No, score=-5.689 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, J_CHICKENPOX_34=0.6, RCVD_IN_DNSWL_HI=-5, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HfPKmYJb2d2M for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 6 Jul 2015 05:27:12 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 145A01A1A8B for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 6 Jul 2015 05:27:11 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1ZC5Qz-0003vm-Ae for ietf-http-wg-dist@listhub.w3.org; Mon, 06 Jul 2015 12:23:41 +0000
Resent-Date: Mon, 06 Jul 2015 12:23:41 +0000
Resent-Message-Id: <E1ZC5Qz-0003vm-Ae@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <phluid61@gmail.com>) id 1ZC5Qv-0003ue-42 for ietf-http-wg@listhub.w3.org; Mon, 06 Jul 2015 12:23:37 +0000
Received: from mail-oi0-f47.google.com ([209.85.218.47]) by lisa.w3.org with esmtps (TLS1.2:RSA_ARCFOUR_SHA1:128) (Exim 4.80) (envelope-from <phluid61@gmail.com>) id 1ZC5Qr-0000Ag-Uh for ietf-http-wg@w3.org; Mon, 06 Jul 2015 12:23:36 +0000
Received: by oihr66 with SMTP id r66so60324430oih.2 for <ietf-http-wg@w3.org>; Mon, 06 Jul 2015 05:23:08 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=8dPXHqhRTNHiUTUTjSFZc14GDJlPQYXKsfWZ8ATF+/k=; b=RomsByCh6KDClAUMFIt1wgxLZ0HNPbO1m1SWCKVJ9mmxMDC1QuTvvK1AuX9G1GDb8C GP31yCoTrKuY6MtID4fh++pPURi45WR7fcXaVxC8mmyNLc2Onuzjd2YTmVYj246aI0US 4rRHfLYcijnEH6HNDS7M3+H3xuN89qCnFiO2Ocm5sMzs3ca8yMcjYSpoF3/sKf8/oqSo JUPMUTsN5ESzza9KPEZd94qwBolHhzi9h3FuTL8YA0NsLj8hqNhT/KPT2nN00fd83o8n 8LlHxRCqSFbP+QBRzF/WlOJNLAOBvoiwydbRydp1pNuONXsGSad7WZAPYpgTNiJkkY51 TZHw==
MIME-Version: 1.0
X-Received: by 10.202.192.135 with SMTP id q129mr45539596oif.85.1436185388045; Mon, 06 Jul 2015 05:23:08 -0700 (PDT)
Sender: phluid61@gmail.com
Received: by 10.202.226.205 with HTTP; Mon, 6 Jul 2015 05:23:07 -0700 (PDT)
Received: by 10.202.226.205 with HTTP; Mon, 6 Jul 2015 05:23:07 -0700 (PDT)
In-Reply-To: <37CB606B-D349-40B4-9905-AD8939F03D79@greenbytes.de>
References: <37CB606B-D349-40B4-9905-AD8939F03D79@greenbytes.de>
Date: Mon, 06 Jul 2015 22:23:07 +1000
X-Google-Sender-Auth: rfUBM4kVXgnfsc0uqPfGVP60O7s
Message-ID: <CACweHNBLPgdS-UmUPZi9dwRdaA-22KkERvcM8oKxspftUuJAyQ@mail.gmail.com>
From: Matthew Kerwin <matthew@kerwin.net.au>
To: Stefan Eissing <stefan.eissing@greenbytes.de>
Cc: HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary="001a113dcd5ee2e15b051a33f71c"
Received-SPF: pass client-ip=209.85.218.47; envelope-from=phluid61@gmail.com; helo=mail-oi0-f47.google.com
X-W3C-Hub-Spam-Status: No, score=-5.1
X-W3C-Hub-Spam-Report: AWL=-0.779, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: lisa.w3.org 1ZC5Qr-0000Ag-Uh 0ab514cba7e480b03427c8062bae9722
X-Original-To: ietf-http-wg@w3.org
Subject: Re: http2-encoded-data
Archived-At: <http://www.w3.org/mid/CACweHNBLPgdS-UmUPZi9dwRdaA-22KkERvcM8oKxspftUuJAyQ@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/29868
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 the comments. My responses inline:

On 06/07/2015 6:10 PM, "Stefan Eissing" <stefan.eissing@greenbytes.de>
wrote:
>
> My comments re
http://tools.ietf.org/html/draft-kerwin-http2-encoded-data-05:
>
> Should a client announcing support be prepared to receive DATA *and*
GZIPPED_DATA frames for a single stream? There are two scenarios where I
could see that happen:
> 1. The ACCEPT_GZIPPED_DATA is received while a stream's DATA is ongoing
and the endpoint might want to switch
> 2. On a gzipped stream, small data chunks might arise that are not worth
zipping. Can a server send them as DATA?
>

Yep, that's perfectly (and intentionally) acceptable. If it's not clear
enough, I could add some words.

>
> More on the meta h2 level:
> - Allocating numbers from a small pool like frame types and error codes
gets difficult when several parties are considering extending a protocol.
Before safe numbers are allocated, experimental implementations need to
exist which may later clash. String identifiers seem to have worked better
in the past.
>
> A possible solution to this could be an X-FRAME that carries an
identifier string in its payload. A playground until business gets serious
and numbers are allocated in the protocol.
>

If you look at earlier versions, I originally made it a general 'encoded
data' frame, with a registry of codings and TE-type negotiations. That
would have reduced pressure on the frame type registry space when
introducing other encodings. (If that happened.)

I dropped it back to just gzip because it seemed like that would cover 90%
of what people would want from it, while being a whole lot simpler.

If an X-FRAME spec/draft existed I wouldn't be opposed to using it, but it
doesn't, and I personally don't see enough need to warrant writing one
myself.

>
> - Sometimes, extensions depend on each other. For an endpoint, it is much
easier/safer/robust to receive and process extension capabilities in a
package (i.e. single frame). Example: TLS extensions like SNI and ALPN have
practical dependencies, as for servers protocol support may be configured
per server. The answer to ALPN depends on the SNI. Receiving SNI+ALPN in
one protocol "packet" makes processing more robust.
>

Indeed, the -05 revision was transitional; in -06 it uses a setting. <
http://tools.ietf.org/html/draft-kerwin-http2-encoded-data-06>

>
> Cheers,
>
>   Stefan
>