[hybi] RFC 6455 WebSockets Frame to Message assembly

Scott Morgan <scott@adligo.com> Sat, 09 March 2013 00:29 UTC

Return-Path: <scott@adligo.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 9B21B21F85B2 for <hybi@ietfa.amsl.com>; Fri, 8 Mar 2013 16:29:38 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.844
X-Spam-Level:
X-Spam-Status: No, score=-2.844 tagged_above=-999 required=5 tests=[AWL=0.133, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, 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 RL07ek6w-CHm for <hybi@ietfa.amsl.com>; Fri, 8 Mar 2013 16:29:38 -0800 (PST)
Received: from mail-vc0-f175.google.com (mail-vc0-f175.google.com [209.85.220.175]) by ietfa.amsl.com (Postfix) with ESMTP id CD42E21F8569 for <hybi@ietf.org>; Fri, 8 Mar 2013 16:29:37 -0800 (PST)
Received: by mail-vc0-f175.google.com with SMTP id p1so1190862vcq.20 for <hybi@ietf.org>; Fri, 08 Mar 2013 16:29:37 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type:x-gm-message-state; bh=+Gc3ZnQIHlUGc/JAm/WBaVz4Ay2g+/jRpYyV9yKouuY=; b=N+E0mzBU/QIQlDsbphmiFyM7muNvuP5yowOFWWV1iK/MT8SinWpg6lbC4oEX5DtaCC PV2rapiB+2+f8mOD68C6S+LAU+hNGRSfxyFeJfRHePmCrFFQ9wF21klNqR9xqjxFihp2 k12UGEvTcD1WTSP0WoPR3z4tFyDaspHyAY9yBjLquFgBSUWvPcVXHqNHNIxhn75xoqPx ZwOx0d/HDsa9U6e30M9qdvmdVb7nohEUHxjxlA3C8Z/fdjFLKNb/hjBMfmpxMFlRFhKc ZMW347Rd06//NboVSs7gVgmuD/Mkx8hYeUtg4aOWLokXZnpGbBnkEuH6AIx60OyUHZV8 yYCg==
MIME-Version: 1.0
X-Received: by 10.52.175.130 with SMTP id ca2mr1535703vdc.109.1362788977190; Fri, 08 Mar 2013 16:29:37 -0800 (PST)
Received: by 10.58.19.5 with HTTP; Fri, 8 Mar 2013 16:29:37 -0800 (PST)
Date: Fri, 08 Mar 2013 18:29:37 -0600
Message-ID: <CANEdHmhxYJu24c-E=YL16dksJURsLNc3zUiwFdu02Yq2b7MVxg@mail.gmail.com>
From: Scott Morgan <scott@adligo.com>
To: hybi@ietf.org
Content-Type: multipart/alternative; boundary="bcaec5014c1de3f10004d7730889"
X-Gm-Message-State: ALoCoQm0RPSsN0xKA8kvnCRK360ZMXJtUkcaORmuRl/rviWg3tLg8P940nTvKBNpU8lC6apPpKdu
Subject: [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 00:29:39 -0000

Hi Again,

   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.


Cheers,
Scott