Re: [hybi] permessage-deflate and missing asymmetric configurations

Takeshi Yoshino <tyoshino@google.com> Wed, 09 October 2013 20:24 UTC

Return-Path: <tyoshino@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 22CA721E8156 for <hybi@ietfa.amsl.com>; Wed, 9 Oct 2013 13:24:46 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.905
X-Spam-Level:
X-Spam-Status: No, score=-1.905 tagged_above=-999 required=5 tests=[AWL=0.072, 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 XwBhczfdGmIs for <hybi@ietfa.amsl.com>; Wed, 9 Oct 2013 13:24:45 -0700 (PDT)
Received: from mail-wi0-x229.google.com (mail-wi0-x229.google.com [IPv6:2a00:1450:400c:c05::229]) by ietfa.amsl.com (Postfix) with ESMTP id 3DE5F21E8178 for <hybi@ietf.org>; Wed, 9 Oct 2013 13:24:44 -0700 (PDT)
Received: by mail-wi0-f169.google.com with SMTP id cb5so1253979wib.2 for <hybi@ietf.org>; Wed, 09 Oct 2013 13:24:44 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=s+Kbqp2ykvDPy8XdoDRflg+ppHN594JKosggjJ+SwN0=; b=nhlqfiWTbQ0nI7RRAmuOM41IUsEcRIT2nnoDhdl8P6MoO3XvoDRCPpaT2WCw1/aXCy 843dftLhy5zoKC6ns/5rJKIj81OH3IK6zUIiuhMGQCjq5tyt0nLV2lNQ3hdePvAqsqHX MwBzA1fY/4bVyE2tzJVuHrQphgaFw8brB17KvJnBX053GdEM5ZuMvh35cErGG7QtNc7p 2Fty+vFFRiaGqyoqnt3IKG/QAyORXmgz+otntFlRAlTLWw0I1u61Ll75sOeUm+Byj9QQ 1W4qlEVkWNlY1t+6CEaTcReSHNH3+MYH3+C3wvXyWiQfUpxFpGqcF5Vlnd27sYZQsrve IRUg==
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:from:date :message-id:subject:to:cc:content-type; bh=s+Kbqp2ykvDPy8XdoDRflg+ppHN594JKosggjJ+SwN0=; b=PsJmlXdPzbsttLFK0oGY4yPpqdCsAqoncrHhuy26pKd9nRSCOZcpaOgv31YupuBIGg ikU9YHED4N645OkJUsgqpvQHzvHt02deCJ4VRliKkq5arH3bop8vN2D8bGew6a1HAgBZ bNu2XTj4tIP2E6nG1G0G5UXtYbg7Ur9BclCHUMY40Dj9RIMzeonwDWMgC4i0VSP9ubvl FCv0us59sRyyNnjVLDI43mZlKBPwj4HJbGA8SWSs+CLG3yF9SuPExkclWqIX4LhApbwp uOGJHcMyffkTHZX7yThiaMnusA1hZNwkzuWrZuy5LfMACD7jT59BOXOaGBlnwgoVQakn zK/Q==
X-Gm-Message-State: ALoCoQlFQ0bA7kiKcGnFnhyPSWBLXZTfOuhvnZfL3TzNs7s05BLYVUneGUx/MOIzw4T9Fuc9T7lBpaWgz6DNMo9XB2rj9IJLYoUW5PcCehHxm37QI+utgU/j9EGtosVrmpfeVGORSTmsuMyBa3UZz5akxevZZ2f8AesNqTBml/VANUtV33h34gE8poScXwcS4v87Mt5V83JO
X-Received: by 10.180.89.98 with SMTP id bn2mr4360086wib.42.1381350284043; Wed, 09 Oct 2013 13:24:44 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.194.15.133 with HTTP; Wed, 9 Oct 2013 13:24:23 -0700 (PDT)
In-Reply-To: <CAG4zZZCYkuQx40zn-wUBoeSecJ-NTDku-nD5-gkSSy-A1vhxNQ@mail.gmail.com>
References: <CAG4zZZAqGcVP=4P9qfo2Gm3fbPHKntwZ5aF=hDePccfKnD4kWQ@mail.gmail.com> <02030518-6F55-4E50-9AB8-06C7540C8AE1@zaphoyd.com> <CAG4zZZCYkuQx40zn-wUBoeSecJ-NTDku-nD5-gkSSy-A1vhxNQ@mail.gmail.com>
From: Takeshi Yoshino <tyoshino@google.com>
Date: Thu, 10 Oct 2013 05:24:23 +0900
Message-ID: <CAH9hSJZugsZjJ7j7EoGseT9QauQ2bApK7OcWAtirCZ6b0SHwvA@mail.gmail.com>
To: Joakim Erdfelt <joakim@intalio.com>
Content-Type: multipart/alternative; boundary="f46d04447fbbfdceb404e854ac72"
Cc: "hybi@ietf.org" <hybi@ietf.org>, Peter Thorson <webmaster@zaphoyd.com>
Subject: Re: [hybi] permessage-deflate and missing asymmetric configurations
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, 09 Oct 2013 20:24:46 -0000

On Thu, Oct 10, 2013 at 4:45 AM, Joakim Erdfelt <joakim@intalio.com> wrote:

> Was the idea of having compression level as a configurable ever on the
> table?
>

Since each endpoint can choose any compression level as long as wbits and
context mode are negotiated, I didn't include compression level negotiation.


> Then we could simply state a compression level of 0, which would still
> create the deflate blocks, but do no real work or effort to compress.
>

IIRC, with only a few people but we reached consensus that we'll start
experimenting heuristics to choose compression on/off in UAs and also
updating API spec to allow webapps to turn on/off compression for each
message.

Adding extension parameters to turn on/off compression allows for disabling
client-to-server compression while enabling server-to-client compression
but it's per-connection level configuration. I was not sure if it's so
worthwhile to include such a halfway feature.


> As for having the endpoint code control behavior inside of an extension,
> that seems difficult to control or expose.
> For example: do we even have the ability, in javascript on the browser, to
> control the extensions that are offered? or interrogate the open connection
> to know what extensions have been negotiated?
>

Using the extensions attribute, we can know what extensions are negotiated.

Rough plan was adding some attribute or method or overloading send() method
of WebSocket to allow webapps to flip compression on/off.