Re: [hybi] first draft of WS mux extension

"Len Holgate" <len.holgate@gmail.com> Mon, 24 October 2011 08:30 UTC

Return-Path: <len.holgate@gmail.com>
X-Original-To: hybi@ietfa.amsl.com
Delivered-To: hybi@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id C4CA721F8C8B for <hybi@ietfa.amsl.com>; Mon, 24 Oct 2011 01:30:08 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.599
X-Spam-Level:
X-Spam-Status: No, score=-3.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SgriRixHHYZl for <hybi@ietfa.amsl.com>; Mon, 24 Oct 2011 01:30:07 -0700 (PDT)
Received: from mail-wy0-f172.google.com (mail-wy0-f172.google.com [74.125.82.172]) by ietfa.amsl.com (Postfix) with ESMTP id 9A92421F8C8D for <hybi@ietf.org>; Mon, 24 Oct 2011 01:30:07 -0700 (PDT)
Received: by wyh22 with SMTP id 22so6604141wyh.31 for <hybi@ietf.org>; Mon, 24 Oct 2011 01:30:06 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:references:subject:date:message-id:mime-version :content-type:content-transfer-encoding:x-mailer:in-reply-to :thread-index:x-mimeole; bh=c2ThiD6tXqVaGR+XtPAiIVNYWlwzN9jr2Rv6xR1Xxe8=; b=FXn9x3dg4z3MrxdRYb+t8tZDgv5jt11T02YDLFhngN2+XcgLc2aQe30VmjzAk7zSMn 425bYNlOgb0TZj5llYlSqp9ps7fSyOL4efTpmxb4W9ISocBb+qzdN4YMe1M4NV/GxxAE Z4CDUjwIYmaDyzrN+V7U5Me4HMVr+as+ypuwo=
Received: by 10.227.23.210 with SMTP id s18mr586541wbb.9.1319445006649; Mon, 24 Oct 2011 01:30:06 -0700 (PDT)
Received: from Venus (cpc8-glfd6-2-0-cust3.6-2.cable.virginmedia.com. [86.27.228.4]) by mx.google.com with ESMTPS id ek13sm37601672wbb.3.2011.10.24.01.30.04 (version=SSLv3 cipher=OTHER); Mon, 24 Oct 2011 01:30:05 -0700 (PDT)
From: Len Holgate <len.holgate@gmail.com>
To: 'John Tamplin' <jat@google.com>
References: <CABLsOLB3gqQgo0myNkHxGmvr5P55GeKqaUPnYP9RgnUsiVM++g@mail.gmail.com> <CALiegfmc=01Uw0eLZES=WGtWVBKPjQLz3itiPL4TPVwy5mZFmQ@mail.gmail.com> <CABLsOLDi-rXcDp9k_+bkMBrmswY-QbHkqXLKT+2wOQ7Y0ry0VQ@mail.gmail.com> <CALiegf=Tcbys=ekrg3=BdzToy7uw08UmtpmWzZh1ikDxww_4qQ@mail.gmail.com> <CALiegfnTiVLKh6Dvc_7U4oN2YOR5VgH7_YPc-O1WpygU8=gCbw@mail.gmail.com> <CABLsOLBH_b19CH8mfXF7mqE23YZ5skvprk77JD++dpW6DzfvJA@mail.gmail.com> <21c201cc921f$bbd76a00$0a00a8c0@Venus> <CABLsOLAMoa4C6o3nT+NmsS97ifTFgxRSW6SWGXtZrZ7MiPOM8g@mail.gmail.com>
Date: Mon, 24 Oct 2011 09:30:12 +0100
Message-ID: <21d301cc9227$26c55c30$0a00a8c0@Venus>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <CABLsOLAMoa4C6o3nT+NmsS97ifTFgxRSW6SWGXtZrZ7MiPOM8g@mail.gmail.com>
Thread-Index: AcySIe6CQklQxcJMRZ+wbmfjUn0Y1AABMbwg
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3664
Cc: 'Hybi' <hybi@ietf.org>
Subject: Re: [hybi] first draft of WS mux extension
X-BeenThere: hybi@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Server-Initiated HTTP <hybi.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/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: Mon, 24 Oct 2011 08:30:08 -0000

No, you'd just use the existing framing in the base protocol and all
fragments would have the FIN bit set. Thus any channel can interleave
without changing any rules from the base protocol. You'd then have a single
FIN bit in the extension data, before the channel id, which acts as the fin
bit for this channel's data.

Your example in 7 becomes

81 06 [FIN BIT HERE = 0]01 "Hello" 81 04 [FIN BIT HERE = 1]02 "bye" 81 07
[FIN BIT HERE = 1]01 " world"

Len 

> -----Original Message-----
> From: John Tamplin [mailto:jat@google.com] 
> Sent: 24 October 2011 08:53
> To: Len Holgate
> Cc: Hybi
> Subject: Re: [hybi] first draft of WS mux extension
> 
> On Mon, Oct 24, 2011 at 3:37 AM, Len Holgate 
> <len.holgate@gmail.com> wrote:
> 
> 
> 	This seems nice and clean and pretty easy to implement.
> 	
> 	Have you considered removing the "relaxation" of the 
> fragmented frame rules
> 	from the base protocol (ie the changes that permit the 
> example shown in 7).
> 	
> 	I would have thought that if all fragments on mux 
> channels were sent as
> 	complete messages you could include the actual 
> message's fin bit in the
> 	extension data of the mux frame and so not change the 
> base protocol at all.
> 	This would mean that mux could be implemented on 
> existing websocket
> 	implementations without changing the underlying 
> implementation at all. The
> 	layer "above" could deal with all aspects of the muxing.
> 	
> 
> 
> That would require an additional framing layer to allow that, 
> and objections to that is what led to the support in the base 
> spec allowing extensions to define interleaving behavior. 
> 
> -- 
> John A. Tamplin
> Software Engineer (GWT), Google
> 
>