Re: [hybi] WS framing alternative

"Thomson, Martin" <Martin.Thomson@andrew.com> Fri, 30 October 2009 05:04 UTC

Return-Path: <Martin.Thomson@andrew.com>
X-Original-To: hybi@core3.amsl.com
Delivered-To: hybi@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 6AF283A69E2 for <hybi@core3.amsl.com>; Thu, 29 Oct 2009 22:04:52 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.561
X-Spam-Level:
X-Spam-Status: No, score=-2.561 tagged_above=-999 required=5 tests=[AWL=0.038, BAYES_00=-2.599]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0QTJH+AI9CbX for <hybi@core3.amsl.com>; Thu, 29 Oct 2009 22:04:51 -0700 (PDT)
Received: from csmailgw2.commscope.com (csmailgw2.commscope.com [198.135.207.244]) by core3.amsl.com (Postfix) with ESMTP id 558A53A6961 for <hybi@ietf.org>; Thu, 29 Oct 2009 22:04:51 -0700 (PDT)
Received: from [10.86.20.103] ([10.86.20.103]:60785 "EHLO ACDCE7HC2.commscope.com") by csmailgw2.commscope.com with ESMTP id S69613AbZJ3FFF (ORCPT <rfc822; hybi@ietf.org>); Fri, 30 Oct 2009 00:05:05 -0500
Received: from SISPE7HC2.commscope.com (10.97.4.13) by ACDCE7HC2.commscope.com (10.86.20.103) with Microsoft SMTP Server (TLS) id 8.1.393.1; Fri, 30 Oct 2009 00:05:06 -0500
Received: from SISPE7MB1.commscope.com ([fe80::9d82:a492:85e3:a293]) by SISPE7HC2.commscope.com ([fe80::58c3:2447:f977:57c3%10]) with mapi; Fri, 30 Oct 2009 13:05:01 +0800
From: "Thomson, Martin" <Martin.Thomson@andrew.com>
To: Ian Hickson <ian@hixie.ch>, "hybi@ietf.org" <hybi@ietf.org>
Date: Fri, 30 Oct 2009 13:05:26 +0800
Thread-Topic: [hybi] WS framing alternative
Thread-Index: AcpZGI56WhJzkxN5St+H/IKgyYK2MAAAzbqw
Message-ID: <8B0A9FCBB9832F43971E38010638454F0F251B23@SISPE7MB1.commscope.com>
References: <8B0A9FCBB9832F43971E38010638454F0F1EA72C@SISPE7MB1.commscope.com> <Pine.LNX.4.62.0910270903080.9145@hixie.dreamhostps.com> <a9699fd20910270426u4aa508cepf557b362025ae5db@mail.gmail.com> <Pine.LNX.4.62.0910271824200.25616@hixie.dreamhostps.com> <4AE76137.8000603@webtide.com> <Pine.LNX.4.62.0910272118590.25608@hixie.dreamhostps.com> <20091029123121.GA24268@almeida.jinsky.com> <4AEA0E6C.1060607@webtide.com> <4AEA5713.8020008@it.aoyama.ac.jp> <Pine.LNX.4.62.0910300346010.25616@hixie.dreamhostps.com>
In-Reply-To: <Pine.LNX.4.62.0910300346010.25616@hixie.dreamhostps.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
acceptlanguage: en-US
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-BCN: Meridius 1000 Version 3.4 on csmailgw2.commscope.com
X-BCN-Sender: Martin.Thomson@andrew.com
Subject: Re: [hybi] WS framing alternative
X-BeenThere: hybi@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Server-Initiated HTTP <hybi.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/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: Fri, 30 Oct 2009 05:04:52 -0000

> You are proposing that given a length and a series of bytes encoding
> text
> in a variable-sized encoding (UTF-8), the application return a series
> of
> characters.

Sure.  It's like the old argument over whether C or Pascal strings are better.  It's not really a fun argument.  It was not my intent to argue over the merits of either approach.

The point was to allow for arbitrary binary content as well as UTF-8 text together.  The point was to adopt a framing scheme that would allow for MIME.  If you want to avoid the problem you refer to (which I don't see as being as big as you make it out to be), then that's quite difficult if you want to allow for binary data - hence the two framing schemes in WS.

...
> Regarding the rest of your e-mail, I don't disagree with the facts, but
> I
> disagree with the cost-benefit analyses, with your opinion of what is
> and
> what is not an acceptable risk, and with some of your goals. I don't
> know
> of any objective way to argue those points, and I agree that if you
> start
> with your positions, that you wouldn't develop WebSockets the way it is
> currently specced.
> 
> What is the process for proceeding in the IETF when people have
> fundamentally different and mutually exclusive opinions?

I believe that we use the methods of the Sophists.  We beat each other around the head with rhetoric.  Then we either come to a compromise, someone concedes, or the different parties begin to enjoy the argument too much and we end up with proprietary solutions.

Thankfully, we aren't arguing in a vacuum.  I'm happy to cede to the will of a majority on the issue, just as I hope that you are.  And deployment counts for a lot.  Until I feel that I'm arguing without support, I will continue to argue for a text-based protocol with (marginally) greater provision for extension than currently exists.

--Martin