Re: [hybi] Multiplexing in WebSocket

Ian Hickson <ian@hixie.ch> Fri, 23 October 2009 21:43 UTC

Return-Path: <ian@hixie.ch>
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 50F3C3A693B for <hybi@core3.amsl.com>; Fri, 23 Oct 2009 14:43:27 -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 I6JDAGGLqEPo for <hybi@core3.amsl.com>; Fri, 23 Oct 2009 14:43:26 -0700 (PDT)
Received: from looneymail-a2.g.dreamhost.com (caibbdcaaaaf.dreamhost.com [208.113.200.5]) by core3.amsl.com (Postfix) with ESMTP id 5BB653A691F for <hybi@ietf.org>; Fri, 23 Oct 2009 14:43:26 -0700 (PDT)
Received: from hixie.dreamhostps.com (hixie.dreamhost.com [208.113.210.27]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by looneymail-a2.g.dreamhost.com (Postfix) with ESMTP id 64C4C16D3E6; Fri, 23 Oct 2009 14:43:36 -0700 (PDT)
Date: Fri, 23 Oct 2009 21:57:00 +0000
From: Ian Hickson <ian@hixie.ch>
To: Greg Wilkins <gregw@webtide.com>
In-Reply-To: <4AE1E659.5050507@webtide.com>
Message-ID: <Pine.LNX.4.62.0910232154470.13521@hixie.dreamhostps.com>
References: <4ACE50A2.5070404@ericsson.com> <3a880e2c0910081600v3607665dp193f6df499706810@mail.gmail.com> <4ACF4055.6080302@ericsson.com> <Pine.LNX.4.62.0910092116010.21884@hixie.dreamhostps.com> <4AD2E353.8070609@webtide.com> <4AD2F43D.6030202@ninebynine.org> <4AD39A64.4080405@webtide.com> <Pine.LNX.4.62.0910132335390.25383@hixie.dreamhostps.com> <4AD53DCA.6050304@webtide.com> <Pine.LNX.4.62.0910170203460.9145@hixie.dreamhostps.com> <4ADA7FD4.9010406@webtide.com> <4ADB6F0B.4000004@gmail.com> <Pine.LNX.4.62.0910221120380.9145@hixie.dreamhostps.com> <4AE08907.7080402@webtide.com> <Pine.LNX.4.62.0910230348470.9145@hixie.dreamhostps.com> <4AE1E659.5050507@webtide.com>
Content-Language: en-GB-hixie
Content-Style-Type: text/css
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset="US-ASCII"
Cc: hybi@ietf.org
Subject: Re: [hybi] Multiplexing in WebSocket
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, 23 Oct 2009 21:43:27 -0000

On Fri, 23 Oct 2009, Greg Wilkins wrote:
> Ian Hickson wrote:
> > On Thu, 22 Oct 2009, Joshua Bell wrote:
> >> * I seem to recall that one of the desires for sentinel-based frames 
> >> was to allow octet streams for which the length was not known in 
> >> advance.
> > 
> > No; the only reason for sentinel-based frames was to not rely on 
> > authors having to determine the length of their UTF-8-encoded strings, 
> > which in many environments can be easy to get wrong.
> 
> Authors that can't determine the length of a UTF-8 string are not 
> exactly the sort of developers that should be implementing network 
> protocols.

Wow.

I cannot stand behind such a judgmental statement. Personally I would like 
to make this kind of thing accessible to as many people as possible.


> It seams an entirely reasonable simplification of websocket to use only 
> length limited framing and to use the type byte to indicate such things 
> as content charset

What's the use case for doing anything other than UTF-8?

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'