Re: [hybi] Restarting IESG review on permessage-deflate

Adam Rice <ricea@google.com> Mon, 07 October 2013 02:37 UTC

Return-Path: <ricea@google.com>
X-Original-To: hybi@ietfa.amsl.com
Delivered-To: hybi@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A033521E8129 for <hybi@ietfa.amsl.com>; Sun, 6 Oct 2013 19:37:32 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.977
X-Spam-Level:
X-Spam-Status: No, score=-1.977 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, NO_RELAYS=-0.001]
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 OE8pDurWIOJb for <hybi@ietfa.amsl.com>; Sun, 6 Oct 2013 19:37:31 -0700 (PDT)
Received: from mail-vb0-x22f.google.com (mail-vb0-x22f.google.com [IPv6:2607:f8b0:400c:c02::22f]) by ietfa.amsl.com (Postfix) with ESMTP id 30D5F21E811F for <hybi@ietf.org>; Sun, 6 Oct 2013 19:37:30 -0700 (PDT)
Received: by mail-vb0-f47.google.com with SMTP id h10so3132695vbh.20 for <hybi@ietf.org>; Sun, 06 Oct 2013 19:37:30 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=DdHACco4jnQsidwZJ01fLiZosIG2q2AS82q++i0VgUU=; b=ONY2iO3CMAIiOvnjSFu1fO6Xts5yUudi3elrbJUME51MbakwYb7LYx2DQmGTs8c5wH GNhSOsCZm5LevsGZu0YfFvIonkhNHN28UWoE1lPihxCL6vBzQ82WiI+Ks/s02A7b7Fmk VuYfNFOEmxdTx4RGkniNGnabsJnLRXxcFX2BL/z1ZFVXyTNohrHrF2abx8qAyMcqb34O 9kVIiFNaMs6gzFm+87A56o4w0B65aQBV1/n2kEK3+QCbpyP3tUfzL+eCvV+U8ZsZ0p6g rUCYDpvlh23GUGTeQm/fOv7kBYP8TB00mnh8AdPqgbxuRBng3L0AJfD/89zp14bNuDw7 UtFQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=DdHACco4jnQsidwZJ01fLiZosIG2q2AS82q++i0VgUU=; b=ddrlAiveagZ0QQ6Z30QQVr/HS6hOL6B/Xp6vB+XPrHoqEKRe9ktCLLxFMjCcIBDu9I c+UL4k6mF0I0mrdjx8zDT+d2ez5IpnVlGPQ0nEfoIC+JH1kcTGlvXH3kPnZRyKHO72KM n20wztUAWl/bZ0TeOpcC59/ilFP1YC2aeuktAFgXUuycrVAHLvIItt9AHbI0+B/5wW2/ f1BU+3RqNQTciNfGrIQmXi9xlf0sN7F/mCdyuVTmf7HziKF8FjJfsgui0Iw+HVrjrjH0 3NMkeVdx78kqBdyEfvfasfMHP5f6j9lL8pKh/NdaAGvDx4aR/edwIf/DrYRtWnS+Exn0 EhkA==
X-Gm-Message-State: ALoCoQknw1MxGid801nTstxTDYAT8PFW4lUKSumK5GZThSY9wpAoKu+KVIX4OcNIYYcCZJjRz7h53+7b0NVaWyrtN8GRR3d10PnelcVCFHi3QEo7iWkgHSPe40eN8UmoXPY+Ret41vaSHR/gJSuhvIA7Bl8QH9GuROhLy+i8QoIKgIbusUOix+3CafEWucZQdBi1gKgMeeZc
MIME-Version: 1.0
X-Received: by 10.52.52.137 with SMTP id t9mr1211677vdo.22.1381113450310; Sun, 06 Oct 2013 19:37:30 -0700 (PDT)
Received: by 10.52.167.163 with HTTP; Sun, 6 Oct 2013 19:37:30 -0700 (PDT)
In-Reply-To: <CAG4zZZC30-d45Ow6pLZkQCYbuqWDwW6U3KW5R43VgafhwrPOEA@mail.gmail.com>
References: <CAH9hSJbwd5qhMJw=3dwk3CDPua5ENRksd9=q2KDcyyma3uKzZg@mail.gmail.com> <CAG4zZZD8eq4w9kyQbX2AJcM1LA8=UyRO7txK7TvmYhSp=YU+9g@mail.gmail.com> <634914A010D0B943A035D226786325D4446790BF34@EXVMBX020-12.exch020.serverdata.net> <CAG4zZZDNRZ_kaXBKhx5VkKjpj+Luo53Y7ue0eaGHH_ghoBrdkQ@mail.gmail.com> <634914A010D0B943A035D226786325D4446790BFFC@EXVMBX020-12.exch020.serverdata.net> <CAG4zZZC30-d45Ow6pLZkQCYbuqWDwW6U3KW5R43VgafhwrPOEA@mail.gmail.com>
Date: Mon, 07 Oct 2013 11:37:30 +0900
Message-ID: <CAHixhFr1WRoRoLbw0eMTAfog3uLAyueYKMi_QKMkTHSeiiLhPw@mail.gmail.com>
From: Adam Rice <ricea@google.com>
To: "hybi@ietf.org" <hybi@ietf.org>
Content-Type: multipart/alternative; boundary="089e0122f65e99d61104e81d882d"
Subject: Re: [hybi] Restarting IESG review on permessage-deflate
X-BeenThere: hybi@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Server-Initiated HTTP <hybi.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/hybi>, <mailto:hybi-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/hybi>
List-Post: <mailto:hybi@ietf.org>
List-Help: <mailto:hybi-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/hybi>, <mailto:hybi-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 07 Oct 2013 02:37:32 -0000

