Re: [hybi] Multiplexing in WebSocket (Was: HyBi Design Space)

Ian Hickson <ian@hixie.ch> Tue, 13 October 2009 23:24 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 D05803A684C for <hybi@core3.amsl.com>; Tue, 13 Oct 2009 16:24:08 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level:
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[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 G4KLsQ4I-OWJ for <hybi@core3.amsl.com>; Tue, 13 Oct 2009 16:24:08 -0700 (PDT)
Received: from looneymail-a3.g.dreamhost.com (caibbdcaaaaf.dreamhost.com [208.113.200.5]) by core3.amsl.com (Postfix) with ESMTP id F06653A67EA for <hybi@ietf.org>; Tue, 13 Oct 2009 16:24:07 -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-a3.g.dreamhost.com (Postfix) with ESMTP id 0A8B927B8F; Tue, 13 Oct 2009 16:24:10 -0700 (PDT)
Date: Tue, 13 Oct 2009 23:35:32 +0000
From: Ian Hickson <ian@hixie.ch>
To: "Infinity Linden (Meadhbh Hamrick)" <infinity@lindenlab.com>
In-Reply-To: <3a880e2c0910100853s6650d216mc53e8f70a192a896@mail.gmail.com>
Message-ID: <Pine.LNX.4.62.0910132333430.25383@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> <3a880e2c0910100853s6650d216mc53e8f70a192a896@mail.gmail.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" <hybi@ietf.org>
Subject: Re: [hybi] Multiplexing in WebSocket (Was: HyBi Design Space)
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: Tue, 13 Oct 2009 23:24:08 -0000

On Sat, 10 Oct 2009, Infinity Linden (Meadhbh Hamrick) wrote:
>
> the problem i have with doing addressing for multiplexing channels on a 
> single connection in the application layer is that it effectively 
> disallows intermediaries from reasoning about distinct messages on 
> distinct channels. i do agree that doing multiplexing in the application 
> layer is much more flexible and for many deployments "this is a good 
> thing." does it make sense to have a multiplexing option in the protocol 
> that can be used by people who want their intermediaries to understand 
> this sort of thing, but not make it mandatory? that way i could hire 
> someone to hack squid to recognize and cache multiplexed reverse 
> responses and people who want to do something more flexible at the app 
> layer can still do it.

I don't understand the use case wherein one would ever want caching at the 
Web Socket layer. Could you expand on this?

If there are specific application level protocols layered on top of Web 
Socket that could benefit from caching, then nothing stops intermediaries 
from understanding that sub-protocol, including any multiplexing it might 
itself support.

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