Re: [hybi] Resolutions for the issues of the compression spec reported during WGLC

Takeshi Yoshino <tyoshino@google.com> Mon, 07 January 2013 04:59 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 DA04421F8618 for <hybi@ietfa.amsl.com>; Sun, 6 Jan 2013 20:59:20 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.976
X-Spam-Level:
X-Spam-Status: No, score=-102.976 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-1, USER_IN_WHITELIST=-100]
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 ryLraOCdrFYK for <hybi@ietfa.amsl.com>; Sun, 6 Jan 2013 20:59:20 -0800 (PST)
Received: from mail-vb0-f43.google.com (mail-vb0-f43.google.com [209.85.212.43]) by ietfa.amsl.com (Postfix) with ESMTP id 7D29721F85DA for <hybi@ietf.org>; Sun, 6 Jan 2013 20:59:16 -0800 (PST)
Received: by mail-vb0-f43.google.com with SMTP id fs19so18699645vbb.2 for <hybi@ietf.org>; Sun, 06 Jan 2013 20:59:15 -0800 (PST)
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 :content-type; bh=W8pPTFy9k3q+RBQ8aC/xUaT0zhjKT/6/bhxPRt1zf7Y=; b=Dis3ru8g1S/14bGozBkZAplclKfZbnGuQ4J+NpmuKlrGh60PCl40Xl+ICFN8UBQm5f WfXeBfU0vxT6IPAAEelJqEO0GAjKRHKmcCss0xaU+84lNnluz5Y6wIVym6KtxdyCqrO5 CdV9HH/Zw2kZUw4dPKodf/AeOmHaw45m7t05CGjCT+LfrZEEgNGRoDP74rTZWkrcji/8 LaZr4JIZYzPMn247FxqWjFvC5Fth+wdd/H6i7ykWdpCQB6PGH2nuOpo0ZNt9nLH5HRus /HNHzIyKZNNcBVfcD+gP/biyvCvb2VUk3OZ9aY8XBXLK6KeAg9LWoUZBXqmRWZmgaaCz HwsQ==
X-Google-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 :content-type:x-gm-message-state; bh=W8pPTFy9k3q+RBQ8aC/xUaT0zhjKT/6/bhxPRt1zf7Y=; b=nt+uT92s57K03dBUUnWGVsqxWh/iwk2+d3W3pfq25aHRj9M4bLmdeLyjhIjksngUL/ Y0vSyY9BAkF3+T2jydycwu89e83qyX0QoGN1XFsyNAIp6IL3+QMPAUl4fZtYnE5d3x2b iepPwv1I+IEpmyRNkYxJkSQGDGZswhs7LlhodkA5M/1+ICcpi2gc5bXYXfxkw9FX/I+A +12hSvRi2uRdI7tdhfQ5fd8wN89FYIhieLnSYSwiS8Q1zehE+LUyF6Zv0UlAekFy4AXW k4diM6KbCeDPb070nZSrM5SyChLbue9D8VE0it2t50c5bqFILkKAUOgemXv3NhcRi6mf tnpg==
Received: by 10.52.16.17 with SMTP id b17mr71332041vdd.86.1357534755791; Sun, 06 Jan 2013 20:59:15 -0800 (PST)
MIME-Version: 1.0
Received: by 10.58.255.226 with HTTP; Sun, 6 Jan 2013 20:58:55 -0800 (PST)
In-Reply-To: <CAH9hSJYwuBuben2vRrG3Xb_aSpZjJhC9WynOeopfChpjqBh_7Q@mail.gmail.com>
References: <CAH9hSJYwuBuben2vRrG3Xb_aSpZjJhC9WynOeopfChpjqBh_7Q@mail.gmail.com>
From: Takeshi Yoshino <tyoshino@google.com>
Date: Mon, 07 Jan 2013 13:58:55 +0900
Message-ID: <CAH9hSJY6CS_u3XDS8oPGK=oJsyeMnURfprqQtwt1Z0=fkeJt0w@mail.gmail.com>
To: "hybi@ietf.org" <hybi@ietf.org>
Content-Type: multipart/alternative; boundary="bcaec50408e8e3a28204d2abb0b3"
X-Gm-Message-State: ALoCoQltJOZPKeBr7X4jG1VWJfxFfvg8ze7D2yVgQ/YJQmQzkqF6UkJjRKfOKSszmkXXa5nVb5YAuRY+02G5yuXmt3moc3bLq9GYeTB9NrezfhGIrWy3M32TKJ0k+rcLMbP5/Z6P8npmIW73Wn/dAhRW3AdZ0do/zNs5ShfmkmE/sKbkJpPKbMfy+AvNP3BDNiMsn+CY7sDL
Subject: Re: [hybi] Resolutions for the issues of the compression spec reported during WGLC
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 Jan 2013 04:59:21 -0000

On Mon, Dec 17, 2012 at 1:28 PM, Takeshi Yoshino <tyoshino@google.com>wrote:

> b) move the method parameter into a new separate handshake header entry
> pros:
> - human readable
> cons:
> - introduces a new header not defined in 6455
>

I got a request from chairs to elaborate why I considered this to be a
disadvantage. Here are my thoughts about this.

1) To keep it able to use the same extension multiple times, we have to
associate entries in the Sec-WebSocket-Compression-Spec header with entries
in the Sec-WebSocket-Extensions header by adding ID for each of them.

Sec-WebSocket-Extensions: permessage-compress; id=0, bar-ext,
permessage-compress; id=1
Sec-WebSocket-Compression-Spec: id=0; max_win...
Sec-WebSocket-Compression-Spec: id=1; max_win...

This complicates the spec more than putting everything together in the
Sec-WebSocket-Extensions.

2) Everyone knows Sec-WebSocket-Extensions, but not
Sec-WebSocket-Compression-Spec. It's possible that headers not defined in
RFC 6455 are filtered out by some firewall, proxy, etc. For these two
extensions, it's ok since they're going to be well-known. But this approach
misguides everyone that extension configuration that doesn't fit should go
outside of Sec-WebSocket-Extensions. In the future, there'll be lots of
headers that intermediary developers must take care of.