Re: [hybi] deflate-stream and masking

Greg Wilkins <gregw@intalio.com> Mon, 20 June 2011 08:41 UTC

Return-Path: <gregw@intalio.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 3D14B11E8119 for <hybi@ietfa.amsl.com>; Mon, 20 Jun 2011 01:41:13 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.837
X-Spam-Level:
X-Spam-Status: No, score=-2.837 tagged_above=-999 required=5 tests=[AWL=0.140, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_LOW=-1]
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 L18twCjqyZoR for <hybi@ietfa.amsl.com>; Mon, 20 Jun 2011 01:41:12 -0700 (PDT)
Received: from mail-vw0-f44.google.com (mail-vw0-f44.google.com [209.85.212.44]) by ietfa.amsl.com (Postfix) with ESMTP id 9EFD011E8114 for <hybi@ietf.org>; Mon, 20 Jun 2011 01:41:12 -0700 (PDT)
Received: by vws12 with SMTP id 12so409504vws.31 for <hybi@ietf.org>; Mon, 20 Jun 2011 01:41:12 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.52.158.38 with SMTP id wr6mr1307917vdb.198.1308559271821; Mon, 20 Jun 2011 01:41:11 -0700 (PDT)
Received: by 10.52.108.9 with HTTP; Mon, 20 Jun 2011 01:41:11 -0700 (PDT)
In-Reply-To: <BANLkTikzTaUgtVQ2k9tnN5bKXwY0nt=ZKw@mail.gmail.com>
References: <BANLkTi=UVMAd1nER6mRBe7zoD29CSbCkGA@mail.gmail.com> <BANLkTikzTaUgtVQ2k9tnN5bKXwY0nt=ZKw@mail.gmail.com>
Date: Mon, 20 Jun 2011 18:41:11 +1000
Message-ID: <BANLkTikTUECBd0Ow_5xhRoqZD8v4YHUMeQ@mail.gmail.com>
From: Greg Wilkins <gregw@intalio.com>
To: Dirkjan Ochtman <dirkjan@ochtman.nl>
Content-Type: text/plain; charset=ISO-8859-1
Cc: Hybi <hybi@ietf.org>
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: Mon, 20 Jun 2011 08:41:13 -0000

On 20 June 2011 18:37, Dirkjan Ochtman <dirkjan@ochtman.nl> wrote:
> On Mon, Jun 20, 2011 at 08:33, Greg Wilkins <gregw@intalio.com> wrote:
>> As an unmasked WS stream, it was 50675 bytes, and as a masked stream
>> is was 52623 bytes.
>> I then compressed both these streams with gzip and got 13306 bytes for
>> unmasked and 51704 bytes for the masked!!!!
>
> Are you sure you got this right? From the RFC:
>
> "The masking does not affect the length of the payload data."

But it does affect the length of the frame as it requires and extra 4
bytes per frame.

There were 487 frames, so that is 1948 extra bytes
52623-50675=1948


cheers