Re: Design Issue: GZIP flag on DATA Frames

Roberto Peon <grmocg@gmail.com> Wed, 22 May 2013 00:29 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 B757221F85EF for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 21 May 2013 17:29:33 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.598
X-Spam-Level:
X-Spam-Status: No, score=-10.598 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HTML_MESSAGE=0.001, 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 ywmaSVxShLw6 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 21 May 2013 17:29:28 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 9136F21F90DF for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 21 May 2013 17:29:28 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1Uewup-0005FS-Tw for ietf-http-wg-dist@listhub.w3.org; Wed, 22 May 2013 00:28:27 +0000
Resent-Date: Wed, 22 May 2013 00:28:27 +0000
Resent-Message-Id: <E1Uewup-0005FS-Tw@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <grmocg@gmail.com>) id 1Uewud-0005Ed-HO for ietf-http-wg@listhub.w3.org; Wed, 22 May 2013 00:28:15 +0000
Received: from mail-oa0-f52.google.com ([209.85.219.52]) by lisa.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <grmocg@gmail.com>) id 1UewuY-0001OR-EW for ietf-http-wg@w3.org; Wed, 22 May 2013 00:28:15 +0000
Received: by mail-oa0-f52.google.com with SMTP id h1so1730533oag.11 for <ietf-http-wg@w3.org>; Tue, 21 May 2013 17:27:44 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=gujYxUkcoD1ZBBBfwFAeyPd+nU38VihPaVyaIhZYai8=; b=BlGQNliJDEoNEEOaTQ44EAkto0qOftMEZf92Ml7l6w4+GbslDyJ6yNfw758OEXfU3Y 3rNIHvQed+SfPDfPE+zPLXHwV5EQZJP2y00b9H9bdtcDdh0HWEhPVu+G12UTuwHk7hmx /eYuH9ZSpy8oQygvicXbvPfbDCzh3jF4+C575mmK+7OURpUNJwOrtgEaiE3prDB8+bjq Yoi8tVdbBFMq4q5+Jhdzv9AwhxF3Vv3MizQzI1RVXaOutscnsWctQv2RBrqv5fJCudOl MTkn/u1J/QuHR0LcocUUFNemgw8cYKBlg5XrO+qhG0uLMk0KK9EVtl0Aq/EzgA9SnghX sAzg==
MIME-Version: 1.0
X-Received: by 10.182.98.135 with SMTP id ei7mr3064210obb.102.1369182464495; Tue, 21 May 2013 17:27:44 -0700 (PDT)
Received: by 10.76.131.232 with HTTP; Tue, 21 May 2013 17:27:44 -0700 (PDT)
Received: by 10.76.131.232 with HTTP; Tue, 21 May 2013 17:27:44 -0700 (PDT)
In-Reply-To: <CABP7Rbfvpn-pohq39OBi2xoTkChseDrPkhRGE_VaTEdMmRqTaQ@mail.gmail.com>
References: <CABP7Rbfb92Vxrmxj6fKdt+jpO_Qknq8FRjsu5GZW=17uoi4OFg@mail.gmail.com> <519BAB26.2010501@zinks.de> <4050.1369156663@critter.freebsd.dk> <fnlnp8t14lal0uk5suouc2uuk3uk4429dt@hive.bjoern.hoehrmann.de> <5267.1369169573@critter.freebsd.dk> <hnnnp8dgpoliq8ca07n89p6apn41mmu2ta@hive.bjoern.hoehrmann.de> <CABP7RbfynEZ--QMvyXmsGvqKDv2T9CbVCuBfVexNtmTa5_U_pQ@mail.gmail.com> <CAP+FsNd3gqky+94N3k3rJxiC744+3AU1GhoWc4EHoQDiDip0Mg@mail.gmail.com> <CABP7Rbfvpn-pohq39OBi2xoTkChseDrPkhRGE_VaTEdMmRqTaQ@mail.gmail.com>
Date: Tue, 21 May 2013 17:27:44 -0700
Message-ID: <CAP+FsNeg3+cHWE-goYw4BZa6uBTVTqNgG-dXKZU7b6zfhaEEnA@mail.gmail.com>
From: Roberto Peon <grmocg@gmail.com>
To: James Snell <jasnell@gmail.com>
Cc: Roland Zink <roland@zinks.de>, Poul-Henning Kamp <phk@phk.freebsd.dk>, Bjoern Hoehrmann <derhoermi@gmx.net>, "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary="047d7b2e49706e0f4804dd43a2fb"
Received-SPF: pass client-ip=209.85.219.52; envelope-from=grmocg@gmail.com; helo=mail-oa0-f52.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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1UewuY-0001OR-EW 2504077dbf64b50d290d3a2664d0b96d
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Design Issue: GZIP flag on DATA Frames
Archived-At: <http://www.w3.org/mid/CAP+FsNeg3+cHWE-goYw4BZa6uBTVTqNgG-dXKZU7b6zfhaEEnA@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/18084
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 see why it is a one or the other choice.