For PHP, soywiz has worked out that the "$encoding" parameter allows you to
set the number of window bits--see the comment at
http://www.php.net/manual/en/function.zlib-encode.php

Interestingly, the problem with PHP seems to be not supporting
no_context_takeover, but supporting the default context_takeover behaviour.
zlib_decode() creates a new zlib context every time.

There might be a way to abuse the gz* functions to do it, I have not
explored them in depth.

It is always possible to support no_context_takeover in any language by
creating a new compression context for each message.


On 5 October 2013 02:41, Joakim Erdfelt <joakim@intalio.com> wrote:

> Ok, add to the b) side of the equation:
>
> scala - same classlib and jvm as java
> jython - same classlib and jvm as java, no native zlib support here
> php - http://www.php.net/manual/en/ref.zlib.php (cannot support
> max_window_bits, no_context_takeover might be possible)
> c# -
> http://msdn.microsoft.com/en-us/library/system.io.compression.deflatestream_methods.aspx (cannot
> support max_window_bits, no_context_takeover might be possible)
>
>
> --
> Joakim Erdfelt <joakim@intalio.com>
> webtide.com <http://www.webtide.com/> - intalio.com/jetty
> Expert advice, services and support from from the Jetty & CometD experts
> eclipse.org/jetty - cometd.org
>
>
> On Fri, Oct 4, 2013 at 10:11 AM, Tobias Oberstein <
> tobias.oberstein@tavendo.de> wrote:
>
>> >>Well, I'm sorry for the Java community not being able to fix this in
>> 10+ years;)
>> >Yet, oddly, with web technologies, this hasn't been a problem since our
>> initial use of Oak in 1995 (yes, Jetty has existed since 1995)
>>
>> Jetty being around since 1995 is obviously awesome!
>>
>> As a strange coincidence, zlib has also be around since 1 May 1995 (I
>> haven't checked whether the respective options have been in the first
>> version though).
>>
>> > The capabilities of one set of libraries (c & python) should not be
>> forced on all environments as well.
>>
>> Lets collect a list: a) stuff that exposes the complete zlib vs b) stuff
>> that does not;)
>>
>> a) C, C++, Python, NodeJS, Perl, Ruby, PHP, Erlang, Haskell
>> b) Java
>>
>> Caveat: I (obviously) have not used all of above myself. Just had a quick
>> glance at their docs.
>>
>> Pointers:
>> http://perldoc.perl.org/Compress/Zlib.html#Deflate-Interface
>> http://www.ruby-doc.org/stdlib-2.0.0/libdoc/zlib/rdoc/Zlib/Deflate.html
>> http://www.php.net/manual/de/function.gzdeflate.php
>> http://erlang.org/doc/man/zlib.html
>>
>> http://hackage.haskell.org/package/zlib-0.5.4.1/docs/Codec-Compression-Zlib.html
>>
>> I stop here;)
>>
>> /Tobias
>>
>
>
> _______________________________________________
> hybi mailing list
> hybi@ietf.org
> https://www.ietf.org/mailman/listinfo/hybi
>
>