Re: [hybi] RFC 6455 WebSockets Frame to Message assembly

"John A. Tamplin" <jat@jaet.org> Sat, 09 March 2013 01:18 UTC

Return-Path: <jat@jaet.org>
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 5A88E21F8552 for <hybi@ietfa.amsl.com>; Fri, 8 Mar 2013 17:18:18 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.425
X-Spam-Level:
X-Spam-Status: No, score=-0.425 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FH_RELAY_NODNS=1.451, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RDNS_NONE=0.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 WtrH6bwM0frk for <hybi@ietfa.amsl.com>; Fri, 8 Mar 2013 17:18:17 -0800 (PST)
Received: from mail-ie0-x22c.google.com (mail-ie0-x22c.google.com [IPv6:2607:f8b0:4001:c03::22c]) by ietfa.amsl.com (Postfix) with ESMTP id 3BBE521F8595 for <hybi@ietf.org>; Fri, 8 Mar 2013 17:18:17 -0800 (PST)
Received: by mail-ie0-f172.google.com with SMTP id c10so2834731ieb.3 for <hybi@ietf.org>; Fri, 08 Mar 2013 17:18:16 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:x-originating-ip:in-reply-to:references :from:date:message-id:subject:to:cc:content-type:x-gm-message-state; bh=yDqZUkJN0WaxHr6MxK+VKb2gQQsIZHXd28j3S52jwhs=; b=P15+0Om+OKpQG4O9Lm5wW22elxfSJWWW1CfcP1lOJcycIfD4fwH1APbpAofmXhgkVC D6KeyFCg2UNFnGNgt2HFVVsCyhM+RIfxn4BzTZtvrUc0tcJR/WvYKjzFCtJjQpII4Ve5 IYp7MxJ/2DS6NajO+Ndtueamw4sqBpbeSh2/+alTo4EvfANqnpDXGwZWmykCZBZ2z54f qLPMLBsNQWMUCWDDKXrjQSq2OHmy/CKT0vn+RLMzG7soW72JYNGSFQalz/GcmbJSgqC1 Uv6g65XNVMbM1Ub4ASFqbGxE03UuRFrBXPmP9gxEPW2Yyi+7dF96P9mGhCZz5v2gCDMb xmKQ==
X-Received: by 10.50.2.101 with SMTP id 5mr1027353igt.29.1362791896696; Fri, 08 Mar 2013 17:18:16 -0800 (PST)
MIME-Version: 1.0
Received: by 10.50.42.163 with HTTP; Fri, 8 Mar 2013 17:17:56 -0800 (PST)
X-Originating-IP: [207.67.64.142]
In-Reply-To: <CANEdHmhxYJu24c-E=YL16dksJURsLNc3zUiwFdu02Yq2b7MVxg@mail.gmail.com>
References: <CANEdHmhxYJu24c-E=YL16dksJURsLNc3zUiwFdu02Yq2b7MVxg@mail.gmail.com>
From: "John A. Tamplin" <jat@jaet.org>
Date: Fri, 08 Mar 2013 20:17:56 -0500
Message-ID: <CAM5k6X8ZU7zAVwz+WrftSV729urz1xbh=QT8aW7znup5VWHfbA@mail.gmail.com>
To: Scott Morgan <scott@adligo.com>
Content-Type: multipart/alternative; boundary="089e0118235ee834d204d773b6d9"
X-Gm-Message-State: ALoCoQkr1WctkghYJ8EwGfT5H9l5a8anXs71EXafcT8REzxPlcsOfeKjm4Y08z5jMTqUB4KzF17g
Cc: hybi@ietf.org
Subject: Re: [hybi] RFC 6455 WebSockets Frame to Message assembly
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: Sat, 09 Mar 2013 01:18:18 -0000

On Fri, Mar 8, 2013 at 7:29 PM, Scott Morgan <scott@adligo.com> wrote:

>    Again I am sorry if these comments are in the wrong place (email list).
>
> I have been reading;
> http://webtide.intalio.com/2012/10/jetty-9-updated-websocket-api/
>
> I have been wondering how multiple multiple frame messages would share a
> connection and get reassembled.   The specification doen't seem to mention
> this;
> Ie
> Fancy multithreaded Client Sends 2 messages over a single socket;
>     Frame A, part One of 20,000 leagues under the sea
>     Frame B, part One of The Hobbit
>     Frame C, part Two of 20,000 leagues under the sea
>     Frame D, part Two of the Hobbit yea
>
> How should the frames be identified as belonging to the Hobbit?
> I suggest we use the masking key as a id, however I am not sure if it
> would be unique enough.
>

You would need to add your own message layer above WebSocket, or use the
mux extension which is under development.

-- 
John A. Tamplin