Re: [hybi] deflate-stream and masking

"Andy Green (林安廸)" <andy@warmcat.com> Wed, 22 June 2011 09:44 UTC

Return-Path: <andy@warmcat.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 722BB11E80CF for <hybi@ietfa.amsl.com>; Wed, 22 Jun 2011 02:44:14 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.513
X-Spam-Level:
X-Spam-Status: No, score=-2.513 tagged_above=-999 required=5 tests=[AWL=-0.214, BAYES_00=-2.599, MIME_8BIT_HEADER=0.3]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ArHi9RC38h5U for <hybi@ietfa.amsl.com>; Wed, 22 Jun 2011 02:44:13 -0700 (PDT)
Received: from warmcat.com (warmcat.com [87.106.134.80]) by ietfa.amsl.com (Postfix) with ESMTP id B909011E807F for <hybi@ietf.org>; Wed, 22 Jun 2011 02:44:13 -0700 (PDT)
Message-ID: <4E01B8B9.7010201@warmcat.com>
Date: Wed, 22 Jun 2011 10:41:13 +0100
From: =?UTF-8?B?IkFuZHkgR3JlZW4gKOael+WuieW7uCki?= <andy@warmcat.com>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110531 Fedora/3.1.10-2.fc16 Thunderbird/3.1.10
MIME-Version: 1.0
To: ifette@google.com
References: <BANLkTi=UVMAd1nER6mRBe7zoD29CSbCkGA@mail.gmail.com> <4E010FF9.1000207@callenish.com> <BANLkTikSQi2j9xRx8itVwvXOvTpzvqR0bw@mail.gmail.com> <4E01B364.9020608@warmcat.com> <BANLkTikeAGR_2RUk=QBzW43Tsg-7Biu0JwwROVbKrGcv=LErGw@mail.gmail.com>
In-Reply-To: <BANLkTikeAGR_2RUk=QBzW43Tsg-7Biu0JwwROVbKrGcv=LErGw@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Cc: Hybi <hybi@ietf.org>, Greg Wilkins <gregw@intalio.com>
Subject: Re: [hybi] deflate-stream and masking
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: Wed, 22 Jun 2011 09:44:14 -0000

On 06/22/2011 10:26 AM, Somebody in the thread at some point said:
> As an individual:
>
> Yoshino-san sent out a proposal a while ago that did a much better job
> of respecting the way extensions are supposed to work. Conceptually, I
> think what we really should have is
>
> WebSocket Frame [ Masked Data [ Compress [ Application Data ] ] ]
>
> That is, the application data is first compressed, /then/ that
> compressed data is masked and framed as per the rest of the spec.
>
> http://www.ietf.org/id/draft-tyoshino-hybi-websocket-perframe-deflate-00.txt

Although I don't really understand what those references devolve down to 
what zlib code and options, it looks like it solves exactly this problem.

-Andy