>From a pragmatic viewpoint, we required gzip because it was lacking in a
lot of implementations, or went through a proxy which stripped it.

Requiring that it be supported enabled servers to send the data compressed.
This was essentially the result of years of being frustrated with not
knowing when it was safe to at least be able to send with a baseline
compression.

Unfortunately, gzip isn't the best compressor in the world, so we will
always need since mechanism for negotiating a compression scheme.
Http's scheme works, and many of its flaws are unavoidable in any system
with proxies.

Having played with compression at the protocol layer, my experience is that
it adds complexity where it is often not warranted and it results in (at
best )awkward apis.

-=R
If that's the case, and it's better to just handle data compression at
the higher levels, then the requirement that gzip MUST always be
supported independent of what is specified by the accept-* header
ought to be removed and implementations ought to just continue letting
the application decide which mechanism is best.

My goal here is to simplify things wherever possible. If we can
deprecate (or greatly simplify) accept-/transfer-/content-encoding at
the semantic layer and just say that the framing layer will handle
compression, then that's one less optional bit of complexity that us
application-level developers have to deal with.

On Tue, May 21, 2013 at 2:36 PM, Roberto Peon <grmocg@gmail.com> wrote:
> The proposal does force anything other than gzip to use an alternate code
> path for parsing/interpretation, which does not inspire confidence given
my
> experience with backup-generator problems, and it probably involves
writing
> *more* code today than the alternative of leaving it where it is in the
HTTP
> semantic layer.
> -=R
>
>
> On Tue, May 21, 2013 at 2:24 PM, James M Snell <jasnell@gmail.com> wrote:
>>
>> This does not preclude the use of alternative compression schemes. If
>> someone chooses, it would be possible, for instance, to continue using
>> accept-/content-/transfer-encoding at the http semantic layer and
>> simply not set the GZIP flag on the DATA frame. Having the GZIP flag
>> would just provide an approach that would make that unnecessary in the
>> most common cases today. If, at some point in the future a new, more
>> efficient better compression algorithm overtakes gzip as the
>> predominant mechanism, the protocol can be updated to reflect that
>> fact (i.e. with a new protocol version string, etc).
>>
>> On Tue, May 21, 2013 at 2:17 PM, Bjoern Hoehrmann <derhoermi@gmx.net>
>> wrote:
>> > * Poul-Henning Kamp wrote:
>> >>You forgot half the "worth-while" part:  The compatibility issues.
>> >>
>> >>Even something as trivial as "deflate" vs. "gzip" was too hard for
>> >>some people to get right.
>> >
>> > I think people will create an even bigger mess if they're forced to
work
>> > around lack of support for alternative compression schemes in HTTP/2.0.
>> > --
>> > Björn Höhrmann · mailto:bjoern@hoehrmann.de ·
http://bjoern.hoehrmann.de
>> > Am Badedeich 7 · Telefon: +49(0)160/4415681 ·
http://www.bjoernsworld.de
>> > 25899 Dagebüll · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/
>> >
>>
>