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

Takeshi Yoshino <tyoshino@google.com> Mon, 17 December 2012 04:28 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 5168F21F8597 for <hybi@ietfa.amsl.com>; Sun, 16 Dec 2012 20:28:51 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.676
X-Spam-Level:
X-Spam-Status: No, score=-102.676 tagged_above=-999 required=5 tests=[AWL=-0.300, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, J_CHICKENPOX_52=0.6, 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 7o7eRYa-+QZ3 for <hybi@ietfa.amsl.com>; Sun, 16 Dec 2012 20:28:50 -0800 (PST)
Received: from mail-vc0-f172.google.com (mail-vc0-f172.google.com [209.85.220.172]) by ietfa.amsl.com (Postfix) with ESMTP id 0F74F21F8464 for <hybi@ietf.org>; Sun, 16 Dec 2012 20:28:48 -0800 (PST)
Received: by mail-vc0-f172.google.com with SMTP id fw7so6643170vcb.31 for <hybi@ietf.org>; Sun, 16 Dec 2012 20:28:48 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=3zr33AzyaDO+um3jXRZPglkVlRFGg+uEeMhkaBhsc0U=; b=jtSTs3FtW42USl0P91ymcFgO60onXas7BgGmgIVPAuqEB1NnaIooJfKOt1wv3GyME/ iqolngi83ieQ6fR7QOdKqk+MbA+JtsavdURNOpoWEoaIuoszYRK6IfReGczWQ1JQsB8i LntCLCXHVMCEgLlub583rUXnLpjTnOnLslzcsfQ1YO538q+VXEygCz9c63EtwWQdKpWG Qa4WMXPUG0eu4YHPJLofg+BaUelheHINLeWcB2GMVZTv0Mry8omd/BLx+YR1CtyxI2td xHaKliMqFyE0y+bTCayOkGUtRk2nAcvN2isuMtSeP7Q5u35F/QEvbbdcp9kOmkMCnNs3 n+Sw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type :x-gm-message-state; bh=3zr33AzyaDO+um3jXRZPglkVlRFGg+uEeMhkaBhsc0U=; b=HltR8q/inA55C+GAEDdgIuXiQLoScxmXyRsOLl7ogejhV/tFN44LxnrOnHh7UIeifC EenqI2xkDh3BYaSIao4ttxd1dLsKawAS9PYxVarin8a+BfUdQSSVytSiwtkz63n/W/yZ ZYQtQA9FHFsKRQLsHOqz6ye+GV6acG8RDZCw2EAOJoWZLhFgBdr2V2q1xt1yyeW2mw5I igPxnVB27l2w62AyiS9vuOUNBThbBvbcx7nADGNiUrX/PNybB3OApouDI+wCNJrBK3SZ 3WN3eA2wuKikKsRWKn0BbGT2qhbdIuIb5Tr4AragvdoQ9QYwAjIB/xsY4kYQNL5wrs2p meqQ==
Received: by 10.52.175.163 with SMTP id cb3mr17309671vdc.76.1355718528364; Sun, 16 Dec 2012 20:28:48 -0800 (PST)
MIME-Version: 1.0
Received: by 10.58.212.137 with HTTP; Sun, 16 Dec 2012 20:28:27 -0800 (PST)
From: Takeshi Yoshino <tyoshino@google.com>
Date: Mon, 17 Dec 2012 13:28:27 +0900
Message-ID: <CAH9hSJYwuBuben2vRrG3Xb_aSpZjJhC9WynOeopfChpjqBh_7Q@mail.gmail.com>
To: hybi@ietf.org
Content-Type: multipart/alternative; boundary="bcaec517a9c24c70c404d104d124"
X-Gm-Message-State: ALoCoQkM0B38HohS2+0eTDE3Laj6/E0FTIHDwcVrYaMAy71eXwG8QbpDh+LqnkpjG7u5R81szwuIUiNoPkDHCZeOO2msYvKIY7LUeeKbWZQhDNLpdUnSkyLV2dxwglWN5hnxfX15sFP2xULWOwd+Gqp/A6+saLfG9I57KIIjRh/cULoWnWQjtVM6p8ALwdr5i3HqjNHphqor
Subject: [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, 17 Dec 2012 04:28:51 -0000

Hi all,

Thanks for review.

Issues reported during WGLC (ended 2012/Nov/14) except for the ABNF
conflict issue are already addressed and there's -05 staged (not posted
yet.
http://www.ietf.org/staging/draft-ietf-hybi-permessage-compression-05.txt).

==== Resolved issues ====

- Syntax/rules defined in RFC 2616 are used but not referenced
-- http://www.ietf.org/mail-archive/web/hybi/current/msg09902.html
-- FIXED: Added references
- How endpoints should handle bad values (ABNF violation, etc.) is
unspecified
-- http://www.ietf.org/mail-archive/web/hybi/current/msg09912.html
-- FIXED: Specified (ABNF violation -> ignore, wrong extension parameter ->
ignore)
- English grammar issues
-- http://www.ietf.org/mail-archive/web/hybi/current/msg09902.html
-- FIXED
- Add an option to suppress compression on client-to-server data
-- http://www.ietf.org/mail-archive/web/hybi/current/msg09922.html
-- WONT FIX: Didn't receive much support/justification.

- Clarified that the condition list defining bad method descriptions is OR
list (any of them is true then bad)

==== Open issue ====

- Conflict between "method" extension parameter spec and RFC 6455
-- http://www.ietf.org/mail-archive/web/hybi/current/msg09904.html

Possible solutions are:

a) revise RFC 6455 by replacing constraint on quoted-string from "token" to
CHAR - CTL
pros:
- human readable
cons:
- needs very strong justification to change 6455
-- existing implementations strictly conform to 6455 will "Fail" when
method parameter including space, semicolon, etc. instead of just rejecting
the extension
-- there might be any private-use extension that manipulates extensions
header assuming extension parameters conform to token after unquote

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

c) use hex-encoding to token-ize the method parameter string (for
compatibility, use method_hex as the extension parameter name)
pros:
- just addition of well-known simple encoding. no change outside of
Sec-WebSocket-Extensions header
cons:
- not human readable

My thought:

I think it can be considered to be a bug that the token constraint is
making extension header hard to carry structured data. But as listed above,
there're difficulties to adopt (a).

(c) sounds like the most feasible interim solution.

Thanks
Takeshi