Re: [hybi] ws and bwtp thoughts

"Thomson, Martin" <Martin.Thomson@andrew.com> Thu, 22 October 2009 02:28 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 355283A68C2 for <hybi@core3.amsl.com>; Wed, 21 Oct 2009 19:28:23 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.541
X-Spam-Level:
X-Spam-Status: No, score=-2.541 tagged_above=-999 required=5 tests=[AWL=0.058, 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 YYCo3NR+eYJr for <hybi@core3.amsl.com>; Wed, 21 Oct 2009 19:28:22 -0700 (PDT)
Received: from csmailgw2.commscope.com (csmailgw2.commscope.com [198.135.207.244]) by core3.amsl.com (Postfix) with ESMTP id 5C05B3A68B5 for <hybi@ietf.org>; Wed, 21 Oct 2009 19:28:22 -0700 (PDT)
Received: from [10.86.20.103] ([10.86.20.103]:36719 "EHLO ACDCE7HC2.commscope.com") by csmailgw2.commscope.com with ESMTP id S69701AbZJVC2b (ORCPT <rfc822; hybi@ietf.org>); Wed, 21 Oct 2009 21:28:31 -0500
Received: from SISPE7HC1.commscope.com (10.97.4.12) by ACDCE7HC2.commscope.com (10.86.20.103) with Microsoft SMTP Server (TLS) id 8.1.393.1; Wed, 21 Oct 2009 21:28:31 -0500
Received: from SISPE7MB1.commscope.com ([fe80::9d82:a492:85e3:a293]) by SISPE7HC1.commscope.com ([fe80::8a9:4724:f6bb:3cdf%10]) with mapi; Thu, 22 Oct 2009 10:28:28 +0800
From: "Thomson, Martin" <Martin.Thomson@andrew.com>
To: Greg Wilkins <gregw@webtide.com>
Date: Thu, 22 Oct 2009 10:28:52 +0800
Thread-Topic: [hybi] ws and bwtp thoughts
Thread-Index: AcpSrRGFiXhJMuKtSH+PbTzw1kY9SQAAre4g
Message-ID: <8B0A9FCBB9832F43971E38010638454F0F1EA2C1@SISPE7MB1.commscope.com>
References: <8B0A9FCBB9832F43971E38010638454F0F1EA1D4@SISPE7MB1.commscope.com> <4ADEA997.10705@webtide.com> <8B0A9FCBB9832F43971E38010638454F0F1EA281@SISPE7MB1.commscope.com> <4ADFA49A.8060604@webtide.com>
In-Reply-To: <4ADFA49A.8060604@webtide.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
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] ws and bwtp thoughts
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: Thu, 22 Oct 2009 02:28:23 -0000

Hi Greg,

> Needless to say that even with per message meta-data, I think we
> can do a lot better than HTTP which has a lot of request/response
> baggage in the accept-xyz headers.
>
> So I don't think that we should immediately conclude that if
> per message meta-data is supported, then we are going to see
> hundreds of extra bytes per message.

In many cases no parameters will be needed.  Thus, applications get the best of both worlds.

For many WS-like use cases, I can think of no real benefit that is gained by adding additional parameters.  We've got folks looking for more than that though.

> One suggestion I have made previously is to simply define
> another type byte for websocket that would mean the content
> is mime encoded content with standard headers terminated by
> CRLFCRLF.

I would go further and make everyone pay the 4 byte cost.

> But this would probably need either some websocket API changes
> or some serious extra header conventions to allow transparent
> sharing  of TCP/IP connections between websocket "connections",
> but it at least opens the possibility.

We should not necessarily make protocol decisions based on a draft API for that protocol.  But then, you knew that ;)

> In fact, header conventions could also be used to
> implement channels and other protocol extensions without
> needing to put them into the framing.

That was the essence of my email...  That has certain advantages from a complexity/flexibility standpoint.

> I think the cat is feeling very nervous about all
> the different types of knives that can be used !

There has to be a lolcats pic for that.  Google fails me.