Re: [hybi] How to select which websocket protocol to use
Francis Brosnan Blazquez <francis@aspl.es> Thu, 24 December 2009 10:37 UTC
Return-Path: <francis@aspl.es>
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 0196628B56A for <hybi@core3.amsl.com>; Thu, 24 Dec 2009 02:37:36 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 2.711
X-Spam-Level: **
X-Spam-Status: No, score=2.711 tagged_above=-999 required=5 tests=[AWL=0.427, BAYES_00=-2.599, FH_HOST_ALMOST_IP=1.889, HOST_EQ_STATIC=1.172, HOST_EQ_STATICIP=1.511, HOST_MISMATCH_NET=0.311]
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 YnGCJAPG5VJQ for <hybi@core3.amsl.com>; Thu, 24 Dec 2009 02:37:35 -0800 (PST)
Received: from dolphin.aspl.es (196.Red-212-170-101.staticIP.rima-tde.net [212.170.101.196]) by core3.amsl.com (Postfix) with ESMTP id 0C81D3A697C for <hybi@ietf.org>; Thu, 24 Dec 2009 02:37:34 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by dolphin.aspl.es (Postfix) with ESMTP id 69AD21170007; Thu, 24 Dec 2009 11:37:15 +0100 (CET)
X-Virus-Scanned: amavisd-new at dolphin.aspl.es
Received: from dolphin.aspl.es ([127.0.0.1]) by localhost (dolphin.aspl.es [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bB+HVYdiO8O1; Thu, 24 Dec 2009 11:37:14 +0100 (CET)
Received: from [192.168.0.132] (barracuda [10.0.0.4]) by dolphin.aspl.es (Postfix) with ESMTP id 7723E1170001; Thu, 24 Dec 2009 11:37:14 +0100 (CET)
From: Francis Brosnan Blazquez <francis@aspl.es>
To: Greg Wilkins <gregw@webtide.com>
In-Reply-To: <4B329FFE.1060109@webtide.com>
References: <1261492671.8667.755.camel@vulcan.aspl.local> <a9699fd20912230053r72606fael1f7ea7d4426145e8@mail.gmail.com> <4B329FFE.1060109@webtide.com>
Content-Type: text/plain
Organization: ASPL
Date: Thu, 24 Dec 2009 11:37:15 +0100
Message-Id: <1261651035.8667.884.camel@vulcan.aspl.local>
Mime-Version: 1.0
X-Mailer: Evolution 2.26.3
Content-Transfer-Encoding: 7bit
Cc: WhatWG <whatwg@whatwg.org>, Hybi <hybi@ietf.org>
Subject: Re: [hybi] How to select which websocket protocol to use
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, 24 Dec 2009 10:39:57 -0000
Hi, > I'm not a big fan for exposing more detail in the API, because > that just exposes transport details to the application. Current WebSocket javascript API is perfect assuming it provides a TCP connection (or close to)...however it seems there is no consensus on WebSocket protocol design. BWTP has the advantage that works over existing HTTP infrastructure (specially HTTP proxy) and its framing design is more secure (length limited) and consistent (only one) but it provides lot of features that makes it too heavy for the purpose (implement something similar to TCP). ..and WebSocket has the advantage that fits better the purpose but has a problem with existing infrastructure and a framing style which could provide binary support but at the end, how is this signaled from javascript API? Clearly UTF-8 based framing is flagged as default in the draft. Ian, I think when IANA proposed WebSocket to use 80 and 443 port, maybe they were also saying to accomodate the WebSocket protocol to be friendly with existing HTTP infrastructure. What do you think? In the other hand, there is a general consensus that an octet and length limited framing is more robust, secure and general (you can transmit both UTF-8 or arbitrary binary content). Why don't change this to have a single framing style? Cheers! -- Francis Brosnan Blazquez <francis@aspl.es> ASPL
- Re: [hybi] How to select which websocket protocol… Greg Wilkins
- [hybi] How to select which websocket protocol to … Francis Brosnan Blazquez
- Re: [hybi] How to select which websocket protocol… Thomas Broyer
- Re: [hybi] How to select which websocket protocol… Francis Brosnan Blazquez